Eclipse + WTP Help

C

coolgirl

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
 
R

Roland de Ruiter

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.]
 
C

coolgirl

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.]

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.jspa?threadID=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
 
R

Roland de Ruiter

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.]

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.jspa?threadID=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.
 
C

coolgirl

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.jspError(DefaultErrorHandler.java:39)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:234)
at
org.apache.jasper.compiler.Validator$DirectiveVisitor.visit(Validator.java:127)
at org.apache.jasper.compiler.Node$PageDirective.accept(Node.java:549)
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.Validator.validate(Validator.java:1452)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:166)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(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.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)

Sincerely CoolT
 
R

Roland de Ruiter

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 %>)
 
C

coolgirl

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.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:297)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(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.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.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\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\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\org.eclipse.wst.server.core\tmp0\webapps\AJAX-9\WEB-INF\classes
cp=C:\Documents and
Settings\s00042457\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AJAX-9
cp=C:\Documents and
Settings\s00042457\workspace\.metadata\.plugins\org.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\dnsns.jar
cp=C:\Program%20Files\Java\j2re1.4.2_12\lib\ext\ldapsec.jar
cp=C:\Program%20Files\Java\j2re1.4.2_12\lib\ext\sunjce_provider.jar
work dir=C:\Documents and
Settings\s00042457\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AJAX-9
extension dir=C:\Program Files\Java\j2re1.4.2_12\lib\ext
srcDir=C:\Documents and
Settings\s00042457\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\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.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:297)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(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.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
 
C

coolgirl

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.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:297)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(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.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.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\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\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\org.eclipse.wst.server.core\tmp0\webapps\AJAX-9\WEB-INF\classes
cp=C:\Documents and
Settings\s00042457\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AJAX-9
cp=C:\Documents and
Settings\s00042457\workspace\.metadata\.plugins\org.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\dnsns.jar
cp=C:\Program%20Files\Java\j2re1.4.2_12\lib\ext\ldapsec.jar
cp=C:\Program%20Files\Java\j2re1.4.2_12\lib\ext\sunjce_provider.jar
work dir=C:\Documents and
Settings\s00042457\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AJAX-9
extension dir=C:\Program Files\Java\j2re1.4.2_12\lib\ext
srcDir=C:\Documents and
Settings\s00042457\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\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.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:297)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(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.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top