You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by FWC Stylist Hong Wong <ho...@hotmail.com> on 2001/06/18 17:01:08 UTC

IncompatibleClassChangeError Exception when Screen Setting

Hi

I'm trying to set a new screen or screen template [I wasn't sure which one 
to use] but am getting a 'java.lang.IncompatibleClassChangeError' exception 
thrown.

[Mon Jun 18 15:52:34 BST 2001] -- ERROR --
	Exception:  java.lang.IncompatibleClassChangeError
	Stack Trace follows:
	java.lang.IncompatibleClassChangeError
	at 
com.fujianwhitecrane.kungfoo.modules.actions.Test.doPerform(Test.java:80)
	at org.apache.turbine.modules.Action.perform(Action.java:87)
	at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
	at 
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:143)
	at org.apache.turbine.modules.Page.build(Page.java:90)
	at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123)
	at org.apache.turbine.Turbine.doGet(Turbine.java:447)
	at org.apache.turbine.Turbine.doPost(Turbine.java:537)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

I'm calling a very simple action [Test.java]:

public class Test extends Action
{
    /**
     * test class
     */
    public void doPerform( RunData data )
        throws Exception
    {
		data.setScreenTemplate("Test_Screen.jsp");
    }
}

I also get the same exception when I use data.setScreen("Test_Screen") 
instead of the setScreenTemplate line above. I'm not entirely sure which 
method to use [both are used in LoginUser] and I'm not sure how screens are 
tied to their templates?

Any ideas please?

Thanks in advance, Hong.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: CVS troubles

Posted by Frank Marcus <fm...@datacomm.bcit.ca>.
Thanks for the quick response, Jason.  :)  This project's been quite the
learning curve for me.

Frank.

Jason van Zyl wrote:
> 
> On 6/27/01 6:58 PM, "Frank Marcus" <fm...@datacomm.bcit.ca> wrote:
> 
> > Hey all,
> >
> > I'm having some newbie growing pains checking out source from the
> > anonymous cvs.
> >
> > Following the instructions found on the jakarta.apache.org/turbine
> > homepage, I'm attempting to checkout from the anonymous cvs and build
> > turbine 2.2-dev (which I have successfully done).  Now I'm trying to
> > figure out how to plug this in to the tdk.  When I attempt to download
> > the tdk from the anon cvs, I'm not getting something that's buildable.
> > (The build.props file in the root directory also says it's version is
> > 2.1b1)  Am I missing a step or two between downloading the tdk from the
> > cvs and building it?
> 
> Yup, you have a tdk for 2.1, and you are building 2.2. They are not
> 100% backward compatible yet but I'm working on it. There will be
> another release of 2.1 soon.
> 
> > The other (futile) attempt I made to get this to work is to replace the
> > turbine 2.1 jar in the tdk release with the turbine 2.2-dev jar that I
> > build from the cvs source.  As I assume you can probably guess, I can't
> > compile a sample application.
> 
> Nope. 2.2 won't work with 2.1 right now.
> 
> > Here is the (a small portion) of the errors generated:
> >
> > compile:
> >   [javac] Compiling 25 source files to
> > /usr/local/tdk/webapps/site01a/WEB-INF/classes
> >   [javac]
> > /usr/local/tdk/webapps/site01a/WEB-INF/src/java/ca/bcit/cst/web/modules/screen
> > s/ServletInfo.java:58:
> > cannot resolve symbol
> >   [javac] symbol  : class TurbineServlet
> >   [javac] location: package servlet
> >   [javac] import org.apache.turbine.services.servlet.TurbineServlet;
> >   [javac]                                            ^
> >   [javac]
> > /usr/local/tdk/webapps/site01a/WEB-INF/src/java/ca/bcit/cst/web/modules/action
> > s/Upload.java:62:
> > cannot resolve symbol
> >   [javac] symbol  : class FileItem
> >   [javac] location: package upload
> >   [javac] import org.apache.turbine.util.upload.FileItem;
> >   [javac]                                       ^
> >   [javac]
> > /usr/local/tdk/webapps/site01a/WEB-INF/src/java/ca/bcit/cst/web/modules/action
> > s/Upload.java:63:
> > cannot resolve symbol
> >   [javac] symbol  : class TurbineServlet
> >   [javac] location: package servlet
> >   [javac] import org.apache.turbine.services.servlet.TurbineServlet;
> >   [javac]                                            ^
> >   [javac]
> >             .
> >             .
> >             .
> >   [javac]             ^
> >   [javac] 92 errors
> >   [javac] 7 warnings
> >
> > Total time: 1 minute 3 seconds
> >
> > And the actual question:  What the H*** do I do to get the cvs code to
> > work?  Am I even downloading the right cvs code?  (the newbie pains are
> > very hurtful today :)
> >
> > Thanks,
> >
> > Frank.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: turbine-user-help@jakarta.apache.org
> 
> --
> 
> jvz.
> 
> Jason van Zyl
> 
> http://tambora.zenplex.org
> http://jakarta.apache.org/turbine
> http://jakarta.apache.org/velocity
> http://jakarta.apache.org/alexandria
> http://jakarta.apache.org/commons
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: CVS troubles

Posted by Jason van Zyl <jv...@apache.org>.
On 6/27/01 6:58 PM, "Frank Marcus" <fm...@datacomm.bcit.ca> wrote:

