• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Deploying a struts application.

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
A sonic boom would certainly ruin a giant souffle. But this tiny ad would protect it:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic