Meaningless Drivel is fun!
The moose likes JSP and the fly likes deploying a web app in tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "deploying a web app in tomcat" Watch "deploying a web app in tomcat" New topic

deploying a web app in tomcat

aymane chetibi
Ranch Hand

Joined: Apr 12, 2006
Posts: 175
hi all,
I designed an application in the NetBeans IDE and now I want to deploy it in Tomcat.
I have the correct file structure but when accessing this url http://localhost:8080/project/index.jsp I get the following error:

org.apache.jasper.compiler.ParseException: C:\jakarta-tomcat-3.3.2\webapps\forumProject\index.jsp(1,0) Page directive: Invalid attribute, pageEncoding

thank you for you help
Eduardo Dela Rosa

Joined: Apr 15, 2004
Posts: 25

How did you define your page directive and attributes?

Should be:

<%@page pageEncoding="{CharSet}" %>

If that is giving you a problem, try to remove the *pageEnconding*
attribute first(and its corresponding value, if any), then run the
web app again. It might be that the value you've set is not in the
valid list of CharSets.

Better yet post your page directive to have a much clearer view of
what's causing your problem.

Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Any reasons of using stale tomcat version? We are having 5.5.x.
[ April 17, 2006: Message edited by: Adeel Ansari ]
I agree. Here's the link:
subject: deploying a web app in tomcat
It's not a secret anymore!