RE: Recompiling jsp; Problems with "Access Denied" errors after I edit a file in a webapp; Admin app

2005-05-14 Thread Caldarale, Charles R
> From: Karr, David [mailto:[EMAIL PROTECTED] 
> Subject: Recompiling jsp; Problems with "Access Denied" 
> errors after I edit a file in a webapp; Admin app
> 
> First of all, what is the "admin app"?

The admin app lets you view and manipulate nearly all Tomcat
configuration values.  It's a web-based interface to the myriad of .xml
files.

> it says I must download and install the "admin package".

The admin package is the .zip file called, cleverly enough, "admin" on
the Tomcat download page.  Just download and unzip it, using the same
base directory in which Tomcat is installed.

> Is it feasible to have the actual webapp location be outside of the 
> Tomcat distribution?

Yes, read the how-to on deployment.

> that seems to cause Tomcat to fail with "Access denied" errors on the 
> files that I edited.

I suspect you're running Tomcat as a service, with its own account (by
default, "SYSTEM").  When you edited the file under your account, the
ownership changed, and Tomcat no longer had access.  You should be able
to fix this by specifying the proper security on the directories and
files you want Tomcat to use.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Recompiling jsp; Problems with "Access Denied" errors after I edit a file in a webapp; Admin app

2005-05-14 Thread Karr, David
I've been away from Tomcat for a while, and just tried setting up 5.5.9
on WinXP, with JDK1.5.0_2.  It's working reasonably well, but I'm having
some issues.

First of all, what is the "admin app"?  It's obviously different from
"manager", but I can't find any information about it.  When I try to
execute it, it says I must download and install the "admin package".  I
found a reference in tomcat-user to the "Admin tool" which shows how you
install it once you get the installer, but nothing about where to get
the installer, or even what the admin app does.

After I installed Tomcat, I deployed an app through the Manager app,
from a directory and context, not uploading a WAR.  It confused me later
when I tried changing one of the JSP files in the directory, and it
wouldn't get recompiled.  I later realized that deploying from a
directory actually copies the tree from that directory into the
"webapps" directory inside the Tomcat distribution.  Is it feasible to
have the actual webapp location be outside of the Tomcat distribution?
This is more realistic in a development situation.

The most bizarre thing is that I've twice tried to edit files in the
Tomcat distribution, being the "conf/web.xml" and then later the JSP
file for my application stored in the "webapp" directory, and that seems
to cause Tomcat to fail with "Access denied" errors on the files that I
edited.  After I change the file, I've made sure my reference to the
file was closed, from the editor I was using.  I even tried restarting
the box, and surprisingly, that had no effect.  It still got "Access
Denied" errors.  The only thing I could do was undeploy the app (in the
case of the the JSP file) and redeploy it, or in the case of the
"conf/web.xml", I had to completely uninstall Tomcat and reinstall it.

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



Re: war file producing jsp problems

2005-04-11 Thread PGibbonsX
 
I must be going mad!  I'm sure i had this working, maybe i was looking  at 
the wrong page when i was testing it, but i just cannot get this to work,  even 
with the ammended web.xml as below:
 
any suggestions?
 

 
 http://java.sun.com/xml/ns/j2ee_ 
(http://java.sun.com/xml/ns/j2ee) "
xmlns:xsi="_http://www.w3.org/2001/XMLSchema-instance_ 
(http://www.w3.org/2001/XMLSchema-instance) "
xsi:schemaLocation="_http://java.sun.com/xml/ns/j2ee_ 
(http://java.sun.com/xml/ns/j2ee)  
_http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd_ 
(http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd) "> 
 
  

non_retail_numchk.jsp

 



In a message dated 11/04/2005 15:53:44 GMT Daylight Time, [EMAIL PROTECTED]  
writes:

http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsdâ;
version=â2.4â>






Re: war file producing jsp problems

2005-04-11 Thread PGibbonsX
thanks for your comment, that does the trick..
 
many thanks pg..


Re: war file producing jsp problems

2005-04-11 Thread David Smith
How are you declaring your web.xml file. If you are declaring with the 
servlet 2.3 DTD, you won't be able to use the ${} operators available in 
the JSP 2 spec. Use the 2.4 schema instead.


http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”;
version=”2.4”>
--David
[EMAIL PROTECTED] wrote:
Hi There,
i've build an app with jsp pages which use a bean and calls java  classes.  
This works fine & dandy, outside of a war file.

However, i've  placed the app within a war file under webapps, removed  the 
original directories etc & and restarted tomcat.

Now when i load my jsp page, the tag libs dont seem to work, ie i have the  
following code in my jsp page:

<%@ taglib prefix="c" uri="_http://java.sun.com/jsp/jstl/core_ 
(http://java.sun.com/jsp/jstl/core) "  %>



using a war file it logs:
INFO Check - number:${param['phone']}
instead of logging:
INFO Check - number:01215554455
So, basically the same code works ok outisde of the war container, but  fails 
within the  war container.  Inside the war container the jsp  page does not 
seem to be able to interpret the ${param['phone']} to an actual  value.

Any suggestions on what is wrong here?  I am using Tomcat version  5.5.7, 
java version 1.5


 


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


war file producing jsp problems

2005-04-11 Thread PGibbonsX
Hi There,
i've build an app with jsp pages which use a bean and calls java  classes.  
This works fine & dandy, outside of a war file.
 
However, i've  placed the app within a war file under webapps, removed  the 
original directories etc & and restarted tomcat.
 
Now when i load my jsp page, the tag libs dont seem to work, ie i have the  
following code in my jsp page:
 
<%@ taglib prefix="c" uri="_http://java.sun.com/jsp/jstl/core_ 
(http://java.sun.com/jsp/jstl/core) "  %>


 
using a war file it logs:
INFO Check - number:${param['phone']}
 
instead of logging:
 
INFO Check - number:01215554455
 
So, basically the same code works ok outisde of the war container, but  fails 
within the  war container.  Inside the war container the jsp  page does not 
seem to be able to interpret the ${param['phone']} to an actual  value.
 
Any suggestions on what is wrong here?  I am using Tomcat version  5.5.7, 
java version 1.5

 


Re: JSP problems

2004-04-01 Thread Dennis Thrysøe
Dennis Thrysøe wrote:
Dennis Thrysøe wrote:
Nope. Just plain old JSP's in a webapp. Jasper generates servlets and 
compiles them just fine. But it cannot load them. I get

java.lang.ClassNotFoundException: org.apache.jsp.index_jsp


I'm still having the problem. Is there anybody out there with a really 
detailed knowledge of how Jasper uses it's temp-dir?
It seems that I just found a workaround for the issue: Use JDK 1.4.2 
instead of JDK 1.3.1.

Shouldn't TOmcat 4.1.30 be able to run on JDK 1.3.1?

-dennis

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


Re: JSP problems

2004-03-31 Thread Dennis Thrysøe
Dennis Thrysøe wrote:
QM wrote:

: [snip] the classes are declared in the package org.apache.jsp.
: : Any ideas, how I can make tomcat (jasper?) load the classes that 
it just : generated and then compiled?

So then, you're precompiling the JSPs?
Nope. Just plain old JSP's in a webapp. Jasper generates servlets and 
compiles them just fine. But it cannot load them. I get

java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
I'm still having the problem. Is there anybody out there with a really 
detailed knowledge of how Jasper uses it's temp-dir?

What I experience is that Jasper compiles

  /foo/index.jsp

into

  /foo/index_jsp.class (which contains org.apache.jsp.index_jsp)

But Jasper's classloader doesn't seem able to load the file. Actually I 
see two problems here:

1) How can the classloader load a class in the org.apache.jsp package if 
the org/apache/jsp directory structure isn't present. Should this work?

2) What would the fully qualified classname of for instance 
/bar/index.jsp be?

Thanks,

-dennis

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


Re: JSP problems

2004-03-31 Thread Dennis Thrysøe
QM wrote:
: [snip] the classes are declared in the package org.apache.jsp.
: 
: Any ideas, how I can make tomcat (jasper?) load the classes that it just 
: generated and then compiled?

So then, you're precompiling the JSPs?
Nope. Just plain old JSP's in a webapp. Jasper generates servlets and 
compiles them just fine. But it cannot load them. I get

java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
	at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:209)
	at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131)
	at 
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:497)
	at 
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:150)
	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:195)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

