Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deploying a web app in tomcat

 
aymane chetibi
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.

HTH.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any reasons of using stale tomcat version? We are having 5.5.x.
[ April 17, 2006: Message edited by: Adeel Ansari ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic