Results 1 to 1 of 1
  1. #1
    devip is offline Member
    Join Date
    Jan 2013
    Posts
    1
    Rep Power
    0

    Default maven build error for JSP files

    I am trying to build one of the webui components of our project using maven 2.2.1
    I have set the required environment variables for the build. I could build all the components except jsp component
    Below is the error message I get

    [INFO] No sources to compile
    [INFO] [jspc:compile {execution: default}]
    [INFO] Compiling JSP source files to C:\p4\release\xxx\code\webui\jsp\target/jsp-source
    java.lang.IllegalStateException: No Java compiler available
    at org.apache.jasper.JspCompilationContext.createComp iler(JspCompilationContext.java:224)
    at org.apache.jasper.JspC.processFile(JspC.java:979)
    at org.apache.jasper.JspC.execute(JspC.java:1135)
    at org.codehaus.mojo.jspc.compiler.tomcat5.JspCompile rImpl.compile(JspCompilerImpl.java:111)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.codehaus.groovy.reflection.CachedMethod.invoke (CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.j ava:230)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassIm pl.java:912)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassIm pl.java:756)
    at org.codehaus.groovy.runtime.InvokerHelper.invokePo joMethod(InvokerHelper.java:766)
    at org.codehaus.groovy.runtime.InvokerHelper.invokeMe thod(InvokerHelper.java:754)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter. invokeMethodN(ScriptBytecodeAdapter.java:170)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter. invokeMethod0(ScriptBytecodeAdapter.java:198)
    at org.codehaus.mojo.jspc.CompilationMojoSupport.exec ute(CompilationMojoSupport.groovy:333)
    at org.apache.maven.plugin.DefaultPluginManager.execu teMojo(DefaultPluginManager.java:490)
    at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoals(DefaultLifecycleExecutor.java:694)
    at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoalWithLifecycle(DefaultLifecycleExecuto r.java:556)
    at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoal(DefaultLifecycleExecutor.java:535)
    at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoalAndHandleFailures(DefaultLifecycleExe cutor.java:387)
    at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeTaskSegments(DefaultLifecycleExecutor.jav a:348)
    at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.execute(DefaultLifecycleExecutor.java:180)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMav en.java:328)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven .java:138)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:3 62)
    at org.apache.maven.cli.compat.CompatibleMain.main(Co mpatibleMain.java:60)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.codehaus.classworlds.Launcher.launchEnhanced(L auncher.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.ja va:375)
    [INFO] ------------------------------------------------------------------------



    Could any one please help on this?
    Last edited by devip; 01-22-2013 at 11:53 AM.

Similar Threads

  1. Replies: 0
    Last Post: 10-05-2012, 03:28 AM
  2. XML build file for zipping files
    By deea in forum XML
    Replies: 0
    Last Post: 08-10-2011, 12:51 PM
  3. Replies: 0
    Last Post: 12-08-2010, 08:40 AM
  4. Replies: 0
    Last Post: 07-09-2009, 12:11 PM
  5. Replies: 0
    Last Post: 01-27-2009, 08:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •