error in app.tld using struts frame work
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Manoj_Menon
Posted On:   Monday, June 2, 2003 11:00 PM

Hi, i am a bigener in struts.I am using JBoss as application server.when i am running my struts example i am getting this error 17:37:10,487 INFO [Engine] WebappLoader[/SimpleStruts]: Deploy JAR /WEB-INF/lib /struts.jar to C:jboss-3.0.7_jakarta-tomcat-4.1.24serverdefaultdeploySimple Struts.warWEB-INFlibstruts.jar 17:37:11,034 ERROR [Digester] Parse Error at line 11 column -1: Element "taglib" requires additional elements. org.xml.sax.SAXParseException: Element "taglib" requires additional elements. at org.apache.crimson.parser.Parser2.error(Parser2.java:3160) at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.done(Val    More>>

Hi,

i am a bigener in struts.I am using JBoss as application server.when i am running my struts example i am getting this error



			

17:37:10,487 INFO [Engine] WebappLoader[/SimpleStruts]: Deploy JAR /WEB-INF/lib
/struts.jar to C:jboss-3.0.7_jakarta-tomcat-4.1.24serverdefaultdeploySimple
Struts.warWEB-INFlibstruts.jar
17:37:11,034 ERROR [Digester] Parse Error at line 11 column -1: Element "taglib" requires additional elements.
org.xml.sax.SAXParseException: Element "taglib" requires additional elements.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)
at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.done(Val
idatingParser.java:361)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1519)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)

at org.apache.commons.digester.Digester.parse(Digester.java:1562)
at org.apache.catalina.startup.ContextConfig.tldScanStream(ContextConfig
.java:977)
at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.ja
va:1006)
at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:
870)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:64
7)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:243)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
567)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:821)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)

at org.jboss.web.catalina.EmbeddedCatalinaService41.createWebContext(Emb
eddedCatalinaService41.java:432)
at org.jboss.web.catalina.EmbeddedCatalinaService41.performDeploy(Embedd
edCatalinaService41.java:306)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:30
1)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:435)
at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDe
ploymentScanner.java:656)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:507)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
bstractDeploymentScanner.java:266)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
65)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:1003)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:413)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy2.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:232)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:324)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
at org.jboss.Main.boot(Main.java:148)
at org.jboss.Main$1.run(Main.java:381)
at java.lang.Thread.run(Thread.java:536)


============================================================


I feel that error is releated to app.tld .
When i am running the jboss the exception is throwing from "app.tld"
i am giving my app.tld file here

<?xml version="1.0" encoding="ISO-8859-1" ?>

PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglib_1_1.dtd">


1.0
1.1
utility

Empty tag library template




Pls giude me

thanks in advance

manoj

   <<Less

Re: error in app.tld using struts frame work

Posted By:   Bodo_Stockschlaeder  
Posted On:   Monday, June 2, 2003 11:25 PM

Hi manoy,


it seems you have to put additional tags in your app.tld. In your taglib there is no tag-declaration.


Put any tag-declaration between the info-Tag and the end-tag /taglib in your taglib like this:




yourtag

com.yourappl.taglib



width

true

true






About | Sitemap | Contact