3 Replies Latest reply on Apr 26, 2003 3:10 AM by Pushpendra

    Resource Manager not found in Jboss application

    Pushpendra Newbie

      Hi:
      I am deploying 1) ejb-jar-ic03.jar containing BMP AptRentEJB Bean and 2) war-ic89.war containing
      web application. My database is hsqldb database. When I run the application on JBoss on default server I get following error:

      11:30:17,330 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/ejb-jar-ic03.jar
      11:30:24,140 INFO [EJBDeployer]
      Bean : AptRentBean
      Method : public abstract void remove(AptRentKey) throws FinderException, RemoteException
      Section: 9.2.8
      Warning: Each method defined in the entity bean's home interface must be either create or finder method.

      11:30:24,360 INFO [EjbModule] Creating
      11:30:25,020 INFO [EjbModule] Deploying AptRentBean
      11:30:31,940 INFO [EjbModule] Created
      11:30:31,940 INFO [EjbModule] Starting
      11:30:31,940 WARN [EntityContainer] No resource manager found for jdbc/APTRENTDB11:30:32,880 INFO [EjbModule] Started
      11:30:32,930 INFO [MainDeployer] Successfully completed deployment of package: file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/ejb-jar-ic03.jar
      11:30:32,930 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/interest.jar
      11:30:34,630 INFO [EjbModule] Creating
      11:30:35,130 INFO [EjbModule] Deploying Interest
      11:30:36,390 INFO [EjbModule] Created
      11:30:36,390 INFO [EjbModule] Starting
      11:30:37,220 INFO [EjbModule] Started
      11:30:37,220 INFO [MainDeployer] Successfully completed deployment of package: file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/interest.jar
      11:30:37,220 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/web-client.war
      11:30:38,920 INFO [EmbeddedCatalinaServiceSX] deploy, ctxPath=/web-client, warUrl=file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/tmp/deploy/server/default/deploy/web-client.war/82.web-client.war
      11:30:56,440 INFO [Engine] WebappLoader[/web-client]: Deploying class repositories to work directory C:\jboss-3.0.0_tomcat-4.0.3\catalina\work\localhost\web-client
      11:30:56,770 INFO [Engine] WebappLoader[/web-client]: Deploy class files /WEB-INF/classes to C:\jboss-3.0.0_tomcat-4.0.3\catalina\work\localhost\web-client\WEB-INF\classes
      11:30:58,690 INFO [Engine] StandardManager[/web-client]: Seeding random number generator class java.security.SecureRandom
      11:31:01,490 INFO [Engine] StandardManager[/web-client]: Seeding of random number generator has been completed
      11:31:07,810 INFO [Engine] ContextConfig[/web-client]: Added certificates -> request attribute Valve
      11:31:09,790 INFO [EmbeddedCatalinaServiceSX] Using Java2 parent classloader delegation: true
      11:31:10,550 INFO [Engine] StandardWrapper[/web-client:default]: Loading container servlet default
      11:31:17,910 INFO [Engine] default: init
      11:31:18,630 INFO [Engine] StandardWrapper[/web-client:invoker]: Loading container servlet invoker
      11:31:19,450 INFO [Engine] invoker: init
      11:31:24,290 INFO [Engine] jsp: init
      11:31:36,040 INFO [MainDeployer] Successfully completed deployment of package: file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/web-client.war
      11:31:36,100 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/war-ic89.war
      11:31:37,030 INFO [EmbeddedCatalinaServiceSX] deploy, ctxPath=, warUrl=file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/tmp/deploy/server/default/deploy/war-ic89.war/83.war-ic89.war
      11:31:37,580 INFO [Engine] WebappLoader[]: Deploying class repositories to work directory C:\jboss-3.0.0_tomcat-4.0.3\catalina\work\localhost\_
      11:31:37,580 INFO [Engine] WebappLoader[]: Deploy class files /WEB-INF/classes to C:\jboss-3.0.0_tomcat-4.0.3\catalina\work\localhost\_\WEB-INF\classes
      11:31:37,850 INFO [Engine] StandardManager[]: Seeding random number generator class java.security.SecureRandom
      11:31:37,910 INFO [Engine] StandardManager[]: Seeding of random number generator has been completed
      11:31:40,270 INFO [Engine] StandardContext[]: WARNING: URL pattern CategoriesServlet must start with a / in Servlet 2.3
      11:31:40,270 INFO [Engine] ContextConfig[]: Added certificates -> request attribute Valve
      11:31:41,750 INFO [EmbeddedCatalinaServiceSX] Using Java2 parent classloader delegation: true
      11:31:41,750 INFO [Engine] StandardWrapper[:default]: Loading container servlet default
      11:31:41,750 INFO [Engine] default: init
      11:31:41,750 INFO [Engine] StandardWrapper[:invoker]: Loading container servlet invoker
      11:31:41,750 INFO [Engine] invoker: init
      11:31:41,860 INFO [Engine] jsp: init
      11:31:42,960 INFO [MainDeployer] Successfully completed deployment of package: file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/war-ic89.war
      11:31:43,350 INFO [URLDeploymentScanner] Started
      11:31:43,350 INFO [MainDeployer] Successfully completed deployment of package: file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/conf/jboss-service.xml
      11:31:43,350 INFO [Server] JBoss (MX MicroKernel) [3.0.0 Date:200205311035] Started in 5m:28s:950ms
      11:32:11,410 INFO [Engine] CategoriesServlet: init
      11:32:14,980 INFO [STDOUT] Found Home Object
      11:32:14,980 INFO [STDOUT] starting findbyAds() method....
      11:32:15,590 INFO [STDOUT] setEntityContext called
      11:32:15,640 INFO [STDOUT] REMOTEEXCEPTION
      11:32:15,640 INFO [STDOUT]REMOTEEXCEPTION ISUnable to connect to database. jdbc not bound; nested exception is:
      javax.ejb.EJBException: Unable to connect to database. jdbc not bound
      11:32:15,700 INFO [STDOUT] success getAds method()
      11:32:15,700 INFO [STDOUT] 0
      11:32:15,810 ERROR [Engine] StandardWrapperValve[CategoriesServlet]: Servlet.service() for servlet CategoriesServlet threw exception
      java.lang.NullPointerException
      at CategoriesServlet.doPost(Unknown Source)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
      at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
      at java.lang.Thread.run(Thread.java:536)

      The errors are underlined. Can anybody check my hsqldb-service.xml file and see my configuration of database APTRENTDB is allright? Also I am submitting my two jar files containing my application which you can open using winzip and check the deployment descriptors. My guess is that the drivers are not getting loaded. Is there a bug in jboss-3.0.0?

      I have also tried to rename hsqldb-service.xml file and removed the original file from deploy directory but it still doesn't work.

      Any help would be highly appreciated.

      Thanks

      Pushpendra Raval

      Email: sraval9@icenet.net