RE: jsp:useBean error

2003-02-03 Thread Steve Burrus

Hello again, Filip, I tried to "package up" the 2 required files, login.jsp and 
LDAPAuth.java into a newly created "org.burrus.test" folder, and then compiled them 
into that same folder/directory to create 2 .class files, but then when I tried to run 
the whole program in my JBuilder 8, I STILL got, for my efforts, the old 505 server 
error page:

Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Errortype Exception 
reportmessage Internal Server Errordescription The server encountered an internal 
error (Internal Server Error) that prevented it from fulfilling this request.exception 
org.apache.jasper.JasperException: Unable to compile class for JSPNote: 
sun.tools.javac.Main has been deprecated.


An error occurred at line: 4 in the jsp file: /login.jsp

Generated servlet error:
C:\Documents and Settings\Steven R. 
Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java:64: Class 
org.apache.jsp.LDAPAuthBean not found.
LDAPAuthBean auth = null;
^


An error occurred at line: 4 in the jsp file: /login.jsp

Generated servlet error:
C:\Documents and Settings\Steven R. 
Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java:67: Class 
org.apache.jsp.LDAPAuthBean not found.
auth= (LDAPAuthBean)
   ^


An error occurred at line: 4 in the jsp file: /login.jsp

Generated servlet error:
C:\Documents and Settings\Steven R. 
Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java:72: Class 
org.apache.jsp.LDAPAuthBean not found.
auth = (LDAPAuthBean) 
java.beans.Beans.instantiate(this.getClass().getClassLoader(), "LDAPAuthBean");
^
Note: C:\Documents and Settings\Steven R. 
Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java uses or overrides a 
deprecated API.  Recompile with "-deprecation" for details.
3 errors, 2 warnings

 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
 at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
 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)
 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: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.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.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)


I must note to u that I put on the top of both the login.jsp and the LDAPAuthBean.java 
the package statements "package org.burrus.test", but to no avail when it came to 
successfully executing the program!

 



RE: jsp:useBean error

2003-02-03 Thread mech
SCNR (just for my humor):
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html

org.burrus.[name of file] means that you have a directory structure
like:

org
+-burrus

in that subdirectory you have your class files [name of file]

So in case you have a class named "MyFirstCupOfJava" that you save
under:
[wherever your workspace is]/org/burrus/MyFirstCupOfJava.java

you could import this file with: "import org.burrus.MyFirstCupOfJava" in
any of your other projects java files.

Oversimplified: "package == directory" ;-)

Michael
P.S. Although I really tried to explain, I doubt I could do it better
than any book author or the author of Sun's Java Tutorial...

> -Original Message-
> From: Steve Burrus [mailto:[EMAIL PROTECTED]]
> Sent: Montag, 3. Februar 2003 22:14
> To: Tomcat Users List
> Subject: RE: jsp:useBean error
>
>
> Hi Filip, I just now read yer little email msg. to me, and I
> understand that there should be little or even nothing that I
> need to do "special" to get the jsp/servlet to work in
> JBuilder!! However, I have no experience at all in "packaging
> up" a .java file! Would u please "humor me" and explain the
> process to me?! I have been told that I need to create
> something like "org.burrus.[name of file]" or something
> similiar. I know that you possess a "massive" amount of
> knowledge about Tomcat, so please give a "newbie" like me
> just a little piece of that knowledge. :) I thank you very much.
> 


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




RE: jsp:useBean error

2003-02-03 Thread Filip Hanik
okey dokey,
here we go
http://java.sun.com/docs/books/tutorial/java/interpack/packages.html

example: (look at the package statement)

//--source of java file---
package com.filip.test;

public class Data implements java.io.Serializable
{
private String data;
public Data(String data) { this.data = data;}
public String toString() { return data; }
}
//--end of java file--


This file now exists in a "package" called com.filip.test;
when you compile this file you can do this:
 "javac -d . Data.java"

this will compile the file Data.java into Data.class and place this file in a folder 
in the following way
./com/filip/test/Data.class

This file, should now be placed under /yourwebapp/WEB-INF/classes/com/filip/test/ 

Using JBuilder, when you say "New Class" it asks you to specify a package. 
When referencing this class from other classes you can use the "import" statement.

This is the short version, so let me know if you have any direct questions.
Packages are not specific to Tomcat, it is a part of the Java language.

