struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Subbaraju P <subbaraju...@gmail.com>
Subject Re: Struts2 NameSpace Error.
Date Sat, 08 Feb 2014 07:10:14 GMT
Remove the / in the action name it is not required.
On Feb 7, 2014 2:05 AM, "Ramana" <puram.ramana@gmail.com> wrote:

> Hi,
>
> Please help on this issue.. I am learning Struts2 with simple class. I am
> using Struts2 2.3.16 on Java Runtime 1.6. I am getting the below Error. I
> tried different ways by looking into google and you tube.. i am getting the
> same problem. i am trying this issue for past couple of days but i couldn't
> succeed.  i really appreciate your help on this issue.
>
>
> HTTP Status 404 - There is no Action mapped for namespace [/] and action
> name [getTutorial] associated with context path [/Struts2Demo].
>
> type Status report
>
> message There is no Action mapped for namespace [/] and action name
> [getTutorial] associated with context path [/Struts2Demo].
>
> description The requested resource is not available.
>
>
> Console Data
>
> Feb 6, 2014 8:01:23 PM org.apache.catalina.core.AprLifecycleListener init
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path:
> .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
> Feb 6, 2014 8:01:23 PM org.apache.tomcat.util.digester.SetPropertiesRule
> begin
> WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
> property 'source' to 'org.eclipse.jst.jee.server:Struts2Demo' did not find
> a matching property.
> Feb 6, 2014 8:01:24 PM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["http-bio-8080"]
> Feb 6, 2014 8:01:24 PM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
> Feb 6, 2014 8:01:24 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1878 ms
> Feb 6, 2014 8:01:24 PM org.apache.catalina.core.StandardService
> startInternal
> INFO: Starting service Catalina
> Feb 6, 2014 8:01:24 PM org.apache.catalina.core.StandardEngine
> startInternal
> INFO: Starting Servlet Engine: Apache Tomcat/7.0.47
> Feb 6, 2014 8:01:26 PM org.apache.tomcat.websocket.server.WsSci onStartup
> INFO: JSR 356 WebSocket (Java WebSocket 1.0) support is not available when
> running on Java 6. To suppress this message, run Tomcat on Java 7, remove
> the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocketJARs to the
> tomcat.util.scan.DefaultJarScanner.jarsToSkip property in
> $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7
> WebSocket API will be available.
> Feb 6, 2014 8:01:27 PM
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
> INFO: Parsing configuration file [struts-default.xml]
> Feb 6, 2014 8:01:27 PM
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
> INFO: Unable to locate configuration files of the name struts-plugin.xml,
> skipping
> Feb 6, 2014 8:01:27 PM
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
> INFO: Parsing configuration file [struts-plugin.xml]
> Feb 6, 2014 8:01:27 PM
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
> INFO: Unable to locate configuration files of the name struts.xml, skipping
> Feb 6, 2014 8:01:27 PM
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
> INFO: Parsing configuration file [struts.xml]
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.factory.ActionFactory)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.factory.ResultFactory)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.factory.ConverterFactory)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.factory.InterceptorFactory)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.factory.ValidatorFactory)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.FileManagerFactory)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.conversion.impl.XWorkConverter)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.conversion.impl.CollectionConverter)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.conversion.impl.ArrayConverter)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.conversion.impl.DateConverter)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.conversion.impl.NumberConverter)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.conversion.impl.StringConverter)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.conversion.ConversionPropertiesProcessor)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.conversion.ConversionFileProcessor)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.conversion.ConversionAnnotationProcessor)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.conversion.TypeConverterCreator)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.conversion.TypeConverterHolder)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for (com.opensymphony.xwork2.LocaleProvider)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.ActionProxyFactory)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (org.apache.struts2.dispatcher.mapper.ActionMapper)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (jakarta) for
> (org.apache.struts2.dispatcher.multipart.MultiPartRequest)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (org.apache.struts2.views.freemarker.FreemarkerManager)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (org.apache.struts2.components.UrlRenderer)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.validator.ActionValidatorManager)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.util.ValueStackFactory)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.util.reflection.ReflectionProvider)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.util.PatternMatcher)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (org.apache.struts2.dispatcher.StaticContentLoader)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for
> (com.opensymphony.xwork2.UnknownHandlerManager)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper)
> Feb 6, 2014 8:01:27 PM
> org.apache.struts2.config.AbstractBeanSelectionProvider info
> INFO: Choosing bean (struts) for (com.opensymphony.xwork2.util.TextParser)
> Feb 6, 2014 8:01:27 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory
> /Users/Ramana/Downloads/apache-tomcat-7.0.47/webapps/docs
> Feb 6, 2014 8:01:27 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory
> /Users/Ramana/Downloads/apache-tomcat-7.0.47/webapps/examples
> Feb 6, 2014 8:01:28 PM org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener: contextInitialized()
> Feb 6, 2014 8:01:28 PM org.apache.catalina.core.ApplicationContext log
> INFO: SessionListener: contextInitialized()
> Feb 6, 2014 8:01:28 PM org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener:
> attributeAdded('org.apache.jasper.compiler.TldLocationsCache',
> 'org.apache.jasper.compiler.TldLocationsCache@7c4e7958')
> Feb 6, 2014 8:01:28 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory
> /Users/Ramana/Downloads/apache-tomcat-7.0.47/webapps/host-manager
> Feb 6, 2014 8:01:28 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory
> /Users/Ramana/Downloads/apache-tomcat-7.0.47/webapps/manager
> Feb 6, 2014 8:01:28 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory
> /Users/Ramana/Downloads/apache-tomcat-7.0.47/webapps/ROOT
> Feb 6, 2014 8:01:28 PM org.apache.coyote.AbstractProtocol start
> INFO: Starting ProtocolHandler ["http-bio-8080"]
> Feb 6, 2014 8:01:28 PM org.apache.coyote.AbstractProtocol start
> INFO: Starting ProtocolHandler ["ajp-bio-8009"]
> Feb 6, 2014 8:01:28 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 4255 ms
> Feb 6, 2014 8:01:49 PM org.apache.struts2.dispatcher.Dispatcher warn
> WARNING: Could not find action or result: /Struts2Demo/getTutorial.action
> There is no Action mapped for namespace [/] and action name [getTutorial]
> associated with context path [/Struts2Demo]. - [unknown location]
>         at
> com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185)
>         at
> org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
>         at
> org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:37)
>         at
> com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
>         at
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:552)
>         at
> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
>         at
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
>         at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
>         at
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>         at java.lang.Thread.run(Thread.java:695)
>
>
> Struts2 XML
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE struts PUBLIC
> "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
> "http://struts.apache.org/dtds/struts-2.3.dtd">
>
> <struts>
>         <constant name="struts.devMode" value="true" />
>         <package name="default" namespace="/" extends="struts-default">
>                 <action name="getTutorial"
> class="com.aoins.action.TutorialAction">
>                         <result name="success">pages/Success.jsp</result>
>                 </action>
>         </package>
>
> </struts>
>
>
> WEB XML
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <web-app id="WebApp_9" version="2.4" 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">
>
>     <display-name>Struts2Demo</display-name>
>
>     <filter>
>         <filter-name>struts2</filter-name>
>
> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
>     </filter>
>
>     <filter-mapping>
>         <filter-name>struts2</filter-name>
>         <url-pattern>/*</url-pattern>
>     </filter-mapping>
>
>     <welcome-file-list>
>         <welcome-file>index.jsp</welcome-file>
>     </welcome-file-list>
>
> </web-app>
>
>
> JARS
>
> /Users/Ramana/Downloads/struts-2.3.16/lib/asm-3.3.jar
> /Users/Ramana/Downloads/struts-2.3.16/lib/asm-commons-3.3.jar
> /Users/Ramana/Downloads/struts-2.3.16/lib/asm-tree-3.3.jar
> /Users/Ramana/Downloads/struts-2.3.16/lib/commons-fileupload-1.3.jar
> /Users/Ramana/Downloads/struts-2.3.16/lib/commons-io-2.2.jar
> /Users/Ramana/Downloads/struts-2.3.16/lib/commons-lang3-3.1.jar
> /Users/Ramana/Downloads/struts-2.3.16/lib/commons-logging-1.1.3.jar
> /Users/Ramana/Downloads/struts-2.3.16/lib/freemarker-2.3.19.jar
> /Users/Ramana/Downloads/struts-2.3.16/lib/javassist-3.11.0.GA.jar
> /Users/Ramana/Downloads/struts-2.3.16/lib/ognl-3.0.6.jar
> /Users/Ramana/Downloads/struts-2.3.16/lib/struts2-core-2.3.16.jar
> /Users/Ramana/Downloads/struts-2.3.16/lib/xwork-core-2.3.16.jar
> /Users/Ramana/Downloads/struts-2.3.16/lib/commons-lang-2.4.jar

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