Re: accessing app from Manager - get 'Unable to find a javac compiler '

2005-06-13 Thread Guillaume Lederrey
On 6/13/05, Brereton, Stephen <[EMAIL PROTECTED]> wrote:
> "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"
> 
> C:\Program Files\Java\jre1.5.0_02 is my JAVA_HOME path, which agrees with
> the jvm path in the tomcat poperties GUI.

  That's the path to a JRE (Runtime Environement) and not a JDK
(Developpement Kit). Only the JDK provides the compilers. You should
check if you actually have a JDK installed and update your JAVA_HOME

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



accessing app from Manager - get 'Unable to find a javac compiler '

2005-06-13 Thread Brereton, Stephen
I've had bad problems with TC 5.5 - so have had to reinstall 5.0
Now, when I try to load an app via the Manager, I get 

"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"

C:\Program Files\Java\jre1.5.0_02 is my JAVA_HOME path, which agrees with
the jvm path in the tomcat poperties GUI.

using w2k IIS5/tomcat 5.0/J2SE 1.5

* * * * * * * * * * * *
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
This email represents the personal views of the author/sender.  The
author/sender has no authority or delegation to bind the City of York
Council by this e-mail and the City of York Council accepts no
responsibility whatsoever for its contents.  Please note that any reply to
this email may be screened.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to find a javac compiler error

2004-10-19 Thread Ben Souther
Do you have a full j2sdk or just a jre?
You will need a full j2sdk (unless you are using tc5.5+).

If so, is your JAVA_HOME evironment variable pointing to it?



On Tue, 2004-10-19 at 03:00, Andrea Mennini wrote:
> Antony Paul wrote:
> 
> >Tomcat needs the tools.jar(For Sun JDK) in Tomcat classpath. Usually
> >[...]
> >  
> >
> No. It does not work.
> 
> This is the error:
> 
> ==
> 
> *type* Exception report
> 
> *message*
> 
> *description* _The server encountered an internal error () that 
> prevented it from fulfilling this request._
> 
> *exception*
> 
> org.apache.jasper.JasperException: Unable to compile class for JSP
>   
> org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
>   org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
>   org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
>   org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
>   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
>   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 
> *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
>   
> org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
>   org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
>   org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
>   org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
>   org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
>   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
>   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to find a javac compiler error

2004-10-19 Thread Andrea Mennini
Harald Henkel wrote:
Well, did you start tomcat from a console (DOS command line) which was
open already before the installation of Tomcat and or Java ?
 

No. After the install I rebooted (under windoze it's the best way to 
ensure that all is set up)

BTW, you are sending mails to the mailing list with a request for reply
(Return Receipt).
This is somewhat annoying, because you have to click that dumb message
away. I at least wouldn't send such a reply to newgroup postings.
 

Yes, you're right and my apologizes for this.
Anyway, I didn't mind it too much (but I'll do in the future) because 
usually mailing lists are set up to filter reply requests. I set it on 
by mistake but, if I would get from this list some valid email address 
to spam, it could be a good way to do it.

Cheers
--
Andrea 

ICQ:5459894
Registered Linux User #24583

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Unable to find a javac compiler error

2004-10-19 Thread Harald Henkel


Andrea Mennini wrote:
> 
> Harald Henkel wrote:
> 
> >Dumb question:
> >Did you install a Javac compiler ?
> >This is included only in the J2SDK, not in the JRE.
> >
> >
> It's not dumb, but I have installed it. I have solver the problem by setting the 
> CATALINA_HOME variable, although I don't understand why it works right now.

Well, did you start tomcat from a console (DOS command line) which was
open already before the installation of Tomcat and or Java ?
Then maybe the environment variables JAVA_HOME/CATALINA_HOME were not
available (although already set/defined) when starting tomcat...


BTW, you are sending mails to the mailing list with a request for reply
(Return Receipt).
This is somewhat annoying, because you have to click that dumb message
away. I at least wouldn't send such a reply to newgroup postings.

Regards,
Harald

-- 
Harald Henkel

GS automation GmbH
Winterstraße 2
82223 Eichenau
Germany
Tel:+ 49-8141-35 731-37
Fax:+ 49-8141-35 731-38
Mobile: + 49-178-7829126
e-mail: [EMAIL PROTECTED]
Web:www.GS-automation.DE

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to find a javac compiler error

2004-10-19 Thread Andrea Mennini
Harald Henkel wrote:
Dumb question:
Did you install a Javac compiler ?
This is included only in the J2SDK, not in the JRE.
 

It's not dumb, but I have installed it. I have solver the problem by setting the 
CATALINA_HOME variable, although I don't understand why it works right now.
--
Andrea 

ICQ:5459894
Registered Linux User #24583

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Unable to find a javac compiler error

2004-10-19 Thread Harald Henkel
Dumb question:

Did you install a Javac compiler ?

This is included only in the J2SDK, not in the JRE.

Andrea Mennini wrote:
> 
> Antony Paul wrote:
> 
> >Tomcat needs the tools.jar(For Sun JDK) in Tomcat classpath. Usually
> >[...]
> >
> >
> No. It does not work.
> 
> This is the error:
> 
> ==
> 
> *type* Exception report
> 
> *message*
> 
> *description* _The server encountered an internal error () that
> prevented it from fulfilling this request._
> 
> *exception*
> 
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
> 
> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
> 
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
> 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 
> *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
> 
> org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
> org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
> org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
> 
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
> 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 
> --
> 
> Andrea Mennini
> Cisco Certified Network Associate (CCNA (r))
> 
> ICQ:5459894
> Registered Linux User #24583
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Harald Henkel

GS automation GmbH
Winterstraße 2
82223 Eichenau
Germany
Tel:+ 49-8141-35 731-37
Fax:+ 49-8141-35 731-38
Mobile: + 49-178-7829126
e-mail: [EMAIL PROTECTED]
Web:www.GS-automation.DE

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to find a javac compiler error

2004-10-19 Thread Andrea Mennini
Antony Paul wrote:
Tomcat needs the tools.jar(For Sun JDK) in Tomcat classpath. Usually
[...]
 

No. It does not work.
This is the error:
==
*type* Exception report
*message*
*description* _The server encountered an internal error () that 
prevented it from fulfilling this request._

*exception*
org.apache.jasper.JasperException: Unable to compile class for JSP

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
*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

org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
--
Andrea Mennini
Cisco Certified Network Associate (CCNA (r))
ICQ:5459894
Registered Linux User #24583

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Unable to find a javac compiler error

2004-10-18 Thread Antony Paul
Tomcat needs the tools.jar(For Sun JDK) in Tomcat classpath. Usually
this is placed in the TOMCAT_HOME\common\lib directory. If it is not
there then copy it to there from JAVA_HOME\lib directory. Restart
Tomcat and try the JSP page.

rgds
Antony Paul


On Mon, 18 Oct 2004 17:38:07 +0200, Andrea Mennini <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I'm trying to run this silly hello.jsp, just to be sure tomcat 5.0.28 is
> running under win2k:
> 
> ===
> 
> 
> 
> JSP Test
> 
> JSP Test
> Time: <%= new java.util.Date() %>
> 
> 
> ===
> 
> When I run it, I receive a message like this one:
> 
> ===
> 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've got a command line and typed %JAVA_HOME%\bin\javac, and javac is run.
> 
> What am I doing wrong?
> 
> TIA
> 
> --
> 
> Andrea
> 
> ICQ:5459894
> Registered Linux User #24583
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Unable to find a javac compiler error

