• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts-config.xml giving "cannot resolve class/symbol" errors

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am running webwork 1st program

HelloWorld.java
hello.jsp
helloWorld.action.

I need web.xml,xwork.xml,webwork.properties. But i have a doubt do i need struts-config.xml also!!! Please help me... The are saying "unable to locate struts-plugins.xml"..

What should i do to resolve it ...

I am using IntelliJ IDEA... Please Help me...
 
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Posting the full stacktrace of the error message might help.
 
monika se
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
stack trace on browser while running helloWorld.action:

HTTP Status 404 - There is no Action mapped for name space / and action name hello World.

type Status report

message There is no Action mapped for name space / and action name hello World.

description The requested resource (There is no Action mapped for name space / and action name hello World.) is not available.
Apache Tomcat/6.0.32


One thing is there, my struts-config.xml file is not proper... cannot resolve class DefectsListForm etc or cannot resolve symbol etc.


I know something is missing ..please tell me what should i include in lib or otherwise configure struts-config.xml ..

moreover in IntelliJIDEA while debugging hello.jsp i gets this stack trace as::
cmd /c ""C:\Program Files\Java\jdk1.6.0_20\bin\java" "-Dcatalina.base=C:\Documents and Settings\MBurnwal\.IntelliJIdea90\system\tomcat\hello_jsp_Monika3d8837014" "-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 6.0" "-Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp" -Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:1959,suspend=y,server=n -jar "C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\bootstrap.jar" start"
Connected to the target VM, address: '127.0.0.1:1959', transport: 'socket'
Mar 29, 2011 9:59:12 AM 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: C:\Program Files\Java\jdk1.6.0_20\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32;;;C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin;C:\Program Files\Java\jdk1.6.0_20\bin;;c:\documents and settings\mburnwal\my documents\downloads\intellij idea 9.0.2\jre\jre\bin
Mar 29, 2011 9:59:13 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 29, 2011 9:59:13 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1109 ms
Mar 29, 2011 9:59:13 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 29, 2011 9:59:13 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
Mar 29, 2011 9:59:13 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml
Mar 29, 2011 9:59:14 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts-default.xml]
Mar 29, 2011 9:59:14 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Unable to locate configuration files of the name struts-plugin.xml, skipping
Mar 29, 2011 9:59:14 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts-plugin.xml]
Mar 29, 2011 9:59:14 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts.xml]
Mar 29, 2011 9:59:15 AM org.apache.struts.action.ActionServlet initChain
INFO: Loading chain catalog from jar:file:/C:/Documents%20and%20Settings/MBurnwal/IdeaProjects/Monika/out/artifacts/Monika_war_exploded/WEB-INF/lib/struts-core.jar!/org/apache/struts/chain/chain-config.xml
Mar 29, 2011 9:59:16 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Mar 29, 2011 9:59:16 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Mar 29, 2011 9:59:16 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Mar 29, 2011 9:59:16 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Mar 29, 2011 9:59:16 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory host-manager
Mar 29, 2011 9:59:17 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
Mar 29, 2011 9:59:17 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory webapp
Mar 29, 2011 9:59:17 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 29, 2011 9:59:17 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 29, 2011 9:59:17 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/62 config=null
Mar 29, 2011 9:59:17 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4103 ms
Connected to server
Mar 29, 2011 9:59:38 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
WARNING: Could not find action or result
There is no Action mapped for namespace / and action name helloWorld. - [unknown location]
at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:178)
at org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)
at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:47)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:478)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
 
monika se
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
please note "INFO: Unable to locate configuration files of the name struts-plugin.xml, skipping
Mar 29, 2011 9:59:14 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info" in above..
for above stack trace,my struts-config.xml is:


<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">

<struts-config>

</struts-config>

please elaborate what to do.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic