aspose file tools*
The moose likes JSP and the fly likes JSTL Problem deploying on different computer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL Problem deploying on different computer" Watch "JSTL Problem deploying on different computer" New topic
Author

JSTL Problem deploying on different computer

Arthur Colombo
Greenhorn

Joined: Apr 21, 2011
Posts: 11
I've created a small application using Struts 1.3.8 and JSTL on Netbeans 6.9. All tests on my machine worked nicely.

After cleaning, building and deploying it on the server that'll run it, my pages that use JSTL are coming with errors. First, it didn't recognize JSTL at all, printing {param.text1} instead of the actual content of said parameter.
Then I've tried removing the Struts JSTL library and using an external, independent JSTL 1.2 library instead. With it, my pages now run into a ClassNotFound exception.
I am exporting the .WAR archive with all libraries I've used to create the application.

Server's running on Tomcat 5.5, I'm importing the taglib from the WEB-INF folder (jstlcrd.td).

If any more information is needed, please ask.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61763
    
  67

Arthur Colombo wrote:First, it didn't recognize JSTL at all, printing {param.text1} instead of the actual content of said parameter.

Did you actually forget the $, or or are you just being sloppy in your post?

Also, this has nothing to do with the JSTL. It's an EL expression.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61763
    
  67

Arthur Colombo wrote:Server's running on Tomact 5.0,


What about your local system?

I'm importing the taglib from the WEB-INF folder (jstlcrd.td).


Did you mean .tld?
Arthur Colombo
Greenhorn

Joined: Apr 21, 2011
Posts: 11
My local system is running tomcat 6.
And yeah, i meant the jstlcrt.tld taglib, should've paid more attention

I'm thinking if the problem could have something to do with the fact that I'm using the core rt instead of the normal core jstl taglib.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61763
    
  67

Arthur Colombo wrote:I'm using the core rt instead of the normal core jstl taglib.

"core rt"? That is from JSTL 1.0 and should not be used unless your version of JSP and Tomcat are about 10 years old!

Update your JSTL URIs to that for JSTL 1.1+ and make sure you are using an up-todate JSTL set of jar files.

Also. make sure that your deployment descriptor is up-to-date. All of this is covered in the JspFaq.
ranvijay kumar
Greenhorn

Joined: Jun 06, 2011
Posts: 5

check JSTL URIs in directive.........
Arthur Colombo
Greenhorn

Joined: Apr 21, 2011
Posts: 11
Solved the problem. It was in the web.xml all this time


Since I started the project on a Tomcat 6 environment, it was set as version 2.5. Changed it to 2.4 and everything works now.

Still, thanks for the help and sorry for any inconvenience.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61763
    
  67

That was one of the things I asked you to check.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61763
    
  67

Also a good lesson in not using a different version to develop in than you will be deploying to.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61763
    
  67

And, if you are really using JSTL 1.0, you really need to stop and use a more up-to-date version -- even if it's not causing any issues now, it will bite you in the butt sooner or later (and probably sooner).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSTL Problem deploying on different computer