5 Replies Latest reply on Jun 20, 2005 11:20 AM by Peter Johnson

    Jboss application server startup error

    david su Newbie

      Dear Sir/Madam,

      I'm new to Jboss. I have some problem when I start the Jboss application server. the followings are what i installed on my PC for j2ee/jboss environment.

      1. j2eesdk-1_4_01_2005Q1_windows application
      after installation, generate j2ee 1.4 SDK environment

      2. jdk-1_5_0_03-nb_4_1_win application
      after installation, generate j2se Development Kit 5.0 Update 3; j2se Runtime Environment 5.0 Update 3; NetBeans IDE 4.1

      3. jwsdp-1_5_windows-i586
      after installation, generate jwsdp 1.5

      4. j2ee-1_4_doc-tutorial_4 folder
      5. apache-ant-1.6.3 folder
      6. jboss-4.0.2 folder
      7. jbossj2ee-src.zip

      The following is only a part of the output when starting the Jboss application server. From the line of ?14:38:36,967 ERROR [EntityContainer] Starting failed jboss.j2ee:jndiName=ebankCustomer,service=EJB?, it starts to get more errors.

      I have spent quite a lot of time to look at this problem, however, I cannot solve it.

      Your quick help will be much appreciated.

      Thanks and regards,
      David Su

      JBoss Bootstrap Environment
      JBOSS_HOME: F:\Java_Cpp\JBoss\jboss-4.0.2\jboss-4.0.2\bin\\..
      JAVA: E:\Program Files\Java\jdk1.5.0_03\bin\java
      JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m
      CLASSPATH: E:\Program Files\Java\jdk1.5.0_03\lib\tools.jar;F:\Java_Cpp\JBoss\jboss-4.0.2\jboss-4.0.2\bin\\run.jar
      14:37:51,764 INFO [Server] Starting JBoss (MX MicroKernel)...
      14:37:51,764 INFO [Server] Release ID: JBoss [Zion] 4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)
      14:37:51,764 INFO [Server] Home Dir: F:\Java_Cpp\JBoss\jboss-4.0.2\jboss-4.0.2
      14:37:51,764 INFO [Server] Home URL: file:/F:/Java_Cpp/JBoss/jboss-4.0.2/jboss-4.0.2/
      14:37:51,764 INFO [Server] Library URL: file:/F:/Java_Cpp/JBoss/jboss-4.0.2/jboss-4.0.2/lib/
      14:37:51,764 INFO [Server] Patch URL: null
      14:37:51,764 INFO [Server] Server Name: default
      14:37:51,764 INFO [Server] Server Home Dir: F:\Java_Cpp\JBoss\jboss-4.0.2\jboss-4.0.2\server\default
      14:37:51,779 INFO [Server] Server Home URL: file:/F:/Java_Cpp/JBoss/jboss-4.0.2/jboss-4.0.2/server/default/
      14:37:51,795 INFO [Server] Server Data Dir: F:\Java_Cpp\JBoss\jboss-4.0.2\jboss-4.0.2\server\default\data
      14:37:51,795 INFO [Server] Server Temp Dir: F:\Java_Cpp\JBoss\jboss-4.0.2\jboss-4.0.2\server\default\tmp
      14:37:51,795 INFO [Server] Server Config URL: file:/F:/Java_Cpp/JBoss/jboss-4.0.2/jboss-4.0.2/server/default/conf/
      14:37:51,795 INFO [Server] Server Library URL: file:/F:/Java_Cpp/JBoss/jboss-4.0.2/jboss-4.0.2/server/default/lib/
      14:37:51,795 INFO [Server] Root Deployment Filename: jboss-service.xml
      14:37:51,795 INFO [Server] Starting General Purpose Architecture (GPA)...
      14:37:52,764 INFO [ServerInfo] Java version: 1.5.0_03,Sun Microsystems Inc.
      14:37:52,764 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_03-b07,Sun Microsystems Inc.
      14:37:52,764 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
      14:37:55,326 INFO [Server] Core system initialized
      14:37:59,873 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
      14:38:00,045 INFO [WebService] Using RMI server codebase: http://home-ks1m8evvmd:8083/
      14:38:00,436 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
      14:38:13,311 INFO [Embedded] Catalina naming disabled
      14:38:14,686 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-
      14:38:14,686 INFO [Catalina] Initialization processed in 1204 ms
      14:38:14,686 INFO [StandardService] Starting service jboss.web
      14:38:14,701 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.9
      14:38:14,904 INFO [StandardHost] XML validation disabled
      14:38:14,982 INFO [Catalina] Server startup in 296 ms
      14:38:15,342 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=file:/F:/Java_Cpp/JBoss/jboss-4.0.2/jboss-4.0.2/server/default/deploy/http-invoker.sar/invoker.war/
      14:38:16,264 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
      14:38:17,936 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=file:/F:/Java_Cpp/JBoss/jboss-4.0.2/jboss-4.0.2/server/default/tmp/deploy/tmp19873jboss-ws4ee-exp.war/
      14:38:18,311 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/F:/Java_Cpp/JBoss/jboss-4.0.2/jboss-4.0.2/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/
      14:38:19,014 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=file:/F:/Java_Cpp/JBoss/jboss-4.0.2/jboss-4.0.2/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      14:38:25,045 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/F:/Java_Cpp/JBoss/jboss-4.0.2/jboss-4.0.2/server/default/deploy/management/console-mgr.sar/web-console.war/
      14:38:26,873 INFO [MailService] Mail Service bound to java:/Mail
      14:38:28,123 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/F:/Java_Cpp/JBoss/jboss-4.0.2/jboss-4.0.2/server/default/deploy/jboss-ha-local-jdbc.rar
      14:38:28,514 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/F:/Java_Cpp/JBoss/jboss-4.0.2/jboss-4.0.2/server/default/deploy/jboss-ha-xa-jdbc.rar
      14:38:28,951 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/F:/Java_Cpp/JBoss/jboss-4.0.2/jboss-4.0.2/server/default/deploy/jboss-local-jdbc.rar
      14:38:29,295 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/F:/Java_Cpp/JBoss/jboss-4.0.2/jboss-4.0.2/server/default/deploy/jboss-xa-jdbc.rar
      14:38:29,561 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/F:/Java_Cpp/JBoss/jboss-4.0.2/jboss-4.0.2/server/default/deploy/jms/jms-ra.rar
      14:38:29,795 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/F:/Java_Cpp/JBoss/jboss-4.0.2/jboss-4.0.2/server/default/deploy/mail-ra.rar
      14:38:31,014 INFO [STDOUT] [Server@9c87c1]: [Thread[hypersonic-default,5,jboss]]: checkRunning(false) entered
      14:38:31,014 INFO [STDOUT] [Server@9c87c1]: [Thread[hypersonic-default,5,jboss]]: checkRunning(false) exited
      14:38:31,014 INFO [STDOUT] [Server@9c87c1]: Startup sequence initiated from main() method
      14:38:31,029 INFO [STDOUT] [Server@9c87c1]: Loaded properties from [F:\Java_Cpp\JBoss\jboss-4.0.2\jboss-4.0.2\bin\server.properties]
      14:38:31,061 INFO [STDOUT] [Server@9c87c1]: Initiating startup sequence...
      14:38:31,061 INFO [STDOUT] [Server@9c87c1]: Server socket opened successfully in 0 ms.
      14:38:32,295 INFO [ConnectionFactoryBindingService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA to JNDI name 'java:JmsXA'
      14:38:32,467 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/F:/Java_Cpp/JBoss/jboss-4.0.2/jboss-4.0.2/server/default/deploy/jmx-console.war/
      14:38:32,998 INFO [STDOUT] [Server@9c87c1]: Database [index=0, id=0, db=file:F:\Java_Cpp\JBoss\jboss-4.0.2\jboss-4.0.2\server\default\data\hypersonic\default, alias=] opened sucessfully in 1859 ms.
      14:38:32,998 INFO [STDOUT] [Server@9c87c1]: Startup sequence completed in 1937 ms.
      14:38:32,998 INFO [STDOUT] [Server@9c87c1]: 2005-06-16 14:38:32.998 HSQLDB server 1.8.0 is online
      14:38:32,998 INFO [STDOUT] [Server@9c87c1]: To close normally, connect and execute SHUTDOWN SQL
      14:38:32,998 INFO [STDOUT] [Server@9c87c1]: From command line, use [Ctrl]+[C] to abort abruptly
      14:38:33,170 INFO [EARDeployer] Init J2EE application: file:/F:/Java_Cpp/JBoss/jboss-4.0.2/jboss-4.0.2/server/default/deploy/JBossDukesBank.ear
      14:38:34,467 INFO [EjbModule] Deploying CustomerBean
      14:38:34,998 INFO [EjbModule] Deploying AccountBean
      14:38:35,045 INFO [EjbModule] Deploying TxBean
      14:38:35,092 INFO [EjbModule] Deploying NextIdBean
      14:38:35,123 INFO [EjbModule] Deploying AccountControllerBean
      14:38:35,232 INFO [EjbModule] Deploying CustomerControllerBean
      14:38:35,373 INFO [EjbModule] Deploying TxControllerBean
      14:38:36,967 ERROR [EntityContainer] Starting failed jboss.j2ee:jndiName=ebankCustomer,service=EJB
      org.jboss.deployment.DeploymentException: Error: can't find data source: java:/DefaultDS; - nested throwable: (javax.naming.NameNotFoundException: DefaultDS not bound)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:139)

        • 1. Re: Jboss application server startup error
          Peter Johnson Master

          I appears that you have deployed the Duke's Bank application to JBoss, and the problem is that the configuration for Duke's Bank is not correct. My guess is that you have not yet created the database for Duke's Bank.

          If you really want to bring up just JBoss, remove the Duke's Bank application from the deploy direrctory and try starting JBoss again. Once it is up, you should be able to connect using http://localhost:8080. You will get a welcome screen.

          Once that is done, get the Getting Started with JBoss 4.0 guide from http://www.jboss.org/docs/index#as and look at chapter 4. It has all of the information on building and deploying Duke's Bank.

          Hope this helps.

          • 2. Re: Jboss application server startup error
            david su Newbie

            Dear Peter,

            thanks for your help.

            Acutally, i have done what you suggested for a couple of times before. before i used old version of jboss and j2ee and i got the same errors. then i downloaded the new version of jboss and j2ee and went through the Getting Started with JBoss 4.0 guide to chapter 4. i got the same errors as well.

            before i depoyed Duke's Bank application to JBoss, there is no errors when start up jboss application server, however, after depoyed Duke's Bank application to JBoss and run ant -f jboss-build.xml deploy, then i started to get similar errors.

            i think after done what you suggested again, the same errors will be occurred, because i have done this a couple of times before.

            do you have any idea on this? your help will be much appreciated.

            thanks and regards,
            david su

            • 3. Re: Jboss application server startup error
              Peter Johnson Master

              Which database are you using?

              If you are using Hypersonic there should be a hsqldb-ds.xml file in the deploy directory. What is the <jndi-name> setting in that file?

              • 4. Re: Jboss application server startup error
                david su Newbie

                Dear Peter,

                thanks for your reply. i'm using the default Hypersonic database. in the hsqldb-ds.xml file, there is "DefaultDS" for the <jndi-name> setting as follows:

                - <!-- The jndi name of the DataSource, it is prefixed with java:/
                - <!-- Datasources are not available outside the virtual machine
                - <!--
                for tcp connection, allowing other processes to use the hsqldb database. This requires the org.jboss.jdbc.HypersonicDatabase mbean.


                do you think there is any problem with the setting? your quick help will be very appreciated.

                thanks and regards,
                David su

                • 5. Re: Jboss application server startup error
                  Peter Johnson Master

                  I check my configuration and the only thing you are doinbg different than me is that you are using an older version of the J2EE example (you are using example for 2005Q1, I am using 2005Q2. But I don't think that that has anything to do with the problem.

                  I compared your JBoss startup output with mine. On mine, after the database is started (the entries identified by the text '[STDOUT] [Server@9c87c1]' in your output), I see various objects being registered with the JNDI service. It looks like this:

                  08:09:28,332 INFO [A] Bound to JNDI name: queue/A
                  08:09:28,332 INFO [B] Bound to JNDI name: queue/B
                  08:09:28,332 INFO [C] Bound to JNDI name: queue/C
                  08:09:28,332 INFO [D] Bound to JNDI name: queue/D
                  08:09:28,332 INFO [ex] Bound to JNDI name: queue/ex
                  08:09:28,363 INFO [testTopic] Bound to JNDI name: topic/testTopic
                  08:09:28,363 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
                  08:09:28,363 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
                  08:09:28,378 INFO [testQueue] Bound to JNDI name: queue/testQueue
                  08:09:28,425 INFO [UILServerILService] JBossMQ UIL service available at : /
                  08:09:28,472 INFO [DLQ] Bound to JNDI name: queue/DLQ

                  Since this is missing from your output, I suspect that it has been removed or disable in your configuration. So you need to re-enable JNDI. If you can not recall what you did to disable it, the best thing might be to re-install JBoss and attempt the tutorial again. (I just did that and it took me all of an hour to get Duke's Bank running, and this included downloading JBoss, the Getting Started Guide and the J2EE tutorial).

                  Good luck.