I don't have any URLs -- do a web search -- but there are examples for
building the JSPs into WEB-INF/classes and having Ant create the servlet
mappings (for web.xml) for you.
I wish that was the problem :)

-dennis

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


Re: JSP problems

2004-03-31 Thread QM
On Wed, Mar 31, 2004 at 01:59:56PM +0200, Dennis Thrys?e wrote:
: I'm still having the problem I already wrote about, as a result of 
: upgrading a tomcat 4.0.1 installation to 4.1.30.

I missed your first message.  If what I say here doesn't help, please
refresh me on the problem.



: [snip] the classes are declared in the package org.apache.jsp.
: 
: Any ideas, how I can make tomcat (jasper?) load the classes that it just 
: generated and then compiled?

So then, you're precompiling the JSPs?

I recall from my 4.x days that precomiling directly into the /work dir
had some issues with package naming.

I don't have any URLs -- do a web search -- but there are examples for
building the JSPs into WEB-INF/classes and having Ant create the servlet
mappings (for web.xml) for you.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



JSP problems

2004-03-31 Thread Dennis Thrysøe
Hi,

I'm still having the problem I already wrote about, as a result of 
upgrading a tomcat 4.0.1 installation to 4.1.30.

I get a ClassNotFoundException for the generated JSP class. The 
generated classes are written to the context work directory with the 
same nameing and structure as the JSPs in the webapp. But the classes 
are declared in the package org.apache.jsp.

Any ideas, how I can make tomcat (jasper?) load the classes that it just 
generated and then compiled?

Thanks,

-dennis

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


JSP problems with Tomcat 3.3 on Debian

2002-04-23 Thread tom stuart

hi,

this may well turn out to be a dumb question, but i've searched
everywhere for answers to it and can't find anything. i'm hoping there
may be a debian user on the list who can help me out.

tomcat is, apparently, simply broken out of the box on woody -- it runs
okay, but it won't compile any of the example jsps that use anything in
java.beans (see below; "Error: 'beans' is either a misplaced package
name or a non-existent entity."). in all other respects it seems to be
working fine; the example servlets all work, for example. i've got the
j2sdk1.3 package installed.

(i'm intentionally using 'tomcat' rather than 'tomcat4', by the way.)

thanks a lot for any help.

cheers,
-tom


obsess:~# apt-get install libapache-mod-jk tomcat
 Reading Package Lists... Done
 Building Dependency Tree... Done
 The following NEW packages will be installed:
   libapache-mod-jk tomcat
 0 packages upgraded, 2 newly installed, 0 to remove and 0  not upgraded.
 Need to get 0B/1246kB of archives. After unpacking 2005kB will be used.
 Selecting previously deselected package libapache-mod-jk.
 (Reading database ... 50138 files and directories currently installed.)
 Unpacking libapache-mod-jk (from .../libapache-mod-jk_3.3a-2_i386.deb)
 ...
 Selecting previously deselected package tomcat.
 Unpacking tomcat (from .../archives/tomcat_3.3a-2_all.deb) ...
 Setting up libapache-mod-jk (3.3a-2) ...
 Initializing apache config for immediate operation.
 Finding DSO modsfound.
[...]
 Pondering done.

 Stopping apache with apachectl ... done.
 Waiting for apache to terminate ... done.
 /usr/sbin/apachectl start: httpd started

 Setting up tomcat (3.3a-2) ...
 Starting Tomcat servlet engine using Java from /usr/lib/j2sdk1.3: tomcat.

obsess:~# lynx --dump http://localhost/examples/jsp/num/numguess.jsp

 Error: 500
 Location: /examples/jsp/num/numguess.jsp

 Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile
 Found 1 semantic error compiling
 "/var/cache/tomcat/DEFAULT/examples/jsp/num/numguess_1.java":

 69. numguess = (num.NumberGuessBean)
 java.beans.Beans.instantiate(this.getClass().getClassLoader(),
 "num.NumberGuessBean");
<>
 *** Error: "beans" is either a misplaced package name or a non-existent
 entity. An expression name is expected in this context.

 at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:800)
 at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.
 java:641)
 at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.
 java:446)
 at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.
 java:968)
 at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager
 .java:875)
 at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
 at
 org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(
 Ajp13Interceptor.java:213)
 at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.
 java:477)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thread
 Pool.java:519)
 at java.lang.Thread.run(Thread.java:484)