> Hey all,
> 
> I'm having some newbie growing pains checking out source from the
> anonymous cvs.  
> 
> Following the instructions found on the jakarta.apache.org/turbine
> homepage, I'm attempting to checkout from the anonymous cvs and build
> turbine 2.2-dev (which I have successfully done).  Now I'm trying to
> figure out how to plug this in to the tdk.  When I attempt to download
> the tdk from the anon cvs, I'm not getting something that's buildable.
> (The build.props file in the root directory also says it's version is
> 2.1b1)  Am I missing a step or two between downloading the tdk from the
> cvs and building it?

Yup, you have a tdk for 2.1, and you are building 2.2. They are not
100% backward compatible yet but I'm working on it. There will be
another release of 2.1 soon.
 
> The other (futile) attempt I made to get this to work is to replace the
> turbine 2.1 jar in the tdk release with the turbine 2.2-dev jar that I
> build from the cvs source.  As I assume you can probably guess, I can't
> compile a sample application.

Nope. 2.2 won't work with 2.1 right now.
 
> Here is the (a small portion) of the errors generated:
> 
> compile:
>   [javac] Compiling 25 source files to
> /usr/local/tdk/webapps/site01a/WEB-INF/classes
>   [javac]
> /usr/local/tdk/webapps/site01a/WEB-INF/src/java/ca/bcit/cst/web/modules/screen
> s/ServletInfo.java:58:
> cannot resolve symbol
>   [javac] symbol  : class TurbineServlet
>   [javac] location: package servlet
>   [javac] import org.apache.turbine.services.servlet.TurbineServlet;
>   [javac]                                            ^
>   [javac]
> /usr/local/tdk/webapps/site01a/WEB-INF/src/java/ca/bcit/cst/web/modules/action
> s/Upload.java:62:
> cannot resolve symbol
>   [javac] symbol  : class FileItem
>   [javac] location: package upload
>   [javac] import org.apache.turbine.util.upload.FileItem;
>   [javac]                                       ^
>   [javac]
> /usr/local/tdk/webapps/site01a/WEB-INF/src/java/ca/bcit/cst/web/modules/action
> s/Upload.java:63:
> cannot resolve symbol
>   [javac] symbol  : class TurbineServlet
>   [javac] location: package servlet
>   [javac] import org.apache.turbine.services.servlet.TurbineServlet;
>   [javac]                                            ^
>   [javac] 
>             .
>             .
>             .
>   [javac]             ^
>   [javac] 92 errors
>   [javac] 7 warnings
> 
> Total time: 1 minute 3 seconds
> 
> And the actual question:  What the H*** do I do to get the cvs code to
> work?  Am I even downloading the right cvs code?  (the newbie pains are
> very hurtful today :)
> 
> Thanks,
> 
> Frank.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

-- 

jvz.

Jason van Zyl

http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


CVS troubles

Posted by Frank Marcus <fm...@datacomm.bcit.ca>.
Hey all,

I'm having some newbie growing pains checking out source from the
anonymous cvs.  

Following the instructions found on the jakarta.apache.org/turbine
homepage, I'm attempting to checkout from the anonymous cvs and build
turbine 2.2-dev (which I have successfully done).  Now I'm trying to
figure out how to plug this in to the tdk.  When I attempt to download
the tdk from the anon cvs, I'm not getting something that's buildable.
(The build.props file in the root directory also says it's version is
2.1b1)  Am I missing a step or two between downloading the tdk from the
cvs and building it?

The other (futile) attempt I made to get this to work is to replace the
turbine 2.1 jar in the tdk release with the turbine 2.2-dev jar that I
build from the cvs source.  As I assume you can probably guess, I can't
compile a sample application.

Here is the (a small portion) of the errors generated:

compile:
    [javac] Compiling 25 source files to
/usr/local/tdk/webapps/site01a/WEB-INF/classes
    [javac]
/usr/local/tdk/webapps/site01a/WEB-INF/src/java/ca/bcit/cst/web/modules/screens/ServletInfo.java:58:
cannot resolve symbol
    [javac] symbol  : class TurbineServlet  
    [javac] location: package servlet
    [javac] import org.apache.turbine.services.servlet.TurbineServlet;
    [javac]                                            ^
    [javac]
/usr/local/tdk/webapps/site01a/WEB-INF/src/java/ca/bcit/cst/web/modules/actions/Upload.java:62:
cannot resolve symbol
    [javac] symbol  : class FileItem  
    [javac] location: package upload
    [javac] import org.apache.turbine.util.upload.FileItem;
    [javac]                                       ^
    [javac]
/usr/local/tdk/webapps/site01a/WEB-INF/src/java/ca/bcit/cst/web/modules/actions/Upload.java:63:
cannot resolve symbol
    [javac] symbol  : class TurbineServlet  
    [javac] location: package servlet
    [javac] import org.apache.turbine.services.servlet.TurbineServlet;
    [javac]                                            ^
    [javac] 
              .
              .
              .
    [javac]             ^
    [javac] 92 errors
    [javac] 7 warnings

Total time: 1 minute 3 seconds

And the actual question:  What the H*** do I do to get the cvs code to
work?  Am I even downloading the right cvs code?  (the newbie pains are
very hurtful today :)

Thanks,

Frank.

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org