This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Problem deploying war file on WinXP 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 » Java » JSP
Bookmark "Problem deploying war file on WinXP" Watch "Problem deploying war file on WinXP" New topic
Author

Problem deploying war file on WinXP

Unnsse Khan
Ranch Hand

Joined: Nov 12, 2001
Posts: 511
Hello again,

Am having trouble seeing some dynamic content (generated by JSTL 1.1) when I deploy my war file on WinXP.

I have two development machines (G4 PowerBook running OS X Tiger and WinXP).

Have the latest JDK 1.5_06, Tomcat 5.5.9, and Eclipse 3.2 with MyEclipseIDE,
on both machines.

I develop on OS X and deploy on WinXP and Linux.

Trying to dissect my problem let me tell you what I did, step by step in Eclipse:

Created a new web project, at the wizard dialog, I chose "Install JSTL 1.1" libraries.

Now, my web project had references to standard.jar and jstl.jar, on the build path, (which it stated that it would install in WEB-INF/lib, and which it rightfully did).

My entire web site (is purely static) except for getNews.jsp (which contains JSTL code).

When I run the web app within MyEclipse using hot deploy with Tomcat 5.5.9 on OS X Tiger, I can see the page perfectly.

When I place the war file (generated by MyEclipse's deployment tool and / or Export->J2EE Project->WAR file) inside my WinXP's Tomcat 5.5.9/webapps directory, everything works except for the getNews.jsp page (containing the JSTL code).

It throws the following exceptions:



The code for getNews.jsp:



I don't understand why this page works under OS X but not WinXP. I also placed all the tlds inside a directory called tlds under WEB-INF: WEB-INF/tld.

I even wrote an Ant build script to manually war my project and it still didn't work!

The code for my Ant build script:



Any help, feedback, and suggestions will be most appreciated!

Many, many thanks!
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Check the JRE used by your Tomcat installation. XPath is part of Xalan which is included in JDK 1.5. I think you have a path problem here. Go to Tomcat Properties, Java tab, and check the used JRE.


[My Blog]
All roads lead to JavaRanch
Unnsse Khan
Ranch Hand

Joined: Nov 12, 2001
Posts: 511
Satou,

Thank you so much for the response!

I run Tomcat from the command line (MS-DOS) in WinXP. Therefore, I don't have a Tomcat Properties pane / tab.

Where can I check this on WinXP?

On OS X Tiger, my JVM / JRE:

java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)

On WinXP, my JVM /JRE:

java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112) Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)

Regards,
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

What is JAVA_HOME set to ?
Unnsse Khan
Ranch Hand

Joined: Nov 12, 2001
Posts: 511
Satou,

Thanks again for the quick response!

My JAVA_HOME:

On OS X:

/System/Library/frameworks/JavaVM.framework/Versions/1.5.0/Home

On WinXP:

F:\DevTools\Java\jdk1.5.0

Regards,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem deploying war file on WinXP
 
Similar Threads
XML functionality not working on Tomcat 7.0.6
RSS / JSTL Problem
Help aggregating Atom feeds using JSTL
JSTL-XML problem
JasperException with RSS and JSTL