2 Replies Latest reply on Oct 30, 2008 8:56 AM by Andrei Dobrovolschi

    Problems in deployment under JBoss 4.2.3

    Andrei Dobrovolschi Newbie

      Hello, i need some help regarding the deployment of a web application unde JBoss 4.2.3

      The application is basically a web service deployed in a WAR using CXF that interacts with an Oracle database through Hibernate. It was initially deployed on JBoss 5.0.0 beta and it worked very well, but when switching to 4.2.3 it returns the following exception

      2008-10-30 11:44:45,049 INFO [STDOUT] FATAL [main] (DatasourceConnectionProvider.java:55) - Could not find datasource: java:PPGDS
      javax.naming.NameNotFoundException: PPGDS not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)


      PPGDS is the JNDI name of the datasource.


      I've deleted all the libraries from the server lib that could have caused any class cast exceptions. The parameters from the Oracle configuration file are correct. I am using 1.5.0_13. And i have run out of any ideas about what could be wrong.

      Any help would be greatly appreciated.

        • 1. Re: Problems in deployment under JBoss 4.2.3
          jaikiran pai Master

          Have you deployed the datasource (-ds.xml) file? Where have you placed it? And what are its contents?

          While posting the logs or xml content or code, remember to wrap it in a code block using the Code button in the message editor window and please hit the Preview button to make sure your post is correctly formatted

          • 2. Re: Problems in deployment under JBoss 4.2.3
            Andrei Dobrovolschi Newbie

            That was my initial suspicion, since a part of the application was contained within a SAR archive. However, even after modifying jboss-service.xml to use the org.jboss.deployment.scanner.PrefixDeploymentSorter and prefixing the name of the -ds.xml file with the number 1 the error message has not changed. The server logs have a line that states:

            Ignoring create request for service: jboss.jca:service=DataSourceBinding,name=PPGDS


            The strange thing is when i access the value through the JMX console i can see it initialized within the JNDI.

            The contents of the -ds.xml file are pretty mundane, just the initialisation data for a single Oracle datasource.