tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38046] New: - apache-tomcat-5.5.14-deployer doesn't work (IllegalStateException: No Java compiler available)
Date Tue, 27 Dec 2005 02:17:47 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38046>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38046

           Summary: apache-tomcat-5.5.14-deployer doesn't work
                    (IllegalStateException: No Java compiler available)
           Product: Tomcat 5
           Version: Nightly Build
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: thaiha@psv.com.vn


After unzipping apache-tomcat-5.5.14-deployer and put a valid web app in 
D:\programs\apache-tomcat-5.5.14-deployer\myapp folder, I tried to run the Ant 
and here is the result:

---------------------------------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

D:\programs\apache-tomcat-5.5.14-deployer>ant
Buildfile: build.xml

clean:
   [delete] Deleting directory D:\programs\apache-tomcat-5.5.14-deployer\build

compile:
     [copy] Copying 105 files to D:\programs\apache-tomcat-5.5.14-deployer\build
\webapp\myapp
  [jasper2] java.lang.IllegalStateException: No Java compiler available
  [jasper2]     at org.apache.jasper.JspCompilationContext.createCompiler(JspCom
pilationContext.java:224)
  [jasper2]     at org.apache.jasper.JspC.processFile(JspC.java:979)
  [jasper2]     at org.apache.jasper.JspC.execute(JspC.java:1135)
  [jasper2]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  [jasper2]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
  [jasper2]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
  [jasper2]     at java.lang.reflect.Method.invoke(Method.java:324)
  [jasper2]     at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123
)
  [jasper2]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:275)
  [jasper2]     at org.apache.tools.ant.Task.perform(Task.java:364)
  [jasper2]     at org.apache.tools.ant.Target.execute(Target.java:341)
  [jasper2]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
  [jasper2]     at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1216)
  [jasper2]     at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

  [jasper2]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
faultExecutor.java:40)
  [jasper2]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068
)
  [jasper2]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
  [jasper2]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
  [jasper2]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
  [jasper2]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

BUILD FAILED
D:\programs\apache-tomcat-5.5.14-deployer\build.xml:45: org.apache.jasper.Jasper
Exception: No Java compiler available

Total time: 8 seconds
D:\programs\apache-tomcat-5.5.14-deployer>set JAVA_HOME
JAVA_HOME=D:\programs\j2sdk1.4.2_09

D:\programs\apache-tomcat-5.5.14-deployer>set PATH
Path=D:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\pro
grams\j2sdk1.4.2_09\bin;D:\programs\apache-ant-1.6.5\bin;D:\cygwin\bin;D:\Sun\ja
vke1.4.1\appserver\bin;D:\projects\svntool\bin;D:\programs\maven-2.0\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

D:\programs\apache-tomcat-5.5.14-deployer>
----------------------------

When I add config files for common-logging by updating build.xml
-------------
  <path id="deployer.classpath">
    <fileset dir="${basedir}/lib">
      <include name="*.jar"/>
    </fileset>
    <pathelement location="classes"/>
  </path>
and adding 2 new files (commons-logging.properties, simplelog.properties) at 
D:\programs\apache-tomcat-5.5.14-deployer\classes\ as below:

-----commons-logging.properties------
org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactory
Impl
org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
-------------------------------------
 
----simplelog.properties------------
org.apache.commons.logging.simplelog.defaultlog=info
------------------------------------

then I can compile my web app successfully.
------------------------------------
D:\programs\apache-tomcat-5.5.x-deployer>ant
Buildfile: build.xml

clean:
   [delete] Deleting directory D:\programs\apache-tomcat-5.5.x-deployer\build

compile:
     [copy] Copying 105 files to D:\programs\apache-tomcat-5.5.x-deployer\build\
webapp\myapp
[validator] web.xml validated
    [javac] Compiling 19 source files to D:\programs\apache-tomcat-5.5.x-deploye
r\build\webapp\myapp\WEB-INF\classes
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
      [jar] Building jar: D:\programs\apache-tomcat-5.5.x-deployer\build\webapp\
myapp.war

BUILD SUCCESSFUL
Total time: 12 seconds
D:\programs\apache-tomcat-5.5.x-deployer>
-------------------------------------

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message