tom stuart http://obsess.com/ [EMAIL PROTECTED]

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Strange JSP problems with Tomcat

2001-03-30 Thread Nick Stoianov

Yes - all the class files are there

- Original Message -
From: "Martin Mauri" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 30, 2001 1:01 PM
Subject: Re: Strange JSP problems with Tomcat


> Mmm...it seems to be a problem in the location of your class files, have
you
> placed them in $TOMCAT_HOME/webapps/(context_name)/WEB-INF/classes ?
>
> > and this is what I'm getting from the command line:
> >
> > 2001-03-30 12:50:18 - Ctx( /examples ): JasperException: R( /examples +
> > /jsp/cal/cal1.jsp + null) Unable to compile class for
> >
>
JSP/usr/local/tomcat/work/localhost_8080%2Fexamples/_0002fjsp_0002fcal_0002f
> > cal_00031_0002ejspcal1_jsp_0.java:15: Package cal not found in import.
> > import cal.*;
> >^
> > 1 error
> >
> >
> > - Original Message -
> > From: "Martin Mauri" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, March 30, 2001 12:44 PM
> > Subject: Re: Strange JSP problems with Tomcat
> >
> >
> > > Did you check your TOMCAT_HOME environment variable?
> > >
> > > > Thanks for the help. JAVA_HOME was not set up correctly. Now it's
set
> up
> > > > correctly but it still doesn't work. I'm getting the following
error:
> > > >
> > > > Error: 500
> > > > Location: /examples/jsp/simpletag/foo.jsp
> > > > Internal Servlet Error:
> > > >
> > > > org.apache.jasper.compiler.CompileException:
> > > > /usr/local/tomcat/webapps/examples/jsp/simpletag/foo.jsp(11,0)
Unable
> to
> > > > load class examples.FooTag
> > > > at
> > > >
> >
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java,
> > > > Compiled Code)
> > > > at
> > > >
> > >
> >
>
org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspPa
> > > > rseEventListener.java, Compiled Code)
> > > > at
> > > >
> > >
> >
>
org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventL
> > > > istener.java, Compiled Code)
> > > > at
> > > >
> > >
> >
>
org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEven
> > > > tListener.java, Compiled Code)
> > > > at
> > > >
> > >
> >
>
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
> > > > ner.java, Compiled Code)
> > > > at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java,
Compiled
> > > Code)
> > > > at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled
Code)
> > > > at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled
Code)
> > > > at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled
Code)
> > > > at org.apache.jasper.compiler.Compiler.compile(Compiler.java,
Compiled
> > > > Code)
> > > > at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java,
> > > Compiled
> > > > Code)
> > > > at
> org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java,
> > > > Compiled Code)
> > > > at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java,
> > Compiled
> > > > Code)
> > > > at
> > > >
> > >
> >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
> > > > rvlet.java, Compiled Code)
> > > > at
> > > >
> > >
> >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> > > > va, Compiled Code)
> > > > at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
> > > > Compiled Code)
> > > > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
> > Compiled
> > > > Code)
> > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
> > Code)
> > > > at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
> > > > Compiled Code)
> > > > at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
Code)
> > > > at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
> > > > Compiled Code)
> > > > at
> > > >
> >
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
> > > > Compiled Code)
> > > > at
org.apache.tomcat.cor

Re: Strange JSP problems with Tomcat

2001-03-30 Thread Martin Mauri

Mmm...it seems to be a problem in the location of your class files, have you
placed them in $TOMCAT_HOME/webapps/(context_name)/WEB-INF/classes ?

