struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aram Mkhitaryan" <aram.mkhitar...@googlemail.com>
Subject Re: can't find struts-tags.tld
Date Sun, 04 Mar 2007 12:42:18 GMT
Hi,

Thanks for the response, but
Actually I can't test it since I get a huge amount of errors

---------------
INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
04.03.2007 16:36:26 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
04.03.2007 16:36:27
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-default.xml]
04.03.2007 16:36:27
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-plugin.xml]
04.03.2007 16:36:27
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts.xml]
04.03.2007 16:36:27 org.apache.struts2.config.Settings getLocale
WARNING: Settings: Could not parse struts.locale setting, substituting
default VM locale
04.03.2007 16:36:27
com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory<clinit>
INFO: Detected GenericsObjectTypeDeterminer, initializing it...
04.03.2007 16:36:27 com.opensymphony.xwork2.util.XWorkConverter getInstance
INFO: Detected AnnotationXWorkConverter, initializing it...
04.03.2007 16:36:28
com.opensymphony.xwork2.config.providers.InterceptorBuilderconstructInterceptorReference
WARNING: Unable to load config class
org.apache.struts2.interceptor.debugging.DebuggingInterceptor at interceptor
-
jar:file:/D:/Eclipse31/3.2.1.struts2.workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/FirstStruts2/WEB-INF/lib/struts2-
core-2.0.6.jar!/struts-default.xml:69:115 probably due to a missing jar,
which might be fine if you never plan to use the debugging interceptor
04.03.2007 16:36:28
com.opensymphony.xwork2.config.providers.InterceptorBuilderconstructInterceptorReference
SEVERE: Actual exception
Caught Exception while registering Interceptor class
org.apache.struts2.interceptor.debugging.DebuggingInterceptor - interceptor
-
jar:file:/D:/Eclipse31/3.2.1.struts2.workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/FirstStruts2/WEB-INF/lib/struts2-
core-2.0.6.jar!/struts-default.xml:69:115
    at org.apache.struts2.impl.StrutsObjectFactory.buildInterceptor(
StrutsObjectFactory.java:78)
    at
com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference
(InterceptorBuilder.java:57)
    at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference
(XmlConfigurationProvider.java:864)
    at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStack
(XmlConfigurationProvider.java:699)
    at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStacks
(XmlConfigurationProvider.java:712)
    at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptors
(XmlConfigurationProvider.java:733)
    at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage
(XmlConfigurationProvider.java:365)
    at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages
(XmlConfigurationProvider.java:239)
    at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages
(StrutsXmlConfigurationProvider.java:111)
    at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(
DefaultConfiguration.java:152)
    at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
ConfigurationManager.java:52)
    at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(
Dispatcher.java:398)
    at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
    at org.apache.struts2.dispatcher.FilterDispatcher.init(
FilterDispatcher.java:201)
    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(
ApplicationFilterConfig.java:225)
    at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(
ApplicationFilterConfig.java:308)
    at org.apache.catalina.core.ApplicationFilterConfig.<init>(
ApplicationFilterConfig.java:79)
    at org.apache.catalina.core.StandardContext.filterStart(
StandardContext.java:3540)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4110)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java
:442)
    at org.apache.catalina.core.StandardService.start(StandardService.java
:450)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java
:683)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: com.opensymphony.xwork2.inject.DependencyException:
com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No
mapping found for dependency [type=
org.apache.struts2.views.freemarker.FreemarkerManager, name='default'] in
public void
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.setFreemarkerManager
(org.apache.struts2.views.freemarker.FreemarkerManager).
    at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(
ContainerImpl.java:157)
    at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMethods(
ContainerImpl.java:126)
    at com.opensymphony.xwork2.inject.ContainerImpl.addInjectors(
ContainerImpl.java:103)
    at com.opensymphony.xwork2.inject.ContainerImpl$1.create(
ContainerImpl.java:84)
    at com.opensymphony.xwork2.inject.ContainerImpl$1.create(
ContainerImpl.java:82)
    at
com.opensymphony.xwork2.inject.util.ReferenceCache$CallableCreate.call(
ReferenceCache.java:155)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
    at java.util.concurrent.FutureTask.run(FutureTask.java:123)
    at com.opensymphony.xwork2.inject.util.ReferenceCache.internalCreate(
ReferenceCache.java:81)
    at com.opensymphony.xwork2.inject.util.ReferenceCache.get(
ReferenceCache.java:121)
    at com.opensymphony.xwork2.inject.ContainerImpl.inject(
ContainerImpl.java:452)
    at com.opensymphony.xwork2.inject.ContainerImpl$6.call(
ContainerImpl.java:492)
    at com.opensymphony.xwork2.inject.ContainerImpl$6.call(
ContainerImpl.java:491)
    at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(
ContainerImpl.java:542)
    at com.opensymphony.xwork2.inject.ContainerImpl.inject(
ContainerImpl.java:490)
    at com.opensymphony.xwork2.ObjectFactory.injectInternalBeans(
ObjectFactory.java:129)
    at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java
:154)
    at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java
