Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deploying a struts application.

 
jagan raja
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moderator,

If this topic doesn't belong here,please forward it to the necessary one.

Hi All,

I am trying to create a struts application manually.

I have created all the necessary folders - jsp, src & WEB-INF-(lib,classes).

I have compiled my java files. I have the .tld files and necessary jar files in my lib folder.

My web.xml and struts-config.xml are in WEB-INF.

web.xml




When i deploy my application I get the following error,

DEPLOYMENTS IN ERROR:
Deployment "vfszip:/C:/Documents%20and%20Settings/604848923/My%20Documents/Dow
nloads/jboss-5.0.1.GA/server/default/deploy/MyStruts.war/" is in error due to th
e following reason(s): org.xml.sax.SAXException: cvc-complex-type.2.4.a: Invalid
content was found starting with element 'taglib'. One of '{"http://java.sun.com
/xml/ns/j2ee":description, "http://java.sun.com/xml/ns/j2ee":display-name, "http
://java.sun.com/xml/ns/j2ee":icon, "http://java.sun.com/xml/ns/j2ee":distributab
le, "http://java.sun.com/xml/ns/j2ee":context-param, "http://java.sun.com/xml/ns
/j2ee":filter, "http://java.sun.com/xml/ns/j2ee":filter-mapping, "http://java.su
n.com/xml/ns/j2ee":listener, "http://java.sun.com/xml/ns/j2ee":servlet, "http://
java.sun.com/xml/ns/j2ee":servlet-mapping, "http://java.sun.com/xml/ns/j2ee":ses
sion-config, "http://java.sun.com/xml/ns/j2ee":mime-mapping, "http://java.sun.co
m/xml/ns/j2ee":welcome-file-list, "http://java.sun.com/xml/ns/j2ee":error-page,
"http://java.sun.com/xml/ns/j2ee":jsp-config, "http://java.sun.com/xml/ns/j2ee":
security-constraint, "http://java.sun.com/xml/ns/j2ee":login-config, "http://jav
a.sun.com/xml/ns/j2ee":security-role, "http://java.sun.com/xml/ns/j2ee":env-entr
y, "http://java.sun.com/xml/ns/j2ee":ejb-ref, "http://java.sun.com/xml/ns/j2ee":
ejb-local-ref, "http://java.sun.com/xml/ns/j2ee":service-ref, "http://java.sun.c
om/xml/ns/j2ee":resource-ref, "http://java.sun.com/xml/ns/j2ee":resource-env-ref
, "http://java.sun.com/xml/ns/j2ee":message-destination-ref, "http://java.sun.co
m/xml/ns/j2ee":message-destination, "http://java.sun.com/xml/ns/j2ee":locale-enc
oding-mapping-list}' is expected. @ vfszip:/C:/Documents%20and%20Settings/604848
923/My%20Documents/Downloads/jboss-5.0.1.GA/server/default/deploy/MyStruts.war/W
EB-INF/web.xml[32,10]


Can any one tell me where I might hav gone wrong
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you defining the taglibs in web.xml? This hasn't been necessary for some time now.
 
jagan raja
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,

Without defining the taglibs in web.xml how could I use them in my .jsp pages.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It hasn't been required to define taglibs in the web.xml since like servlets 2.3 or 2.4.
 
Hrishikesh Maluskar
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First deploy a very simple version say "Hello World" , then do other things using taglibs. I am sure it will run.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic