powered by Jive Software

JSTL error on "WAR" Ant task

Hi all,

I try to build JM with ant and eclispe (following strictly the tutorial i’'ve found on this forum), but I cannot resolve the following error incoming during the Ant build process:

“org.apache.jasper.JasperException: The uri : http://java.sun.com/jstl/fmt_rt cannot be resolved in web.xml or jar files deployed in this application[/b]”

I can’'t understand why I get this error…

I’'ve searched in the forum : I did not manage to find informations…

Please if some of you have any idea to help, it would be great…

Thanks…

My configuration:

  • Windows XP

  • JDK1.5_04

  • Eclispe 3.1 (with Ant 1.6 integrated)

  • Tomcat 5.5

Alex

Hi Alex,

That exception can sometimes indicate that the jstl.jar is not being picked up during the build process. Check to make sure the jstl.jar is in the MESSENGER_HOME/build/lib/merge directory and that it isn’'t corrupt.

Does the “ant jar” target work for you? Also, what line in the build process are you seeing that exception occur on?

Thanks,

Ryan

Hi Ryan,

Thanks for your reply…

I’‘ve solved my problems: I’'ve done a clean installation of everything (Eclipse 3.1, jdk1.5…) and the build works : both Ant tasks (war and jar) work fine!

After that, I’‘ve tried to test the .war on Tomcat: I’‘ve read your (good) tutorial on the forum, and tried to do as you (and other people) explained, but I did not manage to solve the home messenger directory : I did not see a directory “classes” under WEB-INF directory of my deployed war archive: here’'s the structure of my WEB-INF directory taken from my messenger.war just built:

  • WEB-INF/lib (with activation.jar, commons-el.jar, hsqldb.jar, mail.jar, messenger.jar, mysql.jar, postgres.jar, startup.jar and tray.dll)

  • WEB-INF/admin.tld

  • WEB-INF/web.xml

Then I’'m still not able to run the messenger on Tomcat… ;-(

Any ideas?

Thanks for your precious help… )

Alex

Alex,

You should create the classes folder and the messenger_init.xml file too. Attached to this post you will find an example of the xml file.

Since you are using tomcat another option would be to start the “Monitor Tomcat” and double click on the system tray icon. Click on the Java tab and add something like this to the Java Options section:

-DmessengerHome=C:\install\messenger\target\war\messengerHome

Regards,

– Gato

Hi Gato,

Thanks for jumping in. I wasn’'t familiar with using the “Monitor Tomcat” feature to set VM arguments, good tip.

Cheers,

Ryan

PS - In case anyone is interested, I was able to run Messenger in JBoss 4.0.2 without any trouble. So the Messenger app server compatibility list now includes Resin, Tomcat and JBoss.

Nice. The list is growing.

Regards,

– Gato

Hi Gato, Ryan, Alex and all…

Thanks to you: I’'ve managed to run JM as a webapp on tomcat!

  • About the messenger_init.xml: you can put it under : “TOMCAT_HOME/common/classes” directory: it works fine, and you don’'t need to set java properties or VM args, and no classes folder creation needed too…(special thanks for Gato who helps me on the topic… )

  • About my (“successful”) configuration to run JM as .war on tomcat :

  • Win XP

  • jdk1.5.0_04 (http://java.sun.com/j2se/1.5.0/download.jsp)

  • Eclipse 3.1 (Eclipse SDK Version: 3.1.0 Build id: I20050627-1435)

  • Tomcat 5.5.9 (http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi)

And special thanks for Ryan for his help and his tips about running JM .war under an HTTPserver (thread : http://www.jivesoftware.org/forums/thread.jspa?threadID=14170)

Team : I’'ll send you regular feedback about integration of JM in web context… (I will test it with JBoss and tell you…)

Thanks again…see you…

Alex

thanks JM team for help…