History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WW-267
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Patrick Lightbody
Reporter: Nick Lothian
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
WebWork

Problems running examples in WW2 Beta1

Created: 26/Aug/03 02:06 AM   Updated: 21/Sep/03 12:48 PM
Component/s: Examples
Affects Version/s: 2.0-beta1, 2.0-beta2
Fix Version/s: 2.0-beta2

Environment: Tomcat 4.1.24, WW-2.0-beat1


 Description  « Hide
Issue 1: Drop webwork-example.war into Tomcat. Go to /webwork-example/. Stack Trace displayed:

java.lang.RuntimeException: Fallback must be an instance of DefaultConfigurationManager
at com.opensymphony.xwork.interceptor.component.DefaultComponentManager.setFallback(DefaultComponentManager.java:50)
at com.opensymphony.webwork.lifecycle.RequestLifecycleFilter.doFilter(RequestLifecycleFilter.java:54)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
....

Checking the log shows: Session event listener threw exception
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at com.opensymphony.xwork.interceptor.component.ComponentConfiguration.loadClass(ComponentConfiguration.java:133)
at com.opensymphony.xwork.interceptor.component.ComponentConfiguration.configure(ComponentConfiguration.java:64)
at com.opensymphony.webwork.lifecycle.SessionLifecycleListener.sessionCreated(SessionLifecycleListener.java:50)
at org.apache.catalina.session.StandardSession.tellNew(StandardSession.java:402)
...

Commenting everthing out of components.xml fixes that issue.

In that configuration, the following links on the example page throw execptions. All threw ServletException (with non-useful stacktraces) unless noted:

/webwork-example/SimpleCounter.action
/webwork-example/VelocityCounter.action
/webwork-example/action.jsp
/webwork-example/bean.jsp
/webwork-example/TagTest.action
/webwork-example/VelocityTagTest.action
/webwork-example/tags.vm (this was an IOException: java.io.IOException: unable to render tag! --
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'findValue' in class com.opensymphony.xwork.util.OgnlValueStack threw exception class java.lang.NullPointerException : null)
/webwork-example/CountryTest.action
/webwork-example/IteratorTest.action
/webwork-example/showForm.action
/webwork-example/exception.action

The link /webwork-example/form2.jsp worked, but pressing the button created another stacktrace.



 All   Comments   Change History      Sort Order:
Nick Lothian - [26/Aug/03 02:08 AM ]
Some more investigation has found that many of these stacktraces seem to be caused by problems similar to:

java.lang.NoClassDefFoundError: com/cortexeb/tools/clover/S
at com.opensymphony.webwork.example.ui.SimpleAction.<clinit>(SimpleAction.java:19)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)

Is Clover a requirement in the webapp? Why?

Jason Carreira - [14/Sep/03 10:22 PM ]
This won't fix the issue if I do "ant clean dist", since clean will already have been run and won't run before example-war after the tests are run.