:141)
    at org.apache.struts2.impl.StrutsObjectFactory.buildInterceptor(
StrutsObjectFactory.java:53)
    ... 31 more
Caused by:
com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No
mapping found for dependency [type=
org.apache.struts2.views.freemarker.FreemarkerManager, name='default'] in
public void
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.setFreemarkerManager
(org.apache.struts2.views.freemarker.FreemarkerManager).
    at com.opensymphony.xwork2.inject.ContainerImpl.createParameterInjector(
ContainerImpl.java:239)
    at com.opensymphony.xwork2.inject.ContainerImpl.getParametersInjectors(
ContainerImpl.java:229)
    at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.<init>(
ContainerImpl.java:282)
    at com.opensymphony.xwork2.inject.ContainerImpl$3.create(
ContainerImpl.java:130)
    at com.opensymphony.xwork2.inject.ContainerImpl$3.create(
ContainerImpl.java:128)
    at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(
ContainerImpl.java:154)
    ... 49 more
04.03.2007 16:36:28 com.opensymphony.xwork2.util.ResolverUtil findInPackage
INFO: Scanning for classes in
[/D:/Eclipse31/3.2.1.struts2.workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/FirstStruts2/WEB-INF/classes/first/struts2/actions/]
matching criteria:
org.apache.struts2.config.ClasspathConfigurationProvider$1@2200d5
04.03.2007 16:36:28
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-default.xml]
04.03.2007 16:36:28
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-plugin.xml]
04.03.2007 16:36:28
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts.xml]
04.03.2007 16:36:28 org.apache.struts2.config.Settings getLocale
WARNING: Settings: Could not parse struts.locale setting, substituting
default VM locale
04.03.2007 16:36:28
com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory<clinit>
INFO: Detected GenericsObjectTypeDeterminer, initializing it...
04.03.2007 16:36:28 com.opensymphony.xwork2.util.XWorkConverter getInstance
INFO: Detected AnnotationXWorkConverter, initializing it...
04.03.2007 16:36:29
com.opensymphony.xwork2.config.providers.InterceptorBuilderconstructInterceptorReference
WARNING: Unable to load config class
org.apache.struts2.interceptor.debugging.DebuggingInterceptor at interceptor
-
jar:file:/D:/Eclipse31/3.2.1.struts2.workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/FirstStruts2/WEB-INF/lib/struts2-
core-2.0.6.jar!/struts-default.xml:69:115 probably due to a missing jar,
which might be fine if you never plan to use the debugging interceptor
04.03.2007 16:36:29
com.opensymphony.xwork2.config.providers.InterceptorBuilderconstructInterceptorReference
SEVERE: Actual exception
Caught Exception while registering Interceptor class
org.apache.struts2.interceptor.debugging.DebuggingInterceptor - interceptor
-
jar:file:/D:/Eclipse31/3.2.1.struts2.workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/FirstStruts2/WEB-INF/lib/struts2-
core-2.0.6.jar!/struts-default.xml:69:115
    at org.apache.struts2.impl.StrutsObjectFactory.buildInterceptor(
StrutsObjectFactory.java:78)
    at
com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference
(InterceptorBuilder.java:57)
    at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference
(XmlConfigurationProvider.java:864)
    at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStack
(XmlConfigurationProvider.java:699)
    at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStacks
(XmlConfigurationProvider.java:712)
    at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptors
(XmlConfigurationProvider.java:733)
    at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage
(XmlConfigurationProvider.java:365)
    at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages
(XmlConfigurationProvider.java:239)
    at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages
(StrutsXmlConfigurationProvider.java:111)
    at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(
DefaultConfiguration.java:152)
    at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
ConfigurationManager.java:52)
    at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(
Dispatcher.java:398)
    at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
    at org.apache.struts2.dispatcher.FilterDispatcher.init(
FilterDispatcher.java:201)
    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(
ApplicationFilterConfig.java:225)
    at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(
ApplicationFilterConfig.java:308)
    at org.apache.catalina.core.ApplicationFilterConfig.<init>(
ApplicationFilterConfig.java:79)
    at org.apache.catalina.core.StandardContext.filterStart(
StandardContext.java:3540)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4110)
    at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:759)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java
:739)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
    at org.apache.catalina.startup.HostConfig.deployDirectory(
HostConfig.java:894)
    at org.apache.catalina.startup.HostConfig.deployDirectories(
HostConfig.java:857)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java
:475)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java
:442)
    at org.apache.catalina.core.StandardService.start(StandardService.java
:450)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java
:683)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: com.opensymphony.xwork2.inject.DependencyException:
com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No
mapping found for dependency [type=
org.apache.struts2.views.freemarker.FreemarkerManager, name='default'] in
public void
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.setFreemarkerManager
(org.apache.struts2.views.freemarker.FreemarkerManager).
    at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(
ContainerImpl.java:157)
    at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMethods(
ContainerImpl.java:126)
    at com.opensymphony.xwork2.inject.ContainerImpl.addInjectors(
ContainerImpl.java:103)
    at com.opensymphony.xwork2.inject.ContainerImpl$1.create(
ContainerImpl.java:84)
    at com.opensymphony.xwork2.inject.ContainerImpl$1.create(
ContainerImpl.java:82)
    at
