• 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Unable to convert string to class "java.util.Collection" for attribute  RSS feed

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I have been attempting to get a application running on tomcat 5.5 for a few hours now. I've had several classpath problems, as this instance of tomcat has been installed by plesk (a control panel - not my choice). I finally found the lib and endorsed directories that tomcat is using, and finally got past an error in which tomcat could not find the mysql connector. Now, I have hit this probem.

This is the exception:


I ommitted the lower stack traces. I had been testing on tomcat 6, so I may be missing a library, though I am not sure which. Thank you in advance for any help.
 
Sheriff
Posts: 67259
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not Tomcat-specific. Moved to JSP.
 
Bear Bibeault
Sheriff
Posts: 67259
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like you are trying to use an EL expression for an attribute that does not allow run-time expressions. Which would be weird because it looks like the attribute expcets a collection -- which must be run-time.

So, either your config is screwed up such that the EL is not properly evaluating, or the definition of the tag is bogus.
 
Brian Henk
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bear Bibeault wrote:Looks like you are trying to use an EL expression for an attribute that does not allow run-time expressions. Which would be weird because it looks like the attribute expcets a collection -- which must be run-time.

So, either your config is screwed up such that the EL is not properly evaluating, or the definition of the tag is bogus.



Well, considering I've gotten the site to work in this configuration on my local server and on a previous remote server, I would imagine it isnt the tag. What config options could be responsible for this?
 
Bear Bibeault
Sheriff
Posts: 67259
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First thing to determine is if the EL is properly evaluating.
 
Brian Henk
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bear Bibeault wrote:First thing to determine is if the EL is properly evaluating.


EL does not appear to be evaluating. For example, I have an error page that does not take any el input, but uses el to build the page in custom tags, and the el shows up in the html unparsed.

Also, checking around the FAQ:
I do have both jstl.jar and standard.jar presentin my applications WEB-INF/lib directory.
Will Tomcat 5.5 react differently than Tomcat 6? Like I said - I used 6 for testing, and am now deploying on 5.5
 
Bear Bibeault
Sheriff
Posts: 67259
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They should act the same as far as the JSTL is concerned.

Is your web app properly declared as outlined?
 
Brian Henk
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bear Bibeault wrote:Is your web app properly declared as outlined?



Sorry, I'm not sure what you mean. Are you referring to the context? It does appear to be working, as my datasource is working.
 
Bear Bibeault
Sheriff
Posts: 67259
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, I meant is your web.xml declared as a 2.4 app via the XML Schema, or 2.3 using the DTD?
 
Brian Henk
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, it's declared as 2.5. I bet thats a problem

Should I go to 2.4 then?
 
Ranch Hand
Posts: 2458
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat 5.5 supports at highest Servlet 2.4. Also see its documentation.
If you want Servlet 2.5, you need to upgrade to at least Tomcat 6.0.
 
Brian Henk
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I changed my config to 2.4. That worked.

Thank you.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bauke Scholtz wrote:Tomcat 5.5 supports at highest Servlet 2.4. Also see its documentation.
If you want Servlet 2.5, you need to upgrade to at least Tomcat 6.0.




Thank you it helped a lot
 
Does this tiny ad smell okay to you?
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!