The problem is that Clover modifies the bytecode at compile-time to add
hooks to be able to check code coverage while running the unit tests. We
still need to look at why the Clover compiled code is getting into the
dist, though.

The compilation issue should be fixed in CVS. I deleted the BeanCounter
class locally, but forgot to remove it from CVS until after beta 1. 

Jason

> -----Original Message-----
> From: Jim Krygowski [mailto:[EMAIL PROTECTED] 
> Sent: Monday, August 25, 2003 7:30 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [OS-webwork] [JIRA-Opensymphony] Commented: 
> (WW-263) webwork-example not working with Tomcat 5.0.7
> 
> 
> Hey-
> 
> Did anyone try reverse engineering the Counter.class file 
> that comes in the example war file?  I've got a copy of JAD 
> so I figured I run it and this is what I found:
> 
> package com.opensymphony.webwork.example.counter;
> 
> import com.cortexeb.tools.clover.S;
> import com.cortexeb.tools.clover.n;
> 
> public class Counter
> {
> 
> 
> which pretty much indicates that the beta 1 example build is 
> out of step with the source.  So, this problem has nothing to 
> to with containers and everything to do with the source code.
> 
> By the way, I'm finding that the current source for the 
> example application doesn't compile.  This error crops up 
> when I run the build task:
> 
> C:\data\projects\webwork2\webwork\src\example\com\opensymphony
> \webwork\examp
> le\counter\BeanCounter.java (12:9)cannot resolve symbol 
> constructor SimpleCounter 
> (com.opensymphony.webwork.example.counter.Counter)
> C:\data\projects\webwork2\webwork\build.xml:134: Compile 
> failed; see the compiler error output for details.
> 
> jk
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] 
> Behalf Of Jason Carreira
> Sent: Friday, August 22, 2003 3:46 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [OS-webwork] [JIRA-Opensymphony] Commented: 
> (WW-263) webwork-example not working with Tomcat 5.0.7
> 
> 
> Does anyone have any idea why this dependency on Clover is showing up?
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED]
> > Sent: Friday, August 22, 2003 2:05 PM
> > To: [EMAIL PROTECTED]
> > Subject: [OS-webwork] [JIRA-Opensymphony] Commented: (WW-263) 
> > webwork-example not working with Tomcat 5.0.7
> >
> >
> > The following comment has been added to this issue:
> >
> >      Author: Jim Krygowski
> >     Created: Fri, 22 Aug 2003 1:04 PM
> >        Body:
> > Hey just noticed one more thing.
> >
> > It looks like the SessionLifecycleListener (which the 
> > RequestLifecycleListener depend upon to set the 
> > DefaultComponentManager into the session) is bombing out without 
> > throwing an exception.
> >
> > The exception happens in ComponentConfiguration.configure()
> > when it tris to execute the line:
> >
> > Class resource = loadClass(componentDefinition.className);
> >
> >
> > Because this happens before 
> > session.setAttribute(DefaultComponentManager ) is called, 
> we return to 
> > the calling context having never set the 
> DefaultComponentManager.  The 
> > value of componentDefinition.className when the exception occurs is:
> >
> > com.opensymphony.webwork.example.counter.Counter
> >
> > The following exception appears in the tomcat logs:
> >
> > ava.lang.NoClassDefFoundError: com/cortexeb/tools/clover/S
> >     at 
> com.opensymphony.webwork.example.counter.Counter.<clinit>(Coun
> > ter.java:14)
> >     at java.lang.Class.forName0(Native Method)
> >
> >
> > Which indicates to me that the clover.jar is required by the
> > example app but not provided anywhere on the classpath.  Once
> > I dropped clover-1.2.jar into lib the application started.
> >
> >
> >
> >
> >
> > 
> ---------------------------------------------------------------------
> > View the issue:
> >
> >   http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-263
> >
> >
> > Here is an overview of the issue:
> > 
> ---------------------------------------------------------------------
> >         Key: WW-263
> >     Summary: webwork-example not working with Tomcat 5.0.7
> >        Type: Bug
> >
> >      Status: Assigned
> >    Priority: Major
> >
> >     Project: WebWork
> >  Components:
> >              Component Management
> >    Fix Fors:
> >              2.0
> >    Versions:
> >              2.0
> >
> >    Assignee: Patrick Lightbody
> >    Reporter: Marc Lehmann
> >
> >     Created: Tue, 19 Aug 2003 8:32 AM
> >     Updated: Thu, 21 Aug 2003 9:46 PM
> > Environment: Windows 2000, J2SDK 1.4.2, Tomcat 5.0.7, 
> webwork-2.0-beta
> >
> > Description:
> > The following exception is thrown on first start-up: (Looks
> > like ww-166 and xw-37. However, this is no restart issue.)
> >
> > java.lang.RuntimeException: Fallback must be an instance of
> > DefaultConfigurationManager
> >     at
> > com.opensymphony.xwork.interceptor.component.DefaultComponentM
> > anager.setFallback(DefaultComponentManager.java:50)
> >     at
> > com.opensymphony.webwork.lifecycle.RequestLifecycleFilter.doFi
> > lter(RequestLifecycleFilter.java:54)
> >     at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> > er(ApplicationFilterChain.java:235)
> >     at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> > cationFilterChain.java:206)
> >     at
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> > rapperValve.java:254)
> >     at
> > org.apache.catalina.core.StandardValveContext.invokeNext(Stand
> > ardValveContext.java:151)
> >     at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:564)
> >     at
> > org.apache.catalina.core.StandardContextValve.invokeInternal(S
> > tandardContextValve.java:256)
> >     at
> > org.apache.catalina.core.StandardContextValve.invoke(StandardC
> > ontextValve.java:210)
> >     at
> > org.apache.catalina.core.StandardValveContext.invokeNext(Stand
> > ardValveContext.java:151)
> >     at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:564)
> >     at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> > Valve.java:190)
> >     at
> > org.apache.catalina.core.StandardValveContext.invokeNext(Stand
> > ardValveContext.java:151)
> >     at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> > Valve.java:175)
> >     at
> > org.apache.catalina.core.StandardValveContext.invokeNext(Stand
> > ardValveContext.java:149)
> >     at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:564)
> >     at
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> > gineValve.java:156)
> >     at
> > org.apache.catalina.core.StandardValveContext.invokeNext(Stand
> > ardValveContext.java:151)
> >     at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:564)
> >     at
> > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
> >     at
> > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.
> > java:207)
> >     at
> > org.apache.coyote.http11.Http11Processor.process(Http11Process
> > or.java:647)
> >     at
> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle
> > r.processConnection(Http11Protocol.java:489)
> >     at
> > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
> > nt.java:575)
> >     at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > ThreadPool.java:649)
> >     at java.lang.Thread.run(Unknown Source)
> >
> >
> > 
> ---------------------------------------------------------------------
> > JIRA INFORMATION:
> > This message is automatically generated by JIRA.
> >
> > If you think it was sent incorrectly contact one of the
> > administrators:
> >    http://jira.opensymphony.com/secure/Administrators.jspa
> >
> > If you want more information on JIRA, or have a bug to report see:
> >    http://www.atlassian.com/software/jira
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: VM Ware
> > With VMware you can run multiple operating systems on a
> > single machine. WITHOUT REBOOTING! Mix Linux / Windows /
> > Novell virtual machines at the same time. Free trial click
> > here:http://www.vmware.com/wl/offer/358/0
> > _______________________________________________
> > Opensymphony-webwork mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> >
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: VM Ware
> With VMware you can run multiple operating systems on a 
> single machine.
> WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
> at the same time. Free trial click 
> here:http://www.vmware.com/wl/offer/358/0
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 
> 
> -----------------------------------------
> This email, including any attachments, is for the designated 
> recipient(s) only and may contain confidential, proprietary, 
> and/or legally privileged information.  If you are not a 
> designated recipient, or have received it in error, please 
> notify the sender and destroy it and all attachments and 
> copies immediately, without distributing, disclosing, or 
> using it in any manner.
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: VM Ware
> With VMware you can run multiple operating systems on a 
> single machine.
> WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
> at the same time. Free trial click 
> here:http://www.vmware.com/wl/offer/358/0
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to