Running JAAS with JBOSS

Please anybody tell me how to configure JAAS in JBOSS
I have included in my code . while i am runnin that code with JBOSS it is throwing the following exception:
09:45:21,484 ERROR [STDERR] javax.security.auth.login.FailedLoginException: Pass
word Incorrect/Password Required
09:45:21,484 ERROR [STDERR] at org.jboss.security.auth.spi.UsernamePasswordL
oginModule.login(UsernamePasswordLoginModule.java:213)
09:45:21,500 ERROR [STDERR] at org.jboss.security.auth.spi.UsersRolesLoginMo
dule.login(UsersRolesLoginModule.java:152)
09:45:21,500 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(
Native Method)
09:45:21,500 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(U
nknown Source)
09:45:21,500 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo
ke(Unknown Source)
09:45:21,500 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Sourc
e)
Please respond me how to configure it in JBOSS

How did you packaged the web application - Is it a WAR file?i didnt make any war file I just worked with JBilderX which makes WEB MODULE and i think that is the WAR file??
Where you put the web archive on the JBoss (Path please)?no where....:(
hay! i just configured JBoss with JBuilderX and then started using it right away.
is there any thing else to be done
please tell me
waiting...

Similar Messages

  • Complete configuration of JAAS with JBOSS using database

    JAAS Configuration
    1.     Database
         Create following table:
    a.     Principals table consists of usernames (PrincipalID) and their passwords.
    CREATE TABLE Principals (PrincipalID VARCHAR (64) PRIMARY KEY,
    Password VARCHAR (64))
    Insert data
    INSERT INTO Principals VALUES ('java', 'echoman')
    INSERT INTO Principals VALUES ('duke', 'javaman')     
    b.     Roles table consists of usernames (PrincipalID) and their Role and the
    RoleGroup they belong.
    CREATE TABLE Roles (PrincipalID VARCHAR (64), Role
    VARCHAR (64), RoleGroup VARCHAR (64))
    Insert data
    INSERT INTO Roles VALUES ('java', 'Echo', 'Roles')
    INSERT INTO Roles VALUES ('java', 'caller_java', 'CallerPrincipal')
    INSERT INTO Roles VALUES ('duke', 'Java', 'Roles')
    INSERT INTO Roles VALUES ('duke', 'Coder', 'Roles')
    INSERT INTO Roles VALUES ('duke', 'caller_duke', 'CallerPrincipal')
    INSERT INTO Roles VALUES ('duke', 'Echo', 'Roles')
    2.     login-config.xml
    This file is located in jboss-3.2.1\server\default\conf
    a.     add the following lines
                             <application-policy name="example2">
                                  <authentication>
                                       <login-module code="org.jboss.security.ClientLoginModule" flag="required">
                                  </login-module>
                             <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule"
                             flag="required">
                             <module-option name="managedConnectionFactoryName">
                        jboss.jca:service=LocalTxCM,name=SybaseDB
                                       </module-option>
                                       <module-option name="dsJndiName">
                                            java:/SybaseDB
                                       </module-option>
              <module-option name="principalsQuery">
              Select Password from Principals where PrincipalID =?
              </module-option>
                                       <module-option name="rolesQuery">
                                            Select Role 'Roles', RoleGroup 'RoleGroups' from Roles where                                              PrincipalID =?
                                       </module-option>
                             </login-module>
                        </authentication>
                   </application-policy>
    3.     jboss-web.xml
         Create a file jboss-web.xml and place the following code
              <?xml version="1.0" encoding="UTF-8"?>
              <jboss-web>
                   <security-domain>java:/jaas/example2</security-domain>
              </jboss-web>
    example2 is the name of the security domain which we specified in application policy of login-config.xml
    Copy this file in your applications WEB-INF folder
    4. auth.conf
         Create a file auth.conf and place it in jboss-3.2.1\client.
    client-login
              org.jboss.security.ClientLoginModule required;
    example2
              org.jboss.security.ClientLoginModule required;
    org.jboss.security.auth.spi.DatabaseServerLoginModule required;
    5.     auth.conf
         Create another auth.conf and place it in jboss-3.2.1\server\default\conf
    // The JBoss server side JAAS login config file for the examples
    client-login
              org.jboss.security.ClientLoginModule required;
    example2
              org.jboss.security.ClientLoginModule required;
         org.jboss.security.auth.spi.DatabaseServerLoginModule
    required
              dsJndiName="java:/SybaseDB"
    principalsQuery="Select Password from Principals where PrincipalID =?"
    rolesQuery="Select Role 'Roles', RoleGroup 'RoleGroups' from Roles where PrincipalID =?"
    5.     jndi
         Path jboss-3.2.1\server\default\conf
         java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
    java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
    # Do NOT uncomment this line as it causes in VM calls to go over
    # RMI!
    java.naming.provider.url=localhost:1099
    #localhost
    6.     web.xml
    Place the following code in your web.xml.(Change it according to your application requirements).
         <security-constraint>
              <web-resource-collection>
                   <web-resource-name>action</web-resource-name>
                   <description>Declarative security tests</description>
                   <url-pattern>*.do</url-pattern>
                   <http-method>HEAD</http-method>
                   <http-method>GET</http-method>
                   <http-method>POST</http-method>
                   <http-method>PUT</http-method>
                   <http-method>DELETE</http-method>
              </web-resource-collection>
              // the role which can access these resources
              <auth-constraint>
                   <role-name>Echo</role-name>
                   <!--<role-name>Java</role-name>-->
              </auth-constraint>
              <user-data-constraint>
                   <description>no description</description>
                   <transport-guarantee>NONE</transport-guarantee>
              </user-data-constraint>
         </security-constraint>
              //the login page in case of Basic authentication
         <!--<login-config>
              <auth-method>BASIC</auth-method>
              <realm-name>JAAS Tutorial Servlets</realm-name>
         </login-config>-->
         //the login page in case of form based authentication
         <login-config>
              <auth-method>FORM</auth-method>
              <form-login-config>
                   <form-login-page>/logon.do</form-login-page> //path to login page
                   <form-error-page>/logoff.do</form-error-page> //path in case login fails
              </form-login-config>
         </login-config>
         <security-role>
              <description>A user allowed to invoke echo methods</description>
              <role-name>Echo</role-name>
         </security-role>
         <!--
         <security-role>
              <description>A user allowed to invoke echo methods</description>
         <role-name>Java</role-name>
         </security-role>
         -->
    7.     login.jsp
    <%@ page contentType="text/html; charset=UTF-8" %>
    <%@ page language="java" %>
    <html >
    <HEAD>
    <TITLE></TITLE>
    <!-- To prevent caching -->
    <%
    response.setHeader("Cache-Control","no-cache"); // HTTP 1.1
    response.setHeader("Pragma","no-cache"); // HTTP 1.0
    response.setDateHeader ("Expires", -1); // Prevents caching at the proxy server
    %>
    <SCRIPT>
    function submitForm() {
    var frm = document. logonForm;
    // Check if all the required fields have been entered by the user before
    // submitting the form
    if( frm.j_username.value == "" ) {
    alert("blank");
    frm.j_username.focus();
    return ;
    if( frm.j_password.value == "" ) {   
    alert("blank");
    frm.j_password.focus();
    return ;
    frm.submit();
    </SCRIPT>
    </HEAD>
    <BODY>
    <FORM name="logonForm" action="logon.do" METHOD=POST>
    <TABLE width="100%" border="0" cellspacing="0" cellpadding=
    "1" bgcolor="white">
    <TABLE width="100%" border="0" cellspacing=
    "0" cellpadding="5">
    <TR align="center">
    <TD align="right" class="Prompt"></TD>
    <TD align="left">
    <INPUT type="text" name="j_username" maxlength=20>
    </TD>
    </TR>
    <TR align="center">
    <TD align="right" class="Prompt"> </TD>
    <TD align="left">
    <INPUT type="password"
    name="j_password" maxlength=20 >
    <BR>
    <TR align="center">
    <TD align="right" class="Prompt"> </TD>
              <TD align="left">     
         <input type="submit" onclick="javascript:submitForm();" value="Login">
    </TD>
    </TR>
    </TABLE>
    </FORM>
    </BODY>
    </html>
    8. Your action class should contain the following code
         a. Pacakages to be imported
    import java.util.Set;
    import javax.security.auth.Subject;
    import javax.security.auth.callback.CallbackHandler;
    import javax.security.auth.login.LoginContext;
    import javax.security.auth.login.LoginException;
    import org.jboss.security.SimplePrincipal;
    import org.jboss.security.auth.callback.SecurityAssociationHandler;
         try
    SecurityAssociationHandler handler = new
    SecurityAssociationHandler();
    user = new SimplePrincipal(username);
    handler.setSecurityInfo(user, password.toCharArray());
    LoginContext loginContext = new LoginContext("example2",
    (CallbackHandler)handler);
    loginContext.login();
    Subject subject = loginContext.getSubject();
    Set principals = subject.getPrincipals();
    principals.add(user);
    }catch(LoginException e)
    { errors.add("loginerror", new ActionError("Wrong Username or  Password")); saveErrors(request, errors);
    //other login related code

    Hi,
    Can I just first of all say how useful I found this article.
    It has been a great help in explaining what I need to do.
    I just had a couple of questions about the details...
    1) The jndi.properties file appears to be much the same except for the line...
    java.naming.provider.url=jnp://localhost:1099
    Are you saying we need to add that line to the jndi.properties or else all calls will go through rmi ?
    2) Should the line be java.naming.provider.url=jnp://localhost:1099 or url=localhost:1099 ?
    Thanks again for the article
    Dave

  • Authorization failed with JAAS in JBOSS

    Hi all,
    I write my own login module class (WusLdapLoginModule) for my web app. I can authenticate my user with username and password. But I failed in authorizing my user with roles.
    I believe that I missed something, please help me.
    My web application run on WinXP, Jboss 4.2.3 GA, OpenLdap 2.0.2.9
    Here is my login module class:
    package wus.identity.security;
    import java.io.IOException;
    import java.util.Map;
    import javax.security.auth.callback.Callback;
    import javax.security.auth.callback.CallbackHandler;
    import javax.security.auth.callback.NameCallback;
    import javax.security.auth.callback.PasswordCallback;
    import javax.security.auth.callback.UnsupportedCallbackException;
    import javax.security.auth.login.LoginException;
    import javax.security.auth.spi.LoginModule;
    import javax.security.auth.Subject;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    import wus.identity.Role;
    import wus.identity.User;
    import wus.identity.dao.UserDAO;
    public class WusLdapLoginModule implements LoginModule
        //properties
        private Subject subject;
        private CallbackHandler callbackHandler;
        private Map<String,?> sharedStates;
        private Map<String,?> options;
        private boolean loginOk;
        private User m_user;
        //====== DAO ====================
        private UserDAO m_userDao = new UserDAO();
        private static final Log log = LogFactory.getLog(WusLdapLoginModule.class);
        @Override
        public boolean commit() throws LoginException
            int i;
            if(loginOk)
                if(!subject.getPrincipals().contains(this.m_user))
                    this.subject.getPrincipals().add(this.m_user);               
                    for(i=0;i<m_user.getRoles().size();i++)
                        this.subject.getPrincipals().add(m_user.getRoles().get(i));
                AuthenticatedUser.setAuthenticatedUser(m_user);
            return loginOk;
    }Here is my Role class
    package wus.identity;
    import java.io.Serializable;
    import java.security.Principal;
    public class Role implements Principal, Serializable
        private static final long serialVersionUID = 10797L;
        //Properties
        private String name;
        private String note;
        public Role()
            name = "";
        @Override
        public String getName()
            // TODO Auto-generated method stub
            return name;
        }Here is a part of web.xml:
    <security-constraint>
            <web-resource-collection>
                <web-resource-name>Secure Area</web-resource-name>
                <url-pattern>/sa/*</url-pattern>
                <http-method>GET</http-method>
                <http-method>POST</http-method>
            </web-resource-collection>
            <auth-constraint>
                <!-- <role-name>user</role-name>  -->
                <role-name>user</role-name>
            </auth-constraint>
        </security-constraint>
        <!-- end security constraints -->
        <!-- Example Login page - lists user names -->
        <login-config>
            <auth-method>FORM</auth-method>
            <form-login-config>
                <form-login-page>/ua/login-example.jsf</form-login-page>
                <form-error-page>/ua/login-example.jsf?error=true</form-error-page>
            </form-login-config>
        </login-config>
    <security-role>
            <role-name>admin</role-name>
        </security-role>
        <security-role>
            <role-name>user</role-name>
        </security-role>Thank in advance,
    Vu

    How is this question related to JSF?
    Try a forum devoted to JAAS or JBoss, depending on the root cause of the problem.

  • Error trying to get LiveCycle ES up and running with JBoss/SQL Server

    I am having an error trying to get LiveCycle ES Trial up and running with JBOSS and SQL Server.  The LiveCycle ES and JBOSS engines are running on Windows Server 2003 SP #2 under VMWare Server with 2 vCPUs/1 GB vRAM.  The SQL Server database is SQL 2005 x86-64 with SP #2 on a separate server.<br /><br />I have carefully followed all of the instructions for setting up jboss, modifying all of the appropriate XML files, downloading the SQL JDBC drivers and putting it in the %JBOSS_HOME%\server\all\lib directory, etc.  I tried both the SQL JDBC 1.1 and 1.2 drivers and they both fail.<br /><br />The error I get is on startup of jboss using<br />cmd /c start /low run.bat -c all<br />(and yes I also just tried run.bat -c all)<br /><br />it runs along file until it gets here<br />2008-06-18 16:00:03,123 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=IDP_DS' to JNDI name 'java:IDP_DS'<br />2008-06-18 16:00:03,123 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=EDC_DS' to JNDI name 'java:EDC_DS'<br />2008-06-18 16:00:03,373 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'<br />2008-06-18 16:00:03,373 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=adobe_JmsQueueXA' to JNDI name 'java:adobe_JmsQueueXA'<br />2008-06-18 16:00:03,389 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=adobe_JmsTopicXA' to JNDI name 'java:adobe_JmsTopicXA'<br />2008-06-18 16:00:03,482 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'<br />2008-06-18 16:00:03,514 WARN  [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection: null<br />org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.microsoft.jdbc.sqlserver.SQLServerDriver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.microsoft.jdbc.sqlserver.SQLServerDriver))<br />     at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnecti on(LocalManagedConnectionFactory.java:164)<br />[ lots more error scrolls ]<br /><br />this repeats multiple times<br /><br />I can see that it does acknowledge that I put the sqljdbc.jar file in the appropriate directory from the boot.log<br /><br /><snip><br />15:59:44,856 DEBUG [SARDeployer] deployed classes for file:/C:/jboss/server/all/lib/sqljdbc.jar<br /><snip><br /><br />please help!

    APJ<br />We ran into many issues setting up a very similar environment.  In the end we had to use a specially configured JBoss, supplied by Adobe, to make a connection with the SQL database.  Since you have SQL w/ SP2 on it, you will need the 1.2 driver for sure, but you may want to talk to Adobe support about obtaining the version of JBoss they supplied us with.  The Adobe Support Reference Number is: 1-52422366.<br /><br />Even with the alternate JBoss we had to perform the following steps to get the configuration right:<br /><br />1.     Install Livecycle from the installation DVD.  Follow the instructions for installing LiveCycle supplied by Adobe, including all pre-installation instructions.  Make sure NT service is installed with parameters, and dont run Configuration Manager.<br />2.     Rename %LIVECYCLE_INSTALL%\jboss to %LIVECYCLE_INSTALL%\jboss_orig<br />3.     Extract the zipped new, good instance of JBoss (supplied by Adobe)  to the %LIVECYCLE_INSTALL%\ folder  <br />4.     Go to the %LiveCycle_Home%\deploy folder and make a copy of the file adobeimport_SQLServer.jar file.  Rename the copy of the file to aadobeimport_SQLServer.jar.  There seems to be a bug in configuration manager that looks for a file with the extra  a appended to the beginning of the file name, where that file normally isnt there.  Make sure that the adobeimport_SQLServer.jar file is still in this folder as well.<br />5.     Edit the data source file (%JBOSS_HOME%\server\all\deploy\ adobe-ds.xml) to point to the correct database for the LiveCycle Server.<br />a.     Update the <connection-url>, <user-name>, and <password> tags with the correct database connection information.<br />b.     If BAM is to be used on the server (this should be done on the Production server) then delete both lines that state Remove this line, if BAM is used.<br />6.     Go to the login configuration file (%JBOSS_HOME%\server\all\conf\login-config.xml), and edit the section labeled <application-policy name = "MSSQLDbRealm">.<br />a.     Change the Principal, UserName, and Password options to point to the correct database.  These will be the same as what was changed in the adobe-ds.xml file from the step above.<br /><br />7.     Edit the system variables on the server.  Add to the Path variable %JBOSS_HOME%\bin, and add the variable JBOSS_HOME with the path to the JBoss folder on the server. (D:\Adobe\LiveCycle8\jboss  for example)<br />8.     From windows services start the JBoss for Adobe LiveCycle ES v8.0 service.  Review the JBoss server log (%JBOSS_HOME%\server\all\log\server.log) to verify that JBoss starts without throwing any exception errors (A document timeout exception is the only acceptable exception for starting the service).  <br />9.     Run the LiveCycle Configuration Manager (%LiveCycle_Home%\ConfigurationManager\bin\ConfigurationManager.bat).  <br />a.     Select to Not Upgrade fromLiveCycle 7.x.<br />b.     Check all boxes on the Solution Component Selection screen.<br />c.     For the Task Selection screen check all the boxes except for the Import LiveCycle ES Samples into LiveCycle ES if on the production server. <br />d.     Run through the rest of the configuration manager interface to setup the LiveCycle server with the new application server.  Follow the steps supplied by Adobe for this.<br />10.     Once configuration manager has completed, reboot the server, and verify that JBoss starts up again without any exceptions or errors (again a document timeout exception is an acceptable exception.  Look at the server log to verify this (%JBOSS_HOME%\server\all\log\server.log)).

  • StackOverflowError when running with JBoss

    Hi all,
    i am running JBoss (Java 1.6) in windows environment.
    i have a table with a field of length 250 characters. there is a record exists with 250 characters too in that table.
    Through JBoss in windows environment, i am peforming query on that table.
    i am querying that table by passing the field with 200 characters followed by *(asteric). when i run the query i am getting an "Stack over flow error". see the error.
    how i query the record.
    also if i give few characters(30) followed by * (asteric), i am fetching records as well. for bulk characters like(150 or above) it is showing the below error.
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
    *     org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)*
    root cause
    java.lang.StackOverflowError
    *     org.apache.oro.text.regex.OpCode._getOperand(Unknown Source)*
    *     org.apache.oro.text.regex.Perl5Matcher.__repeat(Unknown Source)*
    *     org.apache.oro.text.regex.Perl5Matcher.__match(Unknown Source)*
         org.apache.oro.text.regex.Perl5Matcher.__match(Unknown Source)
         org.apache.oro.text.regex.Perl5Matcher.__match(Unknown Source)
         org.apache.oro.text.regex.Perl5Matcher.__match(Unknown Source)
    org.apache.oro.text.regex.Perl5Matcher.__match(Unknown Source)
         org.apache.oro.text.regex.Perl5Matcher.__tryExpression(Unknown Source)
    org.apache.oro.text.regex.Perl5Matcher.matches(Unknown Source)
         org.apache.oro.text.regex.Perl5Matcher.matches(Unknown Source)
    Please help me on this.
    JMR

    jv**** wrote:
    thanks for the quick response.
    I am using "org.apache.oro.text.regex.Perl5Matcher only in the coding part. But i dont have document to verify the restrictions to pass values. in my case, i have to pass argument value as 200-250 characters.
    through jboss(run.bat) file i am running the tomcat. i configured build.properties file with jboss/mysql.
    Please corect me i am wrong
    thanks
    JMRThe fist step would be to find the API docs for those classes that you are using so you can check what they allow. In general you should refuse to write code using classes that you don't have documentation for.

  • Strange error when running ADFBC on Jboss 4.0.3SP1

    jdeveloper : 10.1.3.3.0.4157
    jboss : 4.0.3SP1
    database: Oracle10g
    I have developed a simple JSP page which talks to a table in the database using ADFBC, while I was developing I was using the OC4J server that comes with JDeveloper it runs fine, I deployed it to an Oracle Application Server, again it worked fine. Then my boss wants this deployed to a Jboss server and this is where it all went wrong.
    At first I had problems deploying to the server but then I realised that I need the ADF installer, so after I installed that it deployed fine. But when I try to goto the page it comes up with the following error
    JBO-30003: The application pool (com.delexian.notification.HRPublicServiceLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.CustomClassNotFoundException, msg=JBO-26022: Could not find and load the custom class com.delexian.notification.HRPublicServiceImpl
    Heres what I've done to try and resolve this problem
    - setup the oracle-ds.xml, standardjaws.xml and login-config.xml file according to this url http://www.onjava.com/pub/a/onjava/2004/02/25/jbossjdbc.html#oracle
    - checked that the class file is actually in the ear file that I've deployed.
    - double checked that I'm not deploying java files
    - double checked that the probject works on other app servers (OC4J and Oracle App Server)
    - setup the oracle-ds.xml jndi configuration according to bc4j.xcfg file
    I have been searching the forums and the only relevant thing I can find is someone said to goto a $JAVA_TOP/blah/blah directory and see if the files are in the folder. The problem with mine is that I am running on Windows and I don't have a $JAVA_TOP directory, could this be part of the problem ? The other reflex answer I've seen to problems like this is just "check your not deploying java files". Which is why I've double checked I'm deploying class files
    I have noticed that the class that it reckons it cannot find are in the Web-Inf folder, is this correct ?
    Here is my file layout in the war file (embedded in an EAR file), there is obviously other stuff in the WAR file, but I've posted what I think is most relevant, if you would like to know the location of other files please let me know.
    staff
    ----browsePersons.jspx
    WEB-INF
    ----classes
    --------com
    ------------delexian
    ----------------notification
    --------------------HRPublicServiceImpl.class
    should the com.delexian.notification.HRPublicServiceImpl.class be under a different folder ?
    I am just using a default deployment script, which was generated in JDev by right clicking on my view-controller project and selecting New -> Deployment Profiles -> WAR File.
    Is there anything in here I need to modify to get it running on a Jboss server ?
    Thanks
    Duncan

    Thanks for the reply, yes unfortunately it is in the classpath. Although I have a feeling it will be something simple like this when I work it out in the end...

  • OIM installation with JBoss 4.2.3GA

    Hello..
    I have installed OIM 9.1.0.1 with JBoss 4.2.3GA. And getting the following error when access the http://localhost:8080/xlWebApp
    INFO [TomcatDeployer] deploy, ctxPath=/xlScheduler, warUrl=.../tmp/deploy/tmp21688xlScheduler-exp.war/
    INFO [WEBSTARTUP] Start the Scheduler on server startup : true
    INFO [WEBSTARTUP] SchedulerInitServlet/initializeScheduler method reads data from TSK/TSA tables and initialize Quartz scheduler with the task and trigger details
    ERROR [STDERR] javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: jdbc not bound]
    ERROR [STDERR]      at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1215)
    ERROR [STDERR]      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:758)
    ERROR [STDERR]      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:774)
    ERROR [STDERR]      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
    ERROR [STDERR]      at javax.naming.InitialContext.lookup(InitialContext.java:392)
    ERROR [STDERR]      at com.thortech.xl.util.DirectDB.getDataSource(Unknown Source)
    ERROR [STDERR]      at com.thortech.xl.util.DirectDB.getConnection(Unknown Source)
    ERROR [STDERR]      at com.thortech.xl.util.DirectDB.getConnection(Unknown Source)
    ERROR [STDERR]      at com.thortech.xl.scheduler.common.SchedulerUtil.getManagedConnection(Unknown Source)
    ERROR [STDERR]      at com.thortech.xl.scheduler.deployment.webapp.SchedulerInitServlet.initializeScheduler(Unknown Source)
    ERROR [STDERR]      at com.thortech.xl.scheduler.deployment.webapp.SchedulerInitServlet.startScheduler(Unknown Source)
    ERROR [STDERR]      at com.thortech.xl.scheduler.deployment.webapp.SchedulerInitServlet.init(Unknown Source)
    ERROR [STDERR]      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
    ERROR [DATABASE] Class/Method: DirectDB/getConnection encounter some problems: Error while retrieving database connection.Please check for the follwoing
    Database srever is running.
    Datasource configuration settings are correct.
    java.lang.NullPointerException
         at com.thortech.xl.util.DirectDB.getConnection(Unknown Source)
         at com.thortech.xl.util.DirectDB.getConnection(Unknown Source)
         at com.thortech.xl.scheduler.common.SchedulerUtil.getManagedConnection(Unknown Source)
         at com.thortech.xl.scheduler.deployment.webapp.SchedulerInitServlet.initializeScheduler(Unknown Source)
         at com.thortech.xl.scheduler.deployment.webapp.SchedulerInitServlet.startScheduler(Unknown Source)
         at com.thortech.xl.scheduler.deployment.webapp.SchedulerInitServlet.init(Unknown Source)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4071)
    please help me resolve this issue. Thanks in advance

    Hi,
    The server started with some errors.
    INFO [WEBSTARTUP] SchedulerInitServlet/initializeScheduler method reads data from TSK/TSA tables and initialize Quartz scheduler with the task and trigger details
    ERROR [STDERR] javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: jdbc not bound
    Oracle DB is running fine. But not sure on how to verity the connectivity between the OIM and the database. Some more hints would be helpful
    Thanks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Problem in Blazeds with Jboss Clustering ( Mod_JK with SSL )

    Hi,
         We are running our flex application in jboss clustering environment with the help of Apache mod_jk(Apache Web server as front end with mod_ssl enabled). We are using the SecureAMFChannel as we deploy the application in SSL. We use the RemoteObject for communicating with Java.
    The Application is running fine when we have only one node of JBoss. But once we add one more node to the cluster the application throws the following exception .
    Duplicate HTTP-based FlexSession error: A request for FlexClient 'FDCA49A7-9317-4D8A-881F-9248B1136E7A' arrived over a new FlexSession 'C9C563B8266A03C2207C00796CD7DFF1', but FlexClient is already associated with  FlexSession '8A328320F5C530D55E94568996A1B552', therefore it cannot be associated with the new session.
    As I am maintaing the session in the server, I need to use the JBoss cluster for session replication. I heard that flex clustering is not needed as we have mod_jk and it will do all the stuff for us.
    I checked with simple application without any session data also then too I faced the same problem.
    After the very first login, I can see 2 session created simultaneously and destroyed. I checked the application whether it calls twice before the session is created, but it is calling only once.
    Also when application connects with server2 and if I down the server2 my flex application throws the error that the server is not found, It is not detecting the other server.But it works once I refresh the browser.
    Application Environment Details
    JBoss 6
    Blaze Ds 4.5
    Apache Web server 2.2.21
    Mod_JK   1.2.32
    Mod_SSL 2.8.31
    Thanks,
    Suresh T
    I enabled the sticky session in Mod_jk .
    It is working when the connection is not secure(http) in both apache web server and jboss web server ). But when the connection is https the above problem is happening .
    Message was edited by: suresh.thirumurugan

    Hi,
     Thanks for your info.
      It worked for me as well.
    Thanks,
    Prasad
    On 6/26/08,
    Matthieu Labour <
    [email protected]> wrote:
    A new message was posted by Matthieu Labour in
    Configuration and Getting Started Discussion --
      Problem with configuring BlazeDS with JBOSS
    You might want to download the following tutorial
    http://sebastien-arbogast.com/2008/04/10/flex-spring-and-blazeds-the-full-stack/
    it works on jboss
    Best
    Matt
    View/reply at
    Problem with configuring BlazeDS with JBOSS
    Replies by email are OK.
    Use the
    unsubscribe form to cancel your email subscription.

  • Tcpmon usage with JBoss

    I have question about how to use apache tool tcpmon to monitor HTTP and SOAP traffic on JBoss.
    My problem is that I can't get it configured correctly.
    My jboss is running on the port 8080.
    When jboss is running, when I try to run tcpmon with configuration listen port: 8080 and target port 8888, I get error java.net.BindException: Address already in use: JVM_Bind.
    and when I try to run tcpmon with configuration listen port: 8888 and target port 8080, I get Waitinf for connection and it stucks.
    If I first run tcpmon with listen port: 8080 and target port 8888 than jboss server refuses to start because port already in use, so what the right way.
    any suggestions?
    thanks in advance

    I guess what was the problem, I didn't guess that I had to point my browser address to the port on which the tcpmon is listening and it will automatically forward request to the target port

  • Install OIM 9.0.2 on Linux with JBOSS or OAS 10.1.3.1

    Hi all,
    I try to install OIM on RHEL 4 update 3 .
    First I installed OIM 9.0.2 in Oracle 10.2.0.1 with JBOSS and I obstacled with errors during compilling adapters of OEBS and OID from Connectors Pack.
    After that I desided to install OIM in existing Oracle 10.2.0.1 on OAS 10.1.3.1 during installation I obstacle with follow error "Oracle Identity Manager installer has found that Oracle Application Server is not running. So, start Oracle Application Server and then proceed with installation."
    I tested my OAS and I's starting
    Please give me advise about my abilities with installation OIM 9.0.2 on Linux.

    For JBOSS I use
    ./java -version
    java version "1.4.2_13"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
    Java HotSpot(TM) Client VM (build 1.4.2_13-b06, mixed mode)
    For OAS 10.1.3.1 I use
    ./java -version
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
    Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode)
    After all, I installed OIM 9.0.2 on OAS 10.1.3.1 but I have same problems which I have with JBOSS installation:
    1. I have warnings during import xml files of adapters such as
    OID User
    [Warning] Warn:Target has more recent definition.
    Lookup.OID.Department
    [Warning] Warn:Target has more recent definition.
    Lookup.OID.Location
    [Warning] Warn:Target has more recent definition.
    UD_OID_ROLE
    [Warning] Warn:Target has more recent definition.
    adpOIDADDUSERTOGROUP
    [Warning] Warn:Target has more recent definition.
    AttrName.Prov.Map.OID
    [Warning] Warn:Target has more recent definition.
    com.thortech.xl.dataobj.tcUD_OID_ROLE
    [Warning] Warn:Target has more recent definition.
    com.thortech.xl.dataobj.tcOBJ
    [Warning] Warn:Target has more recent definition.
    etc ...
    2. I have errors during compilling adapters in Design Console, It's error such as ""CODE GEN EXCEPTION" "

  • BlazeDS clustering with JBoss AS

    Greetings,
    I'm currently working on a system that uses Adobe Flex 3 and BlazeDS. It works fine in the actual TomCat standalone server, but we got plans to upgrade our infrastructure to a cluster environment running JBoss AS.
    I got really concern when I begin to read many articles and forum posts about BlazeDS issues with clustering.
    Is this a risk to my project ? Should I quit using BlazeDS ?
    Thanks is advance,
    Daniel Cheida

    Hi Mauricio,
    I installed OCMS in JBOSS AS 4.0.5.GA installation mode.I m facing the same problem on ocms startup, i.e., proxyregistrar war file is not deployed properly. OCMS not working properly with JBOSS AS 4.2.1 GA and JBOSS AS 4.2.2 GA too i.e., OCMS MBeans are not shown in the jmx-console page and the oc is not getting connected to the ocms, traffic.log file shows that application proxyregistrar is not found. Please help me out in solving this issue.
    Regards,
    Harini Dhanasekaran.

  • Using Microsoft Network Load Balancing for Livecycle ES 2/2.5 with JBoss clustering?

    Hi,
    Has anyone tried using Microsoft NLB for Livecycle with JBoss clustering and get it working? Able to login to livecycle's admin ui page with the NLB IP
    My enviroment:
    - 2 jboss application server (different IP address)
    - Horizontal clustered
    - LC ES2 installed on both servers
    For those who setup successfully, hope you can share your experience.
    Thank you.

    Thanks!
    Just a few more questions...hehehe
    In the document: Configuring LiveCycle ES2 Application Server Clusters Using JBoss.
    Page 35 item 3.4. Have you had to configure the Caching Locators? If yes, where did you put them, in only one machine or in all of the nodes?
    On page 29, iten 2.7 (Testing the JBoss Application Server cluster) says that for testing we can run the command specifying the server, in my case is:
    run.bat -c lc_sqlserver_cl -b <ipAddress>
    But in the Appendix C: Configuring JBoss as a Windows Service, it says: call run.bat -c all -b <ipAddress>
    So when should I start JBoss with "lc_sqlserver_cl" or "all" ?

  • BPEL 10.1.2.0.2 with JBOSS deployment descriptor of database adapter

    We use Oracle BPEL Process Manager 10.1.2.0.2 with JBOSS v3.2.6 . In our BPEL processes we use also the DatabaseAdapter.
    We deploy our processe manually with obant, because we are only able to access our productiv-system about putty(ssh).
    For that we have to manually adapt our DatabaseConnectionData,which were created on our development enviroment, in the apropriate wsdl files.
    On our productiv-system we see in the domain-log files following lines:
    <2006-11-08 04:52:44,465> <INFO> <condis.collaxa.cube.ws> <AdapterFramework::Outbound>
    file:/opt/etmn/jboss_bpel/domains/condis/tmp/.bpel_WF_Notifikation_1.0.jar/SetFaultedWS.wsdl [ SetFaultedWS_ptt::SetFaultedWS(InputParameters) ] - Using JCA Connection Pool -
    max size = <unbounded>
    <2006-11-08 04:52:44,468> <WARN> <condis.collaxa.cube.ws> <AdapterFramework::Outbound>
    file:/opt/etmn/jboss_bpel/domains/condis/tmp/.bpel_WF_Notifikation_1.0.jar/SetFaultedWS.wsdl [ SetFaultedWS_ptt::SetFaultedWS(InputParameters) ] - JNDI lookup of
    'java:/eis/DB/DBL_WFMODUL' failed due to: DBL_WFMODUL not bound
    <2006-11-08 04:52:44,469> <INFO> <condis.collaxa.cube.ws> <AdapterFramework::Outbound> Since unable to locate the JCA Resource Adapter deployed at 'java:/eis/DB/DBL_WFMODUL',
    will then attempt to instantiate ManagedConnectionFactory oracle.tip.adapter.db.DBManagedConnectionFactory directly.
    After some reading in the "Adapters UserGuide" you can find some lines about necessary configuration of the "deployment descriptor of the database adapter"
    concerning the "<jca:address location=..." used in the apropriate wsdl files:
    The adapter service WSDL refers to the run-time connection configured in the
    deployment descriptor of the database adapter. (In Oracle Application Server, it is
    oc4j-ra.xml). The relevant code example for the service WSDL follows:
    <jca:address location="eis/DB/DBL_WFMODUL" UIConnectionName="DBL_WFMODUL"
    ManagedConnectionFactory="oracle.tip.adapter.db.DBManagedConnectionFactory"
    The questions are now:
    What is the apropriate file for the "deployment descriptor of the database adapter" for Oracle BPEL Process Manager 10.1.2.0.2 with JBOSS 3.2.6 ??
    Exist there a description for that?
    What are really the consequences if you configure the "deployment descriptor of the database adapter" or not ?

    Hi Martin,
    Thanks for sharing valuable information of bpel install .
    We are stuck installing bpel pm 10.1.2.0.2 on linux from past one week ,can u plz help us in giving some pointers.
    We downloaded mrca utility from otn and tried to upload the repository into 10g database but we got "ultra search schema not found" error and few other errors.
    Can we use any 10g database or is there any version that we need to use.Can you plz specify the database version that u used for ur install.
    Then we tried to create a repository while installing Oracle Application Server 10.1.2.0.2(J2EE and Web Cache with new OID), which creates a new dbase with a repository loaded into it.
    we tried to run the ldap search command to get the encrypted password but failed to execute that command successfully.finally we tried to change orabpel pwd with alter command. And when we finally started with BPEL PM install and pointed to the above AS home it didnt recognize it and giving error as "plz point to the appropriate Application Server(AS) home and it cant find the AS home in folder in which we specified."
    Can u plz help us and give some pointers in resolving our issues.
    Thanks a lot in advance.
    Vandana.

  • OIM Clustering with JBoss

    Hi Guys
    I am trying to do clustering of OIM server. I am running two instances of OIM server on JBoss. I am able to login into the OIM system but getting this below exception continuously on both nodes:
    17:38:29,451 WARN [TCP] discarded message from different group (Tomcat-Cluster). Sender was pas98:7810
    17:38:31,560 WARN [TCP] discarded message from different group (Tomcat-Cluster). Sender was pas87:7810
    17:38:31,607 INFO [JMSContainerInvoker] Trying to reconnect to JMS provider
    17:38:31,607 ERROR [JMSContainerInvoker] Reconnect failed: JMS provider failure detected:
    javax.naming.NameNotFoundException: XAConnectionFactory
    at org.jboss.ha.jndi.TreeHead.lookup(TreeHead.java:223)
    at org.jboss.ha.jndi.HAJNDI.lookup(HAJNDI.java:134)
    at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:229)
    at $Proxy301.lookup(Unknown Source)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:151)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:245)
    at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:173)
    at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStartDelivery(JMSContainerInvoker.java:605)
    at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.run(JMSContainerInvoker.java:1471)
    at java.lang.Thread.run(Thread.java:534)
    My software configurations:
    1)     Oracle database 9.2.0.7
    2)     OIM 9.0.3
    3)     Apache Http Server 2.0.63
    4)     JBoss 4.0.3 SP1
    Any suggestion where I am going wrong
    Thanks in advance
    Jatin Gupta

    I have read the release notes for 9.0.1, 9.0.2, 9.0.3, 9.0.3.1 and 9.1.0 and it looks like this note that JBoss is certified "for nonclustered environments only" was added for the first time in 9.0.3.1 but only for Solaris and SUSE Linux. In 9.1.0 it seems to have been added to Windows as well.
    Does anyone know why it was added? Was it added because there were problems with JBoss clustering in the previous releases? Are the 9.0.1, 9.0.2 and 9.0.3 releases still certified for JBoss clustering?

  • Integrate JDeveloper with JBoss

    Hi. We're using JDeveloper 10.1.3.4 and need to integrate it with JBoss 4.2.3 so we can deploy servlets directly to the server and do breakpoints and debugging. Your help is appreciated. Thanks.

    You can define a connection to your JBoss server inside JDeveloper and then deploy directly to it from inside JDeveloper.
    You can also set your project to use remote debugging and start JBoss in remote debug mode to debug your code as it is running there.
    You can use tools->external tools to add a toolbar buttons that will start/stop the JBoss server.

Maybe you are looking for

  • How to create a Table of Contents using Pages 09?

    Hi guys, I have little problems creating a Table of Contents in Pages, though it seems quite simple. I'm working with the template 'Term Paper' and I use paragraph styles (Title, Heading I, II, etc.). I have some very long documents (about 80 pages l

  • Imac only has 2 resolutions

    My wife's Mac changed resolutions - possibly as a result of running a full-screen game.   She says it has happened before.   I told her to reboot and let me know if that helped. It didn't, so I went to settings to change its resolution, seeing only 2

  • Grenerating Outlines creating ARCed text

    OUTLINE I have some text that has a graphical outline around it. This text needs to be Dynamic for localization. However, I still need to have the outline appear around the text. I was hoping that this was something that would be built in to Flash CS

  • Unequal load ditribution accross LWAPs

    Hi, I am very new to Cisco wireless solutions and there is an existing setup I took over at my new place and tring to get my head around how things working. It consists of WS-C3750G-24WS-S25 switch with integrated wireless controller and a number of

  • Problem with MIME repository (cannot find image with ReportDesigner)

    Hi, in our BW (BI7.0), on the SE80 (mime repos), i found the /SAP/BW/CUSTOMER/images i found the *jpg and other image files. But when i run the BEX Report Designer and try to add an image from that path, the BRD doesnt find any image. Tks CC