Win a copy of High Performance Python for Data Analytics this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Problem deploying war file on WinXP

 
Ranch Hand
Posts: 511
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Unnsse Khan
Ranch Hand
Posts: 511
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is JAVA_HOME set to ?
 
Unnsse Khan
Ranch Hand
Posts: 511
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,
 
The two armies met. But instead of battle, they decided to eat some pie and contemplate this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic