Re: Fwd: ServletException: javax/servlet/jsp/tagext/TagLibraryValidator

2005-07-18 Thread Christoph Kutzinski

John Pedersen wrote:

Christoph,

I think there may be a little delay with the mailing list. The problem
is solved. For reference, yes, I too have  the commons-logging-api.jar
in the bin directory! Wonder why it was put there - that seems a
little inconsistent, but I don't know enough about Tomcat to judge the
matter.



That is exactly what I thought when I found it in bin: What the h*ll 
does the jar do in here? ;)


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



Re: Fwd: ServletException: javax/servlet/jsp/tagext/TagLibraryValidator

2005-07-18 Thread John Pedersen
Christoph,

I think there may be a little delay with the mailing list. The problem
is solved. For reference, yes, I too have  the commons-logging-api.jar
in the bin directory! Wonder why it was put there - that seems a
little inconsistent, but I don't know enough about Tomcat to judge the
matter.

Putting a breakpoint in the source would have been a good and thorough
approach - I will try that next time!

Many thanks,

John

On 18/07/05, Christoph Kutzinski <[EMAIL PROTECTED]> wrote:
> This is what happens in JSPService.java around line 249:
> 
>  try {
>  boolean precompile = preCompile(request);
>  serviceJspFile(request, response, jspUri, null, precompile);
>  } catch (RuntimeException e) {
>  throw e;
>  } catch (ServletException e) {
>  throw e;
>  } catch (IOException e) {
>  throw e;
>  } catch (Throwable e) {
>  throw new ServletException(e);  << line 249
>  }
> 
> You should get the Tomcat sources and set a breakpoint at line 249. When
> you know the real throwable that is catched there, you will probably get
> it clue what is happening.
> 
> 
> Christoph
> 
> 
> Christoph Kutzinski wrote:
> > Hi,
> >
> > my Tomcat 5.5.9 has the commons-logging-api.jar in the bin directory.
> > Did you look there, too?
> >
> > John Pedersen wrote:
> >
> >> I am still stuck with this one (shouldn't have posted it on a Saturday
> >> morning!).
> >>
> >> I don't think it is my web.xml giving the problem - I am looking into
> >> possible problems with missing or conflicting jar files
> >>
> >> Reading through the release notes again for Tomcat 5.5.9, there is a
> >> listing of the libraries included:
> >>
> >> =
> >> Bundled APIs:
> >> =
> >> A standard installation of Tomcat 5.5 makes all of the following APIs
> >> available
> >> for use by web applications (by placing them in "common/lib" or
> >> "shared/lib"):
> >> * commons-el.jar (Commons Expression Language 1.0)
> >> * commons-logging-api.jar (Commons Logging API 1.0.x)
> >> * jasper-compiler.jar (Jasper 2 Compiler)
> >> * jasper-compiler-jdt.jar (Eclipse JDT Java compiler)
> >> * jasper-runtime.jar (Jasper 2 Runtime)
> >> * jsp-api.jar (JSP 2.0 API)
> >> * naming-common.jar (JNDI Context implementation)
> >> * naming-factory.jar (JNDI object factories for J2EE ENC support)
> >> * naming-factory-dbcp.jar (DataSource implementation based on
> >> commons-dbcp)
> >> * naming-resources.jar (JNDI DirContext implementations)
> >> * servlet-api.jar (Servlet 2.4 API)
> >>
> >>
> >> I seem to be missing:
> >>
> >> commons-logging-api.jar (Commons Logging API 1.0.x)
> >> naming-common.jar (JNDI Context implementation)
> >>
>  from my Tomcat installation (Windows 2000, I used the windows
> >>
> >> installer jakarta-tomcat-5.5.9.exe)
> >>
> >> Why should this be the case? Where can I download these files from?
> >> Thanks,
> >>
> >> John
> >>
> >> -
> >> 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]
> >
> 
> 
> -
> 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: Fwd: ServletException: javax/servlet/jsp/tagext/TagLibraryValidator

2005-07-18 Thread Christoph Kutzinski

This is what happens in JSPService.java around line 249:

try {
boolean precompile = preCompile(request);
serviceJspFile(request, response, jspUri, null, precompile);
} catch (RuntimeException e) {
throw e;
} catch (ServletException e) {
throw e;
} catch (IOException e) {
throw e;
} catch (Throwable e) {
throw new ServletException(e);  << line 249
}

You should get the Tomcat sources and set a breakpoint at line 249. When 
you know the real throwable that is catched there, you will probably get 
it clue what is happening.



Christoph


Christoph Kutzinski wrote:

Hi,

my Tomcat 5.5.9 has the commons-logging-api.jar in the bin directory. 
Did you look there, too?


John Pedersen wrote:


I am still stuck with this one (shouldn't have posted it on a Saturday
morning!).

I don't think it is my web.xml giving the problem - I am looking into
possible problems with missing or conflicting jar files

Reading through the release notes again for Tomcat 5.5.9, there is a
listing of the libraries included:

=
Bundled APIs:
=
A standard installation of Tomcat 5.5 makes all of the following APIs 
available
for use by web applications (by placing them in "common/lib" or 
"shared/lib"):

* commons-el.jar (Commons Expression Language 1.0)
* commons-logging-api.jar (Commons Logging API 1.0.x)
* jasper-compiler.jar (Jasper 2 Compiler)
* jasper-compiler-jdt.jar (Eclipse JDT Java compiler)
* jasper-runtime.jar (Jasper 2 Runtime)
* jsp-api.jar (JSP 2.0 API)
* naming-common.jar (JNDI Context implementation)
* naming-factory.jar (JNDI object factories for J2EE ENC support)
* naming-factory-dbcp.jar (DataSource implementation based on 
commons-dbcp)

* naming-resources.jar (JNDI DirContext implementations)
* servlet-api.jar (Servlet 2.4 API)


I seem to be missing:

commons-logging-api.jar (Commons Logging API 1.0.x)
naming-common.jar (JNDI Context implementation)


from my Tomcat installation (Windows 2000, I used the windows


installer jakarta-tomcat-5.5.9.exe)

Why should this be the case? Where can I download these files from?
Thanks,

John

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




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



Re: Fwd: ServletException: javax/servlet/jsp/tagext/TagLibraryValidator

2005-07-18 Thread John Pedersen
Phew! Solved. For those who find the same problem

I had a copy of standard.jar in \lib\ext as well as in
\web-apps\appName\WEB-INF\lib

I think I tried putting it there a while ago, trying to fix something
else, and must have forgotten to remove it.

Thanks Cristoph...

John

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



Re: Fwd: ServletException: javax/servlet/jsp/tagext/TagLibraryValidator

2005-07-18 Thread Christoph Kutzinski

Hi,

my Tomcat 5.5.9 has the commons-logging-api.jar in the bin directory. 
Did you look there, too?


John Pedersen wrote:

I am still stuck with this one (shouldn't have posted it on a Saturday
morning!).

I don't think it is my web.xml giving the problem - I am looking into
possible problems with missing or conflicting jar files

Reading through the release notes again for Tomcat 5.5.9, there is a
listing of the libraries included:

=
Bundled APIs:
=
A standard installation of Tomcat 5.5 makes all of the following APIs available
for use by web applications (by placing them in "common/lib" or "shared/lib"):
* commons-el.jar (Commons Expression Language 1.0)
* commons-logging-api.jar (Commons Logging API 1.0.x)
* jasper-compiler.jar (Jasper 2 Compiler)
* jasper-compiler-jdt.jar (Eclipse JDT Java compiler)
* jasper-runtime.jar (Jasper 2 Runtime)
* jsp-api.jar (JSP 2.0 API)
* naming-common.jar (JNDI Context implementation)
* naming-factory.jar (JNDI object factories for J2EE ENC support)
* naming-factory-dbcp.jar (DataSource implementation based on commons-dbcp)
* naming-resources.jar (JNDI DirContext implementations)
* servlet-api.jar (Servlet 2.4 API)


I seem to be missing:

commons-logging-api.jar (Commons Logging API 1.0.x)
naming-common.jar (JNDI Context implementation)


from my Tomcat installation (Windows 2000, I used the windows

installer jakarta-tomcat-5.5.9.exe)

Why should this be the case? Where can I download these files from? 


Thanks,

John

-
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: Fwd: ServletException: javax/servlet/jsp/tagext/TagLibraryValidator

2005-07-18 Thread John Pedersen
I am still stuck with this one (shouldn't have posted it on a Saturday
morning!).

I don't think it is my web.xml giving the problem - I am looking into
possible problems with missing or conflicting jar files

Reading through the release notes again for Tomcat 5.5.9, there is a
listing of the libraries included:

=
Bundled APIs:
=
A standard installation of Tomcat 5.5 makes all of the following APIs available
for use by web applications (by placing them in "common/lib" or "shared/lib"):
* commons-el.jar (Commons Expression Language 1.0)
* commons-logging-api.jar (Commons Logging API 1.0.x)
* jasper-compiler.jar (Jasper 2 Compiler)
* jasper-compiler-jdt.jar (Eclipse JDT Java compiler)
* jasper-runtime.jar (Jasper 2 Runtime)
* jsp-api.jar (JSP 2.0 API)
* naming-common.jar (JNDI Context implementation)
* naming-factory.jar (JNDI object factories for J2EE ENC support)
* naming-factory-dbcp.jar (DataSource implementation based on commons-dbcp)
* naming-resources.jar (JNDI DirContext implementations)
* servlet-api.jar (Servlet 2.4 API)


I seem to be missing:

commons-logging-api.jar (Commons Logging API 1.0.x)
naming-common.jar (JNDI Context implementation)

from my Tomcat installation (Windows 2000, I used the windows
installer jakarta-tomcat-5.5.9.exe)

Why should this be the case? Where can I download these files from? 

Thanks,

John

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



Re: Fwd: ServletException: javax/servlet/jsp/tagext/TagLibraryValidator

2005-07-16 Thread John Pedersen
I just tried replacing the top of my web.xml file with:

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

The app started, but when I tried to load a page, I got the same error
and stack trace. I made sure too to remove all the compoled jsp's.

If you think of anything else to try, I'll be glad to give it a shot.

John

On 16/07/05, Christoph Kutzinski <[EMAIL PROTECTED]> wrote:
> John Pedersen wrote:
> 
>  >>>>>Here is what I have at the top of my web.xml (I have tried
> variations!):
>  >>>>>
>  >>>>>  >>>>>  "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>  >>>>>  "http://java.sun.com/dtd/web-app_2_3.dtd";>
>  >>>>>
>  >>>>>
> 
> 
> I haven't paid attention to this before. You do use JSTL 1.1, don't you?
> JSTL 1.1 requires a Servlet 2.4 container. Have you tried to make your
> web.xml 2.4 compliant?
> 
> Other idea: have you deleted all the compiled JSPs after switching to
> Tomcat 5.5 /JDK 5.0?
> 
> Christoph
> 
> > Here is the complete stack trace:
> >
> > ERROR[cessor24]: framework.web.servlet.DispatcherServlet 11485  -
> > Could not complete request
> > javax.servlet.ServletException: javax/servlet/jsp/tagext/TagLibraryValidator
> >   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
> >   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >   at 
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> >   at 
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> >   at 
> > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
> >   at 
> > org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
> >   at 
> > org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
> >   at 
> > org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
> >   at 
> > org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:97)
> >   at 
> > org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
> >   at 
> > org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:928)
> >   at 
> > org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:705)
> >   at 
> > org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
> >   at 
> > org.springframework.web.servlet.FrameworkServlet.serviceWrapper(FrameworkServlet.java:386)
> >   at 
> > org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:346)
> >   at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> >   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >   at 
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> >   at 
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> >   at 
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> >   at 
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> >   at 
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> >   at 
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> >   at 
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> >   at 
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> >   at 
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> >   at 
> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> >   at 
> > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> >   at 
> > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> >   at 
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> >   at java.lang.Thread.run(Unknown Source)
> >
> 
> 
> 
> 
> 
> -
> 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: Fwd: ServletException: javax/servlet/jsp/tagext/TagLibraryValidator

2005-07-16 Thread Christoph Kutzinski

John Pedersen wrote:

>>>>>Here is what I have at the top of my web.xml (I have tried 
variations!):

>>>>>
>>>>>>>>>  "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>>>>>  "http://java.sun.com/dtd/web-app_2_3.dtd";>
>>>>>
>>>>>


I haven't paid attention to this before. You do use JSTL 1.1, don't you?
JSTL 1.1 requires a Servlet 2.4 container. Have you tried to make your 
web.xml 2.4 compliant?


Other idea: have you deleted all the compiled JSPs after switching to 
Tomcat 5.5 /JDK 5.0?


Christoph


Here is the complete stack trace:

ERROR[cessor24]: framework.web.servlet.DispatcherServlet 11485  -
Could not complete request
javax.servlet.ServletException: javax/servlet/jsp/tagext/TagLibraryValidator
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at 
org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:97)
at 
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
at 
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:928)
at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:705)
at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
at 
org.springframework.web.servlet.FrameworkServlet.serviceWrapper(FrameworkServlet.java:386)
at 
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:346)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)







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



Re: Fwd: ServletException: javax/servlet/jsp/tagext/TagLibraryValidator

2005-07-16 Thread John Pedersen
I have emailed the list administrator.

Here is the complete stack trace:

ERROR[cessor24]: framework.web.servlet.DispatcherServlet 11485  -
Could not complete request
javax.servlet.ServletException: javax/servlet/jsp/tagext/TagLibraryValidator
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at 
org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:97)
at 
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
at 
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:928)
at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:705)
at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
at 
org.springframework.web.servlet.FrameworkServlet.serviceWrapper(FrameworkServlet.java:386)
at 
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:346)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)


On 16/07/05, Christoph Kutzinski <[EMAIL PROTECTED]> wrote:
> I get these responses, too. I wonder if someone has already informed a
> list administrator about this.
> 
> Regarding your original question:
> I've no clues so far, but you should post the complete stacktrace of the
> exception. Maybe the source of the error will get clearer then.
> 
> 
> Christoph
> 
> John Pedersen wrote:
> > Sorry - I should have checked the list. But I just got a response
> > telling me that the email I sent to the list was undeliverable...
> >
> > John
> >
> > On 16/07/05, Christoph Kutzinski <[EMAIL PROTECTED]> wrote:
> >
> >>Your message was not bounced, I already got the first one (then the
> >>second and then this one).
> >>Please check the list before reposting.
> >>
> >>John Pedersen wrote:
> >>
> >>>Bounced twice...
> >>>
> >>>-- Forwarded message --
> >>>From: John Pedersen <[EMAIL PROTECTED]>
> >>>Date: 16-Jul-2005 08:03
> >>>Subject: ServletException: javax/servlet/jsp/tagext/TagLibraryValidator
> >>>To: tomcat-user@jakarta.apache.org
> >>>
> >>>
> >>>Hi,
> >>>
> >>>I had an app that was working - then I upgraded to Tomcat 5.5.9, and Java 
> >>>1.5.
> >>>
> >>>Now I get a javax.servlet.ServletException:
> >>>javax/servlet/jsp/tagext/TagLibraryValidator when I try to start the
> >>>app. I have followed all the google links for this problem and trawled
> >>>through the docs - I'm stuck!
> >>>
&g

Re: Fwd: ServletException: javax/servlet/jsp/tagext/TagLibraryValidator

2005-07-16 Thread Christoph Kutzinski
I get these responses, too. I wonder if someone has already informed a 
list administrator about this.


Regarding your original question:
I've no clues so far, but you should post the complete stacktrace of the 
exception. Maybe the source of the error will get clearer then.



Christoph

John Pedersen wrote:

Sorry - I should have checked the list. But I just got a response
telling me that the email I sent to the list was undeliverable...

John

On 16/07/05, Christoph Kutzinski <[EMAIL PROTECTED]> wrote:


Your message was not bounced, I already got the first one (then the
second and then this one).
Please check the list before reposting.

John Pedersen wrote:


Bounced twice...

-- Forwarded message --
From: John Pedersen <[EMAIL PROTECTED]>
Date: 16-Jul-2005 08:03
Subject: ServletException: javax/servlet/jsp/tagext/TagLibraryValidator
To: tomcat-user@jakarta.apache.org


Hi,

I had an app that was working - then I upgraded to Tomcat 5.5.9, and Java 1.5.

Now I get a javax.servlet.ServletException:
javax/servlet/jsp/tagext/TagLibraryValidator when I try to start the
app. I have followed all the google links for this problem and trawled
through the docs - I'm stuck!

I use one page to declare my taglibs, and this is included in all the
other pages:

<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"; %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>

If I delete the second line, the app starts fine, although of course
all the c: tags aren't evaluated. So it seems that the problem is only
associated with the standard tags.

Here is what I have at the top of my web.xml (I have tried variations!):

http://java.sun.com/dtd/web-app_2_3.dtd";>


...

Here are the jar files I have in web-app\myApp\lib:

activation.jar
commons-collections.jar
commons-dbcp.jar
commons-fileupload.jar
commons-logging.jar
commons-pool.jar
cos.jar
itext-1.1.4.jar
jstl.jar
junit.jar
log4j-1.2.9.jar
mail.jar
mysql-connector-java-3.1.8-bin.jar
spring.jar
standard.jar
swissEph.jar

and the jar files I have in {tomcat-home}\common\lib:

commons-el.jar
jasper-compiler-jdt.jar
jasper-compiler.jar
jasper-runtime.jar
jsp-api.jar
naming-factory-dbcp.jar
naming-factory.jar
naming-resources.jar
servlet-api.jar

Inside the standard jar, in c.tld:

JSTL 1.1 core library
JSTL core
1.1
c
http://java.sun.com/jsp/jstl/core

...

If anyone can help me solve this one, I'll be very relieved,

Thanks,

John Pedersen

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





-
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: Fwd: ServletException: javax/servlet/jsp/tagext/TagLibraryValidator

2005-07-16 Thread John Pedersen
Sorry - I should have checked the list. But I just got a response
telling me that the email I sent to the list was undeliverable...

John

On 16/07/05, Christoph Kutzinski <[EMAIL PROTECTED]> wrote:
> Your message was not bounced, I already got the first one (then the
> second and then this one).
> Please check the list before reposting.
> 
> John Pedersen wrote:
> > Bounced twice...
> >
> > -- Forwarded message --
> > From: John Pedersen <[EMAIL PROTECTED]>
> > Date: 16-Jul-2005 08:03
> > Subject: ServletException: javax/servlet/jsp/tagext/TagLibraryValidator
> > To: tomcat-user@jakarta.apache.org
> >
> >
> > Hi,
> >
> > I had an app that was working - then I upgraded to Tomcat 5.5.9, and Java 
> > 1.5.
> >
> > Now I get a javax.servlet.ServletException:
> > javax/servlet/jsp/tagext/TagLibraryValidator when I try to start the
> > app. I have followed all the google links for this problem and trawled
> > through the docs - I'm stuck!
> >
> > I use one page to declare my taglibs, and this is included in all the
> > other pages:
> >
> > <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"; %>
> > <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
> >
> > If I delete the second line, the app starts fine, although of course
> > all the c: tags aren't evaluated. So it seems that the problem is only
> > associated with the standard tags.
> >
> > Here is what I have at the top of my web.xml (I have tried variations!):
> >
> >  >"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> >"http://java.sun.com/dtd/web-app_2_3.dtd";>
> >
> > 
> > ...
> >
> > Here are the jar files I have in web-app\myApp\lib:
> >
> > activation.jar
> > commons-collections.jar
> > commons-dbcp.jar
> > commons-fileupload.jar
> > commons-logging.jar
> > commons-pool.jar
> > cos.jar
> > itext-1.1.4.jar
> > jstl.jar
> > junit.jar
> > log4j-1.2.9.jar
> > mail.jar
> > mysql-connector-java-3.1.8-bin.jar
> > spring.jar
> > standard.jar
> > swissEph.jar
> >
> > and the jar files I have in {tomcat-home}\common\lib:
> >
> > commons-el.jar
> > jasper-compiler-jdt.jar
> > jasper-compiler.jar
> > jasper-runtime.jar
> > jsp-api.jar
> > naming-factory-dbcp.jar
> > naming-factory.jar
> > naming-resources.jar
> > servlet-api.jar
> >
> > Inside the standard jar, in c.tld:
> >
> > JSTL 1.1 core library
> >  JSTL core
> >  1.1
> >  c
> >  http://java.sun.com/jsp/jstl/core
> >
> > ...
> >
> > If anyone can help me solve this one, I'll be very relieved,
> >
> > Thanks,
> >
> > John Pedersen
> >
> > -
> > 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]
> 
>

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



Re: Fwd: ServletException: javax/servlet/jsp/tagext/TagLibraryValidator

2005-07-16 Thread Christoph Kutzinski
Your message was not bounced, I already got the first one (then the 
second and then this one).

Please check the list before reposting.

John Pedersen wrote:

Bounced twice...

-- Forwarded message --
From: John Pedersen <[EMAIL PROTECTED]>
Date: 16-Jul-2005 08:03
Subject: ServletException: javax/servlet/jsp/tagext/TagLibraryValidator
To: tomcat-user@jakarta.apache.org


Hi,

I had an app that was working - then I upgraded to Tomcat 5.5.9, and Java 1.5.

Now I get a javax.servlet.ServletException:
javax/servlet/jsp/tagext/TagLibraryValidator when I try to start the
app. I have followed all the google links for this problem and trawled
through the docs - I'm stuck!

I use one page to declare my taglibs, and this is included in all the
other pages:

<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"; %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>

If I delete the second line, the app starts fine, although of course
all the c: tags aren't evaluated. So it seems that the problem is only
associated with the standard tags.

Here is what I have at the top of my web.xml (I have tried variations!):

http://java.sun.com/dtd/web-app_2_3.dtd";>


...

Here are the jar files I have in web-app\myApp\lib:

activation.jar
commons-collections.jar
commons-dbcp.jar
commons-fileupload.jar
commons-logging.jar
commons-pool.jar
cos.jar
itext-1.1.4.jar
jstl.jar
junit.jar
log4j-1.2.9.jar
mail.jar
mysql-connector-java-3.1.8-bin.jar
spring.jar
standard.jar
swissEph.jar

and the jar files I have in {tomcat-home}\common\lib:

commons-el.jar
jasper-compiler-jdt.jar
jasper-compiler.jar
jasper-runtime.jar
jsp-api.jar
naming-factory-dbcp.jar
naming-factory.jar
naming-resources.jar
servlet-api.jar

Inside the standard jar, in c.tld:

JSTL 1.1 core library
 JSTL core
 1.1
 c
 http://java.sun.com/jsp/jstl/core

...

If anyone can help me solve this one, I'll be very relieved,

Thanks,

John Pedersen

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



Fwd: ServletException: javax/servlet/jsp/tagext/TagLibraryValidator

2005-07-16 Thread John Pedersen
Bounced twice...

-- Forwarded message --
From: John Pedersen <[EMAIL PROTECTED]>
Date: 16-Jul-2005 08:03
Subject: ServletException: javax/servlet/jsp/tagext/TagLibraryValidator
To: tomcat-user@jakarta.apache.org


Hi,

I had an app that was working - then I upgraded to Tomcat 5.5.9, and Java 1.5.

Now I get a javax.servlet.ServletException:
javax/servlet/jsp/tagext/TagLibraryValidator when I try to start the
app. I have followed all the google links for this problem and trawled
through the docs - I'm stuck!

I use one page to declare my taglibs, and this is included in all the
other pages:

<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"; %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>

If I delete the second line, the app starts fine, although of course
all the c: tags aren't evaluated. So it seems that the problem is only
associated with the standard tags.

Here is what I have at the top of my web.xml (I have tried variations!):

http://java.sun.com/dtd/web-app_2_3.dtd";>


...

Here are the jar files I have in web-app\myApp\lib:

activation.jar
commons-collections.jar
commons-dbcp.jar
commons-fileupload.jar
commons-logging.jar
commons-pool.jar
cos.jar
itext-1.1.4.jar
jstl.jar
junit.jar
log4j-1.2.9.jar
mail.jar
mysql-connector-java-3.1.8-bin.jar
spring.jar
standard.jar
swissEph.jar

and the jar files I have in {tomcat-home}\common\lib:

commons-el.jar
jasper-compiler-jdt.jar
jasper-compiler.jar
jasper-runtime.jar
jsp-api.jar
naming-factory-dbcp.jar
naming-factory.jar
naming-resources.jar
servlet-api.jar

Inside the standard jar, in c.tld:

JSTL 1.1 core library
 JSTL core
 1.1
 c
 http://java.sun.com/jsp/jstl/core

...

If anyone can help me solve this one, I'll be very relieved,

Thanks,

John Pedersen

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



ServletException: javax/servlet/jsp/tagext/TagLibraryValidator

2005-07-16 Thread John Pedersen
Hi,

I had an app that was working - then I upgraded to Tomcat 5.5.9, and Java 1.5.

Now I get a javax.servlet.ServletException:
javax/servlet/jsp/tagext/TagLibraryValidator when I try to start the
app. I have followed all the google links for this problem and trawled
through the docs - I'm stuck!

I use one page to declare my taglibs, and this is included in all the
other pages:

<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"; %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>

If I delete the second line, the app starts fine, although of course
all the c: tags aren't evaluated. So it seems that the problem is only
associated with the standard tags.

Here is what I have at the top of my web.xml (I have tried variations!):

http://java.sun.com/dtd/web-app_2_3.dtd";>


...

Here are the jar files I have in web-app\myApp\lib:

activation.jar
commons-collections.jar
commons-dbcp.jar
commons-fileupload.jar
commons-logging.jar
commons-pool.jar
cos.jar
itext-1.1.4.jar
jstl.jar
junit.jar
log4j-1.2.9.jar
mail.jar
mysql-connector-java-3.1.8-bin.jar
spring.jar
standard.jar
swissEph.jar

and the jar files I have in {tomcat-home}\common\lib:

commons-el.jar
jasper-compiler-jdt.jar
jasper-compiler.jar
jasper-runtime.jar
jsp-api.jar
naming-factory-dbcp.jar
naming-factory.jar
naming-resources.jar
servlet-api.jar

Inside the standard jar, in c.tld:

JSTL 1.1 core library
 JSTL core
 1.1
 c
 http://java.sun.com/jsp/jstl/core

...

If anyone can help me solve this one, I'll be very relieved,

Thanks,

John Pedersen

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



ServletException: javax/servlet/jsp/tagext/TagLibraryValidator - help!

2005-07-15 Thread John Pedersen
Hi,

I had an app that was working - then I upgraded to Tomcat 5.5.9, and Java 1.5.

Now I get a javax.servlet.ServletException:
javax/servlet/jsp/tagext/TagLibraryValidator when I try to start the
app. I have followed all the google links for this problem and trawled
through the docs - I'm stuck!

I use one page to declare my taglibs, and this is included in all the
other pages:

<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"; %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>

If I delete the second line, the app starts fine, although of course
all the c: tags aren't evaluated. So it seems that the problem is only
associated with the standard tags.

Here is what I have at the top of my web.xml (I have tried variations!):

http://java.sun.com/dtd/web-app_2_3.dtd";>


...

Here are the jar files I have in web-app\myApp\lib:

activation.jar
commons-collections.jar
commons-dbcp.jar
commons-fileupload.jar
commons-logging.jar
commons-pool.jar
cos.jar
itext-1.1.4.jar
jstl.jar
junit.jar
log4j-1.2.9.jar
mail.jar
mysql-connector-java-3.1.8-bin.jar
spring.jar
standard.jar
swissEph.jar

and the jar files I have in {tomcat-home}\common\lib:

commons-el.jar
jasper-compiler-jdt.jar
jasper-compiler.jar
jasper-runtime.jar
jsp-api.jar
naming-factory-dbcp.jar
naming-factory.jar
naming-resources.jar
servlet-api.jar

Inside the standard jar, in c.tld:

JSTL 1.1 core library
  JSTL core
  1.1
  c
  http://java.sun.com/jsp/jstl/core

...

If anyone can help me solve this one, I'll be very relieved,

Thanks,

John Pedersen

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



Re: Tomcat creating new sessions between Servlet->JSP request dispatch under load

2005-04-27 Thread Andre Van Klaveren
Riyad,

Close, but it's more like this:

1 client (user)  == 1 session.

In most cases your client (assuming it's a browser) would only send
one request, which would translate into one thread, and therefor you
wouldn't have a threading issue with your Session object.  There is no
guarantee that your users won't either open up multiple browsers and
hit your application or, more realistically, they hit the submit
button twice therefor generating multiple requests to the server.  In
this situation it is conceivable that there could be a contention
between the two threads and the Session object.

This might sound far fetched but I've experienced this problem first
hand.  In general, you should only place objects in session if you
need to access it over several requests and you can't or don't want to
retrieve it from persistent storage.  If the data is meant for a
single request, place your object in request scope and forward to your
view component.

You mentioned that your problem got worse when you increased the
number of requests to the application.  This makes sense depending on
how you are generating the requests.  If you are using a tool that is
session aware then you are creating multiple threads that are all
trying to use the same Session object.

BTW, I copied this reply to the Tomcat Users List because I think this
is an important issue that a lot of developers don't
understand/realize.  I hope that's OK with you.



On 4/26/05, Riyad Kalla <[EMAIL PROTECTED]> wrote:
> Andre,
> I appreciate the reply, something you said perked my interesting. You
> mentioned synchronizing on the session object, but as I understand it:
> 
> 1 session == 1 thread == 1 client
> 
> in Tomcat (or most typical application servers). So each client will
> have their own thread and session object, I don't need to synchronize
> on it (as I understand) because no two threads will ever be contenting
> with eachother for access to it.
> 
> These are the facts that I have learned up until now, but if they are
> wrong please let me know, this is a pretty big oversight if indeed it
> is on my part.
> 
> Best,
> Riyad
> 
> On 4/26/05, Andre Van Klaveren <[EMAIL PROTECTED]> wrote:
> > Riyad,
> >
> > You should not be using the Session object to store your DTO for
> > display.  Especially if you are forwarding the request to a JSP.  The
> > Session object should only be used to store data that is required to
> > remain in server memory between client requests.  I would place your
> > DTO in the Request object instead.  That alone will probably solve
> > your problem.
> >
> > Now, assuming you continue to use the Session object, you should
> > synchronize on the Session object before attempting to add your DTO
> > object to it.  That will prevent multiple requests from stepping on
> > each other while trying to add their DTOs to the Session.
> >
> > I haven't looked at Tomcat's code to see how they implemented the
> > hashCode method of the Session object but it's not the best way to
> > determine if two Sessions are equal in your case.  The hash code may
> > depend on the contents of the Session object.  I would print out the
> > session ID instead.  This will truely tell you if you have two
> > different sessions.  From what you describe I find it hard to beleive
> > that you there is a second session creeping into the picture within
> > the same request.
> >
> > --
> > Virtually,
> > Andre Van Klaveren
> > SCP
> >
> 


-- 
Virtually,
Andre Van Klaveren
Architect III, SCP
Enterprise Transformation Services
Unisys Corporation

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



Re: Tomcat creating new sessions between Servlet->JSP request dispatch under load

2005-04-26 Thread Andre Van Klaveren
Riyad,

You should not be using the Session object to store your DTO for
display.  Especially if you are forwarding the request to a JSP.  The
Session object should only be used to store data that is required to
remain in server memory between client requests.  I would place your
DTO in the Request object instead.  That alone will probably solve
your problem.

Now, assuming you continue to use the Session object, you should
synchronize on the Session object before attempting to add your DTO
object to it.  That will prevent multiple requests from stepping on
each other while trying to add their DTOs to the Session.

I haven't looked at Tomcat's code to see how they implemented the
hashCode method of the Session object but it's not the best way to
determine if two Sessions are equal in your case.  The hash code may
depend on the contents of the Session object.  I would print out the
session ID instead.  This will truely tell you if you have two
different sessions.  From what you describe I find it hard to beleive
that you there is a second session creeping into the picture within
the same request.


-- 
Virtually,
Andre Van Klaveren
SCP

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



Tomcat creating new sessions between Servlet->JSP request dispatch under load

2005-04-26 Thread Riyad Kalla
The subject is sort of a brain dump of what is going on, let me
explain what is happening:

Setup:
ControllerServlet loads page content from DB and stores it in the
session under a well known key, then it uses a requestDispatcher to
send control to the appropriate JSP to render the content. So it looks
something like this:

ControllerServlet (Load DB content, Store in Session) -> (REQUEST
DISPATCH) -> JSP page (render results)


Server Hardware:
Quad 2.4ghz XEON
2GB Ram
Gentoo Linux (all stable), 2.6.9 Kernel
Tomcat 5.0.28/JDK 1.4.2_08
(AND also tested on)
Tomcat 5.5.9/JDK1.5.2_02


Description of Problem:
When we recieve 8 or more concurrent requests, what happens is when
the JSP page goes to display the DB content that was loaded for it by
the ControllerServlet, the content variable is actually null and the
page throws a NPE. As we up the requests (15 concurrent, 20
concurrent, all the way to 40 concurrent) the number of failed clients
hovers around 1/2, sometimes more, sometimes less. It is seemingly
random which ones fail and how many, but there are definately pages
failing.

The strangest part of all this is that I thought something might be
occuring with the Sessions, because the last lines of code in the
ControllerServlet look like this:
-
session.setAttribute(Constants.DTO_PAGE, pageDTO);
requestDispatcher.forward(request, response);
-

and the first line of the JSP page looks like this:
---
PageDTO pageDTO = (PageDTO)session.getAttribute(Constants.DTO_PAGE);

---

so what I did was print out the session.hashCode() value in the
ControllerServlet right before the requestDispatch call, and then I
printed it out in the JSP page on the condition that pageDTO was null,
and oddly (I think) enough, in every case where pageDTO was null, the
hashCode of the session I printed out from the JSP page, was a totally
new Session that had no matching hashCode value printed out from the
ControllerServlet.

So it *seems* that under heavy load Tomcat is creating entirely new
Sessions for the client between the ControllerServlet and then the
dispatch to the JSP page, so by the time the JSP page loads, the old
Session that had it's DB information in it, has been toasted for some
reason.

What confuses me the most, is that I'm using a requestDispatcher to do
this transfer, not a sendRedirect, so I don't understand how or why a
new Session would be created, there is no chance for the client to
turn around and re-request information as I understand the
requestDispatcher's behavior.

Any ideas or comments on how I can approach debugging this issue?
There is limited code to analyze for bugs as this seems to magically
happen between the last lines of Servlet and first lines of the JSP
page, but i might be missing some fundamental design of Web apps, I'd
appreciate any suggestions.

Best,
Riyad

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



Logging in servlet/jsp not working via java.uil.logging.Logger.global - BUG?

2005-04-25 Thread Eric Raymond
If you have a servlet/jsp which uses java.util.logging. Logger.global
and use the global logger, the output seems to go nowhere.

For example the following jsp page only logs "printed".

<%
  java.util.logging.Logger.global.severe("not printed");
  java.util.logging.Logger.getLogger("foo").severe("printed");
%>


FYI, this is with Tomcat 5.5.9 using the default settings.  As you can
imagine, this is a little disturbing!


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



Re: Accessing the context path within a Servlet/JSP

2005-04-04 Thread Frank W. Zammetti
See HttpServletRequest.getContextPath()
J Malcolm wrote:
I have looked at the JavaDocs, but I can't find a method that will give me
the context path for a web app:
(i.e. 
I have tried getPath() from the servletContext, but it returns part of the
host name as well.  That doesn't make sense either, but that's the way it's
working for me... It returns "jndi:" for the protocol (???) Am I doing
something else wrong here?
I found the getServletContextName() method.  But that is an optional
parameter on the context tag, and I can't risk using something that might
not be defined.
I'm currently parsing up the URL object returned from
servletContext.getResource("/");  But this is a hack.  Surely there is a
better way to get the root URL context for a web app... (?)
Suggestions??  (BTW... Tomcat 5.5.7)
Thanks.
Jerry

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


--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Accessing the context path within a Servlet/JSP

2005-04-04 Thread J Malcolm
I have looked at the JavaDocs, but I can't find a method that will give me
the context path for a web app:

(i.e. 

Re: hi help regarding running first servlet,jsp in Tomcat 5.x

2005-01-26 Thread Ben Souther
Das,

Two things:

First, whenever writing to the list, please start a new thread instead
of just clicking 'reply' from another message.  To those of us using
treaded mail clients, you've just hijacked someone else's thread.

Second, it looks like the sample war file on the jakarta site is
corrupted. For now, can download a working version here:
http://issues.apache.org/bugzilla/attachment.cgi?id=13534

The url to run it will be: http://localhost:8080/myapp
If you've reconfigured your port, etc.. change the url accordingly.

-Ben


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



Re: hi help regarding running first servlet,jsp in Tomcat 5.x

2005-01-26 Thread K thiruthuvadas
Dear Caroline,
Thanks for the instant mail.  It is amazing to find
that the support is almost instantaneous for Tomcat
Jakarta Webserver.

I solved the problem by shutting down my IIS admin
service which was occupying the 8080 port

thanks again for the link
http://www.moreservlets.com/Using-Tomcat-4.html#Configure-Tomcat



regards,
Das

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: hi help regarding running first servlet,jsp in Tomcat 5.x

2005-01-26 Thread Caroline Jen
Please take a look at 

http://www.moreservlets.com/Using-Tomcat-4.html#Configure-Tomcat

It gives instructions on the installation of Tomcat
and compiling and testing simple Servlets and JSPs.  

Please let us know if you still run into problems.
--- K thiruthuvadas <[EMAIL PROTECTED]> wrote:

> Dear Friends,
> i want to subscribe to the mailing list of tomcat.
>  
>  I have a doubt here
>  
>  i successfully installed tomcat 5.x in my windows
>  server
>  
>  but when i tried to run my first sample application
>  i
>  caould not succeed
>  
>  i downloaded the sample file and placed it in the
>  webapps folder.
>  
>  But when i access the http://localhost:8080/sample
>  link the browser asks for network user name and
>  password
>  
>  I could not run my first application with the help
>  available inthe tomcat website
> 
> It shows when Tomcat starts, that port 8080 is in
> use,
> it throws a java.net.bind exception 
>  regards,
>  Das
> 
> 
> 
>   
> __ 
> Do you Yahoo!? 
> Take Yahoo! Mail with you! Get it on your mobile
> phone. 
> http://mobile.yahoo.com/maildemo 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 

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



hi help regarding running first servlet,jsp in Tomcat 5.x

2005-01-26 Thread K thiruthuvadas
Dear Friends,
i want to subscribe to the mailing list of tomcat.
 
 I have a doubt here
 
 i successfully installed tomcat 5.x in my windows
 server
 
 but when i tried to run my first sample application
 i
 caould not succeed
 
 i downloaded the sample file and placed it in the
 webapps folder.
 
 But when i access the http://localhost:8080/sample
 link the browser asks for network user name and
 password
 
 I could not run my first application with the help
 available inthe tomcat website

It shows when Tomcat starts, that port 8080 is in use,
it throws a java.net.bind exception 
 regards,
 Das




__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

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



Securing communications between apaceh and Servlet/JSP container

2004-05-27 Thread Johnny Fulcrum
Hi-
I have apache and tomcat (running as a Servlet/JSP container) running on  
separate servers and I'm using mod_jk to redirect.  Apache is all buttoned  
up with mod_ssl but I'd like the communication between apache (with  
mod_jk) and Tomcat (running as a Servlet/JSP container) to be  
encrypted/secure.  Per the tomcat 4 SSL configuration Howto:


When running Tomcat primarily as a Servlet/JSP container behind another  
web server, such as Apache or Microsoft IIS, it is usually necessary to  
configure the primary web server to handle the SSL connections from users.  
Typically, this server will negotiate all SSL-related functionality, then  
pass on any requests destined for the Tomcat container only after  
decrypting those requests. Likewise, Tomcat will return cleartext  
responses, that will be encrypted before being returned to the user's  
browser.


Is there a way to have tomcat not send data cleartext back to apache?
thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache 2, Tomcat 4.1, RH 9 - servlet/jsp requests return only on second hit

2004-02-10 Thread David O'Brien
At 09:18 AM 2/10/2004, Brent Parker wrote:
My Config: Redhat 9, Apache 2.0.47, mod_jk 1.2.6, Tomcat 4.1.29

It takes a second request (to port 80) to get a jsp or servlet output to
display in the browser: I type in the url (jsp or servlet) and hit Enter,
the browser (Mozilla and IE) spins indefinitely. I then highlight the
address line and hit Enter a second time, and the page will immediately
load. Restated: All servlets/jsp requests do load - but only on the second
hit (request). However, any static html page (served through apache) loads
immediately on the first hit.
I had this same problem and never could find a fix...
I reverted back to 1.2.5 of the connectors and all was fine.
-Dave
The println's I put in the jsp/servlet reveal that they are getting hit on
the first request, and they print out repeatedly (thus the browser spin)
until I make the second request.
To isolate tomcat: If I configure the server.xml, and hit the jsp/servlet
through port 8080, it serves immediately. Maybe this isn't a tomcat problem,
but since it does involve tomcat, I figured this forum would have the best
shot at an answer.
The apache (access_log, error_log), mod_jk, and catalina logs do not show
any errors. The catalina_log.*.txt shows sporadic "IOException Broken pipe"
errors.
Any suggestions / advice would be appreciated. I suspect I have configured
something wrong - I would be glad to forward/post my config files if it
would help. I have been writing java apps for a couple of years - some
deployed to tomcat standalone, but this is my first adventure into tomcat
connected to apache.
Thanks!!
Brent
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


David G. O'Brien
Web Services Coordinator / Systems Administrator
NACCRRA
The Nation's Network of Child Care Resource & Referral
1319 F Street NW, Suite 500
Washington, DC 20004
(202) 393-5501 ext. 113
(202) 393-1109 fax


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


Apache 2, Tomcat 4.1, RH 9 - servlet/jsp requests return only on second hit

2004-02-10 Thread Brent Parker
My Config: Redhat 9, Apache 2.0.47, mod_jk 1.2.6, Tomcat 4.1.29 

It takes a second request (to port 80) to get a jsp or servlet output to
display in the browser: I type in the url (jsp or servlet) and hit Enter,
the browser (Mozilla and IE) spins indefinitely. I then highlight the
address line and hit Enter a second time, and the page will immediately
load. Restated: All servlets/jsp requests do load - but only on the second
hit (request). However, any static html page (served through apache) loads
immediately on the first hit. 

The println's I put in the jsp/servlet reveal that they are getting hit on
the first request, and they print out repeatedly (thus the browser spin)
until I make the second request.

To isolate tomcat: If I configure the server.xml, and hit the jsp/servlet
through port 8080, it serves immediately. Maybe this isn't a tomcat problem,
but since it does involve tomcat, I figured this forum would have the best
shot at an answer. 

The apache (access_log, error_log), mod_jk, and catalina logs do not show
any errors. The catalina_log.*.txt shows sporadic "IOException Broken pipe"
errors. 

Any suggestions / advice would be appreciated. I suspect I have configured
something wrong - I would be glad to forward/post my config files if it
would help. I have been writing java apps for a couple of years - some
deployed to tomcat standalone, but this is my first adventure into tomcat
connected to apache. 

Thanks!! 
Brent 


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

Re: Displaying "busy page" while servlet/JSP running

2004-01-19 Thread Chris
"Chris Ward" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

Hi all,

Does anyone have a recommended way of displaying a
"busy" page while tomcat executes a servlet or JSP?

I've done this before using JavaScript to flip the
display to "busy" on the client, but I wondered if
there was a more generic way using Filters or something.

Many thanks as always,
Chris

Try this:


I'm busy now.
<%
out.flush();
// run code here
%>
I'm done.





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



Displaying "busy page" while servlet/JSP running

2004-01-19 Thread Chris Ward

Hi all,

Does anyone have a recommended way of displaying a
"busy" page while tomcat executes a servlet or JSP?

I've done this before using JavaScript to flip the 
display to "busy" on the client, but I wondered if
there was a more generic way using Filters or something.

Many thanks as always,
Chris

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



Re: [OT] Some questions on Java,Servlet, JSP and Tomcat.

2003-12-08 Thread Tim Funk
[inline]

Antony Paul wrote:
1, Is there any security threat for Tomcat 4.1 series. I am using Tomcat
4.1.27 for development. What is the history of Tomcat in this regard. Is
Tomcat vulnerable to any remote exploitation issues provided that the
application is well written. I want to collect some arguments to favour Java
and Tomcat.
None that anyone is aware of.

2, Any documentation on how servlet container is creating multiple instances
of same HttpServlet without implementing Runnable interface. At least
provide some links to docs or books which teaches threading issues in
servlet. It is only for a curiousity. I am only an application developer. I
want to improve my knowledge in servlet technology.
See the Servlet spec. I can't recommend any books.

3, How to test a servlet for threading issues.
3,  Is there anything wrong in implementing logic in service method in a
class which extends HttpServlet. What will happen if a doHead and other
requests are send to it. How to simulate a doHead,doTrace etc.. request ?. I
got some info at  http://www.jguru.com/faq/view.jsp?EID=8824
You are supposed to extend HttpServlet, then implement doHead(...), 
doGet(...) or appropriate. If a method is not implemented, an NOT IMPLEMENTED 
should get returned.

4, Is it possible to synchronise a block of code in a servlet. I mean only
one thread of the same servlet execute the same portion of code at a time
and completes execution. I dont want to implement SingleThreadModel and
there is only one name in web.xml pointing to same servlet class. I have an
idea. Is this right.
Create a synchronised block which synchronised on the class.
synchronized(AlertServlet.class){
---
}
My purpose is to synchronize database access. The application dont have
a heavy load.
Yes - but this may cause bad side effects. For concurrent programming, many 
like Doug Lea's books.

5, Is it secure to transfer a request and response to another object which
is created in the service method of a servlet ?. I believe it is a safe
approach. I think Struts is doing this.
Secure - sure. Wise - depends. (On too many variables based on the writeup) 
If using some MVC models, like struts, turbine,  - then all is OK.

6, I have seen that Tomcat not shutting down the threads which are active
when shut down command is issued. I used to kill Tomcat in such conditions.
Does Tomcat will ever kill this threads if they are not completed execution.
What criteria is used in such cases.
Tomcat is a JVM process. Like any JVM, it only terminates when only daemon 
threads are running.

7, In Tomcat 4.0.x series there is one file catalina.out which prints the
number of active Httpprocessor active(I think it is number of threads) ut it
is not found in 4.1 series. Is there any way to get this log file in 4.1. I
also want to writing to this log mailed to me when the no. of HttpProcessors
exceeds a limit without tweaking Tomcat code.
This may be in the catalina_XXX files. Not sure about this one.

-Tim



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


[OT] Some questions on Java,Servlet, JSP and Tomcat.

2003-12-08 Thread Antony Paul
Hi all ,
I have some questions for which I was unable to find answers by
Googling. So I am asking it here. It is quite long.

1, Is there any security threat for Tomcat 4.1 series. I am using Tomcat
4.1.27 for development. What is the history of Tomcat in this regard. Is
Tomcat vulnerable to any remote exploitation issues provided that the
application is well written. I want to collect some arguments to favour Java
and Tomcat.
2, Any documentation on how servlet container is creating multiple instances
of same HttpServlet without implementing Runnable interface. At least
provide some links to docs or books which teaches threading issues in
servlet. It is only for a curiousity. I am only an application developer. I
want to improve my knowledge in servlet technology.
3, How to test a servlet for threading issues.
3,  Is there anything wrong in implementing logic in service method in a
class which extends HttpServlet. What will happen if a doHead and other
requests are send to it. How to simulate a doHead,doTrace etc.. request ?. I
got some info at  http://www.jguru.com/faq/view.jsp?EID=8824
4, Is it possible to synchronise a block of code in a servlet. I mean only
one thread of the same servlet execute the same portion of code at a time
and completes execution. I dont want to implement SingleThreadModel and
there is only one name in web.xml pointing to same servlet class. I have an
idea. Is this right.
Create a synchronised block which synchronised on the class.
synchronized(AlertServlet.class){
---
}
My purpose is to synchronize database access. The application dont have
a heavy load.
5, Is it secure to transfer a request and response to another object which
is created in the service method of a servlet ?. I believe it is a safe
approach. I think Struts is doing this.
6, I have seen that Tomcat not shutting down the threads which are active
when shut down command is issued. I used to kill Tomcat in such conditions.
Does Tomcat will ever kill this threads if they are not completed execution.
What criteria is used in such cases.
7, In Tomcat 4.0.x series there is one file catalina.out which prints the
number of active Httpprocessor active(I think it is number of threads) ut it
is not found in 4.1 series. Is there any way to get this log file in 4.1. I
also want to writing to this log mailed to me when the no. of HttpProcessors
exceeds a limit without tweaking Tomcat code.

 rgds
Antony Paul.

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



Re: java.lang.NoClassDefFoundError:javax/servlet/jsp/tagext/TagLibraryValidator

2003-11-19 Thread Bill Barker

"Anna Lissa Saupan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> Any help will be greatly appreciated.
>
> My current server has the following environment:
> Tomcat Version => Apache Tomcat/5.0.12
> JVM Version => 1.4.2-b28
> JVM Vendor => Sun Microsystems Inc.
> Redhat Linux 9
>OS Name => Linux
>OS Version => 2.4.20-8
>OS Architecture => i386
> Tag Library => 1.1
>
> Profile setup (selected):
>
CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/*.jar:$JAVA_HOME/jre/lib/*.jar:$AXISCLAS
SPATH
>
AXISCLASSPATH=$AXIS_LIB/axis.jar:$AXIS_LIB/commons-discovery.jar:$AXIS_LIB/c
ommons-logging.jar:$AXIS_LIB/jaxrpc.jar:$AXIS_LIB/saaj.jar:$AXIS_LIB/log4j-1
.2.8.jar:$CATALINA_HOME/common/endorsed/xercesImpl.jar:$CATALINA_HOME/common
/endorsed/xml-apis.jar:$CATALINA_HOME/common/endorsed/xmlParserAPIs.jar:$AXI
S_LIB/wsdl4j.jar:$CATALINA_HOME/common/lib/activation.jar
>

The /*.jar statements won't parse correctly under any version of *nix that I
know of ;-).

> servlet-api.jar can be found in /common/lib
>
> I'm trying to run JSP applications that uses JSTL but I get this error
> all the time.  I get the same error even while running the simplest JSTL
> application.
>
> Here is the Server Error that I get:
>
> HTTP Status 500 -
>
> 
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
>
> exception
>
>
> javax.servlet.ServletException:
javax/servlet/jsp/tagext/TagLibraryValidator
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
> root cause
>
>
> java.lang.NoClassDefFoundError:
javax/servlet/jsp/tagext/TagLibraryValidator
> java.lang.ClassLoader.defineClass0(Native Method)
> java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
> java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> java.security.AccessController.doPrivileged(Native Method)
> java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
> java.lang.ClassLoader.defineClass0(Native Method)
> java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
> java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> java.security.AccessController.doPrivileged(Native Method)
> java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> java.lang.ClassLoader.loadClass(ClassLoader.java:282)
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
> java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1278)
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1212)
>
org.apache.jasper.compiler.TagLibraryInfoImpl.createValidator(TagLibraryInfo
Impl.java:654)
>
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.ja
va:293)
>
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:204)
> org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:460)
> org.apache.jasper.compiler.Parser.parseDirective(Parser.java:525)
> org.apache.jasper.compiler.Parser.parseElements(Parser.java:1625)
> org.apache.jasper.compiler.Parser.parse(Parser.java:173)
>
org.apache.jasper.compiler.ParserController.parse(ParserController.java:247)
>
org.apache.jasper.compiler.ParserController.parse(ParserController.java:149)
>
org.apache.jasper.compiler.ParserController.parse(ParserController.java:135)
> org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:243)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:437)
>
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
55)
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
> note The full stack trace of the root cause is available in the Tomcat
> logs.
>
>
> 
> 
>
> Thanks.




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



java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator

2003-11-18 Thread Anna Lissa Saupan
Hi,

Any help will be greatly appreciated.

My current server has the following environment:
Tomcat Version => Apache Tomcat/5.0.12
JVM Version => 1.4.2-b28
JVM Vendor => Sun Microsystems Inc.
Redhat Linux 9
   OS Name => Linux
   OS Version => 2.4.20-8
   OS Architecture => i386
Tag Library => 1.1

Profile setup (selected):
CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/*.jar:$JAVA_HOME/jre/lib/*.jar:$AXISCLASSPATH
AXISCLASSPATH=$AXIS_LIB/axis.jar:$AXIS_LIB/commons-discovery.jar:$AXIS_LIB/commons-logging.jar:$AXIS_LIB/jaxrpc.jar:$AXIS_LIB/saaj.jar:$AXIS_LIB/log4j-1.2.8.jar:$CATALINA_HOME/common/endorsed/xercesImpl.jar:$CATALINA_HOME/common/endorsed/xml-apis.jar:$CATALINA_HOME/common/endorsed/xmlParserAPIs.jar:$AXIS_LIB/wsdl4j.jar:$CATALINA_HOME/common/lib/activation.jar

servlet-api.jar can be found in /common/lib 
 
I'm trying to run JSP applications that uses JSTL but I get this error
all the time.  I get the same error even while running the simplest JSTL
application.

Here is the Server Error that I get:

HTTP Status 500 - 



type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception


javax.servlet.ServletException: javax/servlet/jsp/tagext/TagLibraryValidator
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

root cause


java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator
java.lang.ClassLoader.defineClass0(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:537)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
java.net.URLClassLoader.access$100(URLClassLoader.java:55)
java.net.URLClassLoader$1.run(URLClassLoader.java:194)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:187)
java.lang.ClassLoader.loadClass(ClassLoader.java:289)
java.lang.ClassLoader.loadClass(ClassLoader.java:235)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
java.lang.ClassLoader.defineClass0(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:537)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
java.net.URLClassLoader.access$100(URLClassLoader.java:55)
java.net.URLClassLoader$1.run(URLClassLoader.java:194)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:187)
java.lang.ClassLoader.loadClass(ClassLoader.java:289)
java.lang.ClassLoader.loadClass(ClassLoader.java:282)
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
java.lang.ClassLoader.loadClass(ClassLoader.java:235)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1278)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1212)

org.apache.jasper.compiler.TagLibraryInfoImpl.createValidator(TagLibraryInfoImpl.java:654)

org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:293)
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:204)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:460)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:525)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1625)
org.apache.jasper.compiler.Parser.parse(Parser.java:173)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:247)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:149)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:135)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:243)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:437)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:555)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

note The full stack trace of the root cause is available in the Tomcat
logs.





Thanks.


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



Re: Servlet jsp is currently unavailable

2003-10-01 Thread Jonathan Simms
Jeez! So I'm not nuts?

Thanks for the quick reply.

> 4.1.27 needs a hotfix. As in this bugreport:
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22096
> 
> -Tim
> 
> Jonathan Simms wrote:
> >
> >I'm running a clean install of tomcat 4.1.27, and have been able to run
> >the struts-examples, the admin webapp (to my great surprise), and even
> >some of the examples from my struts textbook.
> >
> >the problem i've been having is understanding the error messages so that
> >i can figure out what's wrong. 
> 
> 
> 
> -
> 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: Servlet jsp is currently unavailable

2003-10-01 Thread Tim Funk
4.1.27 needs a hotfix. As in this bugreport:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22096
-Tim

Jonathan Simms wrote:
I'm running a clean install of tomcat 4.1.27, and have been able to run
the struts-examples, the admin webapp (to my great surprise), and even
some of the examples from my struts textbook.
the problem i've been having is understanding the error messages so that
i can figure out what's wrong. 


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


Servlet jsp is currently unavailable

2003-10-01 Thread Jonathan Simms
Hello all,

I'm new to tomcat and I've been tearing my hair out for the past week
trying to get the simplest examples to run. 

I'm running a clean install of tomcat 4.1.27, and have been able to run
the struts-examples, the admin webapp (to my great surprise), and even
some of the examples from my struts textbook.

the problem i've been having is understanding the error messages so that
i can figure out what's wrong. 

Is there any way of getting better/different errors than simply just the
HTTP/50x messages? Is there a way to trace execution through the program? 
How difficult is it to set up a debugger to work with tomcat, so that I 
can see what line is causing the server to choke?

this is my log file from a recent attempt at playing with struts, can someone
please help, and tell me what this means:

---


2003-10-01 04:57:14 StandardWrapper[/test:invoker]: Loading container servlet invoker
2003-10-01 04:57:14 StandardWrapper[/test:jsp]: Marking servlet jsp as unavailable
2003-10-01 04:57:14 StandardContext[/test]: Servlet /test threw load() exception
javax.servlet.ServletException: Wrapper cannot find servlet class 
org.apache.jasper.servlet.JspServlet or a class it depends on
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:891)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2568)
at org.apache.catalina.servlets.ManagerServlet.reload(ManagerServlet.java:802)
at 
org.apache.catalina.servlets.HTMLManagerServlet.reload(HTMLManagerServlet.java:501)
at 
org.apache.catalina.servlets.HTMLManagerServlet.doGet(HTMLManagerServlet.java:151)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.j

Re: Servlet/JSP Lifecycle and Performance

2003-09-07 Thread Bill Barker

"Lukas Bradley" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > AFAIK, no such benchmarks have been made.
> > Once tomcat loads a servlet, it is loaded. Tomcat currently does not
> unload
> > servlets due to lack of use.
>
> Is this the case with Tomcat 5?

Currently, yes.

>
> Lukas




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



Re: Servlet/JSP Lifecycle and Performance

2003-09-07 Thread Lukas Bradley
> AFAIK, no such benchmarks have been made.
> Once tomcat loads a servlet, it is loaded. Tomcat currently does not
unload
> servlets due to lack of use.

Is this the case with Tomcat 5?

Lukas




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



Re: Servlet/JSP Lifecycle and Performance

2003-09-06 Thread Tim Funk
AFAIK, no such benchmarks have been made.

Once tomcat loads a servlet, it is loaded. Tomcat currently does not unload 
servlets due to lack of use.

-Tim

Lukas Bradley wrote:

All,

Where can I get a description of how Tomcat handles a Servlet lifecycle from
init() to removal from memory?  I'm interested in how long a Servlet is held
in memory, and how long it remains inactive before it is removed from the
Servlet pool.
Also, are there performance statistics of the maximum number of Servlets
used versus number of simultaneous requests?  In other words, if there are
1000 simultaneous requests, what is the performance sacrifice for having
2000 active servlets versus 200?  Assume memory and processing power is
ample.
Thanks for any and all information or comments.

Lukas
 


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


Servlet/JSP Lifecycle and Performance

2003-09-05 Thread Lukas Bradley
All,

Where can I get a description of how Tomcat handles a Servlet lifecycle from
init() to removal from memory?  I'm interested in how long a Servlet is held
in memory, and how long it remains inactive before it is removed from the
Servlet pool.

Also, are there performance statistics of the maximum number of Servlets
used versus number of simultaneous requests?  In other words, if there are
1000 simultaneous requests, what is the performance sacrifice for having
2000 active servlets versus 200?  Assume memory and processing power is
ample.

Thanks for any and all information or comments.

Lukas




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



URL For Calling Servlet/JSP In Different Context

2003-06-25 Thread Michael Duffy
I've got a servlet in one context that I'd like to
refer to from another.  

Is it possible to specify a URL across contexts
without hard-wiring in the host name?  Thanks - MOD


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: URL For Calling Servlet/JSP In Different Context

2003-06-25 Thread Shapira, Yoav

Howdy,
Assuming servlet1 is in context1, accessible as
http://yourhost:yourport/context1/servlet1,
And servlet2 is in context2, accessible as
http://yourhost:yourport/context2/servlet2,
you can do:

ServletContext context1 = getServletContext();
ServletContext context2 = context1.getContext("/context2");

if(context2 != null) {
  RequestDispatcher rd2 = context2.getRequestDispatcher("/servlet2");
}

Then you can forward to servlet2 or include its output in your response.

This requires you to know the name of the 2nd context.  It's also not
that pretty in general, as webapps are supposed to be self-contained.
Why don't you put both servlets in the same context?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Michael Duffy [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 25, 2003 11:03 AM
>To: [EMAIL PROTECTED]
>Subject: URL For Calling Servlet/JSP In Different Context
>
>
>I've got a servlet in one context that I'd like to
>refer to from another.
>
>Is it possible to specify a URL across contexts
>without hard-wiring in the host name?  Thanks - MOD
>
>
>__
>Do you Yahoo!?
>SBC Yahoo! DSL - Now only $29.95 per month!
>http://sbc.yahoo.com
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



URL For Calling Servlet/JSP In Different Context

2003-06-25 Thread Michael Duffy

I've got a servlet in one context that I'd like to
refer to from another.  

Is it possible to specify a URL across contexts
without hard-wiring in the host name?  Thanks - MOD


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



SERVLET-JSP ERROR

2003-02-22 Thread A.Ezhil
hi,

when i try to run a JSP file for my application ,i am getting servlet jsp currently 
unavailable.


i am using tomcat4.0 ,linux8.0...

is it anything problem with jar files in lib directory..

pls help me at earliest...
 thank u
ezhil.a


Re: servlet/jsp/j2ee/pattern/ mailing list

2003-02-21 Thread Andoni
Have you tried the newsgroups? http://groups.google.com is a good place to
look for groups but if you want to post regularly you are better getting
Outlook Express (or some other client) and an address of a proper news
server.

Then you have news://comp.lang.java to post to.

Also, although you are not Irish but it does not matter, you can use:

http://www.ijug.org/

The Irish Java User's Group who have a very good web site discussion forum.


Andoni.

- Original Message -
From: "Etienne" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, February 21, 2003 12:17 PM
Subject: servlet/jsp/j2ee/pattern/ mailing list


> It there a newsgroup of a good mailing list for
> servlet/jsp/j2ee/pattern/? I have search for some of them, I didn't find
> anything.
>
> Thanks.
>
> Etienne.
>
>
> -
> 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]




servlet/jsp/j2ee/pattern/ mailing list

2003-02-21 Thread Etienne
It there a newsgroup of a good mailing list for
servlet/jsp/j2ee/pattern/? I have search for some of them, I didn't find
anything.

Thanks.

Etienne. 


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




Re: HTTP Status 503 - Servlet jsp is currently unavailable

2003-02-21 Thread A.Ezhil
thanks i am using standalone.. in linux 8.0 & tomcat 4.0

while i am trying to open my application jsp page,it displayed that error...
pls let me know the solution..


ezhil.a



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




Re: HTTP Status 503 - Servlet jsp is currently unavailable

2003-02-21 Thread A.Ezhil
thanks i am using standalone.. in linux 8.0 & tomcat 4.0

while i am trying to open my application jsp page,it displayed that error...

ezhil.a


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




Re: HTTP Status 503 - Servlet jsp is currently unavailable

2003-02-21 Thread Jens Skripczynski
A.Ezhil:
> hi,
> 
> i found the following error when i use tomcat server:
> 
> HTTP Status 503 - Servlet jsp is currently unavailable
> 
> pls let me know the solution for this at earliest.
well. Just posting the error message, does not give me (i believe most of us)
enough information, to help you with this matter.

1) Which tomcat version are you running
   a) standalone
   b) inside apache.
2) what os
3) What did you do, that caused this error message to appear ?

Ciao

Jens Skripczynski
-- 
E-Mail: skripi(at)myrealbox(dot)com

Gehe Grosse Dinge mit Gelassenheit an. [...] Und nehme kleine Dinge ernst.
-- aus "Ghost Dog"


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




HTTP Status 503 - Servlet jsp is currently unavailable

2003-02-21 Thread A.Ezhil
hi,

i found the following error when i use tomcat server:

HTTP Status 503 - Servlet jsp is currently unavailable

pls let me know the solution for this at earliest.


thanks in advance

ezhil.a



Re: Simple Bean not working but Servlet/JSP Working

2002-09-26 Thread David Cassidy

Manoj,

the error message says it all...
'java.util.MissingResourceException: Can't find bundle for base name 
forms, locale en_US'

Where is your file that you reference ...

bundle = ResourceBundle.getBundle("forms");

The error message is 'I can't find this file'

you don't list the forms file in your directory listing ...

David



Manoj Kithany wrote:

> Hi Everyone!
>
> As you all mentioned, I tried to use package for my beans/servlets. My 
> modified directory structure is :
>
> /kithany (root)
> /kithany/register.html
> /kithany/success.jsp
> /kithany/retry.jsp
> /kithany/process.jsp (bean)
> /kithany/WEB-INF/web.xml
> /kithany/WEB-INF/classes/mybean/FormBean.java   (package mybean)
> /kithany/WEB-INF/classes/mybean/FormBean.class  (package mybean)
> /kithany/META-INF/application.xml
>
> Then, I create the kithany.war file as shown below:
>
> #cd /kithany
> #jar -cvfM kithany.war .
>
> I then put the "kithany.war" file in /jboss/server/default/deploy 
> directory
> and  In your browser type:
>
> http://IP_ADDR_ESS:8080/kithany/register.html
>
> which works fine. In my "register.html" file my action is  action="/kithany/process.jsp" method=post>
> When I click the SUBMIT button in "register.html" form (which then calls
> bean and servelte), I get following Error - wonder why.
>
>  
>
> Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error - that
> prevented it from fulfilling this request
>
> java.util.MissingResourceException: Can't find bundle for base name 
> forms, locale en_US
> at 
> java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java(Compiled 
> Code))
> at 
> java.util.ResourceBundle.getBundleImpl(ResourceBundle.java(Compiled 
> Code))
> at java.util.ResourceBundle.getBundle(ResourceBundle.java:534)
> at org.apache.jsp.process$jsp.jspInit(process$jsp.java:17)
> at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:90)
> at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspServlet.java:142) 
>
> at 
> 
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:178)
> 
>
> at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188) 
>
> at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  
>
>
> My process.jsp file is:
>  
>
> <%@ page import="java.util.*, mybean.*" %>
>
> <%!
> ResourceBundle bundle =null;
> public void jspInit() {
> bundle = ResourceBundle.getBundle("forms");
> }
> %>
>
>  scope="request">  ** THIS
> IS MY LINE 10
> 
> 
>
> <%
>  if (formHandler.validate()) {
> %>
> "/>
> <%
>  }  else {
> %>
> "/>
> <%
>  }
> %>
>  
>
>
> My web.xml file is as shown below:
> --- 
>
> 
>   
>   FormBean
>   FormBean
>   
>   
>   HelloWorldExample
>   HelloWorldExample
>   
> 
>   HelloWorldExample
>   /HelloWorldExample/*
> 
> 
>   FormBean
>   /FormBean/*
> 
> 
> --- 
>
>
> I would really appreciate if any of you Experts could put some light onto
> this error.
>
> THANKS!
>
> Manoj G. Kithany
> [EMAIL PROTECTED]
>
>
>
>
>
>> From: "Ron Day" <[EMAIL PROTECTED]>
>> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> Subject: RE: Simple Bean not working but Servlet/JSP Working
>> Date: Mon, 23 Sep 2002 10:20:30 -0400
>>
>> You have to put your java classes in a package. If you do not, and put
>> the class files in WEB-INF/classes then Tomcat cannot find them because
>> this is not the default package location for Tomcat.
>>
>> Bottom line: always use pacjages for your classes !
>>
>> ron
>
>
>
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
> -- 
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
>




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

tsdok

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



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




RE: Simple Bean not working but Servlet/JSP Working

2002-09-26 Thread Manoj Kithany

Hi Everyone!

As you all mentioned, I tried to use package for my beans/servlets. My 
modified directory structure is :

/kithany (root)
/kithany/register.html
/kithany/success.jsp
/kithany/retry.jsp
/kithany/process.jsp (bean)
/kithany/WEB-INF/web.xml
/kithany/WEB-INF/classes/mybean/FormBean.java   (package mybean)
/kithany/WEB-INF/classes/mybean/FormBean.class  (package mybean)
/kithany/META-INF/application.xml

Then, I create the kithany.war file as shown below:

#cd /kithany
#jar -cvfM kithany.war .

I then put the "kithany.war" file in /jboss/server/default/deploy directory
and  In your browser type:

http://IP_ADDR_ESS:8080/kithany/register.html

which works fine. In my "register.html" file my action is 
When I click the SUBMIT button in "register.html" form (which then calls
bean and servelte), I get following Error - wonder why.


Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error - that
prevented it from fulfilling this request

java.util.MissingResourceException: Can't find bundle for base name forms, 
locale en_US
at 
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java(Compiled 
Code))
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java(Compiled 
Code))
at java.util.ResourceBundle.getBundle(ResourceBundle.java:534)
at org.apache.jsp.process$jsp.jspInit(process$jsp.java:17)
at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:90)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspServlet.java:142)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:178)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


My process.jsp file is:

<%@ page import="java.util.*, mybean.*" %>

<%!
ResourceBundle bundle =null;
public void jspInit() {
 bundle = ResourceBundle.getBundle("forms");
 }
%>

  
** THIS
IS MY LINE 10



<%
  if (formHandler.validate()) {
%>
"/>
<%
  }  else {
%>
"/>
<%
  }
%>


My web.xml file is as shown below:
---

   
   FormBean
   FormBean
   
   
   HelloWorldExample
   HelloWorldExample
   

   HelloWorldExample
   /HelloWorldExample/*


   FormBean
   /FormBean/*


---

I would really appreciate if any of you Experts could put some light onto
this error.

THANKS!

Manoj G. Kithany
[EMAIL PROTECTED]





>From: "Ron Day" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: RE: Simple Bean not working but Servlet/JSP Working
>Date: Mon, 23 Sep 2002 10:20:30 -0400
>
>You have to put your java classes in a package. If you do not, and put
>the class files in WEB-INF/classes then Tomcat cannot find them because
>this is not the default package location for Tomcat.
>
>Bottom line: always use pacjages for your classes !
>
>ron


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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

tsdok

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



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




RE: Simple Bean not working but Servlet/JSP Working

2002-09-26 Thread Manoj Kithany

Hi Everyone!

As you all mentioned, I tried to use package for my beans/servlets. My 
modified directory structure is :

/kithany (root)
/kithany/register.html
/kithany/success.jsp
/kithany/retry.jsp
/kithany/process.jsp (bean)
/kithany/WEB-INF/web.xml
/kithany/WEB-INF/classes/mybean/FormBean.java   (package mybean)
/kithany/WEB-INF/classes/mybean/FormBean.class  (package mybean)
/kithany/META-INF/application.xml

Then, I create the kithany.war file as shown below:

#cd /kithany
#jar -cvfM kithany.war .

I then put the "kithany.war" file in /jboss/server/default/deploy directory
and  In your browser type:

http://IP_ADDR_ESS:8080/kithany/register.html

which works fine. In my "register.html" file my action is 
When I click the SUBMIT button in "register.html" form (which then calls
bean and servelte), I get following Error - wonder why.


Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error - that
prevented it from fulfilling this request

java.util.MissingResourceException: Can't find bundle for base name forms, 
locale en_US
at 
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java(Compiled 
Code))
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java(Compiled 
Code))
at java.util.ResourceBundle.getBundle(ResourceBundle.java:534)
at org.apache.jsp.process$jsp.jspInit(process$jsp.java:17)
at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:90)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspServlet.java:142)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:178)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


My process.jsp file is:

<%@ page import="java.util.*, mybean.*" %>

<%!
ResourceBundle bundle =null;
public void jspInit() {
 bundle = ResourceBundle.getBundle("forms");
 }
%>

  
** THIS
IS MY LINE 10



<%
  if (formHandler.validate()) {
%>
"/>
<%
  }  else {
%>
"/>
<%
  }
%>


My web.xml file is as shown below:
---

   
   FormBean
   FormBean
   
   
   HelloWorldExample
   HelloWorldExample
   

   HelloWorldExample
   /HelloWorldExample/*


   FormBean
   /FormBean/*


---

I would really appreciate if any of you Experts could put some light onto
this error.

THANKS!

Manoj G. Kithany
[EMAIL PROTECTED]





>From: "Ron Day" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: RE: Simple Bean not working but Servlet/JSP Working
>Date: Mon, 23 Sep 2002 10:20:30 -0400
>
>You have to put your java classes in a package. If you do not, and put
>the class files in WEB-INF/classes then Tomcat cannot find them because
>this is not the default package location for Tomcat.
>
>Bottom line: always use pacjages for your classes !
>
>ron


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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

tsdok

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



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




Re: Simple Bean not working but Servlet/JSP Working

2002-09-26 Thread David Cassidy

Manoj,

the error message says it all...
'java.util.MissingResourceException: Can't find bundle for base name 
forms, locale en_US'

Where is your file that you reference ...

bundle = ResourceBundle.getBundle("forms");

The error message is 'I can't find this file'

you don't list the forms file in your directory listing ...

David



Manoj Kithany wrote:

> Hi Everyone!
>
> As you all mentioned, I tried to use package for my beans/servlets. My 
> modified directory structure is :
>
> /kithany (root)
> /kithany/register.html
> /kithany/success.jsp
> /kithany/retry.jsp
> /kithany/process.jsp (bean)
> /kithany/WEB-INF/web.xml
> /kithany/WEB-INF/classes/mybean/FormBean.java   (package mybean)
> /kithany/WEB-INF/classes/mybean/FormBean.class  (package mybean)
> /kithany/META-INF/application.xml
>
> Then, I create the kithany.war file as shown below:
>
> #cd /kithany
> #jar -cvfM kithany.war .
>
> I then put the "kithany.war" file in /jboss/server/default/deploy 
> directory
> and  In your browser type:
>
> http://IP_ADDR_ESS:8080/kithany/register.html
>
> which works fine. In my "register.html" file my action is  action="/kithany/process.jsp" method=post>
> When I click the SUBMIT button in "register.html" form (which then calls
> bean and servelte), I get following Error - wonder why.
>
>  
>
> Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error - that
> prevented it from fulfilling this request
>
> java.util.MissingResourceException: Can't find bundle for base name 
> forms, locale en_US
> at 
> java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java(Compiled 
> Code))
> at 
> java.util.ResourceBundle.getBundleImpl(ResourceBundle.java(Compiled 
> Code))
> at java.util.ResourceBundle.getBundle(ResourceBundle.java:534)
> at org.apache.jsp.process$jsp.jspInit(process$jsp.java:17)
> at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:90)
> at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspServlet.java:142) 
>
> at 
> 
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:178)
> 
>
> at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188) 
>
> at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  
>
>
> My process.jsp file is:
>  
>
> <%@ page import="java.util.*, mybean.*" %>
>
> <%!
> ResourceBundle bundle =null;
> public void jspInit() {
> bundle = ResourceBundle.getBundle("forms");
> }
> %>
>
>  scope="request">  ** THIS
> IS MY LINE 10
> 
> 
>
> <%
>  if (formHandler.validate()) {
> %>
> "/>
> <%
>  }  else {
> %>
> "/>
> <%
>  }
> %>
>  
>
>
> My web.xml file is as shown below:
> --- 
>
> 
>   
>   FormBean
>   FormBean
>   
>   
>   HelloWorldExample
>   HelloWorldExample
>   
> 
>   HelloWorldExample
>   /HelloWorldExample/*
> 
> 
>   FormBean
>   /FormBean/*
> 
> 
> --- 
>
>
> I would really appreciate if any of you Experts could put some light onto
> this error.
>
> THANKS!
>
> Manoj G. Kithany
> [EMAIL PROTECTED]
>
>
>
>
>
>> From: "Ron Day" <[EMAIL PROTECTED]>
>> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> Subject: RE: Simple Bean not working but Servlet/JSP Working
>> Date: Mon, 23 Sep 2002 10:20:30 -0400
>>
>> You have to put your java classes in a package. If you do not, and put
>> the class files in WEB-INF/classes then Tomcat cannot find them because
>> this is not the default package location for Tomcat.
>>
>> Bottom line: always use pacjages for your classes !
>>
>> ron
>
>
>
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
> -- 
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
>




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

tsdok

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




RE: Simple Bean not working but Servlet/JSP Working

2002-09-26 Thread Manoj Kithany

Hi Everyone!

As you all mentioned, I tried to use package for my beans/servlets. My 
modified directory structure is :

/kithany (root)
/kithany/register.html
/kithany/success.jsp
/kithany/retry.jsp
/kithany/process.jsp (bean)
/kithany/WEB-INF/web.xml
/kithany/WEB-INF/classes/mybean/FormBean.java   (package mybean)
/kithany/WEB-INF/classes/mybean/FormBean.class  (package mybean)
/kithany/META-INF/application.xml

Then, I create the kithany.war file as shown below:

#cd /kithany
#jar -cvfM kithany.war .

I then put the "kithany.war" file in /jboss/server/default/deploy directory
and  In your browser type:

http://IP_ADDR_ESS:8080/kithany/register.html

which works fine. In my "register.html" file my action is 
When I click the SUBMIT button in "register.html" form (which then calls
bean and servelte), I get following Error - wonder why.


Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error - that
prevented it from fulfilling this request

java.util.MissingResourceException: Can't find bundle for base name forms, 
locale en_US
at 
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java(Compiled 
Code))
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java(Compiled 
Code))
at java.util.ResourceBundle.getBundle(ResourceBundle.java:534)
at org.apache.jsp.process$jsp.jspInit(process$jsp.java:17)
at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:90)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspServlet.java:142)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:178)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


My process.jsp file is:

<%@ page import="java.util.*, mybean.*" %>

<%!
ResourceBundle bundle =null;
public void jspInit() {
 bundle = ResourceBundle.getBundle("forms");
 }
%>

  
** THIS
IS MY LINE 10



<%
  if (formHandler.validate()) {
%>
"/>
<%
  }  else {
%>
"/>
<%
  }
%>


My web.xml file is as shown below:
---

   
   FormBean
   FormBean
   
   
   HelloWorldExample
   HelloWorldExample
   

   HelloWorldExample
   /HelloWorldExample/*


   FormBean
   /FormBean/*


---

I would really appreciate if any of you Experts could put some light onto
this error.

THANKS!

Manoj G. Kithany
[EMAIL PROTECTED]





>From: "Ron Day" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: RE: Simple Bean not working but Servlet/JSP Working
>Date: Mon, 23 Sep 2002 10:20:30 -0400
>
>You have to put your java classes in a package. If you do not, and put
>the class files in WEB-INF/classes then Tomcat cannot find them because
>this is not the default package location for Tomcat.
>
>Bottom line: always use pacjages for your classes !
>
>ron


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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

tsdok

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




RE: Error 503 The request resource (Servlet jsp is currently unavailable) is not currently available

2002-09-24 Thread Turner, John


As far as I know, Forte only supports up to 4.0.3.  I had similar problems
trying to use 4.0.4 with Forte, and after a couple of postings on the
Netbeans user mailing list (Netbeans is the core of Forte), was told that it
was a "tomcat integration bug".  I don't know that it is/was fixed, as using
4.0.3 served my purposes at the time, and that's what I've been using since.

You might want to try posting on the Netbeans list as well as here.

John


> -Original Message-
> From: Michael Nicholson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 24, 2002 2:24 PM
> To: Tomcat Users List
> Subject: Error 503 The request resource (Servlet jsp is currently
> unavailable) is not currently available
> 
> 
> I'm trying to setup a tomcat 4.0.5 instance on a win2000 
> machine and integrate it with sunOne studios/forte (which 
> ever you want to call it).  However, anytime I try to 
> navigate to a jsp, I get this error.  Static resources are 
> ok.  Servlets give me this error (or at least the one I tried did):  
> 
> java.lang.IllegalStateException: Current state = FLUSHED, new 
> state = CODING
>   at 
> java.nio.charset.CharsetEncoder.throwIllegalStateException(Cha
> rsetEncoder.java:933)
>   at 
> java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:529)
>   at 
> sun.nio.cs.StreamEncoder$CharsetSE.implWrite(StreamEncoder.java:382)
>   at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:134)
>   at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:144)
>   at java.io.OutputStreamWriter.write(OutputStreamWriter.java:204)
>   at java.io.PrintWriter.write(PrintWriter.java:230)
>   at 
> org.apache.catalina.connector.ResponseWriter.write(ResponseWri
> ter.java:441)
>   at java.io.PrintWriter.write(PrintWriter.java:247)
>   at 
> org.apache.catalina.connector.ResponseWriter.write(ResponseWri
> ter.java:426)
>   at java.io.PrintWriter.print(PrintWriter.java:392)
>   at 
> org.apache.catalina.connector.ResponseWriter.print(ResponseWri
> ter.java:230)
>   at java.io.PrintWriter.println(PrintWriter.java:529)
>   at 
> org.apache.catalina.connector.ResponseWriter.println(ResponseW
> riter.java:359)
>   at java.lang.Throwable.printStackTrace(Throwable.java:509)
>   at CPPSDB.handlerServlet.service(handlerServlet.java:166)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:247)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterChain.java:193)
>   at 
> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter
> (MonitorFilter.java:223)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:213)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterChain.java:193)
>   at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.java:243)
>   at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
>   at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.java:190)
>   at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
>   at 
> org.apache.catalina.valves.CertificatesValve.invoke(Certificat
> esValve.java:246)
>   at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
>   at 
> org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(
> MonitorValve.java:142)
>   at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
>   at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at 
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2347)
>   at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:180)
>   at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
>   at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve.java:170)
>   at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
>   at 
> org.apache.ca

Error 503 The request resource (Servlet jsp is currently unavailable) is not currently available

2002-09-24 Thread Michael Nicholson

I'm trying to setup a tomcat 4.0.5 instance on a win2000 machine and integrate it with 
sunOne studios/forte (which ever you want to call it).  However, anytime I try to 
navigate to a jsp, I get this error.  Static resources are ok.  Servlets give me this 
error (or at least the one I tried did):  

java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING
at 
java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncoder.java:933)
at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:529)
at sun.nio.cs.StreamEncoder$CharsetSE.implWrite(StreamEncoder.java:382)
at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:134)
at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:144)
at java.io.OutputStreamWriter.write(OutputStreamWriter.java:204)
at java.io.PrintWriter.write(PrintWriter.java:230)
at org.apache.catalina.connector.ResponseWriter.write(ResponseWriter.java:441)
at java.io.PrintWriter.write(PrintWriter.java:247)
at org.apache.catalina.connector.ResponseWriter.write(ResponseWriter.java:426)
at java.io.PrintWriter.print(PrintWriter.java:392)
at org.apache.catalina.connector.ResponseWriter.print(ResponseWriter.java:230)
at java.io.PrintWriter.println(PrintWriter.java:529)
at 
org.apache.catalina.connector.ResponseWriter.println(ResponseWriter.java:359)
at java.lang.Throwable.printStackTrace(Throwable.java:509)
at CPPSDB.handlerServlet.service(handlerServlet.java:166)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:223)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(MonitorValve.java:142)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)
Any ideas?  Thanks...


Re: Simple Bean not working but Servlet/JSP Working

2002-09-23 Thread Manoj Kithany

Hi David,

THANKS again.

My "forms.properties" file contains only:
--
process.success=success.jsp
process.retry=retry.jsp
-

DO you think the file name should be "forms.properties" or we can have 
anything?

THANKS again!

Manoj G. Kithany


>From: David Cassidy <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: Tomcat Users List <[EMAIL PROTECTED]>
>Subject: Re: Simple Bean not working but Servlet/JSP Working
>Date: Mon, 23 Sep 2002 16:45:30 +0100
>
>What's in this properties file ?
>The error message mentions a
>
>java.util.MissingResourceException: Can't find resource for bundle 
>java.util.PropertyResourceBundle, key /kithany/retry.jsp
>
>Like it's trying to use /kithany/retry.jsp as a key within the resources 
>file ?.
>
>David
>
>
>
>Manoj Kithany wrote:
>
>>Hi David,
>>
>>THANKS for your reply.
>>
>>I have the following directory struct (it had forms.properties file in my 
>>directory which I missed to mention in email). It is still giving me same 
>>error:
>>/kithany (root)
>>/kithany/register.html
>>/kithany/success.jsp
>>/kithany/retry.jsp
>>/kithany/process.jsp (bean)
>>/kithany/WEB-INF/web.xml
>>/kithany/WEB-INF/classes/mybean/FormBean.java (package mybean)
>>/kithany/WEB-INF/classes/mybean/FormBean.class(package mybean)
>>/kithany/WEB-INF/classes/forms.properties
>>/kithany/WEB-INF/classes/mybean/forms.properties
>>/kithany/META-INF/application.xml
>>
>>The error it gives is:
>>--
>>java.util.MissingResourceException: Can't find resource for bundle 
>>java.util.PropertyResourceBundle, key /kithany/retry.jsp
>> at java.util.ResourceBundle.getObject(ResourceBundle.java(Compiled 
>>Code))
>> at java.util.ResourceBundle.getString(ResourceBundle.java(Compiled 
>>Code))
>> at org.apache.jsp.process$jsp._jspService(process$jsp.java:142)
>> at 
>>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>> at 
>>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
>>
>> at 
>>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>--
>>
>>THANKS again.
>>
>>Manoj G. Kithany
>>
>>
>>>From: David Cassidy <[EMAIL PROTECTED]>
>>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>>To: Tomcat Users List <[EMAIL PROTECTED]>
>>>Subject: Re: Simple Bean not working but Servlet/JSP Working
>>>Date: Mon, 23 Sep 2002 16:13:57 +0100
>>>
>>>Manoj,
>>>
>>>the error message says it all...
>>>'java.util.MissingResourceException: Can't find bundle for base name 
>>>forms, locale en_US'
>>>
>>>Where is your file that you reference ...
>>>
>>>bundle = ResourceBundle.getBundle("forms");
>>>
>>>The error message is 'I can't find this file'
>>>
>>>you don't list the forms file in your directory listing ...
>>>
>>>David


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




Re: Simple Bean not working but Servlet/JSP Working

2002-09-23 Thread David Cassidy

What's in this properties file ?
The error message mentions a

java.util.MissingResourceException: Can't find resource for bundle 
java.util.PropertyResourceBundle, key /kithany/retry.jsp

Like it's trying to use /kithany/retry.jsp as a key within the resources 
file ?.

David



Manoj Kithany wrote:

> Hi David,
>
> THANKS for your reply.
>
> I have the following directory struct (it had forms.properties file in 
> my directory which I missed to mention in email). It is still giving 
> me same error:
> /kithany (root)
> /kithany/register.html
> /kithany/success.jsp
> /kithany/retry.jsp
> /kithany/process.jsp (bean)
> /kithany/WEB-INF/web.xml
> /kithany/WEB-INF/classes/mybean/FormBean.java (package mybean)
> /kithany/WEB-INF/classes/mybean/FormBean.class(package mybean)
> /kithany/WEB-INF/classes/forms.properties
> /kithany/WEB-INF/classes/mybean/forms.properties
> /kithany/META-INF/application.xml
>
> The error it gives is:
> --
> java.util.MissingResourceException: Can't find resource for bundle 
> java.util.PropertyResourceBundle, key /kithany/retry.jsp
> at java.util.ResourceBundle.getObject(ResourceBundle.java(Compiled 
> Code))
> at java.util.ResourceBundle.getString(ResourceBundle.java(Compiled 
> Code))
> at org.apache.jsp.process$jsp._jspService(process$jsp.java:142)
> at 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201) 
>
> at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> --
>
> THANKS again.
>
> Manoj G. Kithany
>
>
>> From: David Cassidy <[EMAIL PROTECTED]>
>> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> To: Tomcat Users List <[EMAIL PROTECTED]>
>> Subject: Re: Simple Bean not working but Servlet/JSP Working
>> Date: Mon, 23 Sep 2002 16:13:57 +0100
>>
>> Manoj,
>>
>> the error message says it all...
>> 'java.util.MissingResourceException: Can't find bundle for base name 
>> forms, locale en_US'
>>
>> Where is your file that you reference ...
>>
>> bundle = ResourceBundle.getBundle("forms");
>>
>> The error message is 'I can't find this file'
>>
>> you don't list the forms file in your directory listing ...
>>
>> David
>>
>>
>
>
>
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
> -- 
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
>




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




Re: Simple Bean not working but Servlet/JSP Working

2002-09-23 Thread Manoj Kithany

Hi David,

THANKS for your reply.

I have the following directory struct (it had forms.properties file in my 
directory which I missed to mention in email). It is still giving me same 
error:
/kithany (root)
/kithany/register.html
/kithany/success.jsp
/kithany/retry.jsp
/kithany/process.jsp (bean)
/kithany/WEB-INF/web.xml
/kithany/WEB-INF/classes/mybean/FormBean.java (package mybean)
/kithany/WEB-INF/classes/mybean/FormBean.class(package mybean)
/kithany/WEB-INF/classes/forms.properties
/kithany/WEB-INF/classes/mybean/forms.properties
/kithany/META-INF/application.xml

The error it gives is:
--
java.util.MissingResourceException: Can't find resource for bundle 
java.util.PropertyResourceBundle, key /kithany/retry.jsp
at java.util.ResourceBundle.getObject(ResourceBundle.java(Compiled Code))
at java.util.ResourceBundle.getString(ResourceBundle.java(Compiled Code))
at org.apache.jsp.process$jsp._jspService(process$jsp.java:142)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
--

THANKS again.

Manoj G. Kithany


>From: David Cassidy <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: Tomcat Users List <[EMAIL PROTECTED]>
>Subject: Re: Simple Bean not working but Servlet/JSP Working
>Date: Mon, 23 Sep 2002 16:13:57 +0100
>
>Manoj,
>
>the error message says it all...
>'java.util.MissingResourceException: Can't find bundle for base name forms, 
>locale en_US'
>
>Where is your file that you reference ...
>
>bundle = ResourceBundle.getBundle("forms");
>
>The error message is 'I can't find this file'
>
>you don't list the forms file in your directory listing ...
>
>David
>
>



_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




Re: Simple Bean not working but Servlet/JSP Working

2002-09-23 Thread David Cassidy

Manoj,

the error message says it all...
'java.util.MissingResourceException: Can't find bundle for base name 
forms, locale en_US'

Where is your file that you reference ...

bundle = ResourceBundle.getBundle("forms");

The error message is 'I can't find this file'

you don't list the forms file in your directory listing ...

David



Manoj Kithany wrote:

> Hi Everyone!
>
> As you all mentioned, I tried to use package for my beans/servlets. My 
> modified directory structure is :
>
> /kithany (root)
> /kithany/register.html
> /kithany/success.jsp
> /kithany/retry.jsp
> /kithany/process.jsp (bean)
> /kithany/WEB-INF/web.xml
> /kithany/WEB-INF/classes/mybean/FormBean.java   (package mybean)
> /kithany/WEB-INF/classes/mybean/FormBean.class  (package mybean)
> /kithany/META-INF/application.xml
>
> Then, I create the kithany.war file as shown below:
>
> #cd /kithany
> #jar -cvfM kithany.war .
>
> I then put the "kithany.war" file in /jboss/server/default/deploy 
> directory
> and  In your browser type:
>
> http://IP_ADDR_ESS:8080/kithany/register.html
>
> which works fine. In my "register.html" file my action is  action="/kithany/process.jsp" method=post>
> When I click the SUBMIT button in "register.html" form (which then calls
> bean and servelte), I get following Error - wonder why.
>
>  
>
> Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error - that
> prevented it from fulfilling this request
>
> java.util.MissingResourceException: Can't find bundle for base name 
> forms, locale en_US
> at 
> java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java(Compiled 
> Code))
> at 
> java.util.ResourceBundle.getBundleImpl(ResourceBundle.java(Compiled 
> Code))
> at java.util.ResourceBundle.getBundle(ResourceBundle.java:534)
> at org.apache.jsp.process$jsp.jspInit(process$jsp.java:17)
> at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:90)
> at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspServlet.java:142) 
>
> at 
> 
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:178)
> 
>
> at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188) 
>
> at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  
>
>
> My process.jsp file is:
>  
>
> <%@ page import="java.util.*, mybean.*" %>
>
> <%!
> ResourceBundle bundle =null;
> public void jspInit() {
> bundle = ResourceBundle.getBundle("forms");
> }
> %>
>
>  scope="request">  ** THIS
> IS MY LINE 10
> 
> 
>
> <%
>  if (formHandler.validate()) {
> %>
> "/>
> <%
>  }  else {
> %>
> "/>
> <%
>  }
> %>
>  
>
>
> My web.xml file is as shown below:
> --- 
>
> 
>   
>   FormBean
>   FormBean
>   
>   
>   HelloWorldExample
>   HelloWorldExample
>   
> 
>   HelloWorldExample
>   /HelloWorldExample/*
> 
> 
>   FormBean
>   /FormBean/*
> 
> 
> --- 
>
>
> I would really appreciate if any of you Experts could put some light onto
> this error.
>
> THANKS!
>
> Manoj G. Kithany
> [EMAIL PROTECTED]
>
>
>
>
>
>> From: "Ron Day" <[EMAIL PROTECTED]>
>> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> Subject: RE: Simple Bean not working but Servlet/JSP Working
>> Date: Mon, 23 Sep 2002 10:20:30 -0400
>>
>> You have to put your java classes in a package. If you do not, and put
>> the class files in WEB-INF/classes then Tomcat cannot find them because
>> this is not the default package location for Tomcat.
>>
>> Bottom line: always use pacjages for your classes !
>>
>> ron
>
>
>
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
> -- 
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
>




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




RE: Simple Bean not working but Servlet/JSP Working

2002-09-23 Thread Manoj Kithany

Hi Everyone!

As you all mentioned, I tried to use package for my beans/servlets. My 
modified directory structure is :

/kithany (root)
/kithany/register.html
/kithany/success.jsp
/kithany/retry.jsp
/kithany/process.jsp (bean)
/kithany/WEB-INF/web.xml
/kithany/WEB-INF/classes/mybean/FormBean.java   (package mybean)
/kithany/WEB-INF/classes/mybean/FormBean.class  (package mybean)
/kithany/META-INF/application.xml

Then, I create the kithany.war file as shown below:

#cd /kithany
#jar -cvfM kithany.war .

I then put the "kithany.war" file in /jboss/server/default/deploy directory
and  In your browser type:

http://IP_ADDR_ESS:8080/kithany/register.html

which works fine. In my "register.html" file my action is 
When I click the SUBMIT button in "register.html" form (which then calls
bean and servelte), I get following Error - wonder why.


Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error - that
prevented it from fulfilling this request

java.util.MissingResourceException: Can't find bundle for base name forms, 
locale en_US
at 
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java(Compiled 
Code))
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java(Compiled 
Code))
at java.util.ResourceBundle.getBundle(ResourceBundle.java:534)
at org.apache.jsp.process$jsp.jspInit(process$jsp.java:17)
at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:90)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspServlet.java:142)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:178)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


My process.jsp file is:

<%@ page import="java.util.*, mybean.*" %>

<%!
ResourceBundle bundle =null;
public void jspInit() {
 bundle = ResourceBundle.getBundle("forms");
 }
%>

  
** THIS
IS MY LINE 10



<%
  if (formHandler.validate()) {
%>
"/>
<%
  }  else {
%>
"/>
<%
  }
%>


My web.xml file is as shown below:
---

   
   FormBean
   FormBean
   
   
   HelloWorldExample
   HelloWorldExample
   

   HelloWorldExample
   /HelloWorldExample/*


   FormBean
   /FormBean/*


---

I would really appreciate if any of you Experts could put some light onto
this error.

THANKS!

Manoj G. Kithany
[EMAIL PROTECTED]





>From: "Ron Day" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: RE: Simple Bean not working but Servlet/JSP Working
>Date: Mon, 23 Sep 2002 10:20:30 -0400
>
>You have to put your java classes in a package. If you do not, and put
>the class files in WEB-INF/classes then Tomcat cannot find them because
>this is not the default package location for Tomcat.
>
>Bottom line: always use pacjages for your classes !
>
>ron


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




RE: Simple Bean not working but Servlet/JSP Working

2002-09-23 Thread Ron Day

You have to put your java classes in a package. If you do not, and put 
the class files in WEB-INF/classes then Tomcat cannot find them because 
this is not the default package location for Tomcat.

Bottom line: always use pacjages for your classes !

ron


-Original Message-
From: "Manoj Kithany" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Date: Sun, 22 Sep 2002 20:59:03 +
Subject: RE: Simple Bean not working but Servlet/JSP Working

> Hi Mr. Reynir,
> 
> THANKS for reply. I have already removed the package name from the 
> FormBean.java file.
> 
> Please help.
> 
> Thanks!
> 
> Manoj G. Kithany
> 
> 
> >From: Reynir Hübner <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Subject: RE: Simple Bean not working but Servlet/JSP Working
> >Date: Sun, 22 Sep 2002 20:47:21 -
> >
> >do you have the bean specified in a package ?
> >either put it into a package (and the correct "folder") as 
> >/classes/com/domain/packagename/FormBean.class
> >and then use this (with import line), or remove the package 
> >com.domain.packagename; from the file, and it should work.
> >
> >hope it helps
> >[EMAIL PROTECTED]
> >
> >
> >
> >
> >
> > > -Original Message-
> > > From: Manoj Kithany [mailto:[EMAIL PROTECTED]]
> > > Sent: 22. september 2002 20:47
> > > To: [EMAIL PROTECTED]
> > > Subject: Simple Bean not working but Servlet/JSP Working
> > >
> > >
> > > Hi Experts,
> > >
> > > I tried a simple JSP/Servlet applications and it worked. I am
> > > using Apache
> > > 1.3.26 + (Jboss 3.0.3, Tomcat 4.0.4 bundle)
> > >
> > > Now, I am trying for simple Bean Application with
> > > JSP/Servlets and Html
> > > pages. My directory structure is :
> > >
> > > /kithany (root)
> > > /kithany/register.html
> > > /kithany/success.jsp
> > > /kithany/retry.jsp
> > > /kithany/process.jsp (bean)
> > > /kithany/WEB-INF/web.xml
> > > /kithany/WEB-INF/classes/FormBean.java
> > > /kithany/WEB-INF/classes/FormBean.class
> > > /kithany/META-INF/application.xml
> > >
> > > Then, I create the kithany.war file as shown below:
> > >
> > > #cd /kithany
> > > #jar -cvfM kithany.war .
> > >
> > > I then put the "kithany.war" file in
> > > /jboss/server/default/deploy directory
> > > and  In your browser type:
> > >
> > > http://IP_ADDR_ESS:8080/kithany/register.html
> > >
> > > which works fine. In my "register.html" file my action is  > > action="/kithany/process.jsp" method=post>
> > > When I click the SUBMIT button in "register.html" form (which
> > > then calls
> > > bean and servelte), I get following Error - wonder why.
> > >
> > > --
> > > --
> > > Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error -
> that
> > > prevented it from fulfilling this request
> > >
> > > org.apache.jasper.JasperException: Unable to compile class for
> JSP
> > > An error occurred at line: 10 in the jsp file: /process.jsp
> > >
> > > Generated servlet error:
> > > /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> > > ess$jsp.java:72:
> > > Class org.apache.jsp.FormBean not found.
> > > FormBean formHandler = null;
> > > ^
> > >
> > > An error occurred at line: 10 in the jsp file: /process.jsp
> > >
> > > Generated servlet error:
> > > /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> > > ess$jsp.java:75:
> > > Class org.apache.jsp.FormBean not found.
> > >   formHandler= (FormBean)
> > > ^
> > > An error occurred at line: 10 in the jsp file: /process.jsp
> > >
> > > Generated servlet error:
> > > /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> > > ess$jsp.java:80:
> > > Class org.apache.jsp.FormBean not found.
> > >   formHandler = (FormBean)
> > > java.beans.Beans.instantiate(this.getClass().getClassLoader(),
> > >  &

RE: Simple Bean not working but Servlet/JSP Working

2002-09-23 Thread Manoj Kithany

Hi Mr. Reynir,

THANKS for reply. I have already removed the package name from the 
FormBean.java file.

Please help.

Thanks!

Manoj G. Kithany


>From: Reynir Hübner <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: RE: Simple Bean not working but Servlet/JSP Working
>Date: Sun, 22 Sep 2002 20:47:21 -
>
>do you have the bean specified in a package ?
>either put it into a package (and the correct "folder") as 
>/classes/com/domain/packagename/FormBean.class
>and then use this (with import line), or remove the package 
>com.domain.packagename; from the file, and it should work.
>
>hope it helps
>[EMAIL PROTECTED]
>
>
>
>
>
> > -Original Message-
> > From: Manoj Kithany [mailto:[EMAIL PROTECTED]]
> > Sent: 22. september 2002 20:47
> > To: [EMAIL PROTECTED]
> > Subject: Simple Bean not working but Servlet/JSP Working
> >
> >
> > Hi Experts,
> >
> > I tried a simple JSP/Servlet applications and it worked. I am
> > using Apache
> > 1.3.26 + (Jboss 3.0.3, Tomcat 4.0.4 bundle)
> >
> > Now, I am trying for simple Bean Application with
> > JSP/Servlets and Html
> > pages. My directory structure is :
> >
> > /kithany (root)
> > /kithany/register.html
> > /kithany/success.jsp
> > /kithany/retry.jsp
> > /kithany/process.jsp (bean)
> > /kithany/WEB-INF/web.xml
> > /kithany/WEB-INF/classes/FormBean.java
> > /kithany/WEB-INF/classes/FormBean.class
> > /kithany/META-INF/application.xml
> >
> > Then, I create the kithany.war file as shown below:
> >
> > #cd /kithany
> > #jar -cvfM kithany.war .
> >
> > I then put the "kithany.war" file in
> > /jboss/server/default/deploy directory
> > and  In your browser type:
> >
> > http://IP_ADDR_ESS:8080/kithany/register.html
> >
> > which works fine. In my "register.html" file my action is  > action="/kithany/process.jsp" method=post>
> > When I click the SUBMIT button in "register.html" form (which
> > then calls
> > bean and servelte), I get following Error - wonder why.
> >
> > --
> > --
> > Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error - that
> > prevented it from fulfilling this request
> >
> > org.apache.jasper.JasperException: Unable to compile class for JSP
> > An error occurred at line: 10 in the jsp file: /process.jsp
> >
> > Generated servlet error:
> > /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> > ess$jsp.java:72:
> > Class org.apache.jsp.FormBean not found.
> > FormBean formHandler = null;
> > ^
> >
> > An error occurred at line: 10 in the jsp file: /process.jsp
> >
> > Generated servlet error:
> > /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> > ess$jsp.java:75:
> > Class org.apache.jsp.FormBean not found.
> >   formHandler= (FormBean)
> > ^
> > An error occurred at line: 10 in the jsp file: /process.jsp
> >
> > Generated servlet error:
> > /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> > ess$jsp.java:80:
> > Class org.apache.jsp.FormBean not found.
> >   formHandler = (FormBean)
> > java.beans.Beans.instantiate(this.getClass().getClassLoader(),
> >  "FormBean");
> >
> > --
> > --
> >
> > My process.jsp file is:
> > --
> > --
> > <%@ page import="java.util.*" %>
> >
> > <%!
> > ResourceBundle bundle =null;
> > public void jspInit() {
> >   bundle = ResourceBundle.getBundle("forms");
> >   }
> > %>
> >
> >  > scope="request">  ** THIS
> > IS MY LINE 10
> > 
> > 
> >
> > <%
> >if (formHandler.validate()) {
> > %>
> >  > page="<%=bundle.getString(\"/kithany/process.success\")%>"/>
> > <%
> >}  else {
> > %>
> >  > page="<%=bundle.getString(\"/kithany/process.retry\")%>"/>
> > <%
> >}
> > %>
> > --
> > -

RE: Simple Bean not working but Servlet/JSP Working

2002-09-23 Thread Reynir Hübner

do you have the bean specified in a package ?
either put it into a package (and the correct "folder") as 
/classes/com/domain/packagename/FormBean.class
and then use this (with import line), or remove the package com.domain.packagename; 
from the file, and it should work.

hope it helps
[EMAIL PROTECTED]





> -Original Message-
> From: Manoj Kithany [mailto:[EMAIL PROTECTED]]
> Sent: 22. september 2002 20:47
> To: [EMAIL PROTECTED]
> Subject: Simple Bean not working but Servlet/JSP Working
> 
> 
> Hi Experts,
> 
> I tried a simple JSP/Servlet applications and it worked. I am 
> using Apache 
> 1.3.26 + (Jboss 3.0.3, Tomcat 4.0.4 bundle)
> 
> Now, I am trying for simple Bean Application with 
> JSP/Servlets and Html 
> pages. My directory structure is :
> 
> /kithany (root)
> /kithany/register.html
> /kithany/success.jsp
> /kithany/retry.jsp
> /kithany/process.jsp (bean)
> /kithany/WEB-INF/web.xml
> /kithany/WEB-INF/classes/FormBean.java
> /kithany/WEB-INF/classes/FormBean.class
> /kithany/META-INF/application.xml
> 
> Then, I create the kithany.war file as shown below:
> 
> #cd /kithany
> #jar -cvfM kithany.war .
> 
> I then put the "kithany.war" file in 
> /jboss/server/default/deploy directory 
> and  In your browser type:
> 
> http://IP_ADDR_ESS:8080/kithany/register.html
> 
> which works fine. In my "register.html" file my action is  action="/kithany/process.jsp" method=post>
> When I click the SUBMIT button in "register.html" form (which 
> then calls 
> bean and servelte), I get following Error - wonder why.
> 
> --
> --
> Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error - that 
> prevented it from fulfilling this request
> 
> org.apache.jasper.JasperException: Unable to compile class for JSP
> An error occurred at line: 10 in the jsp file: /process.jsp
> 
> Generated servlet error:
> /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> ess$jsp.java:72: 
> Class org.apache.jsp.FormBean not found.
> FormBean formHandler = null;
> ^
> 
> An error occurred at line: 10 in the jsp file: /process.jsp
> 
> Generated servlet error:
> /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> ess$jsp.java:75: 
> Class org.apache.jsp.FormBean not found.
>   formHandler= (FormBean)
> ^
> An error occurred at line: 10 in the jsp file: /process.jsp
> 
> Generated servlet error:
> /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> ess$jsp.java:80: 
> Class org.apache.jsp.FormBean not found.
>   formHandler = (FormBean) 
> java.beans.Beans.instantiate(this.getClass().getClassLoader(),
>  "FormBean");
> 
> --
> --
> 
> My process.jsp file is:
> --
> --
> <%@ page import="java.util.*" %>
> 
> <%!
> ResourceBundle bundle =null;
> public void jspInit() {
>   bundle = ResourceBundle.getBundle("forms");
>   }
> %>
> 
>  scope="request">  ** THIS 
> IS MY LINE 10
> 
> 
> 
> <%
>if (formHandler.validate()) {
> %>
>  page="<%=bundle.getString(\"/kithany/process.success\")%>"/>
> <%
>}  else {
> %>
>  page="<%=bundle.getString(\"/kithany/process.retry\")%>"/>
> <%
>}
> %>
> --
> --
> 
> My web.xml file is as shown below:
> --
> -
> 
> 
> FormBean
> FormBean
> 
> 
> HelloWorldExample
> HelloWorldExample
> 
> 
> HelloWorldExample
> /HelloWorldExample/*
> 
> 
> FormBean
> /FormBean/*
> 
> 
> --
> -
> 
> I would really appreciate if any of you Experts could put 
> some light onto 
> this error.
> 
> THANKS!
> 
> Manoj G. Kithany
> [EMAIL PROTECTED]
> 
> 
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 

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

tsdok

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




RE: Simple Bean not working but Servlet/JSP Working

2002-09-22 Thread Ron Day

You have to put your java classes in a package. If you do not, and put 
the class files in WEB-INF/classes then Tomcat cannot find them because 
this is not the default package location for Tomcat.

Bottom line: always use pacjages for your classes !

ron


-Original Message-
From: "Manoj Kithany" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Date: Sun, 22 Sep 2002 20:59:03 +
Subject: RE: Simple Bean not working but Servlet/JSP Working

> Hi Mr. Reynir,
> 
> THANKS for reply. I have already removed the package name from the 
> FormBean.java file.
> 
> Please help.
> 
> Thanks!
> 
> Manoj G. Kithany
> 
> 
> >From: Reynir Hübner <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Subject: RE: Simple Bean not working but Servlet/JSP Working
> >Date: Sun, 22 Sep 2002 20:47:21 -
> >
> >do you have the bean specified in a package ?
> >either put it into a package (and the correct "folder") as 
> >/classes/com/domain/packagename/FormBean.class
> >and then use this (with import line), or remove the package 
> >com.domain.packagename; from the file, and it should work.
> >
> >hope it helps
> >[EMAIL PROTECTED]
> >
> >
> >
> >
> >
> > > -Original Message-
> > > From: Manoj Kithany [mailto:[EMAIL PROTECTED]]
> > > Sent: 22. september 2002 20:47
> > > To: [EMAIL PROTECTED]
> > > Subject: Simple Bean not working but Servlet/JSP Working
> > >
> > >
> > > Hi Experts,
> > >
> > > I tried a simple JSP/Servlet applications and it worked. I am
> > > using Apache
> > > 1.3.26 + (Jboss 3.0.3, Tomcat 4.0.4 bundle)
> > >
> > > Now, I am trying for simple Bean Application with
> > > JSP/Servlets and Html
> > > pages. My directory structure is :
> > >
> > > /kithany (root)
> > > /kithany/register.html
> > > /kithany/success.jsp
> > > /kithany/retry.jsp
> > > /kithany/process.jsp (bean)
> > > /kithany/WEB-INF/web.xml
> > > /kithany/WEB-INF/classes/FormBean.java
> > > /kithany/WEB-INF/classes/FormBean.class
> > > /kithany/META-INF/application.xml
> > >
> > > Then, I create the kithany.war file as shown below:
> > >
> > > #cd /kithany
> > > #jar -cvfM kithany.war .
> > >
> > > I then put the "kithany.war" file in
> > > /jboss/server/default/deploy directory
> > > and  In your browser type:
> > >
> > > http://IP_ADDR_ESS:8080/kithany/register.html
> > >
> > > which works fine. In my "register.html" file my action is  > > action="/kithany/process.jsp" method=post>
> > > When I click the SUBMIT button in "register.html" form (which
> > > then calls
> > > bean and servelte), I get following Error - wonder why.
> > >
> > > --
> > > --
> > > Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error -
> that
> > > prevented it from fulfilling this request
> > >
> > > org.apache.jasper.JasperException: Unable to compile class for
> JSP
> > > An error occurred at line: 10 in the jsp file: /process.jsp
> > >
> > > Generated servlet error:
> > > /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> > > ess$jsp.java:72:
> > > Class org.apache.jsp.FormBean not found.
> > > FormBean formHandler = null;
> > > ^
> > >
> > > An error occurred at line: 10 in the jsp file: /process.jsp
> > >
> > > Generated servlet error:
> > > /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> > > ess$jsp.java:75:
> > > Class org.apache.jsp.FormBean not found.
> > >   formHandler= (FormBean)
> > > ^
> > > An error occurred at line: 10 in the jsp file: /process.jsp
> > >
> > > Generated servlet error:
> > > /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> > > ess$jsp.java:80:
> > > Class org.apache.jsp.FormBean not found.
> > >   formHandler = (FormBean)
> > > java.beans.Beans.instantiate(this.getClass().getClassLoader(),
> > >  &

RE: Simple Bean not working but Servlet/JSP Working

2002-09-22 Thread Manoj Kithany

Hi Mr. Reynir,

THANKS for reply. I have already removed the package name from the 
FormBean.java file.

Please help.

Thanks!

Manoj G. Kithany


>From: Reynir Hübner <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: RE: Simple Bean not working but Servlet/JSP Working
>Date: Sun, 22 Sep 2002 20:47:21 -
>
>do you have the bean specified in a package ?
>either put it into a package (and the correct "folder") as 
>/classes/com/domain/packagename/FormBean.class
>and then use this (with import line), or remove the package 
>com.domain.packagename; from the file, and it should work.
>
>hope it helps
>[EMAIL PROTECTED]
>
>
>
>
>
> > -Original Message-
> > From: Manoj Kithany [mailto:[EMAIL PROTECTED]]
> > Sent: 22. september 2002 20:47
> > To: [EMAIL PROTECTED]
> > Subject: Simple Bean not working but Servlet/JSP Working
> >
> >
> > Hi Experts,
> >
> > I tried a simple JSP/Servlet applications and it worked. I am
> > using Apache
> > 1.3.26 + (Jboss 3.0.3, Tomcat 4.0.4 bundle)
> >
> > Now, I am trying for simple Bean Application with
> > JSP/Servlets and Html
> > pages. My directory structure is :
> >
> > /kithany (root)
> > /kithany/register.html
> > /kithany/success.jsp
> > /kithany/retry.jsp
> > /kithany/process.jsp (bean)
> > /kithany/WEB-INF/web.xml
> > /kithany/WEB-INF/classes/FormBean.java
> > /kithany/WEB-INF/classes/FormBean.class
> > /kithany/META-INF/application.xml
> >
> > Then, I create the kithany.war file as shown below:
> >
> > #cd /kithany
> > #jar -cvfM kithany.war .
> >
> > I then put the "kithany.war" file in
> > /jboss/server/default/deploy directory
> > and  In your browser type:
> >
> > http://IP_ADDR_ESS:8080/kithany/register.html
> >
> > which works fine. In my "register.html" file my action is  > action="/kithany/process.jsp" method=post>
> > When I click the SUBMIT button in "register.html" form (which
> > then calls
> > bean and servelte), I get following Error - wonder why.
> >
> > --
> > --
> > Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error - that
> > prevented it from fulfilling this request
> >
> > org.apache.jasper.JasperException: Unable to compile class for JSP
> > An error occurred at line: 10 in the jsp file: /process.jsp
> >
> > Generated servlet error:
> > /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> > ess$jsp.java:72:
> > Class org.apache.jsp.FormBean not found.
> > FormBean formHandler = null;
> > ^
> >
> > An error occurred at line: 10 in the jsp file: /process.jsp
> >
> > Generated servlet error:
> > /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> > ess$jsp.java:75:
> > Class org.apache.jsp.FormBean not found.
> >   formHandler= (FormBean)
> > ^
> > An error occurred at line: 10 in the jsp file: /process.jsp
> >
> > Generated servlet error:
> > /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> > ess$jsp.java:80:
> > Class org.apache.jsp.FormBean not found.
> >   formHandler = (FormBean)
> > java.beans.Beans.instantiate(this.getClass().getClassLoader(),
> >  "FormBean");
> >
> > --
> > --
> >
> > My process.jsp file is:
> > --
> > --
> > <%@ page import="java.util.*" %>
> >
> > <%!
> > ResourceBundle bundle =null;
> > public void jspInit() {
> >   bundle = ResourceBundle.getBundle("forms");
> >   }
> > %>
> >
> >  > scope="request">  ** THIS
> > IS MY LINE 10
> > 
> > 
> >
> > <%
> >if (formHandler.validate()) {
> > %>
> >  > page="<%=bundle.getString(\"/kithany/process.success\")%>"/>
> > <%
> >}  else {
> > %>
> >  > page="<%=bundle.getString(\"/kithany/process.retry\")%>"/>
> > <%
> >}
> > %>
> > --
> > --
> >
> > My web.xml file is as shown below:
> > --
> > -
> > 
> > 
> > FormBean
> > FormBean
> > 
> > 
> > HelloWorldExample
> > HelloWorldExample
> > 
> > 
> > HelloWorldExample
> > /HelloWorldExample/*
> > 
> > 
> > FormBean
> > /FormBean/*
> > 
> > 
> > --
> > -
> >
> > I would really appreciate if any of you Experts could put
> > some light onto
> > this error.
> >
> > THANKS!
> >
> > Manoj G. Kithany
> > [EMAIL PROTECTED]


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




RE: Simple Bean not working but Servlet/JSP Working

2002-09-22 Thread Reynir Hübner

do you have the bean specified in a package ?
either put it into a package (and the correct "folder") as 
/classes/com/domain/packagename/FormBean.class
and then use this (with import line), or remove the package com.domain.packagename; 
from the file, and it should work.

hope it helps
[EMAIL PROTECTED]





> -Original Message-
> From: Manoj Kithany [mailto:[EMAIL PROTECTED]]
> Sent: 22. september 2002 20:47
> To: [EMAIL PROTECTED]
> Subject: Simple Bean not working but Servlet/JSP Working
> 
> 
> Hi Experts,
> 
> I tried a simple JSP/Servlet applications and it worked. I am 
> using Apache 
> 1.3.26 + (Jboss 3.0.3, Tomcat 4.0.4 bundle)
> 
> Now, I am trying for simple Bean Application with 
> JSP/Servlets and Html 
> pages. My directory structure is :
> 
> /kithany (root)
> /kithany/register.html
> /kithany/success.jsp
> /kithany/retry.jsp
> /kithany/process.jsp (bean)
> /kithany/WEB-INF/web.xml
> /kithany/WEB-INF/classes/FormBean.java
> /kithany/WEB-INF/classes/FormBean.class
> /kithany/META-INF/application.xml
> 
> Then, I create the kithany.war file as shown below:
> 
> #cd /kithany
> #jar -cvfM kithany.war .
> 
> I then put the "kithany.war" file in 
> /jboss/server/default/deploy directory 
> and  In your browser type:
> 
> http://IP_ADDR_ESS:8080/kithany/register.html
> 
> which works fine. In my "register.html" file my action is  action="/kithany/process.jsp" method=post>
> When I click the SUBMIT button in "register.html" form (which 
> then calls 
> bean and servelte), I get following Error - wonder why.
> 
> --
> --
> Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error - that 
> prevented it from fulfilling this request
> 
> org.apache.jasper.JasperException: Unable to compile class for JSP
> An error occurred at line: 10 in the jsp file: /process.jsp
> 
> Generated servlet error:
> /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> ess$jsp.java:72: 
> Class org.apache.jsp.FormBean not found.
> FormBean formHandler = null;
> ^
> 
> An error occurred at line: 10 in the jsp file: /process.jsp
> 
> Generated servlet error:
> /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> ess$jsp.java:75: 
> Class org.apache.jsp.FormBean not found.
>   formHandler= (FormBean)
> ^
> An error occurred at line: 10 in the jsp file: /process.jsp
> 
> Generated servlet error:
> /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> ess$jsp.java:80: 
> Class org.apache.jsp.FormBean not found.
>   formHandler = (FormBean) 
> java.beans.Beans.instantiate(this.getClass().getClassLoader(),
>  "FormBean");
> 
> --
> --
> 
> My process.jsp file is:
> --
> --
> <%@ page import="java.util.*" %>
> 
> <%!
> ResourceBundle bundle =null;
> public void jspInit() {
>   bundle = ResourceBundle.getBundle("forms");
>   }
> %>
> 
>  scope="request">  ** THIS 
> IS MY LINE 10
> 
> 
> 
> <%
>if (formHandler.validate()) {
> %>
>  page="<%=bundle.getString(\"/kithany/process.success\")%>"/>
> <%
>}  else {
> %>
>  page="<%=bundle.getString(\"/kithany/process.retry\")%>"/>
> <%
>}
> %>
> --
> --
> 
> My web.xml file is as shown below:
> --
> -
> 
> 
> FormBean
> FormBean
> 
> 
> HelloWorldExample
> HelloWorldExample
> 
> 
> HelloWorldExample
> /HelloWorldExample/*
> 
> 
> FormBean
> /FormBean/*
> 
> 
> --
> -
> 
> I would really appreciate if any of you Experts could put 
> some light onto 
> this error.
> 
> THANKS!
> 
> Manoj G. Kithany
> [EMAIL PROTECTED]
> 
> 
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 

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




Simple Bean not working but Servlet/JSP Working

2002-09-22 Thread Manoj Kithany

Hi Experts,

I tried a simple JSP/Servlet applications and it worked. I am using Apache 
1.3.26 + (Jboss 3.0.3, Tomcat 4.0.4 bundle)

Now, I am trying for simple Bean Application with JSP/Servlets and Html 
pages. My directory structure is :

/kithany (root)
/kithany/register.html
/kithany/success.jsp
/kithany/retry.jsp
/kithany/process.jsp (bean)
/kithany/WEB-INF/web.xml
/kithany/WEB-INF/classes/FormBean.java
/kithany/WEB-INF/classes/FormBean.class
/kithany/META-INF/application.xml

Then, I create the kithany.war file as shown below:

#cd /kithany
#jar -cvfM kithany.war .

I then put the "kithany.war" file in /jboss/server/default/deploy directory 
and  In your browser type:

http://IP_ADDR_ESS:8080/kithany/register.html

which works fine. In my "register.html" file my action is 
When I click the SUBMIT button in "register.html" form (which then calls 
bean and servelte), I get following Error - wonder why.


Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error - that 
prevented it from fulfilling this request

org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 10 in the jsp file: /process.jsp

Generated servlet error:
/jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/process$jsp.java:72: 
Class org.apache.jsp.FormBean not found.
FormBean formHandler = null;
^

An error occurred at line: 10 in the jsp file: /process.jsp

Generated servlet error:
/jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/process$jsp.java:75: 
Class org.apache.jsp.FormBean not found.
  formHandler= (FormBean)
^
An error occurred at line: 10 in the jsp file: /process.jsp

Generated servlet error:
/jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/process$jsp.java:80: 
Class org.apache.jsp.FormBean not found.
  formHandler = (FormBean) 
java.beans.Beans.instantiate(this.getClass().getClassLoader(), "FormBean");



My process.jsp file is:

<%@ page import="java.util.*" %>

<%!
ResourceBundle bundle =null;
public void jspInit() {
  bundle = ResourceBundle.getBundle("forms");
  }
%>

  ** THIS 
IS MY LINE 10



<%
   if (formHandler.validate()) {
%>
"/>
<%
   }  else {
%>
"/>
<%
   }
%>


My web.xml file is as shown below:
---


FormBean
FormBean


HelloWorldExample
HelloWorldExample


HelloWorldExample
/HelloWorldExample/*


FormBean
/FormBean/*


---

I would really appreciate if any of you Experts could put some light onto 
this error.

THANKS!

Manoj G. Kithany
[EMAIL PROTECTED]


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




Re: What about setting a script/servlet/jsp timeout?

2002-09-06 Thread Glenn Nielsen

Nicholas Orr wrote:
> Well is there a way to isolate it to a context??
> 
> Reason I'm asking is in IIS it lets you specify a script timeout value, I
> was just wondering if there is a similar feature in Tomcat.
> 

NO

> Nicholas Orr
> 
> -Original Message-
> From: Glenn Nielsen [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, 6 September 2002 6:51 AM
> To: Tomcat Users List
> Subject: Re: What about setting a script/servlet/jsp timeout?
> 
> 
> Concurrent requests to Tomcat each run in their own thread.
> 
> There is no easy way to "timeout" a thread running arbitrary application
> code.
> 
> So there is no way to timeout a request.
> 
> Regards,
> 
> Glenn
> 
> 


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




RE: What about setting a script/servlet/jsp timeout?

2002-09-05 Thread Nicholas Orr

Well is there a way to isolate it to a context??

Reason I'm asking is in IIS it lets you specify a script timeout value, I
was just wondering if there is a similar feature in Tomcat.

Nicholas Orr

-Original Message-
From: Glenn Nielsen [mailto:[EMAIL PROTECTED]] 
Sent: Friday, 6 September 2002 6:51 AM
To: Tomcat Users List
Subject: Re: What about setting a script/servlet/jsp timeout?


Concurrent requests to Tomcat each run in their own thread.

There is no easy way to "timeout" a thread running arbitrary application
code.

So there is no way to timeout a request.

Regards,

Glenn



**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**


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




Re: What about setting a script/servlet/jsp timeout?

2002-09-05 Thread Glenn Nielsen

Concurrent requests to Tomcat each run in their own thread.

There is no easy way to "timeout" a thread running arbitrary
application code.

So there is no way to timeout a request.

Regards,

Glenn

Nicholas Orr wrote:

> Hi,
> 
> I know you can set session timeouts, is there a way to set
> script/servlet/jsp timeouts, so it applies over the whole Tomcat Instance?
> At the moment I am doing a lot of loops and some of them, by accident, end
> up being never ending and I have to kill tomcat to stop them.
> 
> I have had a of look in the doc but haven't been able to find anything.
> 
> Nicholas Orr
> 
> 
> **
> The information contained in this e-mail is confidential and is
> intended only for the use of the addressee(s).
> If you receive this e-mail in error, any use, distribution or
> copying of this e-mail is not permitted. You are requested to
> forward unwanted e-mail and address any problems to the
> MIM Holdings Limited Support Centre.
> 
> For general enquires: ++61 7 3833 8000
> Support Centre e-mail:[EMAIL PROTECTED]
> Support Centre phone: Australia 1800500646
>   International ++61 7 38338042
> **
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


-- 
--
Glenn Nielsen [EMAIL PROTECTED] | /* Spelin donut madder|
MOREnet System Programming   |  * if iz ina coment.  |
Missouri Research and Education Network  |  */   |
--


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




What about setting a script/servlet/jsp timeout?

2002-09-05 Thread Nicholas Orr

Hi,

I know you can set session timeouts, is there a way to set
script/servlet/jsp timeouts, so it applies over the whole Tomcat Instance?
At the moment I am doing a lot of loops and some of them, by accident, end
up being never ending and I have to kill tomcat to stop them.

I have had a of look in the doc but haven't been able to find anything.

Nicholas Orr


**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**


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




RE: Servlet jsp is currently unavailable

2002-08-20 Thread James_Webb


I am using Tomcat 4.0.4.  I had it downloaded prior to installing Forte,
and it did add to Forte very easy.  I was having this problem prior to
installing Forte...thought I had a bug in my code...so I thought maybe I
should get some help debugging.  I have not tried to uninstall / reinstall
Tomcat yet.  Maybe that should be my next step.  It sounds like version
4.0.3 would be the suggested version at this point?

Thanks for the help...I welcome all other suggestions,
Jim Webb


Which tomcat are you using...the tomcat that came with Forte, or another
one?  If you are using the one that came with Forte, it's kind of old
(4.0.1).  4.0.4 isn't quite supported yet, as far as I know, but 4.0.3
seems
to be working just fine for me with Forte 4.

Adding a tomcat install to Forte is very easy.

Just a suggestion.

John Turner

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Subject: Servlet jsp is currently unavailable

Hello,
I am having some difficulty in debugging this problem.  I am using the
Forte for Java 4 (Community Edition) IDE, and I have finally begun figuring
out that the error that I have been receiving appears to be a configuration
problem and not necessarily a coding problem.

When I access my JSP I am receiving the following error in the browser:



type Status report


message Servlet jsp is currently unavailable


description The requested service (Servlet jsp is currently unavailable) is
not currently available.





Using some of the debugging tools within Forte I have now discovered that
Tomcat is throwing an error on startup.  The following  (sorry about the
length) is what I clipped out of the localhost_log file:



2002-08-20 10:58:56 StandardHost[localhost]: Installing web application at
context path /webdav from URL file:C:\Program Files\Apache Tomcat
4.0\webapps\webdav
2002-08-20 10:58:56 WebappLoader[/webdav]: Deploying class repositories to
work directory C:\Program Files\Apache Tomcat
4.0\work\Standalone\localhost\webdav
2002-08-20 10:58:56 StandardManager[/webdav]: Seeding random number
generator class java.security.SecureRandom
2002-08-20 10:58:56 StandardManager[/webdav]: Seeding of random number
generator has been completed
2002-08-20 10:58:56 ContextConfig[/webdav]: Added certificates -> request
attribute Valve
2002-08-20 10:58:56 StandardWrapper[/webdav:default]: Loading container
servlet default
2002-08-20 10:58:56 default: init
2002-08-20 10:58:56 StandardWrapper[/webdav:invoker]: Loading container
servlet invoker
2002-08-20 10:58:56 invoker: init
2002-08-20 10:58:56 StandardWrapper[/webdav:jsp]: Marking servlet jsp as
unavailable
2002-08-20 10:58:56 StandardContext[/webdav]: Servlet /webdav threw load()
exception
javax.servlet.ServletException: Error instantiating servlet class
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:89

5)
 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:

3279)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
 at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
 at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
 at
org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
 at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor

t.java:155)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39

)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl

.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.NoClassDefFoundError: org/apache/jasper/JasperError
 at java.lang.Class.getDeclaredConstructors0(Native Me

RE: Servlet jsp is currently unavailable

2002-08-20 Thread Andrew Conrad

It seems that you are erroring on your webdav directory included with
Tomcat.  Try removing that directory and see if your program loads a
little further.


- Andrew

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, August 20, 2002 12:17 PM
> To: [EMAIL PROTECTED]
> Subject: Servlet jsp is currently unavailable
> 
> 
> Hello,
> I am having some difficulty in debugging this problem.  I am 
> using the Forte for Java 4 (Community Edition) IDE, and I 
> have finally begun figuring out that the error that I have 
> been receiving appears to be a configuration problem and not 
> necessarily a coding problem.
> 
> When I access my JSP I am receiving the following error in 
> the browser:
> 
> 
> 
> type Status report
> 
> 
> message Servlet jsp is currently unavailable
> 
> 
> description The requested service (Servlet jsp is currently 
> unavailable) is not currently available.
> 
> 
> 
> 
> 
> Using some of the debugging tools within Forte I have now 
> discovered that Tomcat is throwing an error on startup.  The 
> following  (sorry about the
> length) is what I clipped out of the localhost_log file:
> 
> 
> 
> 2002-08-20 10:58:56 StandardHost[localhost]: Installing web 
> application at context path /webdav from URL file:C:\Program 
> Files\Apache Tomcat 4.0\webapps\webdav 2002-08-20 10:58:56 
> WebappLoader[/webdav]: Deploying class repositories to work 
> directory C:\Program Files\Apache Tomcat 
> 4.0\work\Standalone\localhost\webdav
> 2002-08-20 10:58:56 StandardManager[/webdav]: Seeding random 
> number generator class java.security.SecureRandom 2002-08-20 
> 10:58:56 StandardManager[/webdav]: Seeding of random number 
> generator has been completed 2002-08-20 10:58:56 
> ContextConfig[/webdav]: Added certificates -> request 
> attribute Valve 2002-08-20 10:58:56 
> StandardWrapper[/webdav:default]: Loading container servlet 
> default 2002-08-20 10:58:56 default: init 2002-08-20 10:58:56 
> StandardWrapper[/webdav:invoker]: Loading container servlet 
> invoker 2002-08-20 10:58:56 invoker: init 2002-08-20 10:58:56 
> StandardWrapper[/webdav:jsp]: Marking servlet jsp as 
> unavailable 2002-08-20 10:58:56 StandardContext[/webdav]: 
> Servlet /webdav threw load() exception
> javax.servlet.ServletException: Error instantiating servlet 
> class org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet
>  at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
> rapper.java:895)
>  at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.
> java:810)
>  at
> org.apache.catalina.core.StandardContext.loadOnStartup(Standar
> dContext.java:3279)
>  at
> org.apache.catalina.core.StandardContext.start(StandardContext
> .java:3421)
>  at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.
> java:785)
>  at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
>  at
> org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
>  at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
>  at 
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
>  at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConf
> ig.java:232)
>  at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
> ifecycleSupport.java:155)
>  at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
>  at 
> org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
>  at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
>  at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
>  at
> org.apache.catalina.core.StandardService.start(StandardService
> .java:388)
>  at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
>  at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
>  at 
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>  at 
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> - Root Cause -
> java.lang.NoClassDefFoundError: org/apache/jasper/JasperError
>  at java.lang.Class.getDeclaredConstructors0(

RE: Servlet jsp is currently unavailable

2002-08-20 Thread Turner, John


Which tomcat are you using...the tomcat that came with Forte, or another
one?  If you are using the one that came with Forte, it's kind of old
(4.0.1).  4.0.4 isn't quite supported yet, as far as I know, but 4.0.3 seems
to be working just fine for me with Forte 4.

Adding a tomcat install to Forte is very easy.

Just a suggestion.

John Turner

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 12:17 PM
To: [EMAIL PROTECTED]
Subject: Servlet jsp is currently unavailable


Hello,
I am having some difficulty in debugging this problem.  I am using the
Forte for Java 4 (Community Edition) IDE, and I have finally begun figuring
out that the error that I have been receiving appears to be a configuration
problem and not necessarily a coding problem.

When I access my JSP I am receiving the following error in the browser:



type Status report


message Servlet jsp is currently unavailable


description The requested service (Servlet jsp is currently unavailable) is
not currently available.





Using some of the debugging tools within Forte I have now discovered that
Tomcat is throwing an error on startup.  The following  (sorry about the
length) is what I clipped out of the localhost_log file:



2002-08-20 10:58:56 StandardHost[localhost]: Installing web application at
context path /webdav from URL file:C:\Program Files\Apache Tomcat
4.0\webapps\webdav
2002-08-20 10:58:56 WebappLoader[/webdav]: Deploying class repositories to
work directory C:\Program Files\Apache Tomcat
4.0\work\Standalone\localhost\webdav
2002-08-20 10:58:56 StandardManager[/webdav]: Seeding random number
generator class java.security.SecureRandom
2002-08-20 10:58:56 StandardManager[/webdav]: Seeding of random number
generator has been completed
2002-08-20 10:58:56 ContextConfig[/webdav]: Added certificates -> request
attribute Valve
2002-08-20 10:58:56 StandardWrapper[/webdav:default]: Loading container
servlet default
2002-08-20 10:58:56 default: init
2002-08-20 10:58:56 StandardWrapper[/webdav:invoker]: Loading container
servlet invoker
2002-08-20 10:58:56 invoker: init
2002-08-20 10:58:56 StandardWrapper[/webdav:jsp]: Marking servlet jsp as
unavailable
2002-08-20 10:58:56 StandardContext[/webdav]: Servlet /webdav threw load()
exception
javax.servlet.ServletException: Error instantiating servlet class
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:89
5)
 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3279)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
 at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
 at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
 at
org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
 at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.NoClassDefFoundError: org/apache/jasper/JasperError
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)
 at java.lang.Class.getConstructor0(Class.java:1748)
 at java.lang.Class.newInstance0(Class.java:266)
 at java.lang.Class.newInstance(Class.java:249)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:88
6)
 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java

Servlet jsp is currently unavailable

2002-08-20 Thread James_Webb

Hello,
I am having some difficulty in debugging this problem.  I am using the
Forte for Java 4 (Community Edition) IDE, and I have finally begun figuring
out that the error that I have been receiving appears to be a configuration
problem and not necessarily a coding problem.

When I access my JSP I am receiving the following error in the browser:



type Status report


message Servlet jsp is currently unavailable


description The requested service (Servlet jsp is currently unavailable) is
not currently available.





Using some of the debugging tools within Forte I have now discovered that
Tomcat is throwing an error on startup.  The following  (sorry about the
length) is what I clipped out of the localhost_log file:



2002-08-20 10:58:56 StandardHost[localhost]: Installing web application at
context path /webdav from URL file:C:\Program Files\Apache Tomcat
4.0\webapps\webdav
2002-08-20 10:58:56 WebappLoader[/webdav]: Deploying class repositories to
work directory C:\Program Files\Apache Tomcat
4.0\work\Standalone\localhost\webdav
2002-08-20 10:58:56 StandardManager[/webdav]: Seeding random number
generator class java.security.SecureRandom
2002-08-20 10:58:56 StandardManager[/webdav]: Seeding of random number
generator has been completed
2002-08-20 10:58:56 ContextConfig[/webdav]: Added certificates -> request
attribute Valve
2002-08-20 10:58:56 StandardWrapper[/webdav:default]: Loading container
servlet default
2002-08-20 10:58:56 default: init
2002-08-20 10:58:56 StandardWrapper[/webdav:invoker]: Loading container
servlet invoker
2002-08-20 10:58:56 invoker: init
2002-08-20 10:58:56 StandardWrapper[/webdav:jsp]: Marking servlet jsp as
unavailable
2002-08-20 10:58:56 StandardContext[/webdav]: Servlet /webdav threw load()
exception
javax.servlet.ServletException: Error instantiating servlet class
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:895)
 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3279)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
 at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
 at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
 at
