[ http://jira.codehaus.org/browse/MOJO-301?page=comments#action_59116 ] 

Oliver Siegmar commented on MOJO-301:
-------------------------------------

Thanks for you comment, Jeff. I updated to version 1.4 and now have a different 
error:

[INFO] [jspc:compile {execution: jspc}]
[INFO] Built File: /index.jsp
[INFO] Built File: /login.jsp

[... some more files - but only a few ... ]

[ERROR] Javac exception
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
        at 
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105)
        at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:924)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
        at 
org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:219)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
        at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
        at 
org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:200)
        at 
org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:515)
        at 
org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor.java:48)
        at 
org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:566)
        at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
        at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
        at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
        at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
        at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
        at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
        at 
org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:584)
        at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:169)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
        at org.apache.jasper.JspC.processFile(JspC.java:953)
        at org.apache.jasper.JspC.execute(JspC.java:1094)
        at org.apache.jasper.JspC.main(JspC.java:231)
        at org.codehaus.mojo.jspc.JspcMojo.execute(JspcMojo.java:156)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)


My environment:

# echo $JAVA_HOME
/usr/local/jdk

# which javac
/usr/local/jdk/bin/javac

# javac -version
javac 1.5.0_06


> jspc-maven-plugin doesn't seem to work at all
> ---------------------------------------------
>
>          Key: MOJO-301
>          URL: http://jira.codehaus.org/browse/MOJO-301
>      Project: Mojo
>         Type: Bug

>     Reporter: Oliver Siegmar

>
>
> Sorry for that stupid summarization - I don't know how to summarize this 
> problem.
> When calling 'mvn package' I see this on my shell:
> [INFO] jspc args: [-uriroot, /XXX/src/main/webapp, -d, 
> /XXX/target/jsp-source, -s, -l, -webinc, /XXX/target/web-fragment.xml, -p, 
> jsp]
> org.apache.jasper.JasperException: The absolute uri: 
> http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the 
> jar files deployed with this application
> My fault?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to