> and this is what I'm getting from the command line:
>
> 2001-03-30 12:50:18 - Ctx( /examples ): JasperException: R( /examples +
> /jsp/cal/cal1.jsp + null) Unable to compile class for
>
JSP/usr/local/tomcat/work/localhost_8080%2Fexamples/_0002fjsp_0002fcal_0002f
> cal_00031_0002ejspcal1_jsp_0.java:15: Package cal not found in import.
> import cal.*;
>^
> 1 error
>
>
> - Original Message -
> From: "Martin Mauri" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 30, 2001 12:44 PM
> Subject: Re: Strange JSP problems with Tomcat
>
>
> > Did you check your TOMCAT_HOME environment variable?
> >
> > > Thanks for the help. JAVA_HOME was not set up correctly. Now it's set
up
> > > correctly but it still doesn't work. I'm getting the following error:
> > >
> > > Error: 500
> > > Location: /examples/jsp/simpletag/foo.jsp
> > > Internal Servlet Error:
> > >
> > > org.apache.jasper.compiler.CompileException:
> > > /usr/local/tomcat/webapps/examples/jsp/simpletag/foo.jsp(11,0) Unable
to
> > > load class examples.FooTag
> > > at
> > >
> org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java,
> > > Compiled Code)
> > > at
> > >
> >
>
org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspPa
> > > rseEventListener.java, Compiled Code)
> > > at
> > >
> >
>
org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventL
> > > istener.java, Compiled Code)
> > > at
> > >
> >
>
org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEven
> > > tListener.java, Compiled Code)
> > > at
> > >
> >
>
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
> > > ner.java, Compiled Code)
> > > at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java, Compiled
> > Code)
> > > at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
> > > at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
> > > at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
> > > at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled
> > > Code)
> > > at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java,
> > Compiled
> > > Code)
> > > at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java,
> > > Compiled Code)
> > > at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java,
> Compiled
> > > Code)
> > > at
> > >
> >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
> > > rvlet.java, Compiled Code)
> > > at
> > >
> >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> > > va, Compiled Code)
> > > at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
> > > Compiled Code)
> > > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
> Compiled
> > > Code)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
> Code)
> > > at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
> > > Compiled Code)
> > > at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
> > > at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
> > > Compiled Code)
> > > at
> > >
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
> > > Compiled Code)
> > > at org.apache.tomcat.core.ContextManager.service(ContextManager.java,
> > > Compiled Code)
> > > at
> > >
> >
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> > > (Ajp12ConnectionHandler.java, Compiled Code)
> > > at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
> > > Compiled Code)
> > > at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
> > > Compiled Code)
> > > at java.lang.Thread.run(Thread.java, Compiled Code)
> > >
> > > Any suggestions about that?
> > > Thanks
> > > Nick
> > >
> > > - Original Message -
> > > From: "Randy Layman" <[EMAIL PROTECTED

Re: Strange JSP problems with Tomcat

2001-03-30 Thread Nick Stoianov

and this is what I'm getting from the command line:

2001-03-30 12:50:18 - Ctx( /examples ): JasperException: R( /examples +
/jsp/cal/cal1.jsp + null) Unable to compile class for
JSP/usr/local/tomcat/work/localhost_8080%2Fexamples/_0002fjsp_0002fcal_0002f
cal_00031_0002ejspcal1_jsp_0.java:15: Package cal not found in import.
import cal.*;
   ^
1 error


- Original Message -
From: "Martin Mauri" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 30, 2001 12:44 PM
Subject: Re: Strange JSP problems with Tomcat


> Did you check your TOMCAT_HOME environment variable?
>
> > Thanks for the help. JAVA_HOME was not set up correctly. Now it's set up
> > correctly but it still doesn't work. I'm getting the following error:
> >
> > Error: 500
> > Location: /examples/jsp/simpletag/foo.jsp
> > Internal Servlet Error:
> >
> > org.apache.jasper.compiler.CompileException:
> > /usr/local/tomcat/webapps/examples/jsp/simpletag/foo.jsp(11,0) Unable to
> > load class examples.FooTag
> > at
> >
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java,
> > Compiled Code)
> > at
> >
>
org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspPa
> > rseEventListener.java, Compiled Code)
> > at
> >
>
org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventL
> > istener.java, Compiled Code)
> > at
> >
>
org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEven
> > tListener.java, Compiled Code)
> > at
> >
>
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
> > ner.java, Compiled Code)
> > at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java, Compiled
> Code)
> > at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
> > at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
> > at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
> > at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled
> > Code)
> > at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java,
> Compiled
> > Code)
> > at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java,
> > Compiled Code)
> > at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java,
Compiled
> > Code)
> > at
> >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
> > rvlet.java, Compiled Code)
> > at
> >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> > va, Compiled Code)
> > at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
> > Compiled Code)
> > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
Compiled
> > Code)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)
> > at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
> > Compiled Code)
> > at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
> > at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
> > Compiled Code)
> > at
> >
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
> > Compiled Code)
> > at org.apache.tomcat.core.ContextManager.service(ContextManager.java,
> > Compiled Code)
> > at
> >
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> > (Ajp12ConnectionHandler.java, Compiled Code)
> > at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
> > Compiled Code)
> > at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
> > Compiled Code)
> > at java.lang.Thread.run(Thread.java, Compiled Code)
> >
> > Any suggestions about that?
> > Thanks
> > Nick
> >
> > - Original Message -
> > From: "Randy Layman" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, March 30, 2001 10:29 AM
> > Subject: RE: Strange JSP problems with Tomcat
> >
> >
> > >
> > > This is not a storage error message at all.  A little searching
> > > through the archives or reading of the installation guide would have
> saved
> > > you some time and trouble - your JAVA_HOME is not set correctly.  Some
> > > people will probably tell you that tools.jar is not in your classpath,
> but
> > > this is a side effect of not setting the JAVA_HOME variable correctly.
> (It
> > > should point to the JDK's root

Re: Strange JSP problems with Tomcat

2001-03-30 Thread Nick Stoianov

Yes - the TOMCAT_HOME points exactly to /usr/local/tomcat

- Original Message -
From: "Martin Mauri" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 30, 2001 12:44 PM
Subject: Re: Strange JSP problems with Tomcat


> Did you check your TOMCAT_HOME environment variable?
>
> > Thanks for the help. JAVA_HOME was not set up correctly. Now it's set up
> > correctly but it still doesn't work. I'm getting the following error:
> >
> > Error: 500
> > Location: /examples/jsp/simpletag/foo.jsp
> > Internal Servlet Error:
> >
> > org.apache.jasper.compiler.CompileException:
> > /usr/local/tomcat/webapps/examples/jsp/simpletag/foo.jsp(11,0) Unable to
> > load class examples.FooTag
> > at
> >
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java,
> > Compiled Code)
> > at
> >
>
org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspPa
> > rseEventListener.java, Compiled Code)
> > at
> >
>
org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventL
> > istener.java, Compiled Code)
> > at
> >
>
org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEven
> > tListener.java, Compiled Code)
> > at
> >
>
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
> > ner.java, Compiled Code)
> > at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java, Compiled
> Code)
> > at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
> > at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
> > at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
> > at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled
> > Code)
> > at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java,
> Compiled
> > Code)
> > at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java,
> > Compiled Code)
> > at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java,
Compiled
> > Code)
> > at
> >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
> > rvlet.java, Compiled Code)
> > at
> >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> > va, Compiled Code)
> > at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
> > Compiled Code)
> > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
Compiled
> > Code)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)
> > at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
> > Compiled Code)
> > at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
> > at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
> > Compiled Code)
> > at
> >
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
> > Compiled Code)
> > at org.apache.tomcat.core.ContextManager.service(ContextManager.java,
> > Compiled Code)
> > at
> >
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> > (Ajp12ConnectionHandler.java, Compiled Code)
> > at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
> > Compiled Code)
> > at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
> > Compiled Code)
> > at java.lang.Thread.run(Thread.java, Compiled Code)
> >
> > Any suggestions about that?
> > Thanks
> > Nick
> >
> > - Original Message -
> > From: "Randy Layman" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, March 30, 2001 10:29 AM
> > Subject: RE: Strange JSP problems with Tomcat
> >
> >
> > >
> > > This is not a storage error message at all.  A little searching
> > > through the archives or reading of the installation guide would have
> saved
> > > you some time and trouble - your JAVA_HOME is not set correctly.  Some
> > > people will probably tell you that tools.jar is not in your classpath,
> but
> > > this is a side effect of not setting the JAVA_HOME variable correctly.
> (It
> > > should point to the JDK's root so that lib\tools.jar is an actual
file.
> > >
> > > Randy
> > > -Original Message-
> > > From: Nick Stoianov [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, March 30, 2001 1:06 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Strange

Re: Strange JSP problems with Tomcat

2001-03-30 Thread Martin Mauri

Did you check your TOMCAT_HOME environment variable?

> Thanks for the help. JAVA_HOME was not set up correctly. Now it's set up
> correctly but it still doesn't work. I'm getting the following error:
>
> Error: 500
> Location: /examples/jsp/simpletag/foo.jsp
> Internal Servlet Error:
>
> org.apache.jasper.compiler.CompileException:
> /usr/local/tomcat/webapps/examples/jsp/simpletag/foo.jsp(11,0) Unable to
> load class examples.FooTag
> at
> org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java,
> Compiled Code)
> at
>
org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspPa
> rseEventListener.java, Compiled Code)
> at
>
org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventL
> istener.java, Compiled Code)
> at
>
org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEven
> tListener.java, Compiled Code)
> at
>
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
> ner.java, Compiled Code)
> at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java, Compiled
Code)
> at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
> at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
> at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled
> Code)
> at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java,
Compiled
> Code)
> at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java,
> Compiled Code)
> at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java, Compiled
> Code)
> at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
> rvlet.java, Compiled Code)
> at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> va, Compiled Code)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
> Compiled Code)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled
> Code)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
> at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
> Compiled Code)
> at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
> at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
> Compiled Code)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
> Compiled Code)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java,
> Compiled Code)
> at
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> (Ajp12ConnectionHandler.java, Compiled Code)
> at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
> Compiled Code)
> at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
> Compiled Code)
> at java.lang.Thread.run(Thread.java, Compiled Code)
>
> Any suggestions about that?
> Thanks
> Nick
>
> - Original Message -
> From: "Randy Layman" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 30, 2001 10:29 AM
> Subject: RE: Strange JSP problems with Tomcat
>
>
> >
> > This is not a storage error message at all.  A little searching
> > through the archives or reading of the installation guide would have
saved
> > you some time and trouble - your JAVA_HOME is not set correctly.  Some
> > people will probably tell you that tools.jar is not in your classpath,
but
> > this is a side effect of not setting the JAVA_HOME variable correctly.
(It
> > should point to the JDK's root so that lib\tools.jar is an actual file.
> >
> > Randy
> > -Original Message-
> > From: Nick Stoianov [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, March 30, 2001 1:06 PM
> > To: [EMAIL PROTECTED]
> > Subject: Strange JSP problems with Tomcat
> >
> >
> > Hi everybody,
> >
> > I have a strange problem with serving JSPs with Tomcat with mod_jk on
> Linux
> > Apache.
> > I'm really new at Tomcat configuration - so I guess I'm doing something
> > wrong.
> > Anyway - when I start the sample servlets that come with Tomcat - they
> work
> > fine. But when I start a JSP  I get the following errors:
> >
>
> --
> --
>
> --
> --
> > --
> > Error: 500
> > Location: /examples/jsp/num/numguess.jsp
> > Internal Servlet Error:
> >
> > javax.servl

Re: Strange JSP problems with Tomcat

2001-03-30 Thread Nick Stoianov

Thanks for the help. JAVA_HOME was not set up correctly. Now it's set up
correctly but it still doesn't work. I'm getting the following error:

Error: 500
Location: /examples/jsp/simpletag/foo.jsp
Internal Servlet Error:

org.apache.jasper.compiler.CompileException:
/usr/local/tomcat/webapps/examples/jsp/simpletag/foo.jsp(11,0) Unable to
load class examples.FooTag
at
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java,
Compiled Code)
at
org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspPa
rseEventListener.java, Compiled Code)
at
org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventL
istener.java, Compiled Code)
at
org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEven
tListener.java, Compiled Code)
at
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
ner.java, Compiled Code)
at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java, Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled
Code)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java, Compiled
Code)
at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java,
Compiled Code)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java, Compiled
Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java, Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va, Compiled Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
Compiled Code)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled
Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
Compiled Code)
at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
Compiled Code)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java,
Compiled Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java, Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)