org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
 at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.NoClassDefFoundError: org/apache/jasper/JasperError
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)
 at java.lang.Class.getConstructor0(Class.java:1748)
 at java.lang.Class.newInstance0(Class.java:266)
 at java.lang.Class.newInstance(Class.java:249)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:886)
 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3279)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
 at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
 at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
 at
org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
 at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)

TOMCAT 4.0.3 Servlet.service() for servlet jsp

2002-06-04 Thread Gustavo Mejia

Hello every one!

I have a problem, I was using Tomcat 4.0.1 with jdk1.3.2 and worked ok, but I
changed it by Tomcat 4.0.3 LE 14, and jdk 1.4 and I got an error like this..

I hope you could help me..  Thanks in advance 

2002-06-04 10:09:02 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp
threw exception
java.lang.IllegalArgumentException: Unterminated quote
 at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:689)
 at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:494)
 at java.text.SimpleDateFormat.(SimpleDateFormat.java:443)
 at java.text.SimpleDateFormat.(SimpleDateFormat.java:424)
 at
org.apache.jsp.ResultadoConsultaOcupacion$jsp._jspService(ResultadoConsultaOcupacion$jsp.java:333)

 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)

 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
 at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
 at java.lang.Thread.run(Thread.java:536)
--
Saludos

Gustavo Mejía Mora
INFOTEC
Centro de Tecnologias Avanzadas
Tel: +(55) 5 624 28 00
Ext: 253 / 220
-

