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…
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?
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:
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:
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.
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 :