JspC problems

2002-10-28 Thread jattwood
Hi,

I'm using TomCat v4.0.1, as I'm running inside someone else's JBoss
2.4.4 setup, and having problems precompiling some JSP files. I have
set up my build.bat like those described in recent posts on this subject
and all was fine until Saturday, when the JspC step started failing
silently and giving up on the remaining JSP source files. The new JSP
works fine if put directly into the WEB-INF directory and called directly,
so it isn't that the file won't compile. I've seen some messages on this
list suggesting that early versions of Jasper were buggy, and my question
is: can I use the latest version of Jasper with TomCat 4.0.1?

As a side issue, I would also appreciate it if someone could tell me how
to stop Jasper complaining that it can't find a web.xml file, as I've
tried everything I can think of to tell it where to find a local copy
but it continues to complain. I'm having to manually add each new 
compiled JSP to the web.xml.

I can post the offending JSP code (only 5 lines) and the relevant parts
of build.xml if required, but I'm sending this from another computer at
a different site, so it's a bit complicated to include them.

Thanks in advance for any help with this,
Regards,

John Attwood,
MRC HGMP-RC

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




JSPC problems

2005-02-11 Thread Jagadeesha T
Hi all,
   I 'am trying to do jspPreCompilation, it is thrwing away saying. 
ClassCastExcception.
 
Class java.util.HashMap loaded from parent loader (parentFirst)
Class java.util.Collections loaded from parent loader (parentFirst)
Class java.io.ByteArrayOutputStream loaded from parent loader (parentFirst)
 [java] java.lang.ClassCastException
 [java] at 
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:172)
 [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
 [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
 [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
 [java] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 [java] at org.apache.tools.ant.Task.perform(Task.java:364)
 [java] at org.apache.tools.ant.Target.execute(Target.java:341)
 [java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
 [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
 [java] at 
org.apache.tools.ant.Project.executeTargets(Project.java:1062)
 [java] at org.apache.tools.ant.Main.runBuild(Main.java:673)
 [java] at org.apache.tools.ant.Main.startAnt(Main.java:188)
 [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
 [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
 [java] Caused by: java.lang.ClassCastException
 [java] at 
org.apache.jasper.compiler.JspRuntimeContext.(JspRuntimeContext.java:95)
 [java] at org.apache.jasper.JspC.initServletContext(JspC.java:1005)
 [java] at org.apache.jasper.JspC.execute(JspC.java:870)
 [java] at org.apache.jasper.JspC.main(JspC.java:196)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [java] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [java] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [java] at java.lang.reflect.Method.invoke(Method.java:324)
 [java] at 
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:193)
 [java] at 
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:130)
 [java] ... 13 more
 [java] --- Nested Exception ---
 [java] java.lang.ClassCastException
 [java] at org.apache.jasper.compiler.JspRuntimeContext.
 
 
Please if anybody got this error and got it solved.Please could you help out to 
run precompilation.
 
Regards,
Jagga
 



-
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'

re: JspC problems

2002-10-28 Thread jattwood
Hi,

I've solved my compilation problem - I'd inadvertently trashed my
build classpath and jasper couldn't find the JavaBeans used by the
JSPs.

I still have the "Internal Error: File /WEB-INFO/web.xml not found"
problem though. The arguments to JspC are -d  -v4 -p JspServ
and -webapp  and I'm using an ant java task as I couldn't
get the jspc task to work (always died with signal 9). I can't find
any docs for JspC which say what its command-line options are, so
I don't know how to tell it where to find web.xml at compile time.

Any insights appreciated.

John.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




re: JspC problems

2002-10-28 Thread paul miller

thanks for the post John

running the jspc4 sript under linux the su fails
  // problems escaping the -d 
but if I su to tomcat then run djasper4 script
  su - tomcat4
  djasper4 jspc -d  -v4  -webapp  
It works under tomcat 4.0.4
tomcat 4.1.12 creates java files but does not compile them,
and gives no reason as to why.
compilation by hand without jasper.JspC results in working but smaller class
files.

--- [EMAIL PROTECTED] wrote:
> Hi,
> 
> I've solved my compilation problem - I'd inadvertently trashed my
> build classpath and jasper couldn't find the JavaBeans used by the
> JSPs.
> 
> I still have the "Internal Error: File /WEB-INFO/web.xml not found"
> problem though. The arguments to JspC are -d  -v4 -p JspServ
> and -webapp  and I'm using an ant java task as I couldn't
> get the jspc task to work (always died with signal 9). I can't find
> any docs for JspC which say what its command-line options are, so
> I don't know how to tell it where to find web.xml at compile time.
> 
> Any insights appreciated.
> 
> John.
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


=
Paul N Miller
[EMAIL PROTECTED]



__
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




useBean and jspc problems under Tomcat 5.0.21

2004-05-04 Thread hicham abassi
Hello,

I have problem with jspc and useBean under Tomcat 5.0.21
I code jspc target into my build.xml which works good under Tomcat 4 but 
not under Tomcat 5.
There is my ant target :

 

   
   
   
 
   
   
   
 
 
   
   
   
   
 
   
 
   
   
   

   

 

There is the source :
   ...
   
   ...

the BarreNavigation have of course a no-arg constructor as you said.

There is the exception :

org.apache.jasper.JasperException
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:141)
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1229)
etc 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: useBean and jspc problems under Tomcat 5.0.21

2004-05-04 Thread Jason Novotny
   From Tim's mail, it looks like it's vendor specific, and for 
optimization reasons you can no longer do this-- which I think stinks, 
but oh well. Frankly, I wish Jakarta projetcs could be more consistent. 
In Pluto for example they focus on correctness and not on optimzations, 
but now in Tomcat I see it's the other way around :-(

   Jason

hicham abassi wrote:

Hello,

I have problem with jspc and useBean under Tomcat 5.0.21
I code jspc target into my build.xml which works good under Tomcat 4 
but not under Tomcat 5.
There is my ant target :

 

   
   
   
 
   
   
   
 
 
   
   
   
   
 
   
 
   
   
   

   

 

There is the source :
   ...
   
   ...

the BarreNavigation have of course a no-arg constructor as you said.

There is the exception :

org.apache.jasper.JasperException
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39) 

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357) 

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:141) 

org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1229) 

etc 

-
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]