"We should take care not to make the intellect our god; it has, of course,
powerful muscles, but no personality." - Albert Einstein


---
[This E-mail scanned for viruses]
[Deteccion de virus para una mayor seguridad en sus correos de Entrada y Salida]
---


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




RE: Servlet/Jsp

2002-05-22 Thread Greg Trasuk

Looks like you're asking the JSP to look for the bean in the session rather
than the request.  Try changing

to:


Cheers,

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca

> -Original Message-
> From: Djaballah BOUCHEGRA [mailto:[EMAIL PROTECTED]]
> Sent: May 21, 2002 05:24
> To: [EMAIL PROTECTED]
> Subject: Servlet/Jsp
>
>
> I have a servlet that sets an attribute in the request
> object containing a
> bean:
>
> ...
> MyBean bean = new MyBean();
> bean.setS("Hello");
> req.setAttribute( "mybean", bean );
> ...
>
> And that gets forwarded to my JSP page:
>
> ...
> RequestDispatcher dispatcher =
> getServletContext().getRequestDispatcher("MyPageJsp.jsp");
> dispatcher.forward(request, response);
>
> On the JSP page I unsuccessfully extract the value
> "hello" of the bean property S
>
> MyJspPage.jsp:
>  />
> 
> <%=bean.getS()%>
>
> the result is : null
>
> Do you have any idea about why my page Jsp couldn't
> access to the value of the bean property?
>
> I am using JDK 1.3 and Tomcat 3.2
>
> Thanks!
> Djaballah
>
>
> ___
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Mail : http://fr.mail.yahoo.com
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>


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




Servlet/Jsp

2002-05-21 Thread Djaballah BOUCHEGRA

I have a servlet that sets an attribute in the request
object containing a
bean:

...
MyBean bean = new MyBean();
bean.setS("Hello");
req.setAttribute( "mybean", bean );
...

And that gets forwarded to my JSP page:

...
RequestDispatcher dispatcher =
getServletContext().getRequestDispatcher("MyPageJsp.jsp");
dispatcher.forward(request, response);

On the JSP page I unsuccessfully extract the value
"hello" of the bean property S 

MyJspPage.jsp:


<%=bean.getS()%>

the result is : null

Do you have any idea about why my page Jsp couldn't
access to the value of the bean property?

I am using JDK 1.3 and Tomcat 3.2

Thanks!
Djaballah


___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Servlet/JSP design,standard and guidelines, please help

2002-02-25 Thread Keith Ng

Hi guys

I need to noe how u guys design yr servlet/jsp for lets say displaying a
search result
for e.g. the normal way would be embedding all the code within a jsp page

connectionBean is a javabean to connect to database..

<%
//inistialise connection bean ...
//pseudo code... declare resultset and stuffs...
//rs= connectionBean.executeQUery()
//while rs.next(){
%>
 <%=rs.getString("id");%>
 
 <%=rs.getString("name");%>
<%
}
//.
>%



Yes, i do use a servlet as a controller for all my jsp pages and most of my
logic up to now are in servlets
but how shd i keep my logic in such cases?(displaying rs result) or shd i
pass RS to my jsp from servlet as request.setAttribute("rs",rs) instead? or
even create a javabean to hold the logic? Im not too good at designing the
pattern so i reli need yr opinion on which is the better , practical design
method.



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception in Tomcat4.0.1 with JBuilder6

2002-01-31 Thread Justin Rowles

Just from reading the error logs you sent:

> root cause 
> 
> java.lang.NoClassDefFoundError: org/xml/sax/SAXException

...it sounds like your classpath for JBuilder doesn't include this class.

J.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception in Tomcat4.0.1 with JBuilder6

2002-01-30 Thread Thanh Duong

Hi,
I got an exception when calling JSP page using Tomcat4 in JBuilder6.
If I run tomcat4.0.1 in a Dos window, then I dont get any exceptions. It works fine.
Does anybody know the reason for this? 

Thanks in advance.

Thanh


Below a cut-out of the error message:
type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error) that 
prevented it from fulfilling this request.

exception 

javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:484)


root cause 

java.lang.NoClassDefFoundError: org/xml/sax/SAXException
at 
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCache.java:164)
at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:138)
at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:324)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at

RE: Servlet & JSP don't get served / tomcat 3.2.3 / apache 1.3.20 / s olaris 8

2002-01-21 Thread Larry Isaacs

If I recall correctly, a bug will cause these lines to
appear during normal operation.

Cheers,
Larry