2004-10-18 Thread Andrea Mennini
Hi,
I'm trying to run this silly hello.jsp, just to be sure tomcat 5.0.28 is 
running under win2k:

===



JSP Test

JSP Test
Time: <%= new java.util.Date() %>


===

When I run it, I receive a message like this one:
=======
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've got a command line and typed %JAVA_HOME%\bin\javac, and javac is run.
What am I doing wrong?
TIA
--
Andrea 

ICQ:5459894
Registered Linux User #24583

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Try this (Re: Error: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.)

2003-10-30 Thread Sriram N
Hi:

I do not have Windows, I use Redhat Linux 9 at home.

I just read  the docs at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html

>From what I read  in the third para titled "Java location", I infer the setup
tries to detect the location of the JVM. 

Why don't try the following:
1. Uninstall Tomcat.
2. Set the JAVA_HOME environment variable.
3. From a freshly opened command window, issue the command 
echo %JAVA_HOME%
You should see the location of JAVA_HOME being displayed.
4. Now run the Tomcat installer, and check if JAVA_HOME was made use of.

The Tomcat installer is written with NSIS (excellent, I use it too). Without
the NSI script in front of me, the only problem/bug I would expect would be
that the installer reads the JVM path from the registry before checking the
JAVA_HOME, and that your JVM folder does not have tools.jar.

-- Sriram