Filip



-Original Message-
From: Steve Burrus [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 1:14 PM
To: Tomcat Users List
Subject: RE: jsp:useBean error


Hi Filip, I just now read yer little email msg. to me, and I understand that there 
should be little or even nothing that I need to do "special" to get the jsp/servlet to 
work in JBuilder!! However, I have no experience at all in "packaging up" a .java 
file! Would u please "humor me" and explain the process to me?! I have been told that 
I need to create something like "org.burrus.[name of file]" or something similiar. I 
know that you possess a "massive" amount of knowledge about Tomcat, so please give a 
"newbie" like me just a little piece of that knowledge. :) I thank you very much.

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




RE: jsp:useBean error

2003-02-03 Thread Steve Burrus
Hi Filip, I just now read yer little email msg. to me, and I understand that there 
should be little or even nothing that I need to do "special" to get the jsp/servlet to 
work in JBuilder!! However, I have no experience at all in "packaging up" a .java 
file! Would u please "humor me" and explain the process to me?! I have been told that 
I need to create something like "org.burrus.[name of file]" or something similiar. I 
know that you possess a "massive" amount of knowledge about Tomcat, so please give a 
"newbie" like me just a little piece of that knowledge. :) I thank you very much.


RE: jsp:useBean error

2003-02-03 Thread Filip Hanik
Nope, there is nothing special you have to do in JBuilder, it should take care of 
everything for you.
But you do have to put your classfiles in a package, and then it will work.

ie, your .java files should have a "package" statement in the top of it.

Filip
-Original Message-
From: Steve R Burrus [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 10:29 PM
To: Tomcat Users List
Subject: RE: jsp:useBean error


Hi Flip, it seems like I really don't get back to posting in this newsgroup of ours' 
before midnite :), but anyway, here is the particular war file which you went out yer 
way to request of me!! I think that there is something to the solution which I have 
received from at least 2 other people to put the class in question into some kind of a 
package!!
The only thing is that, as I have already stated, I am trying/attempting to work in 
the JBuilder 8 Enterprise Trial app., and I am just wondering if there is something 
special that I have to do in that app. to do the job of packaging up the class, if you 
are yourself some kind of a semi-expert in using JBuilder I don't know. Well anyway, 
here is the war file attached to this that you wanted to see. Thank you. 

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




RE: jsp:useBean error

2003-01-31 Thread Steve R Burrus
Hi Flip, it seems like I really don't get back to posting in this newsgroup of ours' before midnite :), but anyway, here is the particular war file which you went out yer way to request of me!! I think that there is something to the solution which I have received from at least 2 other people to put the class in question into some kind of a package!!
The only thing is that, as I have already stated, I am trying/attempting to work in the JBuilder 8 Enterprise Trial app., and I am just wondering if there is something special that I have to do in that app. to do the job of packaging up the class, if you are yourself some kind of a semi-expert in using JBuilder I don't know. Well anyway, here is the war file attached to this that you wanted to see. Thank you. 
 

thirdjavaproj.war
Description: thirdjavaproj.war
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: jsp:useBean error

2003-01-31 Thread jeff . guttadauro
well khalid, u haven't seen fit to respond to me yet, so consider this to 
be yer "light a fire under you" email!!! 
[snip]
Please try to respond to me with some useful advice about how I can 
successfully execute this JSP, because it doesn't look too much like 
anyone else in this newsgroup much feels like doing so, sad to say!
[snip]

With manners like that, it's really no wonder...

Anyway, Steve, it's a ClassNotFoundError.  You didn't put your class in a 
package.  Put it in a package (example: com.burrus.authentication) and 
then make sure that the compiled class file is in the 
WEB-INF/classes/com/burrus/authentication (following the example) 
directory.

Quite a jump from having trouble getting the examples to work to LDAP 
authentication!!  Perhaps backing the truck up a bit and reinforcing the 
fundamentals would be wise.  Just a thought...

HTH,
-Jeff 


RE: jsp:useBean error

2003-01-31 Thread Filip Hanik
ok,
If the LDAPAuthBean is your class, try to add a package to it.
I think Tomcat 4.x does funky stuff with classes without packages,
and here is looks like it is prepending org.apache.jsp to the prefix.

if you want, send me your war file.

Filip