com.opensymphony.xwork2.inject.util.ReferenceCache$CallableCreate.call(
ReferenceCache.java:155)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
    at java.util.concurrent.FutureTask.run(FutureTask.java:123)
    at com.opensymphony.xwork2.inject.util.ReferenceCache.internalCreate(
ReferenceCache.java:81)
    at com.opensymphony.xwork2.inject.util.ReferenceCache.get(
ReferenceCache.java:121)
    at com.opensymphony.xwork2.inject.ContainerImpl.inject(
ContainerImpl.java:452)
    at com.opensymphony.xwork2.inject.ContainerImpl$6.call(
ContainerImpl.java:492)
    at com.opensymphony.xwork2.inject.ContainerImpl$6.call(
ContainerImpl.java:491)
    at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(
ContainerImpl.java:542)
    at com.opensymphony.xwork2.inject.ContainerImpl.inject(
ContainerImpl.java:490)
    at com.opensymphony.xwork2.ObjectFactory.injectInternalBeans(
ObjectFactory.java:129)
    at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java
:154)
    at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java
:141)
    at org.apache.struts2.impl.StrutsObjectFactory.buildInterceptor(
StrutsObjectFactory.java:53)
    ... 40 more
Caused by:
com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No
mapping found for dependency [type=
org.apache.struts2.views.freemarker.FreemarkerManager, name='default'] in
public void
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.setFreemarkerManager
(org.apache.struts2.views.freemarker.FreemarkerManager).
    at com.opensymphony.xwork2.inject.ContainerImpl.createParameterInjector(
ContainerImpl.java:239)
    at com.opensymphony.xwork2.inject.ContainerImpl.getParametersInjectors(
ContainerImpl.java:229)
    at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.<init>(
ContainerImpl.java:282)
    at com.opensymphony.xwork2.inject.ContainerImpl$3.create(
ContainerImpl.java:130)
    at com.opensymphony.xwork2.inject.ContainerImpl$3.create(
ContainerImpl.java:128)
    at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(
ContainerImpl.java:154)
    ... 58 more
04.03.2007 16:36:29 com.opensymphony.xwork2.util.ResolverUtil findInPackage
INFO: Scanning for classes in
[/D:/Eclipse31/3.2.1.struts2.workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/FirstStruts2/WEB-INF/classes/first/struts2/actions/]
matching criteria:
org.apache.struts2.config.ClasspathConfigurationProvider$1@9446e4
04.03.2007 16:36:29 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
04.03.2007 16:36:29 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
04.03.2007 16:36:29 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47  config=null
04.03.2007 16:36:29 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
04.03.2007 16:36:29 org.apache.catalina.startup.Catalina start
INFO: Server startup in 2641 ms
04.03.2007 16:36:32 org.apache.struts2.dispatcher.Dispatcher serviceAction
SEVERE: Could not find action or result
There is no Action mapped for namespace / and action name gogo. - [unknown
location]
    at com.opensymphony.xwork2.DefaultActionProxy.prepare(
DefaultActionProxy.java:186)
    at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(
StrutsActionProxyFactory.java:41)
----------------------------------------------------------------------------------------

Can somebody tell me what is the problem?

Thank you in advance,
Aram

On 3/4/07, Nuwan Chandrasoma <mymailnot@gmail.com> wrote:
>
> hi,
>
> maks sure you have the struts2-core-2.0.6.jar  in your lib folder..
>
> and just add <%@ taglib prefix="s" uri="/struts-tags" %> in your jsp. that
> is all what you need.
>
> no need to add any entry in web.xml.
>
> are you using
>
> <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
>   version="2.4">
>
> in you web.xml header.?
>
> Thanks,
>
> Nuwan
>
>
>
> ----- Original Message -----
> From: "Aram Mkhitaryan" <aram.mkhitaryan@googlemail.com>
> To: <user@struts.apache.org>
> Sent: Sunday, March 04, 2007 11:14 AM
> Subject: can't find struts-tags.tld
>
>
> > Hi,
> >
> > in docs\docs\webxml.html it is described that
> >
> > ---------
> > If, for some reason, a taglib configuration is needed within web.xml,
> copy
> > struts2-core/core/src/main/resources/META-INF/struts-tags.tld to the
> > WEB-INF
> > directory as struts-tags.tld. Then, add a taglib element to the web.xml.
> > ----------
> >
> > but there is no struts-tags.tld in any distribution for struts-2.0.6 (
> > struts-2.0.6-all.zip, struts-2.0.6-apps.zip, struts-2.0.6-docs.zip,
> > struts-2.0.6-j4.zip, struts-2.0.6-src.zip)
> >
> > Can someone help me? What is wrong: the distribution or ... ???
> >
> > Thank you in advance,
> > Aram
> > ________________________________
> > Aram Mkhitaryan
> >
> > 52, 25 Lvovyan, Yerevan 375000, Armenia
> >
> > Mobile: +374 91 518456
> > E-mail: aram.mkhitaryan@googlemail.com
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message