Any suggestions about that?
Thanks
Nick

- Original Message -
From: "Randy Layman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 30, 2001 10:29 AM
Subject: RE: Strange JSP problems with Tomcat


>
> This is not a storage error message at all.  A little searching
> through the archives or reading of the installation guide would have saved
> you some time and trouble - your JAVA_HOME is not set correctly.  Some
> people will probably tell you that tools.jar is not in your classpath, but
> this is a side effect of not setting the JAVA_HOME variable correctly. (It
> should point to the JDK's root so that lib\tools.jar is an actual file.
>
> Randy
> -Original Message-
> From: Nick Stoianov [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 30, 2001 1:06 PM
> To: [EMAIL PROTECTED]
> Subject: Strange JSP problems with Tomcat
>
>
> Hi everybody,
>
> I have a strange problem with serving JSPs with Tomcat with mod_jk on
Linux
> Apache.
> I'm really new at Tomcat configuration - so I guess I'm doing something
> wrong.
> Anyway - when I start the sample servlets that come with Tomcat - they
work
> fine. But when I start a JSP  I get the following errors:
>
> --
--
> --
--
> --
> Error: 500
> Location: /examples/jsp/num/numguess.jsp
> Internal Servlet Error:
>
> javax.servlet.ServletException: sun/tools/javac/Main
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
> Compiled Code)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
> Code)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
> Compiled Code)
> at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
> Code)
> at
> org