--- Gerald Stampfel <[EMAIL PROTECTED]> wrote:
> Got it ! Thanks!
> 
> When starting tomcat from the command line by executing startup.bat, it
> works. But when I am starting it as a windows service, it
> doesn't ! And problem was that I used to start it as a service.
> 
> When I start tomcat as a service, the JVM is started with the following
> parameter :
> -Djava.class.path=C:\Programme\jakarta-tomcat\\bin\bootstrap.jar;C:\Programm
> e\jakarta-tomcat\\common\lib\servlet.jar
> I don't see something like %JAVA_HOME%\lib in here. Could that be the
> problem ?
> 
> -
> Gerald .
> 
> - Original Message - 
> From: "Sriram N" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, October 30, 2003 3:50 AM
> Subject: Try this (Re: Error: Unable to find a javac compiler;
> com.sun.tools.javac.Main is not on the classpath.)
> 
> 
> > Hello:
> >
> > I assume that you are using a standard Tomcat download and have not edited
> any
> > startup scripts.
> >
> > 1. Ensure that you have an environment variable called JAVA_HOME that
> points to
> > your Java installation. If JDK installed in c:\Program Files\JDK1.3.1\,
> then
> > the JAVA_HOME environment variable should be set as
> >
> > SET JAVA_HOME="c:\program Files\JDK1.3.1".
> >
> > 2. Now, JAVA_HOME\lib should contain the file tools.jar. This is a
> requirement
> > of the startup scripts.
> >
> > 3. The startup scripts ensure that the CLASSPATH environment variable is
> NOT
> > used by the JVM. All your CLASSPATH settings are therefore not used at
> all.
> >
> > 4. Now try running Tomcat via the batch files from a command prompt. You
> should
> > see the a few messages that state which environment variables are being
> used.
> >
> > -- Sriram
> >
> > --- Gerald Stampfel <[EMAIL PROTECTED]> wrote:
> > > I solved it by copying tools.jar to tomcat/common/lib.
> > >
> > > Dirty workaround, but didn't find any other.
> > >
> > > -
> > > Gerald S.
> > >
> > >
> > > - Original Message - 
> > > From: "Gerald Stampfel" <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, October 29, 2003 6:18 AM
> > > Subject: Re: Error: Unable to find a javac compiler;
> > > com.sun.tools.javac.Main is not on the classpath.
> > >
> > >
> > > > I am working in a windows environment.
> > > >
> > > > You mean setting my environment variable %classpath% by doing SET
> > > CLASSPATH
> > > > = "..." ?
> > > >
> > > > I have done that and it still doesn't work.
> > > >
> > > > -
> > > > Gerald S.
> > > >
> > > > - Original Message - 
> > > > From: "Jay Garala" <[EMAIL PROTECTED]>
> > > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, October 28, 2003 10:14 PM
> > > > Subject: RE: Error: Unable to find a javac compiler;
> > > > com.sun.tools.javac.Main is not on the classpath.
> > > >
> > > >
> > > > > Make sure u have $JDK/lib/tools.jar in your classpath
> > > > >
> > > > > -Original Message-
> > > > > From: Gerald Stampfel [mailto:[EMAIL PROTECTED]
> > > > > Sent: Tuesday, October 28, 2003 4:11 PM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Error: Unable to find a javac compiler;
> > > com.sun.tools.javac.Main
> > > > is
&g

Re: Try this (Re: Error: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.)

2003-10-29 Thread Gerald Stampfel
Got it ! Thanks!

When starting tomcat from the command line by executing startup.bat, it
works. But when I am starting it as a windows service, it
doesn't ! And problem was that I used to start it as a service.

When I start tomcat as a service, the JVM is started with the following
parameter :
-Djava.class.path=C:\Programme\jakarta-tomcat\\bin\bootstrap.jar;C:\Programm
e\jakarta-tomcat\\common\lib\servlet.jar
I don't see something like %JAVA_HOME%\lib in here. Could that be the
problem ?

-
Gerald .

- Original Message - 
From: "Sriram N" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, October 30, 2003 3:50 AM
Subject: Try this (Re: Error: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.)


> Hello:
>
> I assume that you are using a standard Tomcat download and have not edited
any
> startup scripts.
>
> 1. Ensure that you have an environment variable called JAVA_HOME that
points to
> your Java installation. If JDK installed in c:\Program Files\JDK1.3.1\,
then
> the JAVA_HOME environment variable should be set as
>
> SET JAVA_HOME="c:\program Files\JDK1.3.1".
>
> 2. Now, JAVA_HOME\lib should contain the file tools.jar. This is a
requirement
> of the startup scripts.
>
> 3. The startup scripts ensure that the CLASSPATH environment variable is
NOT
> used by the JVM. All your CLASSPATH settings are therefore not used at
all.
>
> 4. Now try running Tomcat via the batch files from a command prompt. You
should
> see the a few messages that state which environment variables are being
used.
>
> -- Sriram
>
> --- Gerald Stampfel <[EMAIL PROTECTED]> wrote:
> > I solved it by copying tools.jar to tomcat/common/lib.
> >
> > Dirty workaround, but didn't find any other.
> >
> > -
> > Gerald S.
> >
> >
> > - Original Message ----- 
> > From: "Gerald Stampfel" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, October 29, 2003 6:18 AM
> > Subject: Re: Error: Unable to find a javac compiler;
> > com.sun.tools.javac.Main is not on the classpath.
> >
> >
> > > I am working in a windows environment.
> > >
> > > You mean setting my environment variable %classpath% by doing SET
> > CLASSPATH
> > > = "..." ?
> > >
> > > I have done that and it still doesn't work.
> > >
> > > -
> > > Gerald S.
> > >
> > > - Original Message - 
> > > From: "Jay Garala" <[EMAIL PROTECTED]>
> > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > > Sent: Tuesday, October 28, 2003 10:14 PM
> > > Subject: RE: Error: Unable to find a javac compiler;
> > > com.sun.tools.javac.Main is not on the classpath.
> > >
> > >
> > > > Make sure u have $JDK/lib/tools.jar in your classpath
> > > >
> > > > -Original Message-
> > > > From: Gerald Stampfel [mailto:[EMAIL PROTECTED]
> > > > Sent: Tuesday, October 28, 2003 4:11 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Error: Unable to find a javac compiler;
> > com.sun.tools.javac.Main
> > > is
> > > > not on the classpath.
> > > >
> > > >
> > > > Hi folks,
> > > >
> > > > i got the following error message:
> > > >
> > >
> >
> --
> > > --
> > > > --
> > > >
> > > > 2003-10-28 21:58:08 Info: Compile:
> > > >
> > >
> >
javaFileName=C:\Programme\jakarta-tomcat\work\Standalone\localhost\jetspeed\
> > > > /index_jsp.java
> > > >
> > > >
> > >
> >
classpath=/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/activati
> > > >
> > >
> >
on.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/castor-0.9.
> > > >
> > >
> >
3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-bean
> > > >
> > >
> >
utils-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/co
> > > >
> > >
> >
mmons-collections-2.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-
> >
> > > >
> > >
> >
INF/lib/commons-configuration-1.0-dev.jar;/C:/Programme/jakarta-tomcat/webap
> > > >
> > >
> >
ps/jetspeed/WEB-INF/lib/commons-dbcp-1.0-dev-

Try this (Re: Error: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.)

2003-10-29 Thread Sriram N
Hello:

I assume that you are using a standard Tomcat download and have not edited any
startup scripts.

1. Ensure that you have an environment variable called JAVA_HOME that points to
your Java installation. If JDK installed in c:\Program Files\JDK1.3.1\, then
the JAVA_HOME environment variable should be set as 

SET JAVA_HOME="c:\program Files\JDK1.3.1".

2. Now, JAVA_HOME\lib should contain the file tools.jar. This is a requirement
of the startup scripts.

3. The startup scripts ensure that the CLASSPATH environment variable is NOT
used by the JVM. All your CLASSPATH settings are therefore not used at all.

4. Now try running Tomcat via the batch files from a command prompt. You should
see the a few messages that state which environment variables are being used.

-- Sriram

--- Gerald Stampfel <[EMAIL PROTECTED]> wrote:
> I solved it by copying tools.jar to tomcat/common/lib.
> 
> Dirty workaround, but didn't find any other.
> 
> -
> Gerald S.
> 
> 
> - Original Message - 
> From: "Gerald Stampfel" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, October 29, 2003 6:18 AM
> Subject: Re: Error: Unable to find a javac compiler;
> com.sun.tools.javac.Main is not on the classpath.
> 
> 
> > I am working in a windows environment.
> >
> > You mean setting my environment variable %classpath% by doing SET
> CLASSPATH
> > = "..." ?
> >
> > I have done that and it still doesn't work.
> >
> > -
> > Gerald S.
> >
> > - Original Message - 
> > From: "Jay Garala" <[EMAIL PROTECTED]>
> > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > Sent: Tuesday, October 28, 2003 10:14 PM
> > Subject: RE: Error: Unable to find a javac compiler;
> > com.sun.tools.javac.Main is not on the classpath.
> >
> >
> > > Make sure u have $JDK/lib/tools.jar in your classpath
> > >
> > > -Original Message-
> > > From: Gerald Stampfel [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, October 28, 2003 4:11 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Error: Unable to find a javac compiler;
> com.sun.tools.javac.Main
> > is
> > > not on the classpath.
> > >
> > >
> > > Hi folks,
> > >
> > > i got the following error message:
> > >
> >
> > --
> > --
> > > --
> > >
> > > 2003-10-28 21:58:08 Info: Compile:
> > >
> >
> javaFileName=C:\Programme\jakarta-tomcat\work\Standalone\localhost\jetspeed\
> > > /index_jsp.java
> > >
> > >
> >
> classpath=/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/activati
> > >
> >
> on.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/castor-0.9.
> > >
> >
> 3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-bean
> > >
> >
> utils-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/co
> > >
> >
> mmons-collections-2.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-
> 
> > >
> >
> INF/lib/commons-configuration-1.0-dev.jar;/C:/Programme/jakarta-tomcat/webap
> > >
> >
> ps/jetspeed/WEB-INF/lib/commons-dbcp-1.0-dev-20020806.jar;/C:/Programme/jaka
> > >
> >
> rta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-lang-1.0.jar;/C:/Programme/j
> > >
> >
> akarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-logging-1.0.2.jar;/C:/Pro
> > >
> >
> gramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-pool-1.0.jar;/C:/
> > >
> >
> Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/ecs-1.4.1.jar;/C:/Prog
> > >
> >
> ramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/fulcrum-3.0-b2-dev.jar;/C:
> > >
> >
> /Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/hsqldb.jar;/C:/Progra
> > >
> >
> mme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-oro-2.0.6.jar;/C:/Pr
> > >
> >
> ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-regexp-1.2.jar;/
> > >
> >
> C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jcs-1.0-dev.jar;/C:
> > >
> >
> /Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jdbc-se2.0.jar;/C:/Pr
> > >
> >
> ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jetspeed-1.4-b4.jar;/C:/
> > >
> >
> Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/log4j-1.2.6.jar;/C:/Pr
> > >
> >

Re: Error: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.

2003-10-29 Thread Christopher Schultz
Gerald,
I solved it by copying tools.jar to tomcat/common/lib.

Dirty workaround, but didn't find any other.
That's really weird. Let us know if you ever figure out the root of the 
problem.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.

2003-10-29 Thread Gerald Stampfel
I solved it by copying tools.jar to tomcat/common/lib.

Dirty workaround, but didn't find any other.

-
Gerald S.


- Original Message - 
From: "Gerald Stampfel" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 29, 2003 6:18 AM
Subject: Re: Error: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.


> I am working in a windows environment.
>
> You mean setting my environment variable %classpath% by doing SET
CLASSPATH
> = "..." ?
>
> I have done that and it still doesn't work.
>
> -
> Gerald S.
>
> - Original Message - 
> From: "Jay Garala" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, October 28, 2003 10:14 PM
> Subject: RE: Error: Unable to find a javac compiler;
> com.sun.tools.javac.Main is not on the classpath.
>
>
> > Make sure u have $JDK/lib/tools.jar in your classpath
> >
> > -----Original Message-
> > From: Gerald Stampfel [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, October 28, 2003 4:11 PM
> > To: [EMAIL PROTECTED]
> > Subject: Error: Unable to find a javac compiler;
com.sun.tools.javac.Main
> is
> > not on the classpath.
> >
> >
> > Hi folks,
> >
> > i got the following error message:
> >
>
> --
> --
> > --
> >
> > 2003-10-28 21:58:08 Info: Compile:
> >
>
javaFileName=C:\Programme\jakarta-tomcat\work\Standalone\localhost\jetspeed\
> > /index_jsp.java
> >
> >
>
classpath=/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/activati
> >
>
on.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/castor-0.9.
> >
>
3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-bean
> >
>
utils-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/co
> >
>
mmons-collections-2.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-

> >
>
INF/lib/commons-configuration-1.0-dev.jar;/C:/Programme/jakarta-tomcat/webap
> >
>
ps/jetspeed/WEB-INF/lib/commons-dbcp-1.0-dev-20020806.jar;/C:/Programme/jaka
> >
>
rta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-lang-1.0.jar;/C:/Programme/j
> >
>
akarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-logging-1.0.2.jar;/C:/Pro
> >
>
gramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-pool-1.0.jar;/C:/
> >
>
Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/ecs-1.4.1.jar;/C:/Prog
> >
>
ramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/fulcrum-3.0-b2-dev.jar;/C:
> >
>
/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/hsqldb.jar;/C:/Progra
> >
>
mme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-oro-2.0.6.jar;/C:/Pr
> >
>
ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-regexp-1.2.jar;/
> >
>
C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jcs-1.0-dev.jar;/C:
> >
>
/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jdbc-se2.0.jar;/C:/Pr
> >
>
ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jetspeed-1.4-b4.jar;/C:/
> >
>
Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/log4j-1.2.6.jar;/C:/Pr
> >
>
ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/mail.jar;/C:/Programme/j
> >
>
akarta-tomcat/webapps/jetspeed/WEB-INF/lib/ojb-0.7.343.jar;/C:/Programme/jak
> >
>
arta-tomcat/webapps/jetspeed/WEB-INF/lib/soap.jar;/C:/Programme/jakarta-tomc
> >
>
at/webapps/jetspeed/WEB-INF/lib/stratum-1.0-b4-dev.jar;/C:/Programme/jakarta
>
> -tomcat/webapps/jetspeed/WEB-INF/lib/torque-3.0.jar;/C:/Programme/jakarta-
> to
> >
>
mcat/webapps/jetspeed/WEB-INF/lib/turbine-2.2.jar;/C:/Programme/jakarta-tomc
> >
>
at/webapps/jetspeed/WEB-INF/lib/uddi4j.jar;/C:/Programme/jakarta-tomcat/weba
> >
>
pps/jetspeed/WEB-INF/lib/velocity-1.3.jar;/C:/Programme/jakarta-tomcat/webap
> >
>
ps/jetspeed/WEB-INF/lib/village-1.5.3.jar;/C:/Programme/jakarta-tomcat/webap
> >
>
ps/jetspeed/WEB-INF/lib/xalan-2.3.1.jar;/C:/Programme/jakarta-tomcat/webapps
> >
>
/jetspeed/WEB-INF/lib/xerces-2.0.2.jar;/C:/Programme/jakarta-tomcat/webapps/
> >
>
jetspeed/WEB-INF/lib/xercesImpl.jar;/C:/Programme/jakarta-tomcat/webapps/jet
> >
>
speed/WEB-INF/lib/xml-apis.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed
> >
>
/WEB-INF/lib/activation.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WE
> >
>
B-INF/lib/castor-0.9.3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB
>
> -INF/lib/commons-beanutils-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/
> je
&

Re: Error: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.

2003-10-28 Thread Gerald Stampfel
I am working in a windows environment.

You mean setting my environment variable %classpath% by doing SET CLASSPATH
= "..." ?

I have done that and it still doesn't work.

-
Gerald S.

- Original Message - 
From: "Jay Garala" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 10:14 PM
Subject: RE: Error: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.


> Make sure u have $JDK/lib/tools.jar in your classpath
>
> -Original Message-
> From: Gerald Stampfel [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 28, 2003 4:11 PM
> To: [EMAIL PROTECTED]
> Subject: Error: Unable to find a javac compiler; com.sun.tools.javac.Main
is
> not on the classpath.
>
>
> Hi folks,
>
> i got the following error message:
>
> --
--
> --
>
> 2003-10-28 21:58:08 Info: Compile:
>
javaFileName=C:\Programme\jakarta-tomcat\work\Standalone\localhost\jetspeed\
> /index_jsp.java
>
>
classpath=/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/activati
>
on.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/castor-0.9.
>
3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-bean
>
utils-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/co
>
mmons-collections-2.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-
>
INF/lib/commons-configuration-1.0-dev.jar;/C:/Programme/jakarta-tomcat/webap
>
ps/jetspeed/WEB-INF/lib/commons-dbcp-1.0-dev-20020806.jar;/C:/Programme/jaka
>
rta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-lang-1.0.jar;/C:/Programme/j
>
akarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-logging-1.0.2.jar;/C:/Pro
>
gramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-pool-1.0.jar;/C:/
>
Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/ecs-1.4.1.jar;/C:/Prog
>
ramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/fulcrum-3.0-b2-dev.jar;/C:
>
/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/hsqldb.jar;/C:/Progra
>
mme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-oro-2.0.6.jar;/C:/Pr
>
ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-regexp-1.2.jar;/
>
C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jcs-1.0-dev.jar;/C:
>
/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jdbc-se2.0.jar;/C:/Pr
>
ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jetspeed-1.4-b4.jar;/C:/
>
Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/log4j-1.2.6.jar;/C:/Pr
>
ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/mail.jar;/C:/Programme/j
>
akarta-tomcat/webapps/jetspeed/WEB-INF/lib/ojb-0.7.343.jar;/C:/Programme/jak
>
arta-tomcat/webapps/jetspeed/WEB-INF/lib/soap.jar;/C:/Programme/jakarta-tomc
>
at/webapps/jetspeed/WEB-INF/lib/stratum-1.0-b4-dev.jar;/C:/Programme/jakarta
> -tomcat/webapps/jetspeed/WEB-INF/lib/torque-3.0.jar;/C:/Programme/jakarta-
to
>
mcat/webapps/jetspeed/WEB-INF/lib/turbine-2.2.jar;/C:/Programme/jakarta-tomc
>
at/webapps/jetspeed/WEB-INF/lib/uddi4j.jar;/C:/Programme/jakarta-tomcat/weba
>
pps/jetspeed/WEB-INF/lib/velocity-1.3.jar;/C:/Programme/jakarta-tomcat/webap
>
ps/jetspeed/WEB-INF/lib/village-1.5.3.jar;/C:/Programme/jakarta-tomcat/webap
>
ps/jetspeed/WEB-INF/lib/xalan-2.3.1.jar;/C:/Programme/jakarta-tomcat/webapps
>
/jetspeed/WEB-INF/lib/xerces-2.0.2.jar;/C:/Programme/jakarta-tomcat/webapps/
>
jetspeed/WEB-INF/lib/xercesImpl.jar;/C:/Programme/jakarta-tomcat/webapps/jet
>
speed/WEB-INF/lib/xml-apis.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed
>
/WEB-INF/lib/activation.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WE
>
B-INF/lib/castor-0.9.3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB
> -INF/lib/commons-beanutils-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/
je
>
tspeed/WEB-INF/lib/commons-collections-2.0.jar;/C:/Programme/jakarta-tomcat/
>
webapps/jetspeed/WEB-INF/lib/commons-configuration-1.0-dev.jar;/C:/Programme
>
/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-dbcp-1.0-dev-20020806.j
>
ar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-lang-1.
>
0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-logg
>
ing-1.0.2.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/comm
>
ons-pool-1.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/e
>
cs-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/fulcr
>
um-3.0-b2-dev.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/
>
hsqldb.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta
> -oro-2.0.6.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/j
ak
>
arta-regexp-1.2.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed

Re: Error: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.

2003-10-28 Thread Gerald Stampfel
It definitely points to a jdk and $JAVA_HOME/lib/tools.jar does exist.

-
Gerald S.

- Original Message - 
From: "Christopher Schultz" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 10:51 PM
Subject: Re: Error: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.


> Gerald,
>
> > i got the following error message:
>
> [snip]
>
> > Exception compiling 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
> >
> > JAVA_HOME points to the correct JDK.
>
> Are you sure it points to a JDK and not a JRE? Often, people install the
> JDK which comes with a JRE and then point JAVA_HOME to the wrong one. If
> there's no $JAVA_HOME/lib/tools.jar, then your install is either
> incorrect (JRE instead of JDK) or broken.
>
> -chris
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.

2003-10-28 Thread Christopher Schultz
Gerald,

i got the following error message:
[snip]

Exception compiling 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
JAVA_HOME points to the correct JDK.
Are you sure it points to a JDK and not a JRE? Often, people install the 
JDK which comes with a JRE and then point JAVA_HOME to the wrong one. If 
there's no $JAVA_HOME/lib/tools.jar, then your install is either 
incorrect (JRE instead of JDK) or broken.

-chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Error: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.

2003-10-28 Thread Jay Garala
Make sure u have $JDK/lib/tools.jar in your classpath

-Original Message-
From: Gerald Stampfel [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 4:11 PM
To: [EMAIL PROTECTED]
Subject: Error: Unable to find a javac compiler; com.sun.tools.javac.Main is
not on the classpath.


Hi folks,

i got the following error message:


--

2003-10-28 21:58:08 Info: Compile:
javaFileName=C:\Programme\jakarta-tomcat\work\Standalone\localhost\jetspeed\
/index_jsp.java
 
classpath=/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/activati
on.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/castor-0.9.
3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-bean
utils-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/co
mmons-collections-2.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-
INF/lib/commons-configuration-1.0-dev.jar;/C:/Programme/jakarta-tomcat/webap
ps/jetspeed/WEB-INF/lib/commons-dbcp-1.0-dev-20020806.jar;/C:/Programme/jaka
rta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-lang-1.0.jar;/C:/Programme/j
akarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-logging-1.0.2.jar;/C:/Pro
gramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-pool-1.0.jar;/C:/
Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/ecs-1.4.1.jar;/C:/Prog
ramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/fulcrum-3.0-b2-dev.jar;/C:
/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/hsqldb.jar;/C:/Progra
mme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-oro-2.0.6.jar;/C:/Pr
ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-regexp-1.2.jar;/
C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jcs-1.0-dev.jar;/C:
/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jdbc-se2.0.jar;/C:/Pr
ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jetspeed-1.4-b4.jar;/C:/
Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/log4j-1.2.6.jar;/C:/Pr
ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/mail.jar;/C:/Programme/j
akarta-tomcat/webapps/jetspeed/WEB-INF/lib/ojb-0.7.343.jar;/C:/Programme/jak
arta-tomcat/webapps/jetspeed/WEB-INF/lib/soap.jar;/C:/Programme/jakarta-tomc
at/webapps/jetspeed/WEB-INF/lib/stratum-1.0-b4-dev.jar;/C:/Programme/jakarta
-tomcat/webapps/jetspeed/WEB-INF/lib/torque-3.0.jar;/C:/Programme/jakarta-to
mcat/webapps/jetspeed/WEB-INF/lib/turbine-2.2.jar;/C:/Programme/jakarta-tomc
at/webapps/jetspeed/WEB-INF/lib/uddi4j.jar;/C:/Programme/jakarta-tomcat/weba
pps/jetspeed/WEB-INF/lib/velocity-1.3.jar;/C:/Programme/jakarta-tomcat/webap
ps/jetspeed/WEB-INF/lib/village-1.5.3.jar;/C:/Programme/jakarta-tomcat/webap
ps/jetspeed/WEB-INF/lib/xalan-2.3.1.jar;/C:/Programme/jakarta-tomcat/webapps
/jetspeed/WEB-INF/lib/xerces-2.0.2.jar;/C:/Programme/jakarta-tomcat/webapps/
jetspeed/WEB-INF/lib/xercesImpl.jar;/C:/Programme/jakarta-tomcat/webapps/jet
speed/WEB-INF/lib/xml-apis.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed
/WEB-INF/lib/activation.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WE
B-INF/lib/castor-0.9.3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB
-INF/lib/commons-beanutils-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/je
tspeed/WEB-INF/lib/commons-collections-2.0.jar;/C:/Programme/jakarta-tomcat/
webapps/jetspeed/WEB-INF/lib/commons-configuration-1.0-dev.jar;/C:/Programme
/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-dbcp-1.0-dev-20020806.j
ar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-lang-1.
0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-logg
ing-1.0.2.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/comm
ons-pool-1.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/e
cs-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/fulcr
um-3.0-b2-dev.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/
hsqldb.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta
-oro-2.0.6.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jak
arta-regexp-1.2.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/li
b/jcs-1.0-dev.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/
jdbc-se2.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jet
speed-1.4-b4.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/l
og4j-1.2.6.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/mai
l.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/ojb-0.7.343.
jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/soap.jar;/C:/P
rogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/stratum-1.0-b4-dev.jar;
/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/torque-3.0.jar;/C:
/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/turbine-2.2.jar;/C:/P
rogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/uddi4j.jar;/C:/Programm
e/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/velocity

Error: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.

2003-10-28 Thread Gerald Stampfel
\jetspeed\WEB-INF\lib\jcs-1.0-dev.jar
 cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\jdbc-se2.0.jar
 cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\jetspeed-1.4-b4.jar
 cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\log4j-1.2.6.jar
 cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\mail.jar
 cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\ojb-0.7.343.jar
 cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\soap.jar
 cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\stratum-1.0-b4-dev.jar
 cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\torque-3.0.jar
 cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\turbine-2.2.jar
 cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\uddi4j.jar
 cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\velocity-1.3.jar
 cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\village-1.5.3.jar
 cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\xalan-2.3.1.jar
 cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\xerces-2.0.2.jar
 cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\xercesImpl.jar
 cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\xml-apis.jar
 cp=C:\Programme\jakarta-tomcat\shared\classes
 cp=C:\Programme\jakarta-tomcat\common\classes
 cp=C:\Programme\jakarta-tomcat\common\endorsed\xercesImpl.jar
 cp=C:\Programme\jakarta-tomcat\common\endorsed\xmlParserAPIs.jar
 cp=C:\Programme\jakarta-tomcat\common\lib\activation.jar
 cp=C:\Programme\jakarta-tomcat\common\lib\ant.jar
 cp=C:\Programme\jakarta-tomcat\common\lib\commons-collections.jar
 cp=C:\Programme\jakarta-tomcat\common\lib\commons-dbcp.jar
 cp=C:\Programme\jakarta-tomcat\common\lib\commons-logging-api.jar
 cp=C:\Programme\jakarta-tomcat\common\lib\commons-pool.jar
 cp=C:\Programme\jakarta-tomcat\common\lib\jasper-compiler.jar
 cp=C:\Programme\jakarta-tomcat\common\lib\jasper-runtime.jar
 cp=C:\Programme\jakarta-tomcat\common\lib\jdbc2_0-stdext.jar
 cp=C:\Programme\jakarta-tomcat\common\lib\jndi.jar
 cp=C:\Programme\jakarta-tomcat\common\lib\jta.jar
 cp=C:\Programme\jakarta-tomcat\common\lib\mail.jar
 cp=C:\Programme\jakarta-tomcat\common\lib\naming-common.jar
 cp=C:\Programme\jakarta-tomcat\common\lib\naming-factory.jar
 cp=C:\Programme\jakarta-tomcat\common\lib\naming-resources.jar
 cp=C:\Programme\jakarta-tomcat\common\lib\servlet.jar
 work dir=C:\Programme\jakarta-tomcat\work\Standalone\localhost\jetspeed
srcDir=C:\Programme\jakarta-tomcat\work\Standalone\localhost\jetspeed
include=index_jsp.java
Exception compiling 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

--

JAVA_HOME points to the correct JDK.

I read that tools.jar has to be on my classpath and indeed this file is not listed 
above. 

So i have to get tools.jar in my classpath, true ? How can i accomplish this ?

Thanks!

-
Gerald S.



RE: Unable to find a javac compiler

2003-08-01 Thread Bradberry, Rick


I have the env variables set and have tried it as a services and as a
inprocess with the same results with mod_jk2. I found a HOWTO on mod_jk and
it seems to work ok using Tomcat as a service. The only problem now is that
the auto gen conf files have a problem with blanks in the paths of the
webapps. I can fix this manually until I can get all the paths changed.

Question:
What am I giving up using jk instead of jk2

Rick

-Original Message-
From: shyam [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 3:50 PM
To: Tomcat Users List
Subject: Re: Unable to find a javac compiler


I also had the same problem. If you have installed tomcat as a service this
problem comes. You need to have the JAVA_HOME variable set to your
j2sdk1.4.1 directory in the environmental variables . Hope this helps you.
- Original Message - 
From: "Bradberry, Rick" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 3:42 PM
Subject: Unable to find a javac compiler


> Hi,
>
> Got a problem with Apache 2.0.47, Tomcat 4.1.18 and  j2sdk 1.4.1.01. I've
> read through the archive and
> found some close to my problem, but not quit.
>
> My problem:
>
> I've installed Apache and Tomcat as standalone servers and they both work
> great. Now I'm trying to
> get them to talk to each other.
>
> I read through a HOWTO on setting it up on win2K as a inprocess server for
> jk2 and it almost works.
> Apache passes the request to Tomcat and Tomcat will process them unless it
> comes across
> a jsp page that has not been complied. Then I get
> "Unable to find a javac compiler" in the Tomcat logs. However, If I start
> Tomcat as a stand alone and
> go to the same page it compiles it and then I can go back to Apache and it
> will work.
>
> I've tried everything I can find, but get the same results.
>
> any help would be greatly appreciated.
>
> Some setup
>
> JAVA_HOME=C:\Program Files\eclipse\j2sdk1.4.1_01
> CATALINA_HOME=C:\Program Files\Apache Group\jakarta-tomcat-4.1.18
> TOMCAT_HOME=C:\Program Files\Apache Group\jakarta-tomcat-4.1.18
>
> JK2.properties from HOWTO
>
> ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
> ## WHEN YOU EDIT THE FILE.
> ## COMMENTS WILL BE _LOST_
>
> ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
>
> # Override the default port for the socketChannel
> # channelSocket.port=8019
> # Default:
> # channelUnix.file=${jkHome}/work/jk2.socket
> # Just to check if the the config  is working
> shm.file=C:\Program Files\Apache Group\Apache2/logs/jk2.shm
>
> # In order to enable jni use any channelJni directive
> channelJni.disabled = 0
> # And one of the following directives:
>
> # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
>
> # If set to inprocess the mod_jk2 will Register natives itself
> # This will enable the starting of the Tomcat from mod_jk2
> apr.jniModeSo=inprocess
>
>
> worker.properties from the HOWTO.
>
> [logger]
> level=DEBUG
>
> [config:]
> #file=${serverRoot}/conf/workers2.properties
> file=C:/Program Files/Apache Group/Apache2/conf/workers2.properties
> debug=0
> debugEnv=0
>
> [uriMap:]
> info=Maps the requests. Options: debug
> debug=0
>
> # Alternate file logger
> #[logger.file:0]
> #level=DEBUG
> #file=${serverRoot}/logs/jk2.log
>
> [shm:]
> info=Scoreboard. Required for reconfiguration and status with multiprocess
> servers
> file=C:/Program Files/Apache Group/Apache2/logs/jk2.shm
> size=100
> debug=0
> disabled=0
>
> [workerEnv:]
> info=Global server options
> timing=1
> debug=0
> # Default Native Logger (apache2 or win32 )
> # can be overriden to a file logger, useful
> # when tracing win32 related issues
> #logger=logger.file:0
>
> [lb:lb]
> info=Default load balancer.
> debug=0
>
> #[lb:lb_1]
> #info=A second load balancer.
> #debug=0
>
> [channel.socket:localhost:8009]
> info=Ajp13 forwarding over socket
> debug=0
> tomcatId=localhost:8009
>
> #[channel.socket:localhost:8019]
> #info=A second tomcat instance.
> #debug=0
> #tomcatId=localhost:8019
> #lb_factor=1
> #group=lb
> #group=lb_1
> #disabled=0
>
> #[channel.un:/opt/33/work/jk2.socket]
> #info=A second channel connecting to localhost:8019 via unix socket
> #tomcatId=localhost:8019
> #lb_factor=1
> #debug=0
>
> [channel.jni:jni]
> info=The jni channel, used if tomcat is started inprocess
>
> [status:]
> info=Status worker, displays runtime informations
>
> [vm:]
> info=Parameters used to load a JVM in the server process
> #JVM=C:\jdk\jre\bin\hotspot\jvm.dll
> OPT=-Djava.class.path=C:/Program Files/Apache
> Group/jakarta-tomcat-4.1.

Re: Unable to find a javac compiler

2003-07-31 Thread shyam
I also had the same problem. If you have installed tomcat as a service this
problem comes. You need to have the JAVA_HOME variable set to your
j2sdk1.4.1 directory in the environmental variables . Hope this helps you.
- Original Message - 
From: "Bradberry, Rick" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 3:42 PM
Subject: Unable to find a javac compiler


> Hi,
>
> Got a problem with Apache 2.0.47, Tomcat 4.1.18 and  j2sdk 1.4.1.01. I've
> read through the archive and
> found some close to my problem, but not quit.
>
> My problem:
>
> I've installed Apache and Tomcat as standalone servers and they both work
> great. Now I'm trying to
> get them to talk to each other.
>
> I read through a HOWTO on setting it up on win2K as a inprocess server for
> jk2 and it almost works.
> Apache passes the request to Tomcat and Tomcat will process them unless it
> comes across
> a jsp page that has not been complied. Then I get
> "Unable to find a javac compiler" in the Tomcat logs. However, If I start
> Tomcat as a stand alone and
> go to the same page it compiles it and then I can go back to Apache and it
> will work.
>
> I've tried everything I can find, but get the same results.
>
> any help would be greatly appreciated.
>
> Some setup
>
> JAVA_HOME=C:\Program Files\eclipse\j2sdk1.4.1_01
> CATALINA_HOME=C:\Program Files\Apache Group\jakarta-tomcat-4.1.18
> TOMCAT_HOME=C:\Program Files\Apache Group\jakarta-tomcat-4.1.18
>
> JK2.properties from HOWTO
>
> ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
> ## WHEN YOU EDIT THE FILE.
> ## COMMENTS WILL BE _LOST_
>
> ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
>
> # Override the default port for the socketChannel
> # channelSocket.port=8019
> # Default:
> # channelUnix.file=${jkHome}/work/jk2.socket
> # Just to check if the the config  is working
> shm.file=C:\Program Files\Apache Group\Apache2/logs/jk2.shm
>
> # In order to enable jni use any channelJni directive
> channelJni.disabled = 0
> # And one of the following directives:
>
> # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
>
> # If set to inprocess the mod_jk2 will Register natives itself
> # This will enable the starting of the Tomcat from mod_jk2
> apr.jniModeSo=inprocess
>
>
> worker.properties from the HOWTO.
>
> [logger]
> level=DEBUG
>
> [config:]
> #file=${serverRoot}/conf/workers2.properties
> file=C:/Program Files/Apache Group/Apache2/conf/workers2.properties
> debug=0
> debugEnv=0
>
> [uriMap:]
> info=Maps the requests. Options: debug
> debug=0
>
> # Alternate file logger
> #[logger.file:0]
> #level=DEBUG
> #file=${serverRoot}/logs/jk2.log
>
> [shm:]
> info=Scoreboard. Required for reconfiguration and status with multiprocess
> servers
> file=C:/Program Files/Apache Group/Apache2/logs/jk2.shm
> size=100
> debug=0
> disabled=0
>
> [workerEnv:]
> info=Global server options
> timing=1
> debug=0
> # Default Native Logger (apache2 or win32 )
> # can be overriden to a file logger, useful
> # when tracing win32 related issues
> #logger=logger.file:0
>
> [lb:lb]
> info=Default load balancer.
> debug=0
>
> #[lb:lb_1]
> #info=A second load balancer.
> #debug=0
>
> [channel.socket:localhost:8009]
> info=Ajp13 forwarding over socket
> debug=0
> tomcatId=localhost:8009
>
> #[channel.socket:localhost:8019]
> #info=A second tomcat instance.
> #debug=0
> #tomcatId=localhost:8019
> #lb_factor=1
> #group=lb
> #group=lb_1
> #disabled=0
>
> #[channel.un:/opt/33/work/jk2.socket]
> #info=A second channel connecting to localhost:8019 via unix socket
> #tomcatId=localhost:8019
> #lb_factor=1
> #debug=0
>
> [channel.jni:jni]
> info=The jni channel, used if tomcat is started inprocess
>
> [status:]
> info=Status worker, displays runtime informations
>
> [vm:]
> info=Parameters used to load a JVM in the server process
> #JVM=C:\jdk\jre\bin\hotspot\jvm.dll
> OPT=-Djava.class.path=C:/Program Files/Apache
> Group/jakarta-tomcat-4.1.18/bin/tomcat-jni.jar;C:/Program Files/Apache
> Group/jakarta-tomcat-4.1.18/server/lib/commons-logging.jar;C:/Program
> Files/eclipse/j2sdk1.4.1_01/bin;C:/Program Files/Apache
> Group/jakarta-tomcat-4.1.18/jre/lib/rt.jar;C:/Program Files/Apache
> Group/jakarta-tomcat-4.1.18/lib/tools.jar
> OPT=-Dtomcat.home=C:/Program Files/Apache Group/jakarta-tomcat-4.1.18
> OPT=-Dcatalina.home=C:/Program Files/Apache Group/jakarta-tomcat-4.1.18
> OPT=-Djava.home=C:/Program Files/eclipse/j2sdk1.4.1_01
> OPT=-Xmx128M
> #OPT=-Djava.compiler=NONE
> OPT=-Djava.compiler=C:/Program Fi

Re: Unable to find a javac compiler

2003-07-31 Thread Reginald Oake
Hi.

It sounds like when running Tomcat with Apache that your path variable
is not being passed to the Jasper compiler (not sure what the solution
is but I hope this is of some value).


Thanx,


Reg


On Thu, 2003-07-31 at 13:42, Bradberry, Rick wrote:
> Hi,
>  
> Got a problem with Apache 2.0.47, Tomcat 4.1.18 and  j2sdk 1.4.1.01. I've
> read through the archive and 
> found some close to my problem, but not quit. 
>  
> My problem:
>  
> I've installed Apache and Tomcat as standalone servers and they both work
> great. Now I'm trying to 
> get them to talk to each other. 
>  
> I read through a HOWTO on setting it up on win2K as a inprocess server for
> jk2 and it almost works. 
> Apache passes the request to Tomcat and Tomcat will process them unless it
> comes across 
> a jsp page that has not been complied. Then I get
> "Unable to find a javac compiler" in the Tomcat logs. However, If I start
> Tomcat as a stand alone and
> go to the same page it compiles it and then I can go back to Apache and it
> will work.
>  
> I've tried everything I can find, but get the same results.
>  
> any help would be greatly appreciated.
>  
> Some setup
>  
> JAVA_HOME=C:\Program Files\eclipse\j2sdk1.4.1_01
> CATALINA_HOME=C:\Program Files\Apache Group\jakarta-tomcat-4.1.18
> TOMCAT_HOME=C:\Program Files\Apache Group\jakarta-tomcat-4.1.18
>  
> JK2.properties from HOWTO
>  
> ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
> ## WHEN YOU EDIT THE FILE.
> ## COMMENTS WILL BE _LOST_
>  
> ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
>  
> # Override the default port for the socketChannel
> # channelSocket.port=8019
> # Default:
> # channelUnix.file=${jkHome}/work/jk2.socket
> # Just to check if the the config  is working
> shm.file=C:\Program Files\Apache Group\Apache2/logs/jk2.shm
>  
> # In order to enable jni use any channelJni directive
> channelJni.disabled = 0
> # And one of the following directives:
>  
> # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
>  
> # If set to inprocess the mod_jk2 will Register natives itself
> # This will enable the starting of the Tomcat from mod_jk2
> apr.jniModeSo=inprocess
>  
> 
> worker.properties from the HOWTO.
>  
> [logger]
> level=DEBUG
>  
> [config:]
> #file=${serverRoot}/conf/workers2.properties
> file=C:/Program Files/Apache Group/Apache2/conf/workers2.properties
> debug=0
> debugEnv=0
>  
> [uriMap:]
> info=Maps the requests. Options: debug
> debug=0
>  
> # Alternate file logger
> #[logger.file:0]
> #level=DEBUG
> #file=${serverRoot}/logs/jk2.log
>  
> [shm:]
> info=Scoreboard. Required for reconfiguration and status with multiprocess
> servers
> file=C:/Program Files/Apache Group/Apache2/logs/jk2.shm
> size=100
> debug=0
> disabled=0
>  
> [workerEnv:]
> info=Global server options
> timing=1
> debug=0
> # Default Native Logger (apache2 or win32 )
> # can be overriden to a file logger, useful
> # when tracing win32 related issues
> #logger=logger.file:0
>  
> [lb:lb]
> info=Default load balancer.
> debug=0
>  
> #[lb:lb_1]
> #info=A second load balancer.
> #debug=0
>  
> [channel.socket:localhost:8009]
> info=Ajp13 forwarding over socket
> debug=0
> tomcatId=localhost:8009
>  
> #[channel.socket:localhost:8019]
> #info=A second tomcat instance.
> #debug=0
> #tomcatId=localhost:8019
> #lb_factor=1
> #group=lb
> #group=lb_1
> #disabled=0
>  
> #[channel.un:/opt/33/work/jk2.socket]
> #info=A second channel connecting to localhost:8019 via unix socket
> #tomcatId=localhost:8019
> #lb_factor=1
> #debug=0
>  
> [channel.jni:jni]
> info=The jni channel, used if tomcat is started inprocess
>  
> [status:]
> info=Status worker, displays runtime informations
>  
> [vm:]
> info=Parameters used to load a JVM in the server process
> #JVM=C:\jdk\jre\bin\hotspot\jvm.dll
> OPT=-Djava.class.path=C:/Program Files/Apache
> Group/jakarta-tomcat-4.1.18/bin/tomcat-jni.jar;C:/Program Files/Apache
> Group/jakarta-tomcat-4.1.18/server/lib/commons-logging.jar;C:/Program
> Files/eclipse/j2sdk1.4.1_01/bin;C:/Program Files/Apache
> Group/jakarta-tomcat-4.1.18/jre/lib/rt.jar;C:/Program Files/Apache
> Group/jakarta-tomcat-4.1.18/lib/tools.jar
> OPT=-Dtomcat.home=C:/Program Files/Apache Group/jakarta-tomcat-4.1.18
> OPT=-Dcatalina.home=C:/Program Files/Apache Group/jakarta-tomcat-4.1.18
> OPT=-Djava.home=C:/Program Files/eclipse/j2sdk1.4.1_01
> OPT=-Xmx128M
> #OPT=-Djava.compiler=NONE
> OPT=-Djava.compiler=C:/Program Files/eclipse/j2sdk1.4.1_01/bin/javac
> disabled=0
>  
> [worker.jni:onStartup]
> inf

Unable to find a javac compiler

2003-07-31 Thread Bradberry, Rick
Hi,
 
Got a problem with Apache 2.0.47, Tomcat 4.1.18 and  j2sdk 1.4.1.01. I've
read through the archive and 
found some close to my problem, but not quit. 
 
My problem:
 
I've installed Apache and Tomcat as standalone servers and they both work
great. Now I'm trying to 
get them to talk to each other. 
 
I read through a HOWTO on setting it up on win2K as a inprocess server for
jk2 and it almost works. 
Apache passes the request to Tomcat and Tomcat will process them unless it
comes across 
a jsp page that has not been complied. Then I get
"Unable to find a javac compiler" in the Tomcat logs. However, If I start
Tomcat as a stand alone and
go to the same page it compiles it and then I can go back to Apache and it
will work.
 
I've tried everything I can find, but get the same results.
 
any help would be greatly appreciated.
 
Some setup
 
JAVA_HOME=C:\Program Files\eclipse\j2sdk1.4.1_01
CATALINA_HOME=C:\Program Files\Apache Group\jakarta-tomcat-4.1.18
TOMCAT_HOME=C:\Program Files\Apache Group\jakarta-tomcat-4.1.18
 
JK2.properties from HOWTO
 
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.
## COMMENTS WILL BE _LOST_
 
## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
 
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
shm.file=C:\Program Files\Apache Group\Apache2/logs/jk2.shm
 
# In order to enable jni use any channelJni directive
channelJni.disabled = 0
# And one of the following directives:
 
# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
 
# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
apr.jniModeSo=inprocess
 
 
worker.properties from the HOWTO.
 
[logger]
level=DEBUG
 
[config:]
#file=${serverRoot}/conf/workers2.properties
file=C:/Program Files/Apache Group/Apache2/conf/workers2.properties
debug=0
debugEnv=0
 
[uriMap:]
info=Maps the requests. Options: debug
debug=0
 
# Alternate file logger
#[logger.file:0]
#level=DEBUG
#file=${serverRoot}/logs/jk2.log
 
[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=C:/Program Files/Apache Group/Apache2/logs/jk2.shm
size=100
debug=0
disabled=0
 
[workerEnv:]
info=Global server options
timing=1
debug=0
# Default Native Logger (apache2 or win32 )
# can be overriden to a file logger, useful
# when tracing win32 related issues
#logger=logger.file:0
 
[lb:lb]
info=Default load balancer.
debug=0
 
#[lb:lb_1]
#info=A second load balancer.
#debug=0
 
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009
 
#[channel.socket:localhost:8019]
#info=A second tomcat instance.
#debug=0
#tomcatId=localhost:8019
#lb_factor=1
#group=lb
#group=lb_1
#disabled=0
 
#[channel.un:/opt/33/work/jk2.socket]
#info=A second channel connecting to localhost:8019 via unix socket
#tomcatId=localhost:8019
#lb_factor=1
#debug=0
 
[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess
 
[status:]
info=Status worker, displays runtime informations
 
[vm:]
info=Parameters used to load a JVM in the server process
#JVM=C:\jdk\jre\bin\hotspot\jvm.dll
OPT=-Djava.class.path=C:/Program Files/Apache
Group/jakarta-tomcat-4.1.18/bin/tomcat-jni.jar;C:/Program Files/Apache
Group/jakarta-tomcat-4.1.18/server/lib/commons-logging.jar;C:/Program
Files/eclipse/j2sdk1.4.1_01/bin;C:/Program Files/Apache
Group/jakarta-tomcat-4.1.18/jre/lib/rt.jar;C:/Program Files/Apache
Group/jakarta-tomcat-4.1.18/lib/tools.jar
OPT=-Dtomcat.home=C:/Program Files/Apache Group/jakarta-tomcat-4.1.18
OPT=-Dcatalina.home=C:/Program Files/Apache Group/jakarta-tomcat-4.1.18
OPT=-Djava.home=C:/Program Files/eclipse/j2sdk1.4.1_01
OPT=-Xmx128M
#OPT=-Djava.compiler=NONE
OPT=-Djava.compiler=C:/Program Files/eclipse/j2sdk1.4.1_01/bin/javac
disabled=0
 
[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
disabled=0
stdout=C:/Program Files/Apache Group/Apache2/logs/stdout.log
stderr=C:/Program Files/Apache Group/Apache2/logs/stderr.log
 
[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop
disabled=0
 
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:
 
#[uri:127.0.0.1:8003]
#info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test
it
#alias=myVirtualHost:8003
 
#[uri:127.0.0.1:8003/ex]
#info=Example webapp in the virtual host. It'll go to lb_1 ( i.e.
localhost:8019 )
#context=/ex
#group=lb_1
 
[uri:/examples]
info=Example webapp in the default context.
context=/examples
debug=0
 
#[uri:/examples1/*]
#info=A second webapp, this time going to the second tomcat only.
#group=lb_1
#debug=0
 
[ur

Re: Problem with fresh installation: "Unable to find a javac compiler"

2003-01-21 Thread Bert Catsburg
Ravi,
thanks for your prompt answer.

At the command prompt I type 'javac' and get a response from the
compiler. So, javac is found.
I do not understand why I should add %java_home%\bin to the
classpath. First, I read somewhere that I do not need a classpath
(although I do have a classpath variable pointing to the %java_home%\lib
directory). Second, the bin directory does not contain jar or class
files.

Hope somebody can point me to other possible solutions.

Thanks,

Bert Catsburg



Ravindra K. Bhat wrote:

Your %JAVA HOME% is not set correctly.  Check to see if you can run
the compiler at the command prompt...ie
 type JAVAC at the c:\ prompt if it says external command it means the
JAVA_HOME is not set correctly..

to set it correctly you need to add the JAVA_HOME to your SYSTEM
PROPS->Environment to point to the correct directory.  You may also need
to add the %JAVA_HOME%\bin to your class path ie you can specify the class
path as c:\jdk X X X\bin;

Hope this helps
Ravi





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Problem with fresh installation: "Unable to find a javac compiler"

2003-01-21 Thread Ravindra K. Bhat
Your %JAVA HOME% is not set correctly.  Check to see if you can run
the compiler at the command prompt...ie
 type JAVAC at the c:\ prompt if it says external command it means the
JAVA_HOME is not set correctly..

to set it correctly you need to add the JAVA_HOME to your SYSTEM
PROPS->Environment to point to the correct directory.  You may also need
to add the %JAVA_HOME%\bin to your class path ie you can specify the class
path as c:\jdk X X X\bin;

Hope this helps
Ravi



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Problem with fresh installation: "Unable to find a javac compiler"

2003-01-21 Thread Bert Catsburg
Hello Tomcat experts,

I have a problem with getting the installation to work.
First an overview of my installation:
JAVA_HOME = C:\j2sdk1.4.1_01\
Tomcat is installed in C:\jakarta-tomcat-4.1.18-LE-jdk14\

When starting tomcat (http://127.0.0.1:8080/index.jsp)
I get the following error in the stderr.log file:

  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 searched this list and all other resources and I cannot
find any reference to this problem.

Anybody can help me? Please?
Thanks,

Bert Catsburg


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>