> -Original Message-
> From: Vinay Singh [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 20, 2002 7:48 AM
> To: '[EMAIL PROTECTED]'
> Subject: Servlet & JSP don't get served / tomcat 3.2.3 / 
> apache 1.3.20 /
> s olaris 8
> 
> 
> Dear Open Source Campions !!
> 
> It took me days to figure out how to compile mod_jk.so (which 
> works) for
> Aapche 1.3.20 and Tomcat 3.2.3 on Solaris 8. 
> 
> >>>Now I am trying to use ajp connector to run a servlet, 
> which comes in
> "example" application through ajp12 connector configured on 
> default 8007
> port. 
> When I type he URL 
> http://cisco-dev2/examples/servlet/SessionServlet , I get
> Internal server error (500). I can brows the htmls lying 
> under "example"
> context.
> 
> This is how "mod_jk.log" looks -
> 
> 
> [jk_uri_worker_map.c (185)]: In 
> jk_uri_worker_map_t::uri_worker_map_free,
> NULL p
> arameters
> [jk_uri_worker_map.c (335)]: 
> jk_uri_worker_map_t::uri_worker_map_close, NULL
> par
> ameter
> [jk_uri_worker_map.c (185)]: In 
> jk_uri_worker_map_t::uri_worker_map_free,
> NULL p
> arameters
> [jk_uri_worker_map.c (185)]: In 
> jk_uri_worker_map_t::uri_worker_map_free,
> NULL p
> arameters
> ~  
> __
> 
> 
> Can any body give me a clue, as to what is the problem.
> 
> Thanks in advance !!
> > Vinay Singh
> > Sapient New Delhi
> > Cell   : +91-9810530548
> >   Home: +91-11-6287733
> > 
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Servlet & JSP don't get served / tomcat 3.2.3 / apache 1.3.20 / solaris 8

2002-01-20 Thread Vinay Singh

Dear Open Source Campions !!

It took me days to figure out how to compile mod_jk.so (which works) for
Aapche 1.3.20 and Tomcat 3.2.3 on Solaris 8. 

>>>Now I am trying to use ajp connector to run a servlet, which comes in
"example" application through ajp12 connector configured on default 8007
port. 
When I type he URL http://cisco-dev2/examples/servlet/SessionServlet , I get
Internal server error (500). I can brows the htmls lying under "example"
context.

This is how "mod_jk.log" looks -


[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL p
arameters
[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL
par
ameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL p
arameters
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL p
arameters
~  __


Can any body give me a clue, as to what is the problem.

Thanks in advance !!
> Vinay Singh
> Sapient New Delhi
> Cell   : +91-9810530548
>   Home: +91-11-6287733
> 



Servlet & JSP don't get served / tomcat 3.2.3 / apache 1.3.20 / solaris 8

2002-01-20 Thread Vinay Singh

Did anybody think about this one...

>  -Original Message-
> From: Vinay Singh  
> Sent: Sunday, January 20, 2002 6:18 PM
> To:   '[EMAIL PROTECTED]'
> Subject:  Servlet & JSP don't get served / tomcat 3.2.3 / apache
> 1.3.20 / solaris 8
> 
> Dear Open Source Campions !!
> 
> It took me days to figure out how to compile mod_jk.so (which works) for
> Aapche 1.3.20 and Tomcat 3.2.3 on Solaris 8. 
> 
> >>>Now I am trying to use ajp connector to run a servlet, which comes in
> "example" application through ajp12 connector configured on default 8007
> port. 
> When I type he URL http://cisco-dev2/examples/servlet/SessionServlet , I
> get Internal server error (500). I can brows the htmls lying under
> "example" context.
> 
> This is how "mod_jk.log" looks -
> 
> 
> [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
> NULL p
> arameters
> [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
> NULL par
> ameter
> [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
> NULL p
> arameters
> [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
> NULL p
> arameters
> ~  __
> 
> 
> Can any body give me a clue, as to what is the problem.
> 
> Thanks in advance !!
> Vinay Singh
> Sapient New Delhi
> Cell   : +91-9810530548
>   Home: +91-11-6287733
> 



Re: servlet/jsp executing twice at the same moment

2002-01-04 Thread kalven . beaver


I don't know if this is any type of solution, but I noticed in the mailing
archives that there might be a problem with mod_jk and ajp13?  I'm going to
try removing the ajp13 'worker', just use the ajp12 'worker' tonight at
home and see if it helps.

Another thing that is really weird about my jsp problem is that if I don't
use the jsp:forward on this particular page, it only executes once.  When I
add the jsp:forward back in, it executes twice.  Go figure.

Keep me posted if you figure anything out and I'll do the same.

kb



   
 
Robin Lee  
 
 
@uls.com>cc:   
 
             Subject: Re: servlet/jsp executing twice 
at the same moment
01/04/02   
 
09:15 AM   
 
Please 
 
respond to 
 
Tomcat Users   
 
List   
 
   
 
   
 



So, by the lack of response, I can assume no one has figured out how to
solve this problem?I know there were a few others who had dealt with
this problem, but no solution...  I hope someone can here can try and help
out with this.

Thanks to anyone who responds...
- Original Message -
From: "Robin Lee" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, January 03, 2002 9:37 AM
Subject: Re: servlet/jsp executing twice at the same moment


> Is it just JSP's or Servlets too?  My problem is just servlets (although
i
> have yet to see any jsp's run twice)...
>
> I'm still looking on solutions myself, but none so far.  Anyone?
>
> I have noticed though, if i tried it in Netscape (6+), it is ok.  Also
tried
> it on the server computer (localhost), and it doesn't do it there either.
I
> figured it might be IE5.5, and it may have to do with the computer speed?
> (On the server, i used IE5.5 as well)...
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, January 03, 2002 9:18 AM
> Subject: RE: servlet/jsp executing twice at the same moment
>
>
> >
> > It is not that my code continues to run, but that the ENTIRE jsp runs
> > twice.  Spent 3 hours last night on this and still could not find a
> > resolve.  I'm not sure if it is a bug or some configuration problem.
Some
> > jsp's run once and some run twice.  Fortunately for debugging purposes,
> the
> > same ones run once and the same ones run twice.  If anyone has any
> > suggestions or experienced the same behavior, please advise on
solutions.
> >
> > I've not noticed that you need to place an explicit return after the
> > forward, but I'll make a mental note.
> >
> > Thanks,
> > kb
> >
> >
> >
> > "Cox,
> > Charlie" To: Tomcat Users List
> <[EMAIL PROTECTED]>
> >  > com> Subject: RE: Servlet
running
> twice at the same moment.
> >
>
> > 01/03/02
> > 04:54 AM
> > Please
> > respond to
> > Tomcat Users
> > List
> >
> >
> >
> >
> >
> > did you put a
> >  return;
> > after your forward? If not the jsp will continue running...
> >
> > Charlie
> >
> > > -Original Messa

Re: servlet/jsp executing twice at the same moment

2002-01-04 Thread David Cassidy

Robin,

Have you put explorer through a proxy so that you can see if it is doing
2 requests ?

Could (unix / mozilla users here so I dunno) explorer be doing a
HEAD request and then immediately a GET request ?

Could you get the JSP page to dump out the request method ?

D

Robin Lee wrote:

> So, by the lack of response, I can assume no one has figured out how to
> solve this problem?I know there were a few others who had dealt with
> this problem, but no solution...  I hope someone can here can try and help
> out with this.
>
> Thanks to anyone who responds...
> - Original Message -
> From: "Robin Lee" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, January 03, 2002 9:37 AM
> Subject: Re: servlet/jsp executing twice at the same moment
>
> > Is it just JSP's or Servlets too?  My problem is just servlets (although i
> > have yet to see any jsp's run twice)...
> >
> > I'm still looking on solutions myself, but none so far.  Anyone?
> >
> > I have noticed though, if i tried it in Netscape (6+), it is ok.  Also
> tried
> > it on the server computer (localhost), and it doesn't do it there either.
> I
> > figured it might be IE5.5, and it may have to do with the computer speed?
> > (On the server, i used IE5.5 as well)...
> > - Original Message -----
> > From: <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Thursday, January 03, 2002 9:18 AM
> > Subject: RE: servlet/jsp executing twice at the same moment
> >
> >
> > >
> > > It is not that my code continues to run, but that the ENTIRE jsp runs
> > > twice.  Spent 3 hours last night on this and still could not find a
> > > resolve.  I'm not sure if it is a bug or some configuration problem.
> Some
> > > jsp's run once and some run twice.  Fortunately for debugging purposes,
> > the
> > > same ones run once and the same ones run twice.  If anyone has any
> > > suggestions or experienced the same behavior, please advise on
> solutions.
> > >
> > > I've not noticed that you need to place an explicit return after the
> > > forward, but I'll make a mental note.
> > >
> > > Thanks,
> > > kb
> > >
> > >
> > >
> > > "Cox,
> > > Charlie" To: Tomcat Users List
> > <[EMAIL PROTECTED]>
> > >  > > com> Subject: RE: Servlet
> running
> > twice at the same moment.
> > >
> >
> > > 01/03/02
> > > 04:54 AM
> > > Please
> > > respond to
> > > Tomcat Users
> > > List
> > >
> > >
> > >
> > >
> > >
> > > did you put a
> > >  return;
> > > after your forward? If not the jsp will continue running...
> > >
> > > Charlie
> > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, January 02, 2002 2:30 PM
> > > > To: Tomcat Users List
> > > > Subject: Re: Servlet running twice at the same moment.
> > > >
> > > >
> > > >
> > > > Glad someone brought this up.  Seems as though some of my jsp
> > > > pages are
> > > > being executed twice.  It doesn't seem to send information to
> > > > the browser
> > > > twice, but it is causing havoc on my logic.  I can see
> > > > System.outs being
> > > > executed twice and any logic / methods are being executed
> > > > twice.  In my
> > > > case it seems as though the jsp:forward is in some way causing the
> > > > behavior.
> > > >
> > > > If anyone else has run across this situation, I would
> > > > definitely like to
> > > > know what is going on and how to resolve this issue.
> > > >
> > > > I'm also using IE 5.x, tomcat 3.2.x and linux.  If code is
> > > > needed, I'll
> > > > have to send tomorrow.
> > > >
> > > > Thanks in advance
> > > >
> > > > kb
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > 

Re: servlet/jsp executing twice at the same moment

2002-01-04 Thread Robin Lee

So, by the lack of response, I can assume no one has figured out how to
solve this problem?I know there were a few others who had dealt with
this problem, but no solution...  I hope someone can here can try and help
out with this.

Thanks to anyone who responds...
- Original Message -
From: "Robin Lee" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, January 03, 2002 9:37 AM
Subject: Re: servlet/jsp executing twice at the same moment


> Is it just JSP's or Servlets too?  My problem is just servlets (although i
> have yet to see any jsp's run twice)...
>
> I'm still looking on solutions myself, but none so far.  Anyone?
>
> I have noticed though, if i tried it in Netscape (6+), it is ok.  Also
tried
> it on the server computer (localhost), and it doesn't do it there either.
I
> figured it might be IE5.5, and it may have to do with the computer speed?
> (On the server, i used IE5.5 as well)...
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, January 03, 2002 9:18 AM
> Subject: RE: servlet/jsp executing twice at the same moment
>
>
> >
> > It is not that my code continues to run, but that the ENTIRE jsp runs
> > twice.  Spent 3 hours last night on this and still could not find a
> > resolve.  I'm not sure if it is a bug or some configuration problem.
Some
> > jsp's run once and some run twice.  Fortunately for debugging purposes,
> the
> > same ones run once and the same ones run twice.  If anyone has any
> > suggestions or experienced the same behavior, please advise on
solutions.
> >
> > I've not noticed that you need to place an explicit return after the
> > forward, but I'll make a mental note.
> >
> > Thanks,
> > kb
> >
> >
> >
> > "Cox,
> > Charlie" To: Tomcat Users List
> <[EMAIL PROTECTED]>
> >  > com> Subject: RE: Servlet
running
> twice at the same moment.
> >
>
> > 01/03/02
> > 04:54 AM
> > Please
> > respond to
> > Tomcat Users
> > List
> >
> >
> >
> >
> >
> > did you put a
> >  return;
> > after your forward? If not the jsp will continue running...
> >
> > Charlie
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, January 02, 2002 2:30 PM
> > > To: Tomcat Users List
> > > Subject: Re: Servlet running twice at the same moment.
> > >
> > >
> > >
> > > Glad someone brought this up.  Seems as though some of my jsp
> > > pages are
> > > being executed twice.  It doesn't seem to send information to
> > > the browser
> > > twice, but it is causing havoc on my logic.  I can see
> > > System.outs being
> > > executed twice and any logic / methods are being executed
> > > twice.  In my
> > > case it seems as though the jsp:forward is in some way causing the
> > > behavior.
> > >
> > > If anyone else has run across this situation, I would
> > > definitely like to
> > > know what is going on and how to resolve this issue.
> > >
> > > I'm also using IE 5.x, tomcat 3.2.x and linux.  If code is
> > > needed, I'll
> > > have to send tomorrow.
> > >
> > > Thanks in advance
> > >
> > > kb
> > >
> > >
> > >
> > >
> > >
> > > Robin Lee
> > >
> > >  > > List <[EMAIL PROTECTED]>
> > > @uls.com>cc:
> > >
> > >  Subject: Re:
> > > Servlet running twice at the same moment.
> > > 01/02/02
> > >
> > > 11:12 AM
> > >
> > > Please
> > >
> > > respond to
> > >
> > > Tomcat Users
> > >
> > > List
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Well, that depends on whic

Re: servlet/jsp executing twice at the same moment

2002-01-03 Thread Robin Lee

Is it just JSP's or Servlets too?  My problem is just servlets (although i
have yet to see any jsp's run twice)...

I'm still looking on solutions myself, but none so far.  Anyone?

I have noticed though, if i tried it in Netscape (6+), it is ok.  Also tried
it on the server computer (localhost), and it doesn't do it there either.  I
figured it might be IE5.5, and it may have to do with the computer speed?
(On the server, i used IE5.5 as well)...
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, January 03, 2002 9:18 AM
Subject: RE: servlet/jsp executing twice at the same moment


>
> It is not that my code continues to run, but that the ENTIRE jsp runs
> twice.  Spent 3 hours last night on this and still could not find a
> resolve.  I'm not sure if it is a bug or some configuration problem.  Some
> jsp's run once and some run twice.  Fortunately for debugging purposes,
the
> same ones run once and the same ones run twice.  If anyone has any
> suggestions or experienced the same behavior, please advise on solutions.
>
> I've not noticed that you need to place an explicit return after the
> forward, but I'll make a mental note.
>
> Thanks,
> kb
>
>
>
> "Cox,
> Charlie" To: Tomcat Users List
<[EMAIL PROTECTED]>
>  com> Subject: RE: Servlet running
twice at the same moment.
>

> 01/03/02
> 04:54 AM
> Please
> respond to
> Tomcat Users
> List
>
>
>
>
>
> did you put a
>  return;
> after your forward? If not the jsp will continue running...
>
> Charlie
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 02, 2002 2:30 PM
> > To: Tomcat Users List
> > Subject: Re: Servlet running twice at the same moment.
> >
> >
> >
> > Glad someone brought this up.  Seems as though some of my jsp
> > pages are
> > being executed twice.  It doesn't seem to send information to
> > the browser
> > twice, but it is causing havoc on my logic.  I can see
> > System.outs being
> > executed twice and any logic / methods are being executed
> > twice.  In my
> > case it seems as though the jsp:forward is in some way causing the
> > behavior.
> >
> > If anyone else has run across this situation, I would
> > definitely like to
> > know what is going on and how to resolve this issue.
> >
> > I'm also using IE 5.x, tomcat 3.2.x and linux.  If code is
> > needed, I'll
> > have to send tomorrow.
> >
> > Thanks in advance
> >
> > kb
> >
> >
> >
> >
> >
> > Robin Lee
> >
> >  > List <[EMAIL PROTECTED]>
> > @uls.com>cc:
> >
> >  Subject: Re:
> > Servlet running twice at the same moment.
> > 01/02/02
> >
> > 11:12 AM
> >
> > Please
> >
> > respond to
> >
> > Tomcat Users
> >
> > List
> >
> >
> >
> >
> >
> >
> >
> >
> > Well, that depends on which code you would like to see?  The
> > login code is
> > pretty basic...
> >
> > Here's is my validateLoginServlet...
> > I am using a type4 jdbc driver (thinweb.tds driver).
> >
> > import Common.dbfiles.*;
> >
> > import java.io.*;
> > import java.util.*;
> > import java.sql.*;
> > import javax.servlet.*;
> > import javax.servlet.http.*;
> >
> > public class ValidateLoginServlet extends HttpServlet
> > {
> >  public void service(HttpServletRequest req, HttpServletResponse res)
> > throws IOException
> >  {
> >   String errorCode = "";
> >
> >   try
> >   {
> >// get a connection
> >Class c = Class.forName("com.thinweb.tds.Driver");
> >Connection dbConn =
> > DriverManager.getConnection("jdbc:twtds:sqlserver://[removed];user
> > =[removed]
> > ;password=[removed];TDS=7.0");
> >// instantiate data objects
> >DBCustomersSet customersSet = new
> > DBCustomers

RE: servlet/jsp executing twice at the same moment

2002-01-03 Thread kalven . beaver


It is not that my code continues to run, but that the ENTIRE jsp runs
twice.  Spent 3 hours last night on this and still could not find a
resolve.  I'm not sure if it is a bug or some configuration problem.  Some
jsp's run once and some run twice.  Fortunately for debugging purposes, the
same ones run once and the same ones run twice.  If anyone has any
suggestions or experienced the same behavior, please advise on solutions.

I've not noticed that you need to place an explicit return after the
forward, but I'll make a mental note.

Thanks,
kb


   
 
"Cox,  
 
Charlie" To: Tomcat Users List 
<[EMAIL PROTECTED]> 
 Subject: RE: Servlet running twice at the 
same moment. 
   
 
01/03/02   
 
04:54 AM   
 
Please 
 
respond to 
 
Tomcat Users   
 
List   
 
   
 
   
 



did you put a
 return;
after your forward? If not the jsp will continue running...

Charlie

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 02, 2002 2:30 PM
> To: Tomcat Users List
> Subject: Re: Servlet running twice at the same moment.
>
>
>
> Glad someone brought this up.  Seems as though some of my jsp
> pages are
> being executed twice.  It doesn't seem to send information to
> the browser
> twice, but it is causing havoc on my logic.  I can see
> System.outs being
> executed twice and any logic / methods are being executed
> twice.  In my
> case it seems as though the jsp:forward is in some way causing the
> behavior.
>
> If anyone else has run across this situation, I would
> definitely like to
> know what is going on and how to resolve this issue.
>
> I'm also using IE 5.x, tomcat 3.2.x and linux.  If code is
> needed, I'll
> have to send tomorrow.
>
> Thanks in advance
>
> kb
>
>
>
>
>
> Robin Lee
>
>  List <[EMAIL PROTECTED]>
> @uls.com>cc:
>
>  Subject: Re:
> Servlet running twice at the same moment.
> 01/02/02
>
> 11:12 AM
>
> Please
>
> respond to
>
> Tomcat Users
>
> List
>
>
>
>
>
>
>
>
> Well, that depends on which code you would like to see?  The
> login code is
> pretty basic...
>
> Here's is my validateLoginServlet...
> I am using a type4 jdbc driver (thinweb.tds driver).
>
> import Common.dbfiles.*;
>
> import java.io.*;
> import java.util.*;
> import java.sql.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
>
> public class ValidateLoginServlet extends HttpServlet
> {
>  public void service(HttpServletRequest req, HttpServletResponse res)
> throws IOException
>  {
>   String errorCode = "";
>
>   try
>   {
>// get a connection
>Class c = Class.forName("com.thinweb.tds.Driver");
>Connection dbConn =
> DriverManager.getConnection("jdbc:twtds:sqlserver://[removed];user
> =[removed]
> ;password=[removed];TDS=7.0");
>// instantiate data objects
>DBCustomersSet customersSet = new
> DBCustomersSet(dbConn,"Customers");
>//DBCustomers customers = new DBCustomers();
>
>// Now set the where clause to get the member (using setFilter)
>customersSet.setFilter("LoginID='" +
> req.getParameter("LoginID") + "'");
>
>Vector customersQuery = customersSet.query();
>//Create a session.
>HttpSession session = req.getSession(true);
>//Now let's see if any records were returned.
>if (customersQuery != null && !customersQuery.isEmpty(

Re: What's the word on a Servlet/JSP including itself in recursion?

2001-12-18 Thread Tom Drake

This will never work!

The include statement will get a new connection to the database and execute
an entirely new
query, while the first query / result set is active. You will quickly run
out of connections.

Secondly, at the risk of parroting earlier responses, I would heartily
suggest that you move this
logic to a bean and/or a custom taglib. Your life will quickly become a
living hell if you try to
place too much java code in your JSP's. JSP's are great at formatting
output, they are a
terrible place for anything but the most straightforward Java code.

I think that you'd be better off thinking about how to build up the nested
data structure
you need, then feed this nested data structure to your JSP, which simply
needs to format
it as HTML.

Tom Drake

- Original Message -
From: "Nikola Milutinovic" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, December 17, 2001 11:08 PM
Subject: Re: What's the word on a Servlet/JSP including itself in recursion?


| > How are you passing the resultSet back and forth between the JSP's?
|
| I'm not. This is the scatch of the code:
|
| JSP: OUDisplay.jsp
| 
| DriverManager.getConnection()
| Connection.createStatement()
| Statement.executeQuery()
| while( ResultSet.next() ) {
|   ...
|   if( recurse ) {
| " />
|   }
|   ...
| }
| ResultSet.close()
| Statement.close()
| Connection.close()
| ---
|
| Now, I have tried putting a "breakpoint" in my JSP (throw
ServletException). Wherever I put it, the JSP page runs into it, but the
NullPointerException doesn't occur. I've tried putting it on the last line
of JSP, still no NullPointer.
|
| This lead me to believe that the error is occuring AFTER my JSP emerges
from a recursion. So, it goes into the loop, calls itself once (there was
only one level of sub-tree in that test example), the called JSP finishes
it's job, resturns to "upper itslef" and then inside that "while(
ResultSet.next() )" I get the error. Like the JSP page that was called in
the recursion closed not just it's own JDBC objects, but also it's parents.
|
| Any comment?
|
| Nix.
|


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: What's the word on a Servlet/JSP including itself in recursion?

2001-12-17 Thread Nikola Milutinovic

> How are you passing the resultSet back and forth between the JSP's?

I'm not. This is the scatch of the code:

JSP: OUDisplay.jsp

DriverManager.getConnection()
Connection.createStatement()
Statement.executeQuery()
while( ResultSet.next() ) {
  ...
  if( recurse ) {
" />
  }
  ...
}
ResultSet.close()
Statement.close()
Connection.close()
---

Now, I have tried putting a "breakpoint" in my JSP (throw ServletException). Wherever 
I put it, the JSP page runs into it, but the NullPointerException doesn't occur. I've 
tried putting it on the last line of JSP, still no NullPointer.

This lead me to believe that the error is occuring AFTER my JSP emerges from a 
recursion. So, it goes into the loop, calls itself once (there was only one level of 
sub-tree in that test example), the called JSP finishes it's job, resturns to "upper 
itslef" and then inside that "while( ResultSet.next() )" I get the error. Like the JSP 
page that was called in the recursion closed not just it's own JDBC objects, but also 
it's parents.

Any comment?

Nix.



RE: What's the word on a Servlet/JSP including itself in recursion?

2001-12-17 Thread Joe Cheng

How are you passing the resultSet back and forth between the JSP's?

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




Re: What's the word on a Servlet/JSP including itself in recursion?

2001-12-17 Thread Mahesh Vaidya

IMHO Donot do that way.
Keep a single Jsp/Servlet. Rather encapsulate "tree" in
any suitable Java Collection. (viz. java.util.Tree)
Use iterator interface and accomplish whatever you want to
-Mahesh.
---
Nikola Milutinovic wrote:

>Hi all.
>
>Never got a response on this one.
>
>Suppose I have a JSP page or a Servlet that includes ITSELF in recursion. I'm doing 
>this because I have a n-tree structure and I wish to display a given node with all 
>it's subnodes. I need recusrion. Period.
>
>So I thought that something like this would do the trick:
>
><%
>if( !partial ) {
>%>
>
>...
><%
>}
>
>while( resultSet.next() ) {
>  int id=resultSet.getInt( "id" );
>%>
>" />
>...
><%
>} //while
>if( !partial ) {
>%>
>...
>
><%
>}
>%>
>
>PROBLEM
>
>
>Problem is I'm getting constant unexplicable errors. For a while, the JSP would 
>descend one level into the sub-tree and then just end all output on response. I mean, 
>the HTML code was left unfinished, not even the HTML table was completed. Like the 
>response was cut in the middle.
>
>Now I'm getting JDBC error "NullPointerException" in "next()". The funny part is, 
>I've tried placing a "breakpoint" in the form of:
>
>if( true ) throw new ServletException( "CHECKPOINT" );
>
>in all lines in the JSP page. Wherever I place it, the JSP page runs into it, but not 
>into "NullPointerException". If I comment it out, I get the NullPointer. So, it looks 
>to me like things get screwed up AFTER JSP returns from a recursion. The JSP page 
>regularely creates a statement, gets a result set and closes these, respectively 
>before exiting.
>
>QUESTION
>-
>
>Any idea? I thought that when a servlet (or a JSP page) calls another one or itslef, 
>Servlet engine should create a new instance of the Servlet to handle the request. My 
>problem might indicate otherwise, which is strange...
>
>Nix.
>



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




What's the word on a Servlet/JSP including itself in recursion?

2001-12-17 Thread Nikola Milutinovic

Hi all.

Never got a response on this one.

Suppose I have a JSP page or a Servlet that includes ITSELF in recursion. I'm doing 
this because I have a n-tree structure and I wish to display a given node with all 
it's subnodes. I need recusrion. Period.

So I thought that something like this would do the trick:

<%
if( !partial ) {
%>

...
<%
}

while( resultSet.next() ) {
  int id=resultSet.getInt( "id" );
%>
" />
...
<%
} //while
if( !partial ) {
%>
...

<%
}
%>

PROBLEM


Problem is I'm getting constant unexplicable errors. For a while, the JSP would 
descend one level into the sub-tree and then just end all output on response. I mean, 
the HTML code was left unfinished, not even the HTML table was completed. Like the 
response was cut in the middle.

Now I'm getting JDBC error "NullPointerException" in "next()". The funny part is, I've 
tried placing a "breakpoint" in the form of:

if( true ) throw new ServletException( "CHECKPOINT" );

in all lines in the JSP page. Wherever I place it, the JSP page runs into it, but not 
into "NullPointerException". If I comment it out, I get the NullPointer. So, it looks 
to me like things get screwed up AFTER JSP returns from a recursion. The JSP page 
regularely creates a statement, gets a result set and closes these, respectively 
before exiting.

QUESTION
-

Any idea? I thought that when a servlet (or a JSP page) calls another one or itslef, 
Servlet engine should create a new instance of the Servlet to handle the request. My 
problem might indicate otherwise, which is strange...

Nix.



smime.p7s
Description: application/pkcs7-signature


Re: Cannot connect Servlet/JSP running in Tomcat to MySQL Database

2001-12-06 Thread David Smith

Is your Tomcat using the security manager??  That would explain the error 
message.  If so, you'll have to allow access to the datasource in 
catalina.policy.  Otherwise it should work.

--David

On Wednesday 05 December 2001 05:19 pm, you wrote:
> Hi, I am unable to connect a servlet or jsp running in Tomcat to a MySQL
> database.  Here are the particulars:
>
> Tomcat Version: 4.0.1
> MySQL Version: 3.23.45
> MySQL JDBC Driver Version: mm.mysql-2.0.4-bin.jar
> Linux Version: Red Hat 7.1 running Kernel Version 2.4.2-2smp
>
> Here is some sample code:
> ***
>* ***
>
> <%@ page import="java.sql.*" %>
>
> <%! Connection c; %>
>
> <% try {
>   Class.forName("org.gjt.mm.mysql.Driver").newInstance();
> }
> catch (Exception e) {}
>
> try {
>   c =
> DriverManager.getConnection("jdbc:mysql://localhost/PAARsnp?user=root&passw
>o rd=");
> %> Could do it! <%
> }
> catch (Exception e) {
> %>
> Can't do it!
> <%= e.getMessage() %>
> <% } %>
>
> ***
>* ***
>
>
> And the resultant output:
>
>
> Can't do it!
> Server configuration denies access to data source
>
> ***
>* ***
>
> I know for a fact that the connection string is correct.  However, I do not
> know where to go from here.  I also know that I can successfully connect
> to this database from a PHP script, just not from Java code running
> within Tomcat.
>
> Thanks in advance for any help
>
> Matt Stine
> Software Engineer
> Hartwell Center for Bioinformatics and Biotechnology
> St. Jude Children's Research Hospital
> 332 N. Lauderdale St.
> Memphis, TN 38105-2794
> Phone: 901.495.4602
> Fax: 901.495.2945
> [EMAIL PROTECTED]
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


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




Re: Cannot connect Servlet/JSP running in Tomcat to MySQL Database

2001-12-05 Thread August Detlefsen

Try using the 2 argument DriverManager.getConnection method: 

DriverManager.getConnection(String connectString, Properties
connectProperties);

Where: 
connectString doesn't include the "?user=root&password="

connectProperties is a java.util.Properties with elements "user" and
"password"

Also, could there be a MySQL filter that denies access to the DB from
anything but PHP?

-August

--- "Stine, Matt" <[EMAIL PROTECTED]> wrote:
> Hi, I am unable to connect a servlet or jsp running in Tomcat to a
> MySQL
> database.  Here are the particulars:
> 
> Tomcat Version: 4.0.1
> MySQL Version: 3.23.45
> MySQL JDBC Driver Version: mm.mysql-2.0.4-bin.jar 
> Linux Version: Red Hat 7.1 running Kernel Version 2.4.2-2smp
> 
> Here is some sample code:
>

> ***
> 
> <%@ page import="java.sql.*" %>
> 
> <%! Connection c; %>
> 
> <% try {
>   Class.forName("org.gjt.mm.mysql.Driver").newInstance();
> }
> catch (Exception e) {}
> 
> try {
>   c =
>
DriverManager.getConnection("jdbc:mysql://localhost/PAARsnp?user=root&passwo
> rd=");
> %> Could do it! <%
> }
> catch (Exception e) {
> %>
> Can't do it!
> <%= e.getMessage() %>
> <% } %>
> 
>

> ***
> 
> 
> And the resultant output:
> 
> 
> Can't do it!
> Server configuration denies access to data source 
> 
>

> ***
> 
> I know for a fact that the connection string is correct.  However, I
> do not 
> know where to go from here.  I also know that I can successfully
> connect
> to this database from a PHP script, just not from Java code running
> within Tomcat.
> 
> Thanks in advance for any help
> 
> Matt Stine
> Software Engineer
> Hartwell Center for Bioinformatics and Biotechnology
> St. Jude Children's Research Hospital
> 332 N. Lauderdale St.
> Memphis, TN 38105-2794
> Phone: 901.495.4602
> Fax: 901.495.2945
> [EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

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




Cannot connect Servlet/JSP running in Tomcat to MySQL Database

2001-12-05 Thread Stine, Matt

Hi, I am unable to connect a servlet or jsp running in Tomcat to a MySQL
database.  Here are the particulars:

Tomcat Version: 4.0.1
MySQL Version: 3.23.45
MySQL JDBC Driver Version: mm.mysql-2.0.4-bin.jar   
Linux Version: Red Hat 7.1 running Kernel Version 2.4.2-2smp

Here is some sample code:

***

<%@ page import="java.sql.*" %>

<%! Connection c; %>

<% try {
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
}
catch (Exception e) {}

try {
c =
DriverManager.getConnection("jdbc:mysql://localhost/PAARsnp?user=root&passwo
rd=");
%> Could do it! <%
}
catch (Exception e) {
%>
Can't do it!
<%= e.getMessage() %>
<% } %>


***


And the resultant output:


Can't do it!
Server configuration denies access to data source 


***

I know for a fact that the connection string is correct.  However, I do not 
know where to go from here.  I also know that I can successfully connect
to this database from a PHP script, just not from Java code running
within Tomcat.

Thanks in advance for any help

Matt Stine
Software Engineer
Hartwell Center for Bioinformatics and Biotechnology
St. Jude Children's Research Hospital
332 N. Lauderdale St.
Memphis, TN 38105-2794
Phone: 901.495.4602
Fax: 901.495.2945
[EMAIL PROTECTED]


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




  1   2   >