5 Replies Latest reply on Feb 20, 2008 5:58 AM by jaikiran pai

    problem deploying an aplication and connect with oracle 10g

    Kostas Daras Newbie

      ObjectName: jboss.jca:name=DefaultDs,service=DataSourceBinding
      State: CONFIGURED
      I Depend On:
      jboss.jca:name=DefaultDs,service=LocalTxCM
      jboss:service=invoker,type=jrmp

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.jca:name='jms-ra.rar',service=RARDeployment
      State: NOTYETINSTALLED
      Depends On Me:
      jboss.jca:name=JmsXA,service=ManagedConnectionFactory

      ObjectName: jboss:service=invoker,type=jrmp
      State: NOTYETINSTALLED
      Depends On Me:
      jboss.jmx:name=Invoker,protocol=jrmp,service=proxyFactory,type=adaptor
      jboss.jca:name=DefaultDS,service=DataSourceBinding
      jboss.jca:name=DefaultDs,service=DataSourceBinding

      ObjectName: jboss.jca:name=sen,service=DataSourceBinding
      State: NOTYETINSTALLED
      Depends On Me:
      jboss.mq:service=StateManager
      jboss.mq:service=PersistenceManager

      ObjectName: jboss.jdbc:service=metadata
      State: FAILED
      Reason: org.jboss.deployment.DeploymentException: Invalid XML: file=file:/jboss/server/default/conf/standardjbosscmp-jdbc.xml
      Depends On Me:
      jboss.jdbc:datasource=DefaultDS,service=metadata

      ObjectName: jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment
      State: NOTYETINSTALLED
      Depends On Me:
      jboss.jca:name=DefaultDS,service=ManagedConnectionFactory
      jboss.jca:name=DefaultDs,service=ManagedConnectionFactory

        • 1. Re: problem deploying an aplication and connect with oracle
          Peter Johnson Master

          Did you change the standardjbosscmp-jdbc.xml file? If not, please post the first stack trace in the console log. (What you posted is the missing deployment report at the end of the console log. That report usually does not offer any clues as to what went wrong but the stack trace should give us some idea.)

          • 2. Re: problem deploying an aplication and connect with oracle
            Kostas Daras Newbie

            Hi thnks for your reply.

            login as: root
            root@192.168.0.108's password:
            Last login: Tue Feb 19 13:38:59 2008 from 192.168.0.76
            [root@coswin ~]# mc

            [root@coswin conf]# /jboss/bin/run.sh |more
            =========================================================================

            JBoss Bootstrap Environment

            JBOSS_HOME: /jboss

            JAVA: /j2sdk/bin/java

            JAVA_OPTS: -server -Xms128m -Xmx128m -Dprogram.name=run.sh

            CLASSPATH: /jboss/bin/run.jar:/j2sdk/lib/tools.jar

            =========================================================================

            13:41:54,431 INFO [Server] Starting JBoss (MX MicroKernel)...
            13:41:54,460 INFO [Server] Release ID: JBoss [Zion] 4.0.2 (build: CVSTag=JBoss_
            4_0_2 date=200505022023)
            13:41:54,461 INFO [Server] Home Dir: /jboss
            13:41:54,462 INFO [Server] Home URL: file:/jboss/
            13:41:54,463 INFO [Server] Library URL: file:/jboss/lib/
            13:41:54,466 INFO [Server] Patch URL: null
            13:41:54,466 INFO [Server] Server Name: default
            13:41:54,467 INFO [Server] Server Home Dir: /jboss/server/default
            13:41:54,469 INFO [Server] Server Home URL: file:/jboss/server/default/
            13:41:54,469 INFO [Server] Server Data Dir: /jboss/server/default/data
            13:41:54,470 INFO [Server] Server Temp Dir: /jboss/server/default/tmp
            13:41:54,470 INFO [Server] Server Config URL: file:/jboss/server/default/conf/
            13:41:54,470 INFO [Server] Server Library URL: file:/jboss/server/default/lib/
            13:41:54,471 INFO [Server] Root Deployment Filename: jboss-service.xml
            13:41:54,477 INFO [Server] Starting General Purpose Architecture (GPA)...
            13:41:55,697 INFO [ServerInfo] Java version: 1.4.2_16,Sun Microsystems Inc.
            13:41:55,738 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.4.2_16-b05
            ,Sun Microsystems Inc.
            13:41:55,738 INFO [ServerInfo] OS-System: Linux 2.6.9-55.EL,i386
            13:41:57,980 INFO [Server] Core system initialized
            13:42:05,422 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour
            ce:log4j.xml
            13:42:06,519 INFO [WebService] Using RMI server codebase: http://coswin:8083/
            13:42:06,929 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=
            1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server Socket
            Factory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
            13:42:21,247 INFO [Embedded] Catalina naming disabled
            13:42:22,597 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
            13:42:22,602 INFO [Catalina] Initialization processed in 1162 ms
            13:42:22,607 INFO [StandardService] Starting service jboss.web
            13:42:22,616 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.9
            13:42:22,743 INFO [StandardHost] XML validation disabled
            13:42:23,234 INFO [Catalina] Server startup in 632 ms
            13:42:24,004 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=file:/jboss/server/default/deploy/http-invoker.sar/invoker.war/
            13:42:25,335 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
            13:42:27,556 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=file:/jboss/server/default/tmp/deploy/tmp6023jboss-ws4ee.war/
            13:42:28,597 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/jboss/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/
            13:42:29,968 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=file:/jboss/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
            13:42:37,788 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/jboss/server/default/deploy/management/console-mgr.sar/web-console.war/
            13:42:41,674 INFO [MailService] Mail Service bound to java:/Mail
            13:42:43,174 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/jboss/server/default/deploy/jboss-ha-local-jdbc.rar
            13:42:43,459 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/jboss/server/default/deploy/jboss-ha-xa-jdbc.rar
            13:42:44,812 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/jboss/server/default/deploy/jboss-local-jdbc.rar
            13:42:45,588 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/jboss/server/default/deploy/jboss-xa-jdbc.rar
            13:42:46,594 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/jboss/server/default/deploy/jms/jms-ra.rar
            13:42:47,354 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/jboss/server/default/deploy/mail-ra.rar
            13:42:51,034 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:name=DefaultDS,service=DataSourc
            eBinding to JNDI name 'java:DefaultDS'
            13:42:51,149 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files
            java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found
            at org.jboss.security.auth.spi.Util.loadProperties(Util.java:249)
            at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:164)
            at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:111)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at javax.security.auth.login.LoginContext.invoke(LoginContext.java:662)
            at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
            at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
            at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
            at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:483)
            at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:425)
            at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:251)
            at org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubject(BaseConnectionManager2.java:648)
            at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:446)
            at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:874)
            at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:103)
            at org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.tableExists(SQLUtil.java:957)
            at org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin.createTableIfNotExists(GeneralPurposeDatabasePersistencePlugin.java:92)
            at org.jboss.ejb.txtimer.DatabasePersistencePolicy.startService(DatabasePersistencePolicy.java:96)
            --More--

            • 3. Re: problem deploying an aplication and connect with oracle
              Peter Johnson Master

              What are the contents of your *-ds.xml file?

              Did you change anything in the server/default/conf/login-config.xml file?

              Did you remove any of the files from server/default/conf/props?

              • 4. Re: problem deploying an aplication and connect with oracle
                Kostas Daras Newbie

                i made a few changes this is what i get now:
                09:08:14,692 ERROR [MainDeployer] could not create deployment: file:/jboss/server/default/deploy/oracle-ds.xml
                org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.jca:name=DefaultDS,service=LocalTxCM

                i didn't delete anything

                oracle-ds.xml file
                <?xml version="1.0" encoding="UTF-8"?>

                <local-tx-datasource>
                <jndi-name>DefaultDS</jndi-name>
                <connection-url>jdbc:oracle:thin:@192.168.0.10:1521:sen_db</connection-url>
                <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
                <user-name>COSWIN</user-name>
                COSWIN
                <valid-connection-checker-class-
                name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-
                connection-checker-class-name>

                <type-mapping>Oracle9i</type-mapping>

                </local-tx-datasource>



                login-config.xml [B---] 0 L:[ 57+21 78/170] *(3110/7298b)= . 10 0x0A
                <login-module code = "org.jboss.mq.sm.file.DynamicLoginModule"
                flag = "required">
                <module-option name = "unauthenticatedIdentity">guest</module-optio
                <module-option name = "sm.objectname">jboss.mq:service=StateManager
                </login-module>

                </application-policy>
                -->

                <!-- Security domains for testing new jca framework -->
                <application-policy name = "OracleDbRealm">

                <login-module code = "org.jboss.resource.security.ConfiguredIdentityLo
                flag = "required">
                <module-option name = "principal">sen_db</module-option>
                <module-option name = "userName">COSWIN</module-option>
                <module-option name = "password">COSWIN</module-option>
                <module-option name = "managedConnectionFactoryName">jboss.jca:serv </login-module>

                </application-policy>

                • 5. Re: problem deploying an aplication and connect with oracle
                  jaikiran pai Master

                   

                  <jndi-name>DefaultDS</jndi-name>


                  DefaultDS is already configured by default using the hsql-ds.xml (which i believe is already present in the deploy folder). Any reason why you want to name this as DefaultDS?