my dog learned polymorphism*
The moose likes JBoss/WildFly and the fly likes Upgrading from JBOSS 4.0.5.GA to JBOSS 5.1.0.GA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Upgrading from JBOSS 4.0.5.GA to JBOSS 5.1.0.GA" Watch "Upgrading from JBOSS 4.0.5.GA to JBOSS 5.1.0.GA" New topic
Author

Upgrading from JBOSS 4.0.5.GA to JBOSS 5.1.0.GA

Arlene Cau
Greenhorn

Joined: Oct 05, 2012
Posts: 11
Hello
I am trying to upgrade an application from 4.0.5.GA to 5.1.0.GA and don't know where to start.
So this is what I have done so far. I have downloaded JBOSS 5.1.0.GA and started it on my eclipse Indigo Service Release 2. It starts up fine so far.
Now I am trying to copy changes from previous server to new one. In my older server.xml there are a bunch of <Host> that I need to move to the new server. However when I copied them over to the new server.xml JBOSS gave me errors. Reason it turned out to be <Logger> and the <context>. I removed these two and life was good.
Now question is where does these two go?

I am a novice developer and have never obviously done a migration so please excuse me if my questions sound too stupid.
Arlene Cau
Greenhorn

Joined: Oct 05, 2012
Posts: 11
Aw c'mon...anyone?
Okay to get a sense of direction I tried to run my project. I figured I will see errors in the log and I can use that as my starting point. Well it looks like the log files are not getting updated. So let's put that as a priority. Can anyone tell me how to link my project's log files here?
Siitesh Hind
Ranch Hand

Joined: Sep 06, 2012
Posts: 51
Hi Arlene,

Hope you are altering the server.xml file in server\default\deploy\jbossweb.sar folder.
As you can see that most of the <valve> settings are commented by default.

Can you tell me what changes you are trying to add in the <host> which is throwing errors?

All I can think of is you want to have the log files created to monitor the system messages.

Rgds,

Seetesh
Arlene Cau
Greenhorn

Joined: Oct 05, 2012
Posts: 11
First of all THANK YOU for replying!!!
I was able to add the <Host> to the new server.xml. And yes I am modifying the server\default\deploy\jbossweb.sar\server.xml.
However in my previous (4.0.5) server.xml, I had <Context path="/images" docBase="..../> which if I add to the new server.xml it throws errors. Does this go to a different location now?
Siitesh Hind
Ranch Hand

Joined: Sep 06, 2012
Posts: 51
Arlene,

Do not alter server.xml unless you really have to.

Besides there is Context.xml file present where you can add your entries only if required.

Take care,

Seetesh
Arlene Cau
Greenhorn

Joined: Oct 05, 2012
Posts: 11
Does JBoss 5.1.0 have a problem with EJB 2.0? In my build.xml under the ejbdoclet, I see a warning that the classpathref="classpath.BUILD" is not found. I don't see an error though, the application works okay up to a point. However at one point in the application you should be able to 'autologin' to a different site which is not working anymore and to me it seems like the ejb's are not working so the user info is not coming through. Any input on this?
Siitesh Hind
Ranch Hand

Joined: Sep 06, 2012
Posts: 51
There is some issue with your build.xml. Many reasons for that
Arlene Cau
Greenhorn

Joined: Oct 05, 2012
Posts: 11
Thanks... I was able to find out what the problem was. It had to do with the way values were saved in our DB.
I am running into another issue now though.. Keep getting the following error. I researched online and included JAVA_OPTS="-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false" in my C:/jboss/bin/run.conf file... but still not working... Any suggestions ?
org.apache.jasper.JasperException: /t.jsp(27,22) Attribute value "/t/" + host.getTemplateDirectory() + "/" + template is quoted with " which must be escaped when used within the value
Arlene Cau
Greenhorn

Joined: Oct 05, 2012
Posts: 11
ahhh..simple and perhaps stupid idea of having run time configs within the eclipse server launch configs.!!
Thankfully it is resolved. Thanks for your help Siitesh!
Siitesh Hind
Ranch Hand

Joined: Sep 06, 2012
Posts: 51
Learning fast eh
Arlene Cau
Greenhorn

Joined: Oct 05, 2012
Posts: 11
Yes I am working towards it.
Now I am stuck at a different place. My app works fine until at one point it gives me the following exception.
The following system error has occured: The AXIS engine could not find a target service to invoke! targetService is UserManagement

I have researched online but nothing is helping me. I even checked my server-config.wsdd file and see the service in there.
Basically there are two projects running this app. The targetService is in a .war file and I have confirmed this.
Can you please help me here? I would really appreciate this.
Arlene Cau
Greenhorn

Joined: Oct 05, 2012
Posts: 11
Yay.. I think posting on coderanch is good for me. I answer my own questions. So I had to include the server-config.wsdd in my .war/WEB-INF also and that resolved the issue.
Let's move on.
Okay in my server.xml for Jboss 4 I had the context path to a folder that contained some images. Where would I include this path in Jboss 5? Including in same place gives me errors.
Siitesh Hind
Ranch Hand

Joined: Sep 06, 2012
Posts: 51
I was using Apache to store the images.

Let me check if context.xml could do the trick
Arlene Cau
Greenhorn

Joined: Oct 05, 2012
Posts: 11
Thanks.. I am still stuck on this!
Siitesh Hind
Ranch Hand

Joined: Sep 06, 2012
Posts: 51
did you add that entry in context.xml file?

Context path="/images" docBase="c:/shared/images"

this is the only place to configure the same.

Keep a backup of the context.xml that you are about to modify
Arlene Cau
Greenhorn

Joined: Oct 05, 2012
Posts: 11
Hmm it didn't throw any error but the image didn't show up either. I have to check the code now to see how the image is called. Sorry I didn't write the code so everything is new to me.
I will get back to you with my findings.
Siitesh Hind
Ranch Hand

Joined: Sep 06, 2012
Posts: 51
remember to state the context path in your JSPs
Siitesh Hind
Ranch Hand

Joined: Sep 06, 2012
Posts: 51
please reply to my message sent
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Upgrading from JBOSS 4.0.5.GA to JBOSS 5.1.0.GA
 
Similar Threads
Problem deploying extenal url in Jboss 5.1.0
Unable to start Jboss 5.1.0 GA
Not looking so much for a fix as what this error means
Running JBoss 5.1.0 All Server
JBoss virtual directory in jboss 5.0.1