i see your point. We'll try it using this way. Thanks ----- Original Message ---- From: Lukas Theussl <[EMAIL PROTECTED]> To: Maven Users List <[email protected]> Sent: Monday, June 25, 2007 11:25:20 AM Subject: Re: Maven 1.1 feat. ANT Classloader problem when using Jasper
This is exactly what the ant plugin is doing [1], I don't know any workaround. -Lukas [1] http://svn.apache.org/viewvc/maven/maven-1/plugins/trunk/ant/plugin.jelly?revision=405476&view=markup maarten roosendaal wrote: > The thing is we don't use ANT as a plugin, we simply call an ANT-file with > <ant antfile="build.xml" dir="$build" target="<target>" from a jelly-script > which resides in a plugin. > > Somehow we have to manipulate the classloader and the option given in the > first URL is unclear. This probably works when you have a dependency to ANT > but we don't. > > Are there any other options or should we be looking for another way of doing > this? > > thanks, > Maarten > > ----- Original Message ---- > From: Lukas Theussl <[EMAIL PROTECTED]> > To: Maven Users List <[email protected]> > Sent: Monday, June 25, 2007 9:20:03 AM > Subject: Re: Maven 1.1 feat. ANT Classloader problem when using Jasper > > Does loading the jsp deps in the root classloader help [1]? However, I > don't think there is a general solution, since maven and ant use a > different classpath, see the remark at the ant:execute goal [2]. > > HTH, > -Lukas > > [1] > http://maven.apache.org/maven-1.x/using/developing-plugins.html#Plugin_dependencies > [2] http://maven.apache.org/maven-1.x/plugins/ant/goals.html > > > maarten roosendaal wrote: > >>Hi, >> >>We are trying to convert an ANT (1.6.5) project to a Maven project but first >>we have to call the ANT scripts from Maven (1.1). This works fine except when >>there is a part in the ANT-script that does JSP compilation. >> >>What we get is a ClassCastException: java.lang.ClassCastException: >>org.apache.tools.ant.loader.AntClassLoader2 >> >>The problem is that apparently when you run ANT a different Classloader is >>used then when you run Maven and call ANT. The JspRuntimeContext-class >>expects a URLClassloader as parent but gets an AntClassLoader2. I've found >>some threads regarding this problem but no real solution. >> >>We are using a Maven 1.1 custom plugin (with Jelly-scripting) to call >>ANT-targets and Maven goals in a specific order. >> >>Does anyone have an idea on how to fix this? Again, the problem only occurs >>when we call ANT targets via Maven. >> >>Thanks, >>Maarten >> >> >> >> >>____________________________________________________________________________________ >>Food fight? Enjoy some healthy debate >>in the Yahoo! Answers Food & Drink Q&A. >>http://answers.yahoo.com/dir/?link=list&sid=396545367 >> >>--------------------------------------------------------------------- >>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] > > > > > > > > ____________________________________________________________________________________ > Got a little couch potato? > Check out fun summer activities for kids. > http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz > > > --------------------------------------------------------------------- > 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] ____________________________________________________________________________________ Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. http://games.yahoo.com/games/front --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