-Original Message-
From: Steve R Burrus [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 3:26 PM
To: Tomcat Users List
Subject: RE: jsp:useBean error


well khalid, u haven't seen fit to respond to me yet, so consider this to be yer 
"light a fire under you" email!!! Here again is the 505 server error page, as I saw 
it! And, I will also send you again the 2 files which I have been trying/attempting to 
work with in JBuilder 8 Enterprise Trial!!
So here is the 505 error page and following that is one of the 2 files, the 
LDAPAuthBean.java javabean, and as a file attachment, the login.jsp file. Please try 
to respond to me with some useful advice about how I can successfully execute this 
JSP, because it doesn't look too much like anyone else in this newsgroup much feels 
like doing so, sad to say!
Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Errortype Exception 
reportmessage Internal Server Errordescription The server encountered an internal 
error (Internal Server Error) that prevented it from fulfilling this request.exception 
org.apache.jasper.JasperException: Unable to compile class for JSPNote: 
sun.tools.javac.Main has been deprecated.
An error occurred at line: 2 in the jsp file: /login.jsp
Generated servlet error:
C:\Documents and Settings\Steven R. 
Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java:60: Class 
org.apache.jsp.LDAPAuthBean not found.
LDAPAuthBean auth = null;
^

An error occurred at line: 2 in the jsp file: /login.jsp
Generated servlet error:
C:\Documents and Settings\Steven R. 
Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java:63: Class 
org.apache.jsp.LDAPAuthBean not found.
auth= (LDAPAuthBean)
   ^

An error occurred at line: 2 in the jsp file: /login.jsp
Generated servlet error:
C:\Documents and Settings\Steven R. 
Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java:68: Class 
org.apache.jsp.LDAPAuthBean not found.
auth = (LDAPAuthBean) 
java.beans.Beans.instantiate(this.getClass().getClassLoader(), "LDAPAuthBean");
^
Note: C:\Documents and Settings\Steven R. 
Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java uses or overrides a 
deprecated API.  Recompile with "-deprecation" for details.
3 errors, 2 warnings
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
 at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
 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)
 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: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.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(Er! 
rorDispatcherValve.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.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardEng

RE: jsp:useBean error

2003-01-31 Thread Steve R Burrus
well khalid, u haven't seen fit to respond to me yet, so consider this to be yer "light a fire under you" email!!! Here again is the 505 server error page, as I saw it! And, I will also send you again the 2 files which I have been trying/attempting to work with in JBuilder 8 Enterprise Trial!!
So here is the 505 error page and following that is one of the 2 files, the LDAPAuthBean.java javabean, and as a file attachment, the login.jsp file. Please try to respond to me with some useful advice about how I can successfully execute this JSP, because it doesn't look too much like anyone else in this newsgroup much feels like doing so, sad to say!
Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Errortype Exception reportmessage Internal Server Errordescription The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.An error occurred at line: 2 in the jsp file: /login.jsp
Generated servlet error:C:\Documents and Settings\Steven R. Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java:60: Class org.apache.jsp.LDAPAuthBean not found.    LDAPAuthBean auth = null;    ^
An error occurred at line: 2 in the jsp file: /login.jsp
Generated servlet error:C:\Documents and Settings\Steven R. Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java:63: Class org.apache.jsp.LDAPAuthBean not found.    auth= (LDAPAuthBean)   ^
An error occurred at line: 2 in the jsp file: /login.jsp
Generated servlet error:C:\Documents and Settings\Steven R. Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java:68: Class org.apache.jsp.LDAPAuthBean not found.    auth = (LDAPAuthBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "LDAPAuthBean");    ^Note: C:\Documents and Settings\Steven R. Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java uses or overrides a deprecated API.  Recompile with "-deprecation" for details.3 errors, 2 warnings
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176) 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) 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: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.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(Er! rorDispatcherValve.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.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)What can you make of this anyway??? I h

RE: jsp:useBean error

