![]() |
Eclipse + WTP Help
Hi (newbie),
I have been using Eclipse Webtools for some time now with j2ee and am happy with it, However recently I have been getting an error with it, when trying to run my projects, when trying to identify the server (tomcat 5.5) it will not recognise it and states "Project facet Java version 5.0 is not supported." If there is ne 1 out there who has had a similar problem and has had it resolved, please could share that peice of info, Sincerely CoolT |
Re: Eclipse + WTP Help
On 11-8-2006 11:57, coolgirl wrote:
> Hi (newbie), > > I have been using Eclipse Webtools for some time now with j2ee and am > happy with it, > However recently I have been getting an error with it, when trying to > run my projects, > when trying to identify the server (tomcat 5.5) it will not recognise > it and states > "Project facet Java version 5.0 is not supported." > > If there is ne 1 out there who has had a similar problem and has had it > resolved, please could share that peice of info, > > Sincerely > > CoolT > Are you running your Tomcat server with a 1.5.0 JRE? See Window > Preferences > Server > Installed Runtimes > (select Apache Tomcat 5.5) > Edit > (what's selected in the JRE field?) If you don't have a 1.5 JRE (yet), it's possible to run Tomcat 5.5 with a 1.4 JRE, but you'll have to install the JDK1.4 compatibility package for Tomcat <http://tomcat.apache.org/tomcat-5.5-doc/RUNNING.txt> <http://tomcat.apache.org/download-55.cgi> If you run Tomcat with JRE 1.4, you'll probably have to adjust the version of the Java facet (I've never done it, so I'm not sure). In Eclipse, edit your projects properties: menu Project > Properties > Project Facets > (select Java) > Add/Remove Project Facets > (select 5.0 in the row with Java) > (select 1.4 in the dropdown list). [It's not quite obvious, but the Version column in the project facet wizard is editable if three dots "..." follow the version number.] -- Regards, Roland |
Re: Eclipse + WTP Help
> Are you running your Tomcat server with a 1.5.0 JRE? See Window >
> Preferences > Server > Installed Runtimes > (select Apache Tomcat 5.5) > > Edit > (what's selected in the JRE field?) > > If you don't have a 1.5 JRE (yet), it's possible to run Tomcat 5.5 with > a 1.4 JRE, but you'll have to install the JDK1.4 compatibility package > for Tomcat > <http://tomcat.apache.org/tomcat-5.5-doc/RUNNING.txt> > <http://tomcat.apache.org/download-55.cgi> > > If you run Tomcat with JRE 1.4, you'll probably have to adjust the > version of the Java facet (I've never done it, so I'm not sure). In > Eclipse, edit your projects properties: menu Project > Properties > > Project Facets > (select Java) > Add/Remove Project Facets > (select 5.0 > in the row with Java) > (select 1.4 in the dropdown list). [It's not > quite obvious, but the Version column in the project facet wizard is > editable if three dots "..." follow the version number.] > -- > Regards, > > Roland Thanx!! I have done what u asked, and now the facet problem is gone however im have a prob with an Enviroment Variable specifically JAVA_HOME "" root cause 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 "" I have been searching the web for the correct path and checking different forums, http://forum.java.sun.com/thread.jsp...556816&start=0 for example, I noticed that there are perhaps to ways to resolve this 1) Create an enviroment var Java_Home, although I cant find the correct path to my 1.4.2_12 (as in the forum it states to point to the sdk rather than the jre) 2)Copy the tools.jar file into another folder I found the tools.jar, but unsure what folder to place it into FYI thank you very much for you quick and speedy reply!!! Much Appreicated Reguards CoolT |
Re: Eclipse + WTP Help
On 11-8-2006 15:46, coolgirl wrote:
>> Are you running your Tomcat server with a 1.5.0 JRE? See Window > >> Preferences > Server > Installed Runtimes > (select Apache Tomcat 5.5) > >> Edit > (what's selected in the JRE field?) >> >> If you don't have a 1.5 JRE (yet), it's possible to run Tomcat 5.5 with >> a 1.4 JRE, but you'll have to install the JDK1.4 compatibility package >> for Tomcat >> <http://tomcat.apache.org/tomcat-5.5-doc/RUNNING.txt> >> <http://tomcat.apache.org/download-55.cgi> >> >> If you run Tomcat with JRE 1.4, you'll probably have to adjust the >> version of the Java facet (I've never done it, so I'm not sure). In >> Eclipse, edit your projects properties: menu Project > Properties > >> Project Facets > (select Java) > Add/Remove Project Facets > (select 5.0 >> in the row with Java) > (select 1.4 in the dropdown list). [It's not >> quite obvious, but the Version column in the project facet wizard is >> editable if three dots "..." follow the version number.] >> -- >> Regards, >> >> Roland > > Thanx!! > > I have done what u asked, and now the facet problem is gone however > im have a prob with an Enviroment Variable specifically JAVA_HOME > > "" > root cause > > 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 > > "" > I have been searching the web for the correct path and checking > different forums, > http://forum.java.sun.com/thread.jsp...556816&start=0 > for example, I noticed that there are perhaps to ways to resolve this > 1) Create an enviroment var Java_Home, > > although I cant find the correct path to my 1.4.2_12 > (as in the forum it states to point to the sdk rather than the jre) > > 2)Copy the tools.jar file into another folder > > I found the tools.jar, but unsure what folder to place it into > > FYI thank you very much for you quick and speedy reply!!! > > Much Appreicated > > Reguards CoolT > Where's the error message coming from? When you start Tomcat? When ant is used? ... Does it appear inside Eclipse on the console? Probably its the easiest to define the JAVA_HOME environment variable if you are on Windows. You found tools.jar. Let's say you found it in C:\Program Files\Java\jdk1.4.2_12\lib Then JAVA_HOME should be set to C:\Program Files\Java\jdk1.4.2_12 i.e. the directory above the lib directory where tools.jar resides. Depending on which Windows you are running follow either 1) or 2) 1) To define JAVA_HOME on Microsoft Windows NT, 2000, and XP Choose Start, Settings, Control Panel, and double-click System. On Microsoft Windows NT, select the Environment tab; on Microsoft Windows 2000/XP select the Advanced tab and then Environment Variables. Look if there's already a User Variables named JAVA_HOME. If not, press button New and type JAVA_HOME as its name and the directory you established just before as its value. 2) On Microsoft Windows 98 - To define JAVA_HOME, open the AUTOEXEC.BAT file and add or change it as follows: 2a) Start the system editor. Choose "Start", "Run" and enter sysedit, then click OK. The system editor starts up with several windows showing. Go to the window that is displaying AUTOEXEC.BAT 2b) Look for a line with JAVA_HOME. If you don't have one, add one the following line set JAVA_HOME=C:\Program Files\Java\jdk1.4.2_12 where the part following the = should match the directory you established above. 2c) Use menu File > Save of the system config editor to save the modified file. Then File > Exit 3) If you're lucky, the JAVA_HOME environment variable is available immediately. If not, you could try to do the following a) restart Eclipse b) logoff and then logon again c) restart your computer 4) To verify that JAVA_HOME is set, open the command prompt: Start > Run > and type "command.com" (Win98) or "cmd.exe" (NT/2000/XP) without quotes. In the command window, type echo %JAVA_HOME% The value set in step 1 or 2 should be displayed. -- Regards, Roland |
Re: Eclipse + WTP Help
Roland,
Thank you for following up on this message Im still receiving a problem with eclipse Note: I have J2EE on my machine and the pathe I provided for JAVA_HOME is C:\Sun\AppServer\jdk the console out put when running a typical time.jsp file is: 12-Aug-2006 16:17:53 org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: /time.jsp(4,0) Page directive: illegal to have multiple occurrences of contentType with different values (old: text/html; charset=ISO-8859-1, new: text/html) at org.apache.jasper.compiler.DefaultErrorHandler.jsp Error(DefaultErrorHandler.java:39) at org.apache.jasper.compiler.ErrorDispatcher.dispatc h(ErrorDispatcher.java:405) at org.apache.jasper.compiler.ErrorDispatcher.jspErro r(ErrorDispatcher.java:234) at org.apache.jasper.compiler.Validator$DirectiveVisi tor.visit(Validator.java:127) at org.apache.jasper.compiler.Node$PageDirective.acce pt(Node.java:549) at org.apache.jasper.compiler.Node$Nodes.visit(Node.j ava: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.j ava:456) at org.apache.jasper.compiler.Node$Nodes.visit(Node.j ava:2163) at org.apache.jasper.compiler.Validator.validate(Vali dator.java:1452) at org.apache.jasper.compiler.Compiler.generateJava(C ompiler.java:166) at org.apache.jasper.compiler.Compiler.compile(Compil er.java:295) at org.apache.jasper.compiler.Compiler.compile(Compil er.java:276) at org.apache.jasper.compiler.Compiler.compile(Compil er.java:264) at org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:563) at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:303) at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet .java:802) at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) Sincerely CoolT |
Re: Eclipse + WTP Help
On 12-8-2006 17:20, coolgirl wrote:
> Roland, > > Thank you for following up on this message > > Im still receiving a problem with eclipse > > Note: I have J2EE on my machine and the pathe I provided > for JAVA_HOME is C:\Sun\AppServer\jdk > > the console out put when running a typical time.jsp file is: > > 12-Aug-2006 16:17:53 org.apache.catalina.core.StandardWrapperValve > invoke > SEVERE: Servlet.service() for servlet jsp threw exception > org.apache.jasper.JasperException: /time.jsp(4,0) Page directive: > illegal to have multiple occurrences of contentType with different > values (old: text/html; charset=ISO-8859-1, new: text/html) The file time.jsp probably has two content type declarations, like this: <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ page language="java" contentType="text/html" pageEncoding="ISO-8859-1"%> Remove one of the page directives (anything from <%@ upto and including %>) -- Regards, Roland |
Re: Eclipse + WTP Help
No shes not working, Im thinking to remove Eclipse and AppServer,
and try and start again thanx v much for your help, it is much appreicated, Sincerely CoolT INFO: Server startup in 1429 ms 14-Aug-2006 11:23:07 org.apache.jasper.compiler.AntCompiler generateClass SEVERE: 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.CompilerAd apterFactory.getCompiler(CompilerAdapterFactory.ja va: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.generateCla ss(AntCompiler.java:219) at org.apache.jasper.compiler.Compiler.compile(Compil er.java:297) at org.apache.jasper.compiler.Compiler.compile(Compil er.java:276) at org.apache.jasper.compiler.Compiler.compile(Compil er.java:264) at org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:563) at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:303) at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet .java:802) at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) 14-Aug-2006 11:23:07 org.apache.jasper.compiler.AntCompiler generateClass SEVERE: Env: Compile: javaFileName=/C:/Documents and Settings/s00042457/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/work/Catalina/localhost/AJAX-9//org/apache/jsp\time_jsp.java classpath=/C:/Documents and Settings/s00042457/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/AJAX-9/WEB-INF/classes/;C:\Documents and Settings\s00042457\workspace\.metadata\.plugins\or g.eclipse.wst.server.core\tmp0\work\Catalina\local host\AJAX-9;/C:/Documents and Settings/s00042457/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/AJAX-9/WEB-INF/classes/;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/classes/;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/i18n/tomcat-i18n-en.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/i18n/tomcat-i18n-es.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/i18n/tomcat-i18n-fr.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/i18n/tomcat-i18n-ja.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/endorsed/xercesImpl.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/endorsed/xml-apis.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/ant.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/commons-el.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/jasper-compiler.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/jasper-runtime.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/jsp-api.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/naming-factory-dbcp.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/naming-factory.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/naming-resources.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/org-netbeans-modules-schema2beans.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/org-netbeans-modules-web-httpmonitor.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/servlet-api.jar;/C:/Program%20Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/bin/bootstrap.jar;/C:/Program%20Files/Java/j2re1.4.2_12/lib/ext/dnsns.jar;/C:/Program%20Files/Java/j2re1.4.2_12/lib/ext/ldapsec.jar;/C:/Program%20Files/Java/j2re1.4.2_12/lib/ext/sunjce_provider.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\bin\bootstrap.jar cp=C:\Documents and Settings\s00042457\workspace\.metadata\.plugins\or g.eclipse.wst.server.core\tmp0\webapps\AJAX-9\WEB-INF\classes cp=C:\Documents and Settings\s00042457\workspace\.metadata\.plugins\or g.eclipse.wst.server.core\tmp0\work\Catalina\local host\AJAX-9 cp=C:\Documents and Settings\s00042457\workspace\.metadata\.plugins\or g.eclipse.wst.server.core\tmp0\webapps\AJAX-9\WEB-INF\classes cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\classes cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\i18n\tomcat-i18n-en.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\i18n\tomcat-i18n-es.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\i18n\tomcat-i18n-fr.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\i18n\tomcat-i18n-ja.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\endorsed\xercesImpl.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\endorsed\xml-apis.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\ant.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\commons-el.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\jasper-compiler.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\jasper-runtime.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\jsp-api.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\naming-factory-dbcp.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\naming-factory.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\naming-resources.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\org-netbeans-modules-schema2beans.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\org-netbeans-modules-web-httpmonitor.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\servlet-api.jar cp=C:\Program%20Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\bin\bootstrap.jar cp=C:\Program%20Files\Java\j2re1.4.2_12\lib\ext\dn sns.jar cp=C:\Program%20Files\Java\j2re1.4.2_12\lib\ext\ld apsec.jar cp=C:\Program%20Files\Java\j2re1.4.2_12\lib\ext\su njce_provider.jar work dir=C:\Documents and Settings\s00042457\workspace\.metadata\.plugins\or g.eclipse.wst.server.core\tmp0\work\Catalina\local host\AJAX-9 extension dir=C:\Program Files\Java\j2re1.4.2_12\lib\ext srcDir=C:\Documents and Settings\s00042457\workspace\.metadata\.plugins\or g.eclipse.wst.server.core\tmp0\work\Catalina\local host\AJAX-9 compilerTargetVM=1.4 compilerSourceVM=1.4 include=org/apache/jsp/time_jsp.java 14-Aug-2006 11:23:07 org.apache.jasper.compiler.AntCompiler generateClass SEVERE: Error compiling file: /C:/Documents and Settings/s00042457/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/work/Catalina/localhost/AJAX-9//org/apache/jsp\time_jsp.java [javac] Compiling 1 source file 14-Aug-2006 11:23:07 org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw 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.CompilerAd apterFactory.getCompiler(CompilerAdapterFactory.ja va: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.generateCla ss(AntCompiler.java:219) at org.apache.jasper.compiler.Compiler.compile(Compil er.java:297) at org.apache.jasper.compiler.Compiler.compile(Compil er.java:276) at org.apache.jasper.compiler.Compiler.compile(Compil er.java:264) at org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:563) at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:303) at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet .java:802) at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) |
Re: Eclipse + WTP Help
No still got the Same Error after reinstalling,
Im not sure what to do, I checked the JAVA_HOME Path to C:\Sun\AppServer\jdk still it doesnt seem to be recognising the JDK, INFO: Server startup in 1485 ms 14-Aug-2006 12:38:01 org.apache.jasper.compiler.AntCompiler generateClass SEVERE: 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.CompilerAd apterFactory.getCompiler(CompilerAdapterFactory.ja va: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.generateCla ss(AntCompiler.java:219) at org.apache.jasper.compiler.Compiler.compile(Compil er.java:297) at org.apache.jasper.compiler.Compiler.compile(Compil er.java:276) at org.apache.jasper.compiler.Compiler.compile(Compil er.java:264) at org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:563) at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:303) at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet .java:802) at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) 14-Aug-2006 12:38:01 org.apache.jasper.compiler.AntCompiler generateClass SEVERE: Env: Compile: javaFileName=/C:/Documents and Settings/s00042457/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/work/Catalina/localhost/AJAX-9//org/apache/jsp\time_jsp.java classpath=/C:/Documents and Settings/s00042457/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/AJAX-9/WEB-INF/classes/;C:\Documents and Settings\s00042457\workspace\.metadata\.plugins\or g.eclipse.wst.server.core\tmp0\work\Catalina\local host\AJAX-9;/C:/Documents and Settings/s00042457/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/AJAX-9/WEB-INF/classes/;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/classes/;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/i18n/tomcat-i18n-en.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/i18n/tomcat-i18n-es.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/i18n/tomcat-i18n-fr.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/i18n/tomcat-i18n-ja.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/endorsed/xercesImpl.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/endorsed/xml-apis.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/ant.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/commons-el.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/jasper-compiler.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/jasper-runtime.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/jsp-api.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/naming-factory-dbcp.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/naming-factory.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/naming-resources.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/org-netbeans-modules-schema2beans.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/org-netbeans-modules-web-httpmonitor.jar;/C:/Program Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/common/lib/servlet-api.jar;/C:/Program%20Files/netbeans-5.5beta/enterprise3/apache-tomcat-5.5.16/bin/bootstrap.jar;/C:/Program%20Files/Java/j2re1.4.2_12/lib/ext/dnsns.jar;/C:/Program%20Files/Java/j2re1.4.2_12/lib/ext/ldapsec.jar;/C:/Program%20Files/Java/j2re1.4.2_12/lib/ext/sunjce_provider.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\bin\bootstrap.jar cp=C:\Documents and Settings\s00042457\workspace\.metadata\.plugins\or g.eclipse.wst.server.core\tmp0\webapps\AJAX-9\WEB-INF\classes cp=C:\Documents and Settings\s00042457\workspace\.metadata\.plugins\or g.eclipse.wst.server.core\tmp0\work\Catalina\local host\AJAX-9 cp=C:\Documents and Settings\s00042457\workspace\.metadata\.plugins\or g.eclipse.wst.server.core\tmp0\webapps\AJAX-9\WEB-INF\classes cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\classes cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\i18n\tomcat-i18n-en.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\i18n\tomcat-i18n-es.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\i18n\tomcat-i18n-fr.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\i18n\tomcat-i18n-ja.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\endorsed\xercesImpl.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\endorsed\xml-apis.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\ant.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\commons-el.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\jasper-compiler.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\jasper-runtime.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\jsp-api.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\naming-factory-dbcp.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\naming-factory.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\naming-resources.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\org-netbeans-modules-schema2beans.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\org-netbeans-modules-web-httpmonitor.jar cp=C:\Program Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\common\lib\servlet-api.jar cp=C:\Program%20Files\netbeans-5.5beta\enterprise3\apache-tomcat-5.5.16\bin\bootstrap.jar cp=C:\Program%20Files\Java\j2re1.4.2_12\lib\ext\dn sns.jar cp=C:\Program%20Files\Java\j2re1.4.2_12\lib\ext\ld apsec.jar cp=C:\Program%20Files\Java\j2re1.4.2_12\lib\ext\su njce_provider.jar work dir=C:\Documents and Settings\s00042457\workspace\.metadata\.plugins\or g.eclipse.wst.server.core\tmp0\work\Catalina\local host\AJAX-9 extension dir=C:\Program Files\Java\j2re1.4.2_12\lib\ext srcDir=C:\Documents and Settings\s00042457\workspace\.metadata\.plugins\or g.eclipse.wst.server.core\tmp0\work\Catalina\local host\AJAX-9 compilerTargetVM=1.4 compilerSourceVM=1.4 include=org/apache/jsp/time_jsp.java 14-Aug-2006 12:38:01 org.apache.jasper.compiler.AntCompiler generateClass SEVERE: Error compiling file: /C:/Documents and Settings/s00042457/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/work/Catalina/localhost/AJAX-9//org/apache/jsp\time_jsp.java [javac] Compiling 1 source file 14-Aug-2006 12:38:01 org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw 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.CompilerAd apterFactory.getCompiler(CompilerAdapterFactory.ja va: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.generateCla ss(AntCompiler.java:219) at org.apache.jasper.compiler.Compiler.compile(Compil er.java:297) at org.apache.jasper.compiler.Compiler.compile(Compil er.java:276) at org.apache.jasper.compiler.Compiler.compile(Compil er.java:264) at org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:563) at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:303) at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet .java:802) at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) Thank you very much in advance for your in put in advance Sincerely CoolT |
me too... please help.. HTTP Status 500 about jasperreport... but i dont use it yet...
|
| All times are GMT. The time now is 08:39 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.