it still doesnt work gives the similiar error. here with i m posting my xsp and java source file and errro that i get xsp file <?xml version="1.0"?>
<xsp:page xmlns:xsp="http://apache.org/xsp"> <xsp:logic> Test t=new Test(); String s=t.myFunc(); </xsp:logic> <greeting> <xsp:expr>s</xsp:expr> </greeting> </xsp:page> public class Test{ Test(){ } public String myFunc() { return "hello world"; } } ERROR org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling standardconfig_xsp: Line 68, column 3: cannot access class Test; bad class file (java.lang.RuntimeException: class file: org.apache.cocoon.www.pmp.documents.xsp.Test contains wrong class: Test) Line 68, column 14: constructor Test() not found in class org.apache.cocoon.www.pmp.documents.xsp.Test Line 0, column 0: IF this might solve my problem. i m really very much frustrated with this. plz help me out -----Original Message----- From: Chris Clark [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 12:45 PM To: [EMAIL PROTECTED] Subject: RE: how to create object of an external class ? Try moving them under "cocoon\webapp\WEB-INF\classes\<package.dirs>" That location works for me for <map:act> classes. > -----Original Message----- > From: Reuben Christie [SMTP:[EMAIL PROTECTED] > Sent: Wednesday, August 20, 2003 10:15 AM > To: [EMAIL PROTECTED] > Subject: how to create object of an external class ? > > > hi all.. i m a newbie to cocoon. i m writing an xsp page..in that page i > have a lines like this. > <xsp:logic> > Test t=new Test(); > ...... > ...... > </xsp:logic> > > and i cant get my xsp page compiled it gives erro that > > org.apache.cocoon.ProcessingException: Language Exception: > org.apache.cocoon.components.language.LanguageException: Error compiling > standardconfig_xsp: > Line 68, column 3: class Test not found in class > org.apache.cocoon.www.pmp.documents.xsp.standardconfig_xsp > > > can somebody throw some light on it? it will be a great help to me. > NB: my Test.java and Test.class are both in the same folder with my xsp > page. > thanks inadvance > reuben > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