2003-01-30 Thread Steve R Burrus
well khalid, I don't know at all if u are still up as I write this to you, but in response to your question of me, here is a "screen dump" of the 505 server error page that i seem to consistently get when i try/attempt to view the login.jsp in question!
Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Errortype Exception reportmessage Internal Server Errordescription The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
An error occurred at line: 2 in the jsp file: /login.jsp
Generated servlet error:C:\Documents and Settings\Steven R. Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java:60: Class org.apache.jsp.LDAPAuthBean not found.    LDAPAuthBean auth = null;    ^
An error occurred at line: 2 in the jsp file: /login.jsp
Generated servlet error:C:\Documents and Settings\Steven R. Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java:63: Class org.apache.jsp.LDAPAuthBean not found.    auth= (LDAPAuthBean)   ^
An error occurred at line: 2 in the jsp file: /login.jsp
Generated servlet error:C:\Documents and Settings\Steven R. Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java:68: Class org.apache.jsp.LDAPAuthBean not found.    auth = (LDAPAuthBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "LDAPAuthBean");    ^Note: C:\Documents and Settings\Steven R. Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java uses or overrides a deprecated API.  Recompile with "-deprecation" for details.3 errors, 2 warnings
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176) 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) 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: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.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.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)What can you make of this anyway??? I have also included for your "edification" the 2 files which I have been working with in JBuilder 8. Thanx in advance for any help!
 
import java.util.*;
import javax.naming.*;
import javax.naming.directory.*;

public class LDAPAuthBean {

  private static final String CTXINIT =
 "com.sun.jndi.ldap.LdapCtxFactory";

  private static final String CTXURL =
 "ldap://l

RE: jsp:useBean error

2003-01-30 Thread Khalid Hajsaleh
Hi Steve,

I solved my problem with qualifying the class fully (package.class).
what kind of problem you running to?

Khalid

-Original Message-
From: Steve R Burrus [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 31, 2003 4:55 AM
To: Tomcat Users List
Subject: Re: jsp:useBean error


Hi Khalid, I am having roughly the very same problem which u seem to be
encountering right now w. your jsp!! I have login.jsp that uses a log-in
authorization java bean to authenticate a user login!

 But, when I try to see the jsp in JBuilder 8 Enterprise, which I am
using as my Java IDE, and  using a version 4.0.6 of Tomcat to view it,
all that I have gotten has been a 505 server error!! Either any
commiseration for me OR maybe some useful help/advice?

 



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




Re: jsp:useBean error

2003-01-30 Thread Steve R Burrus

Hi Khalid, I am having roughly the very same problem which u seem to be encountering 
right now w. your jsp!! I have login.jsp that uses a log-in authorization java bean to 
authenticate a user login!

 But, when I try to see the jsp in JBuilder 8 Enterprise, which I am using as my Java 
IDE, and  using a version 4.0.6 of Tomcat to view it, all that I have gotten has been 
a 505 server error!! Either any commiseration for me OR maybe some useful help/advice?

 



jsp:useBean error

2003-01-30 Thread Khalid Hajsaleh
Hi,

I am trying to use the directive jsp:useBean in my jsp but that seems to
be causing an exception(at
org.apache.jasper.runtime.PageContextImpl.handlePageException), any
ideas?

Here is what I am trying to do:
In a forward.jsp, I have:

<%@ page import="Mylogin.UserLoginBean" %>






My class Mylogin is defined in WEB-INF/classes/Mylogin/UserLoginBean. It
is suppose to validate a use login:

package Mylogin;


import java.sql.*;
import javax.sql.*;
import javax.naming.*;


public class UserLoginBean{

private String firstName;
private String lastName;


public UserLoginBean(){
}

public String getFirstName(){
return this.firstName;
}


public String getLastName(){
return this.lastName;
}

public void setFirstName(String firstName){
this.firstName=firstName;
}


public void setLastName(String lastName){
this.lastName=lastName;
}

public boolean isRegistered(){

try {
Context ctx = (Context)new
InitialContext().lookup("java:comp/env");
DataSource ds =
(DataSource)ctx.lookup("jdbcdb");
Connection conn = ds.getConnection();
if (conn != null)
System.out.println("CONNETED");

String stm="Select first_name from names where
item_id=?";
PreparedStatement selectStatement =
conn.prepareStatement(stm);
selectStatement.setString(1,firstName);
ResultSet rs = selectStatement.executeQuery();

if (rs.next())
{

setFirstName(rs.getString("first_name"));
conn.close();
return true;
}

else
{
conn.close();
return false;
}
} catch (Exception e) {
System.out.println("Got an exception! ");
System.out.println(e.getMessage());
return false;
}

}

}

Thanks for all the help in advance.

Khalid



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