RE: Strange JSP problems with Tomcat

2001-03-30 Thread Randy Layman


This is not a storage error message at all.  A little searching
through the archives or reading of the installation guide would have saved
you some time and trouble - your JAVA_HOME is not set correctly.  Some
people will probably tell you that tools.jar is not in your classpath, but
this is a side effect of not setting the JAVA_HOME variable correctly. (It
should point to the JDK's root so that lib\tools.jar is an actual file.

Randy
-Original Message-
From: Nick Stoianov [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 1:06 PM
To: [EMAIL PROTECTED]
Subject: Strange JSP problems with Tomcat


Hi everybody,
 
I have a strange problem with serving JSPs with Tomcat with mod_jk on Linux
Apache.
I'm really new at Tomcat configuration - so I guess I'm doing something
wrong.
Anyway - when I start the sample servlets that come with Tomcat - they work
fine. But when I start a JSP  I get the following errors:
 


--
Error: 500
Location: /examples/jsp/num/numguess.jsp
Internal Servlet Error:

javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
Compiled Code)
at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
Code)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled
Code)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
Compiled Code)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java, Compiled Code)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)

Root cause: 
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java,
Compiled Code)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java,
Compiled Code)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java,
Compiled Code)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java,
Compiled Code)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java,
Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java, Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va, Compiled Code)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
Compiled Code)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
Compiled Code)
at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
Code)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled
Code)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
Compiled Code)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java, Compiled Code)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)


--
I will really appreciate if somebody can help me.
Thanks
Nick Stoianov



Strange JSP problems with Tomcat

2001-03-30 Thread Nick Stoianov



Hi everybody,
 
I have a strange problem with serving JSPs with 
Tomcat with mod_jk on Linux Apache.
I'm really new at Tomcat configuration - so I guess 
I'm doing something wrong.
Anyway - when I start the sample servlets that come 
with Tomcat - they work fine. But when I start a JSP  I get the following 
errors:
 
--

Error: 500
Location: /examples/jsp/num/numguess.jspInternal Servlet 
Error:javax.servlet.ServletException: sun/tools/javac/Main
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, Compiled Code)
	at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, Compiled Code)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code)
	at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java, Compiled Code)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code)
	at java.lang.Thread.run(Thread.java, Compiled Code)
Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main
	at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java, Compiled Code)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code)
	at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java, Compiled Code)
	at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java, Compiled Code)
	at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java, Compiled Code)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java, Compiled Code)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java, Compiled Code)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java, Compiled Code)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, Compiled Code)
	at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, Compiled Code)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code)
	at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java, Compiled Code)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code)
	at java.lang.Thread.run(Thread.java, Compiled Code)--I will really appreciate if somebody can help me.ThanksNick Stoianov