5 Replies Latest reply on Dec 9, 2004 10:42 PM by sandylee

    Deployment of War files on Jboss

    grn

      I have a serious problem when deploying war files on JBoss. As JBoss doesnot explode the war files on deployment I am not able to read the XML file stored inside the war file, from my program. The servlet throws exception while accessing the files.
      Also in many cases the I have to modify the XML files from my program.

      How can we do that??

      Now I am working with 2 separate servers- Tomcat for the web tier and JBoss for the EJB tier.

      Can I make this to single Ear file and also read the XML form my program.

      Is there any method to store XML file in another JBoss directory and access it as the Xml files are large enough to set as environment variables.

        • 1. ClientConnectionManager: created new conn to target 0.0.0.0:
          raist_majere

          I have a Corba Servant which works if I access it by corbaloc.
          Currently I am running client and server at the same machine.
          xx.xx.xx.xx = my machines ip adress

          I registered the Servant at JBoss Naming service and got no errors but one warning at runtime.

          2004-12-06 15:38:48,382 INFO [org.jboss.naming.NamingService] Starting jnp server
          2004-12-06 15:38:48,664 INFO [org.jboss.naming.NamingService] Started jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
          2004-12-06 15:38:48,679 WARN [org.jboss.naming.NamingService] Context.PROVIDER_URL in server jndi.properties, url=xx.xx.xx.xx:10992004-12-06 15:38:48,695 INFO [org.jboss.naming.NamingService] Listening on port 1099
          2004-12-06 15:38:48,726 INFO [org.jboss.naming.NamingService] Started jboss:service=Naming

          When I try to access a Server method at the client the following
          Jacorb Traces appears at the Server:

          ClientConnectionManager: created new conn to target 0.0.0.0:3528

          The Client trace is at this time:

          Trying to connect to xx.xx.xx.xx:3528 ]
          [ 06:12:2004:15:39:27:742> Connected to xx.xx.xx.x:3528 ]
          looking up "CmdLogger2"
          [ 06:12:2004:15:39:27:804> Delegate.getReference with POA < empty> ]
          [ 06:12:2004:15:39:27:992> ConnectionManager: created new conn to target 0.0.0.0:3528 ]
          [ 06:12:2004:15:39:27:992> (Pool)[0/1] creating new thread ]
          [ 06:12:2004:15:39:27:992> Successfully negotiated Codesets. Using ISO 8859-1 as TCS and UTF-16 as TCSW ]
          [ 06:12:2004:15:39:28:007> (Pool)[1/2] added idle thread ]
          [ 06:12:2004:15:39:28:226> (Pool)[0/2] removed idle thread (job scheduled) ]
          [ 06:12:2004:15:39:28:242> Trying to connect to 0.0.0.0:3528 ]
          [ 06:12:2004:15:39:28:242> Retrying to connect to 0.0.0.0:3528 ]
          [ 06:12:2004:15:39:28:742> Retrying to connect to 0.0.0.0:3528 ]
          org.omg.CORBA.TRANSIENT: Retries exceeded, couldn't reconnect to 0.0.0.0:3528 minor code: 0 completed: No
          at org.jacorb.orb.connection.Client_TCP_IP_Transport.connect(Client_TCP_IP_Transport.java:169)
          at org.jacorb.orb.connection.TCP_IP_Transport.write(TCP_IP_Transport.java:287)
          at org.jacorb.orb.connection.GIOPConnection.write(GIOPConnection.java:487)
          at org.jacorb.orb.CDROutputStream.write(CDROutputStream.java:275)
          at org.jacorb.orb.connection.ServiceContextTransportingOutputStream.write_to(ServiceContextTransportingOutputStream.java:277)
          at org.jacorb.orb.connection.GIOPConnection.sendMessage(GIOPConnection.java:517)

          Does anybody know what could be the reason for jacorb to use 0.0.0.0
          instead of my machines adress ?

          • 2. Re: Deployment of War files on Jboss
            taper

            I have a question for you: you certainly must store XML data from EJB into file?
            Why you don`t try to send thats data as a String?
            For example JSP call EJB home method, which returned a String... After that your JSP can save a String into file and work whis him...

            • 3. Re: Deployment of War files on Jboss
              chrismalan

              Hi grn,

              You can decompress your ear file into a directory containing a whatever.jar and whatever.war directory and load this decompressed directory structure to JBOSS_HOME/server/config/deploy. At least you can with JBoss-3.2.0/Jetty. I'm quite sure you can still do it with the latest JBoss, but won't stake my life on it. That way all files are available for editing. That should help in your case.

              Chris

              • 4. Re: Deployment of War files on Jboss
                sandylee

                Can this be done on 3.2.3 as well. I cannot see and JBOSS_HOME in the server directory.

                • 5. 3830176
                  sandylee

                  How I do ? Cause I want to update a report to the webserver for user to view by clicking a link in the webpage.