beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Preston (JIRA)" <>
Subject [jira] Commented: (BEEHIVE-960) Reload war problem when following tutorial
Date Wed, 05 Oct 2005 07:55:48 GMT
    [ ] 

Thomas Preston commented on BEEHIVE-960:

Thanks Rich,

I have downloaded and run this against Tomcat 5.0.28 which resolves the problem and confirms
that this is a Tomcat 5.5 problem. Maybe you should point people toward 5.0 release until
this problem is solved with 5.5+ because it is really painful to go through the tutorial without
hotdeploy (I can assure you). Also, I will make one further suggestion for usability while
stepping through the tutorial. I have added:


to my files and a deploy-war target:

    <target name="deploy-war" description="copy war to appserver.hotdeploy.path">
        <property name="archive.dir" value="${webapp.dir}/.."/>
        <copy todir="${appserver.hotdeploy.path}" 

Because copying the war into the hotdeploy path by hand every time as you step thru the tutorial
is also not fun. I think you should add the deploy-war task to...that way you can point tutorial
steppers to do: ant clean build war deploy-war


> Reload war problem when following tutorial
> ------------------------------------------
>          Key: BEEHIVE-960
>          URL:
>      Project: Beehive
>         Type: Bug
>   Components: Tutorials
>     Versions: V1Beta
>  Environment: Not Applicable
>     Reporter: Thomas Preston
>     Priority: Minor

> In the final step of create controls tutorial having done all other steps successfully,
have a problem with redeployment of the war:
> Looks like redeploy needs to undeploy and then you have some object of type shared.SharedFlow
in the session. When the redeploy occurs the shared.SharedFlow class can't be found at the
time that it needs to reload the session.  This is no big deal as you can stop and start the
server to see the new code working, but it makes the demo not very nice.  Here is the stack:
> Oct 3, 2005 4:10:09 PM org.apache.catalina.startup.HostConfig checkResources
> INFO: Undeploying context [/control_tutorial]
> Oct 3, 2005 4:10:10 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive control_tutorial.war
> Oct 3, 2005 4:10:10 PM org.apache.catalina.startup.ContextConfig applicationWebC
> onfig
> INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].
> StandardHost[localhost].StandardContext[/control_tutorial]
> Oct 3, 2005 4:10:10 PM org.apache.catalina.session.StandardManager doLoad
> SEVERE: ClassNotFoundException while loading persisted sessions: java.lang.Class
> NotFoundException: shared.SharedFlow
> java.lang.ClassNotFoundException: shared.SharedFlow
>         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
>         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
>         at java.lang.ClassLoader.loadClassInternal(
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(
>         at org.apache.catalina.util.CustomObjectInputStream.resolveClass(CustomO
>         at
> 8)
>         at
>         at
> 693)
>         at
>         at
>         at org.apache.catalina.session.StandardSession.readObject(StandardSessio
>         at org.apache.catalina.session.StandardSession.readObjectData(StandardSe
>         at org.apache.catalina.session.StandardManager.doLoad(StandardManager.ja
> va:393)

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message