0 Replies Latest reply on Jan 3, 2005 4:25 PM by Guenther Hodina

    Problems bringing EJB3.0-Tutorial-Examples to run on JBoss A

    Guenther Hodina Newbie

      I installed the JBoss 4.0 and EJB3.0. I followed the instruction in INSTALL.html.
      The only suspicious thing was that "jboss-aop.deployer" did not exist in $JBOSS_HOME/server/all/deploy
      but this is no problem because the file is to delete.

      Starting up the server with
      ./run.sh -c all

      worked, but there were some errors.
      Here is the listing:

      [root@localhost bin]# ./run.sh -c all
      =========================================================================

      JBoss Bootstrap Environment

      JBOSS_HOME: /usr/local/jboss

      JAVA: /usr/java/java5/bin/java

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

      CLASSPATH: /usr/local/jboss/bin/run.jar:/usr/java/java5/lib/tools.jar

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

      23:21:51,249 INFO [Server] Starting JBoss (MX MicroKernel)...
      23:21:51,252 INFO [Server] Release ID: JBoss [Zion] 4.0.0RC1 (build: CVSTag=JBoss_4_0_0_RC1 date=200407202112)
      23:21:51,253 INFO [Server] Home Dir: /usr/local/jboss
      23:21:51,278 INFO [Server] Home URL: file:/usr/local/jboss/
      23:21:51,278 INFO [Server] Library URL: file:/usr/local/jboss/lib/
      23:21:51,281 INFO [Server] Patch URL: null
      23:21:51,331 INFO [Server] Server Name: all
      23:21:51,332 INFO [Server] Server Home Dir: /usr/local/jboss/server/all
      23:21:51,413 INFO [Server] Server Home URL: file:/usr/local/jboss/server/all/
      23:21:51,414 INFO [Server] Server Data Dir: /usr/local/jboss/server/all/data
      23:21:51,414 INFO [Server] Server Temp Dir: /usr/local/jboss/server/all/tmp
      23:21:51,415 INFO [Server] Server Config URL: file:/usr/local/jboss/server/all/conf/
      23:21:51,447 INFO [Server] Server Library URL: file:/usr/local/jboss/server/all/lib/
      23:21:51,448 INFO [Server] Root Deployment Filename: jboss-service.xml
      23:21:51,455 INFO [Server] Starting General Purpose Architecture (GPA)...
      23:21:52,387 INFO [ServerInfo] Java version: 1.5.0_01,Sun Microsystems Inc.
      23:21:52,388 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_01-b08,Sun Microsystems Inc.
      23:21:52,388 INFO [ServerInfo] OS-System: Linux 2.4.20-8,i386
      23:21:53,713 INFO [Server] Core system initialized
      23:22:05,862 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
      23:22:07,401 INFO [WebService] Using RMI server codebase: http://localhost.localdomain:8083/
      23:22:08,466 INFO [NamingService] Started jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=null, Client SocketFactory=null, Server SocketFactory=null
      23:22:19,984 INFO [EjbModule] Deploying ClusteredHTTPSession
      23:22:21,612 INFO [EJBDeployer] Deployed: file:/usr/local/jboss/server/all/deploy/jbossha-httpsession.sar/ClusteredHttpSessionEB.jar/
      23:22:38,781 INFO [DefaultPartition] Initializing
      23:22:39,151 INFO [STDOUT]
      -------------------------------------------------------
      GMS: address is localhost:32790 (additional data: 14 bytes)
      -------------------------------------------------------
      23:22:41,216 INFO [DefaultPartition] Number of cluster members: 1
      23:22:41,216 INFO [DefaultPartition] Other members: 0
      23:22:41,217 INFO [DefaultPartition] Fetching state (will wait for 30000 milliseconds):
      23:22:41,222 INFO [DefaultPartition] New cluster view (id: 0, delta: 0) : [127.0.0.1:1099]
      23:22:41,231 INFO [DefaultPartition] I am (null) received membershipChanged event:
      23:22:41,232 INFO [DefaultPartition] Dead members: 0 ([])
      23:22:41,232 INFO [DefaultPartition] New Members : 0 ([])
      23:22:41,232 INFO [DefaultPartition] All Members : 1 ([127.0.0.1:1099])
      23:22:41,505 INFO [HANamingService] Listening on /0.0.0.0:1100
      23:22:41,531 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /0.0.0.0:1102, group=230.0.0.4, HA-JNDI address=127.0.0.1:1100

      23:22:42,045 ERROR [STDERR] [ jacorb.home unset! Will use '.' ]
      23:22:42,047 ERROR [STDERR] [ File ./jacorb.properties for configuration jacorb
      not found ]

      23:22:42,543 INFO [interceptors] InterceptorManager started with 2 SIs, 2 CIs and 4 IORIs
      23:22:42,970 INFO [orb] ORB run
      23:22:43,260 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E300000000000020000000000000094000102000000000A3132372E302E302E31000DC8000000114A426F73732F4E616D696E672F726F6F74000000000000050000000000000008000000004A414300000000010000001C0000000000010001000000010501000100010109000000010501000100000014000000080000001A00000DC9000000200000000800000000000000000000001F000000080000000000000003000000010000004C0000000000000003000000010000001C00000000000100010000000105010001000101090000000105010001000000200000000800000000000000000000001F000000080000000000000003]
      23:22:43,632 INFO [naming] re-Bound name: TransactionService
      23:22:43,634 INFO [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F72672F6A626F73732F746D2F69696F702F5472616E73616374696F6E466163746F72794578743A312E3000000000020000000000000094000102000000000A3132372E302E302E31000DC8000000144A426F73732F5472616E73616374696F6E732F46000000050000000000000008000000004A414300000000010000001C0000000000010001000000010501000100010109000000010501000100000014000000080000001A00000DC9000000200000000800000000000000000000001F000000080000000000000003000000010000004C0000000000000003000000010000001C00000000000100010000000105010001000101090000000105010001000000200000000800000000000000000000001F000000080000000000000003]
      23:22:43,642 INFO [naming] re-Bound name: UserTransaction
      23:22:48,506 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/usr/local/jboss/server/all/deploy/jms/jms-ra.rar
      23:22:49,503 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/usr/local/jboss/server/all/deploy/jboss-local-jdbc.rar
      23:22:51,605 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/usr/local/jboss/server/all/deploy/jboss-xa-jdbc.rar
      23:22:54,275 INFO [STDOUT] cache_scale: 14
      23:22:54,275 INFO [STDOUT] cache_size_scale: 10
      23:22:54,288 INFO [STDOUT] NIO next enlargeBuffer(): 1048576
      23:22:54,296 INFO [STDOUT] NIO file instance created. mode: false
      23:22:55,808 INFO [Embedded] Catalina naming disabled
      23:22:59,636 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
      23:22:59,797 INFO [Catalina] Initialization processed in 3615 ms
      23:22:59,798 INFO [StandardService] Starting service jboss.web
      23:22:59,812 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.0.27-dev
      23:22:59,869 INFO [StandardHost] XML validation disabled
      23:22:59,962 INFO [Catalina] Server startup in 165 ms
      23:23:00,325 INFO [TomcatDeployer] deploy, ctxPath=/http-invoker, warUrl=file:/usr/local/jboss/server/all/deploy/http-invoker.sar/http-invoker.war/
      23:23:03,891 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=file:/usr/local/jboss/server/all/tmp/deploy/tmp33261jboss-ws4ee-exp.war/
      23:23:07,370 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/usr/local/jboss/server/all/deploy/jbossweb-tomcat50.sar/ROOT.war/
      23:23:08,561 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=file:/usr/local/jboss/server/all/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      23:23:12,103 INFO [ConnectionFactoryBindingService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA to JNDI name 'java:JmsXA'
      23:23:14,198 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS to JNDI name 'java:DefaultDS'
      23:23:16,704 INFO [A] Bound to JNDI name: queue/A
      23:23:16,722 INFO [B] Bound to JNDI name: queue/B
      23:23:16,728 INFO [C] Bound to JNDI name: queue/C
      23:23:16,738 INFO [D] Bound to JNDI name: queue/D
      23:23:16,744 INFO [ex] Bound to JNDI name: queue/ex
      23:23:17,034 INFO [testTopic] Bound to JNDI name: topic/testTopic
      23:23:17,037 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
      23:23:17,044 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic23:23:17,052 INFO [testQueue] Bound to JNDI name: queue/testQueue
      23:23:17,452 INFO [OILServerILService] JBossMQ OIL service available at : 0.0.0.0/0.0.0.0:8090
      23:23:17,665 INFO [OIL2ServerILService] JBossMQ OIL2 service available at : 0.0.0.0/0.0.0.0:8092
      23:23:18,039 INFO [UILServerILService] JBossMQ UIL service available at : 0.0.0.0/0.0.0.0:8093
      23:23:18,849 INFO [DLQ] Bound to JNDI name: queue/DLQ
      23:23:20,689 INFO [MailService] Mail Service bound to java:/Mail
      23:23:23,742 INFO [BlockingServer] Remoting 'async' protocol clients will connect to: InvokerLocator [async://127.0.0.1:8085/?compression=-1&tcp.nodelay=true]
      23:23:25,475 INFO [EjbModule] Deploying MEJB
      23:23:25,761 WARN [EjbModule] The Container Invoker session-webservice-invoker
      (in jboss.xml or standardjboss.xml) could not be created because of java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.net.ws4ee.server.EJBProxyFactoryImpl We will ignore this error, but you may miss a transport for this bean.
      23:23:26,113 INFO [EJBDeployer] Deployed: file:/usr/local/jboss/server/all/deploy/management/ejb-management.jar
      23:23:27,275 INFO [EjbModule] Deploying MediaEntity
      23:23:27,549 INFO [EjbModule] Deploying MetaDataEntity
      23:23:27,569 INFO [EjbModule] Deploying MediaEntityManager
      23:23:27,589 WARN [EjbModule] The Container Invoker session-webservice-invoker
      (in jboss.xml or standardjboss.xml) could not be created because of java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.net.ws4ee.server.EJBProxyFactoryImpl We will ignore this error, but you may miss a transport for this bean.
      23:23:32,529 INFO [MetaDataEntity] Table 'JBOSS_METADATA_ENTITY_BEANS' already
      exists
      23:23:32,538 INFO [MetaDataEntity] Table 'METADATAENTITY_MANAGEDPARENTS_METADATAENTITY_MANAGEDCHILDREN' already exists
      23:23:32,563 INFO [MetaDataEntity] Table 'METADATAENTITY_MANAGEDPARENTS_METADATAENTITY_MANAGEDCHILDREN' already exists
      23:23:33,367 INFO [MediaEntity] Table 'JBOSS_MEDIA_ENTITY_BEANS' already exists23:23:33,382 INFO [MediaEntity] Table 'MEDIAENTITY_MANAGEDPARENTS_MEDIAENTITY_MANAGEDCHILDREN' already exists
      23:23:33,395 INFO [MediaEntity] Table 'MEDIAENTITY_MANAGEDPARENTS_MEDIAENTITY_MANAGEDCHILDREN' already exists
      23:23:33,411 INFO [MediaEntity] Table 'MEDIAENTITY_MANAGEDMETADATAS_METADATAENTITY_MANAGEDMEDIAS' already exists
      23:23:33,630 INFO [EJBDeployer] Deployed: file:/usr/local/jboss/server/all/deploy/jboss-media-entity-ejb.jar
      23:23:33,842 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/usr/local/jboss/server/all/deploy/jmx-console.war/
      23:23:37,522 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/usr/local/jboss/server/all/tmp/deploy/tmp33319web-console-exp.war/

      23:23:39,774 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      Packages waiting for a deployer:
      org.jboss.deployment.DeploymentInfo@3add272 { url=file:/usr/local/jboss/server/all/deploy/ejb3.deployer/ }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/usr/local/jboss/server/all/deploy/ejb3.deployer/
      altDD: null
      lastDeployed: 1104791019767
      lastModified: 1097143092000
      mbeans:

      org.jboss.deployment.DeploymentInfo@ec113cdf { url=file:/usr/local/jboss/server/all/deploy/jboss-aop-jdk50.deployer/ }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/usr/local/jboss/server/all/deploy/jboss-aop-jdk50.deployer/
      altDD: null
      lastDeployed: 1104791019771
      lastModified: 1097163560000
      mbeans:

      Incompletely deployed packages:
      org.jboss.deployment.DeploymentInfo@3add272 { url=file:/usr/local/jboss/server/all/deploy/ejb3.deployer/ }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/usr/local/jboss/server/all/deploy/ejb3.deployer/
      altDD: null
      lastDeployed: 1104791019767
      lastModified: 1097143092000
      mbeans:

      org.jboss.deployment.DeploymentInfo@ec113cdf { url=file:/usr/local/jboss/server/all/deploy/jboss-aop-jdk50.deployer/ }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/usr/local/jboss/server/all/deploy/jboss-aop-jdk50.deployer/
      altDD: null
      lastDeployed: 1104791019771
      lastModified: 1097163560000
      mbeans:


      23:23:40,598 INFO [Server] JBoss (MX MicroKernel) [4.0.0RC1 (build: CVSTag=JBoss_4_0_0_RC1 date=200407202112)] Started in 1m:49s:143ms
      23:23:40,599 INFO [Tomcat5] Saw org.jboss.system.server.started notification, starting connectors
      23:23:40,685 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
      23:23:41,253 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009
      23:23:41,364 INFO [JkMain] Jk running ID=0 time=1/340 config=null


      When I tried to bring to run the EJB-Tutorial-Examples, I could compile the code
      with

      ant

      Everything seemed to be ok. But when tried to start the client, I got the following
      error message (for example):

      [root@localhost timer]# ant run
      Buildfile: build.xml

      prepare:

      compile:

      ejbjar:

      run:
      [java] Exception in thread "main" javax.naming.NameNotFoundException: org.jboss.tutorial.timer.bean.ExampleTimer not bound
      [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:495) [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:503) [java] at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
      [java] at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:585)
      [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
      [java] at sun.rmi.transport.Transport$1.run(Transport.java:153)
      [java] at java.security.AccessController.doPrivileged(Native Method)
      [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
      [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      [java] at java.lang.Thread.run(Thread.java:595)
      [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
      [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
      [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
      [java] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:529)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:508)
      [java] at javax.naming.InitialContext.lookup(InitialContext.java:351)
      [java] at org.jboss.tutorial.timer.client.Client.main(Client.java:19)
      [java] Java Result: 1

      BUILD SUCCESSFUL
      Total time: 4 seconds


      So, please can You tell me, what is to do to bring the examples to run ?