Re: EXE File/ port #
u should try this http://localhost:8080
Re: EXE File/ port #
I have JWSDK server running in this port and not TOMCAT; like I mentioned earlier, I am not sure whether I successfully installed the TOMCAT or not ... Kent Lau Chee Yong wrote: u should try this http://localhost:8080
Re: Security and Forward
"Craig R. McClanahan" wrote: The assumption is that your application knows whether or not the forwarded-to page is acceptable, or it would not have done the forward in the first place. This means that the security is not only declarative. The application must take care of the security. That's what we wanted to avoid. "Matt Goss" wrote: what if you use a redirect instead of forward? The redirect option is not the good solution for us. We want to use the JSP architecture model which is request - dispatcher (instanciate the bean+ forward to the JSP)- JSP (use the bean which access the database)- response. But we found a solution, which is: we have one URL for each request (so the access control is done for each request). But all these requests are mapped to the same dispatcher (all the requests arrives at the dispatcher, which forwards the request to the good JSP depending on the initial URL). -- Best Regards, Carole Hébrard
Re: [ANNOUNCE] Tomcat 4.0 Milestone 4
"Craig R. McClanahan" wrote: We're pleased to announce the availabililty of milestone 4 of the Tomcat 4.0 servlet container and JSP engine. Compared to milestone 3, this release reflects the following changes: [...] Is this release only working in standalone mode? --mike
web.xml, is that also a standard for other server, wich support servlets?
web.xml, is that only for the tomcat-server, or ist that a standard for all servers, wich support servlets? Katrin Seiffert
WAR file question
Hi All, What do I need to do to completely replace my web application? I thought I could put a new copy of my WAR file in the webapps directory and Tomcat would re-extract it at start-up, thus replacing my web application. This does not seem to work the way I thought. What are the steps required to replace a web application? Thanks. PS-I'm on 3.2 beta 6 = Wyn Easton [EMAIL PROTECTED] __ Do You Yahoo!? From homework help to love advice, Yahoo! Experts has your answer. http://experts.yahoo.com/
Re: web.xml, is that also a standard for other server, wich support servlets?
support for what? u need to clarify regard,
regarding the filter
Dear Sir, I am trying this Tomcat IIS HOW TO. I find it quiet interesting but as you said setting up the filter part which is very important to redirect, I couldn't get the upward green arrow. It is downward red arrow. Is there any way to over come this. Kindly advise on this. Awaiting your reply regards Arasu Software Engineer.
RE: web.xml, is that also a standard for other server, wich support servlets?
It exists in the servlet API. However, it is written there by the way, and not mentioned, as much as i could see, as must. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 02, 2000 11:47 AM To: [EMAIL PROTECTED] Subject: web.xml, is that also a standard for other server, wich support servlets? web.xml, is that only for the tomcat-server, or ist that a standard for all servers, wich support servlets? Katrin Seiffert
Re: EXE File/ port #
heloo plz give me the unsubscribe address,method of this emails system. waiting waseem
AnyOne ?? tomcat on NT4 with IIS4 ?
hi, The IIS4 filter(isapi_redirect.dll ) is green arrow (loaded) http://localhost:8080/servlet/SnoopServlet - works But http://localhost/servlet/SnoopServlet - Not (IE5.5 shows - The page cannot be found) what should I config now ?? workers.properties I set : workers.tomcat_home=d:\tomcat workers.java_home=d:\java\jdk1.3 the tomcat.log D:\tomcat\binjava -Dtomcat.home=D:\tomcat\ org.apache.tomcat.startup.Tomcat 2000-11-02 11:59:42 - ContextManager: Adding context Ctx( /examples ) 2000-11-02 11:59:42 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2000-11-02 11:59:47 - ContextManager: Adding context Ctx( ) 2000-11-02 11:59:48 - ContextManager: Adding context Ctx( /test ) 2000-11-02 11:59:49 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2000-11-02 11:59:49 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 isapi.log : [jk_uri_worker_map.c (155)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [jk_uri_worker_map.c (195)]: Into jk_uri_worker_map_t::uri_worker_map_open [jk_uri_worker_map.c (210)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2 [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=ajp12 was added [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp12 was added [jk_uri_worker_map.c (295)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules [jk_uri_worker_map.c (316)]: jk_uri_worker_map_t::uri_worker_map_open, done [jk_worker.c (82)]: Into wc_open [jk_worker.c (207)]: Into build_worker_map, creating 1 workers [jk_worker.c (213)]: build_worker_map, creating worker ajp12 [jk_worker.c (138)]: Into wc_create_worker [jk_worker.c (152)]: wc_create_worker, about to create instance ajp12 of ajp12 [jk_ajp12_worker.c (264)]: Into ajp12_worker_factory [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp12 [jk_ajp12_worker.c (182)]: Into jk_worker_t::validate [jk_ajp12_worker.c (194)]: In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [jk_worker.c (177)]: wc_create_worker, done [jk_worker.c (223)]: build_worker_map, removing old ajp12 worker [jk_worker.c (235)]: build_worker_map, done [jk_worker.c (102)]: wc_open, done Thanks Alon
Re: configure the tomcat for my own error page
check out the docu from the jakarta tomcat project. d. On Thu, 02 Nov 2000, you wrote: I want to configure the tomcat to use a given error page. How can I do that? Katrin Seiffert
Re: EXE File/ port #
Ajayan wrote: I have JWSDK server running in this port and not TOMCAT; like I mentioned earlier, I am not sure whether I successfully installed the TOMCAT or not ... If any of those JWSDK jar files are hanging around on your classpath you will get a lot of very hard to interpret errors about classes or methods not found. -- WBB - [EMAIL PROTECTED] Chief Scientist, LANWrights, Inc. Java Programmer Certification information and mock exam at http://www.lanw.com/java/javacert/
loadbalancing + sessions
Hi! After reading through the archives I'm still without a clue how to solve this: The setup is one Apache on server A and two Tomcats on server A and B, all running on NT4. (server A: apache + tomcat, server B: tomcat only) Loadbalancing works fine, except for no sticky sessions (à la get-/set properties in my JSP:s). How is the load balancing supposed to work anyway? By spreading the users between the servers, and let them stay on their resp. server, or by load balancing all users on all servers (sending/recieving session information between the servers)? - And yes, all cookies enabled in my web browser... Any ideas on what's wrong? Regards, Manne Anliot, Sweden.
Re: Tomcat as a service on NT
Hi José, I think your wrapper.properties file is not well configured. This file is used by the jk_nt_service. Take a look to the contents of this file in your tomcat_home\conf directory. Alain - Original Message - From: José Luis Gómez Bocanegra To: [EMAIL PROTECTED] Sent: Thursday, November 02, 2000 12:09 PM Subject: Tomcat as a service on NT Hi Tomcat team, I'm trying to use Tomcat as a service on NT, but I can see an error in stderr.log file, this error is: java.lang.NoClassDefFoundError: javax/xml/parsers/SAXParserFactory Where can I find this class? My CLASSPATHcontains: jaxp.jar, jasper.jar, webserver.jar and parser.jar, the jar files that contains Tomcat version 3.2 beta 6. Could you tell me what jar file/s I need?? Thanks.
Re: WAR file question
Thanks for your quick response Jacopo! --- Jacopo Cappellato [EMAIL PROTECTED] wrote: Hi, in order to replace completely a web application in war format you have to: 1) stop tomcat 2) replace the war file (e.g. myappl.war) in the webapps folder 3) remove the web application folder (e.g. myappl)in the webapps folder 4) start tomcat Good luck! - Jacopo [EMAIL PROTECTED] http://digilander.iol.it/jacop -- - Original Message - From: Wyn Easton [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 02, 2000 11:00 AM Subject: WAR file question Hi All, What do I need to do to completely replace my web application? I thought I could put a new copy of my WAR file in the webapps directory and Tomcat would re-extract it at start-up, thus replacing my web application. This does not seem to work the way I thought. What are the steps required to replace a web application? Thanks. PS-I'm on 3.2 beta 6 = Wyn Easton [EMAIL PROTECTED] = Wyn Easton [EMAIL PROTECTED] __ Do You Yahoo!? From homework help to love advice, Yahoo! Experts has your answer. http://experts.yahoo.com/
AW: loadbalancing + sessions
Which version of tomcat do you use ? Do you use mod_jserv or mod_jk ? There are two 2 different implementations of loadbalacing (at least from the configuration site) One came to tomcat from mod_jserv. It is described at http://java.apache.org/jserv/howto.load-balancing.html The other is new and comes with mod_jk. It is described at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/Tomcat-Workers-H owTo.html The theory (of the jserv version) so far: In case of load balancing jserv appends an identifier to the session id which identifies the server that received the first request for the session. The identifier is used to send each following request for the same session to the same machine. So to use load balancing you either have to enable cookies in your browser or to call response.encodeUrl() for the internal links in your page. If it fails for you, the first thing to look at is the session id. The session id should look like: To1028mC5487727979769673At.JS1 Where JS1 is the symbolic name of your server (First argument to ApJServHost) I don't know if this applies to mod_jk. -Ursprüngliche Nachricht- Von: Manne Anliot [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 2. November 2000 13:15 An: '[EMAIL PROTECTED]' Betreff: loadbalancing + sessions Loadbalancing works fine, except for no sticky sessions (à la get-/set properties in my JSP:s). snip/ How is the load balancing supposed to work anyway? By spreading the users between the servers, and let them stay on their resp. server, or by load balancing all users on all servers (sending/recieving session information between the servers)? snip/
Error in 3.2-6 : Context not properly removed
Hi, we are using Tomcat 3.2 Beta6 on WIN NT4.0 (SP5) and jdk1.2.2. If I am shutting down tomcat (using the shutdown.bat command file) not all contexts are removed. This is a major problem since in that case the destroy method of the servlet is not called. I have posted this problem some time ago but didn't receive a response. This can be reproduced even with the example applications coming with the current tomcat installation: 1. Start tomcat using the tomcat.bat start command produces the following output: [d:\programs\abb\service web server\tomcat\bin]tomcat.bat run 2000-11-02 02:27:01 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2000-11-02 02:27:01 - ContextManager: Adding context Ctx( /examples ) 2000-11-02 02:27:01 - ContextManager: Adding context Ctx( ) 2000-11-02 02:27:01 - ContextManager: Adding context Ctx( /test ) 2000-11-02 02:27:02 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 2. Shutdown tomcat using the shutdown.bat command (from another comand prompt): 2000-11-02 02:29:12 - ContextManager: Removing context Ctx( /admin ) 2000-11-02 02:29:12 - ContextManager: Removing context Ctx( ) It seems that the test and the example context is not automatically removed. If I am debugging my own application the destroy method is never called. I really would appreciate any help from you. Any ideas? Regards Jochen
Re: Security and Forward
Carole HEBRARD wrote: But we found a solution, which is: we have one URL for each request (so the access control is done for each request). But all these requests are mapped to the same dispatcher (all the requests arrives at the dispatcher, which forwards the request to the good JSP depending on the initial URL). What you describe is the MVC (Model-View-Controller) design paradigm for web application architecture. Have a look at struts (http://jakarta.apache.org/struts). This is a great framework to ease the development of MVC based web applications. -- Pierre
RE: Tomcat config and servlets
Hi, Now, I have a different application which I put all the servlets for this application under this new directory myhome/jakarta-tomcat/webdev/WEB-INF/classes Assuming you have a full WAR (web archive) setup in the webdev directory, specifically, a web.xml in the WEB-INF directory. Then I would add lines like this to the server.xml config; Context path="/myapp" docBase="myhome/jakarta-tomcat/webdev" debug="0" reloadable="true" /Context Then you can access it using http://yourhost:yourport/myapp/servlet/[servlet-name] Hope this helps, Chris --- "surely it is madness to accept life as it is and not as it could be" __ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup
Re: Virtual Hosting... with 3.2beta6 [PATCH to DOCS]
Hi, Thanks to Duane Gran [EMAIL PROTECTED] for putting me right on this. In the tomcat-apache howto, it describes a means of having virtual hosts with 1 JVM using this version tomcat. ...but the example server.xml it gives is actually the excerpt from the apache config repeated. So here is a proposed patch for that section of the document. I am assuming that the html directory is the root of an expanded WAR file. Regards, Chris This replaces the example "Option 2 - Same Tomcat for all Virtual Hosts (server.xml) " [ snip! ] !-- in the context manager section -- Host name="host1" Context path="" docBase=""/web/host1/html" / /Host Host name="host2" Context path="" docBase=""/web/host2/html" / /Host [ snip! ] --- "surely it is madness to accept life as it is and not as it could be" __ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup
Help with virtual hosting and Tomcat 3.1
Hi all: I need to validate our configuration, and i need your help! Apache 1.2.13 Tomcat 3.1 When we load apache, its send a message about recompile mod_jserv, where i find the source code for this... and what is the command line, please :-) (I'm only a project manager) We have 4 domain, running under apache 1.3.12 with Virtual host, and each host working with an instance of Tomcat. Each instance of tomcat is loaded with the following command: ./startup.sh -f ../conf/site1.xml ./startup.sh -f ../conf/site2.xml ./startup.sh -f ../conf/site3.xml ./startup.sh -f ../conf/site4.xml Our directory structure is aprox the following : tomcat/bin tomcat/conf tomcat/webapps/site1 tomcat/webapps/site2 tomcat/webapps/site3 tomcat/webapps/site4 When i run site1, the script load also site2,3 and 4 , but no is the behavior we are seeking. It is an error in our configuration? Must i create 4 different tomcat directories? Thanxs, It's lot of question, but i'm very complicated, and actually i am under high pression. My brain is tired :-( Mauricio P.S: My english skill is very weak I'm learning. Sorry.
RE: jar's still not picked up in WEB-INF/lib
-Original Message- From: Leon Palermo [mailto:[EMAIL PROTECTED]] Sent: 01 November 2000 18:05 To: [EMAIL PROTECTED] Subject: Re: jar's still not picked up in WEB-INF/lib I agree that you should not put application specific jar files in the main $TOMCAT/lib directory because the jar files should reside with their application. I was saying, as a last resort try putting the jars in the main TOMCAT lib. Did you try it? I always just unzip any zip files in the WEB-INF/classes directory or you could make your own jar file of those classes. The logic is sound. However, consider the case of a set of javabean class files that are common to more than one application; where do you put them? JDL
where can i get pay by incident or something for java servletdevelopment
i have been looking all over for answers to my question/problem and have not gotten it resolved yet. my client is growing very concerned, as am i. anyone know where i can get some pay by incident support or does anyone want to volunteer to have me call them or email them directly for help? btw: my problem was with passing data from a servlet to a jsp page. cheers, david j harding
I just built mod_jk.so on linux
For anyone who is interested. I compiled mod_jk.so on linux (Red Hat 6.2, Apache 1.3.14, Tomcat 1.3). here is what I did. from ( /usr/local/jakartahome/jakarta-tomcat/src/native/apache/jserv ) I used the command line ( apxs -o mod_jk.so -I../jk -I/usr/local/java/include -I/usr/local/java/include/linux -c *.c ../jk/*.c ) It ran through, but did not finish, so I used ( gcc -shared -o mod_jk.so *.o ) to finish the build. I was having trouble finding out how to do this, so I thought I would pass on the info incase anyone else wanted to know. Now all I have to do is learn how to implement it..lol. Thanks gang for the support and help the group has provided me. John Elia WD 711.NET [EMAIL PROTECTED]
My Own Servlet Engine
Hi, For my graduation project, i've decided to make a cross platform, remote administration tool for apache. Something very similar to Warpaint(http://www.rovis.com/warpaint/) - but, i'll be implementing it using web forms and servlets (and not perl). The first major thing to do would be to implementa very lightweight standalone servlet engine that can serve my servlets. This servlet engine of mine would be very very basic - supporting only the GET (and maybe POST) method and leaving out all the fancy stuff like sessions, etc... So, how tough would it be to develop my own servlet engine? I don't want to use an existing servlet engine because the project would become too simple then. Any resources on the web where i can find out how to build a servlet engine from scratch? And, any tips from the TomCat developers :-)? Thanks. Joseph George, Computer Science Engg. Dept., C-210, Hall 1, Indian Institute Of Technology (IIT), Kanpur-208016, U.P., India.
Re: where can i get pay by incident or something for java servletdevelopment
David, I don't know about support but I have done servlet to jsp data exchange... I do it with a session bean. for instance: servlet side MyBean mb1 = new MyBean();//instantiates the bean mb1.setData("value");//sets the 'data' property to the String "value" HttpSession ses = req.getSession(true); //gets a handle on the session ses.putValue("mybean", mb1);//adds the bean to the session RequestDispatcher rd = req.getRequestDispatcher("/mypage.jsp"); rd.forward(req, resp); //forward to the jsp page /servlet side jsp side jsp:useBean id="mb1" scope="session" class="MyBean" / //get the bean from the session jsp:getProperty name="mb1" property="data" / //display the data /jsp side hope this helps, Matt Goss "Harding, David" wrote: i have been looking all over for answers to my question/problem and have not gotten it resolved yet. my client is growing very concerned, as am i. anyone know where i can get some pay by incident support or does anyone want to volunteer to have me call them or email them directly for help? btw: my problem was with passing data from a servlet to a jsp page. cheers, david j harding begin:vcard n:Goss;Matt tel;fax:919-657-1501 tel;work:919-657-1432 x-mozilla-html:FALSE url:www.rtci.com org:RTCI;Custom Solutions adr:;;201 Shannon Oaks Circle;Cary;NC;27511;US version:2.1 email;internet:[EMAIL PROTECTED] title:Web Developer fn:Matt end:vcard
RE: Please Help, Problems with tomcat
I had the same problem. You are probably using apache with ssl (either mod_ssl, raven, or something else). you also probably downloaded the binary version of mod_jserv.so You need to compile mod_jserv.so yourself and everything should be fine. -Original Message- From: Francisco Baraqui Schwarze [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 02, 2000 7:39 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Please Help, Problems with tomcat When I take a time executing Tomcat 3.1 with Apache 1.3.12 appear me the following error: HANDLER THREAD PROBLEM: java.io.IOException: Stream closed prematurely java.io.IOException: Stream closed prematurely at org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextReque st(Ajp12ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processCon nection(Ajp12ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j ava, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) after this they get lost user's sessions... Thank you Francisco
JSP compile error using bean jar file
I am using Tomcat 3.1 on Win NT. When I try and bring up my JSP page I receive the following error: Error: 500 Location: /mytest/test.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPC:\Program Files\Apache Group\Tomcat\work\localhost_8080%2Fmytest\_0002ftest_0002ejsptest_jsp_0.java:66: Undefined variable or class name: profile proto.Address[] addrs = (proto.Address[])profile.loadAddresses("18190"); ^ C:\Program Files\Apache Group\Tomcat\work\localhost_8080%2Fmytest\_0002ftest_0002ejsptest_jsp_0.java:74: Undefined variable: addrsProfile addrsProfile = addrs[i]; ^ C:\Program Files\Apache Group\Tomcat\work\localhost_8080%2Fmytest\_0002ftest_0002ejsptest_jsp_0.java:123: Undefined variable: acctProfile acctProfile = (proto.Account)profile.loadAccount("18190"); ^ C:\Program Files\Apache Group\Tomcat\work\localhost_8080%2Fmytest\_0002ftest_0002ejsptest_jsp_0.java:123: Undefined variable or class name: profile acctProfile = (proto.Account)profile.loadAccount("18190"); ^ C:\Program Files\Apache Group\Tomcat\work\localhost_8080%2Fmytest\_0002ftest_0002ejsptest_jsp_0.java:179: Undefined variable or class name: profile proto.Phone [] phns = (proto.Phone[])profile.loadPhones("18190"); ^ C:\Program Files\Apache Group\Tomcat\work\localhost_8080%2Fmytest\_0002ftest_0002ejsptest_jsp_0.java:188: Undefined variable: acctPhone acctPhone = phns[i]; ^ 6 errors at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) I have a JAR file in the WEB-INF\lib directory that contains my beans. Is there anything else I am missing. I tried to put the JAR file in the CLASSPATH, but that did not work. My bean JAR contains a class called Account, Phone, Officer, Address, Profile Here is part of my JSP page: %@ page contentType="text/html;charset=WINDOWS-1252"% HTML HEAD META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=WINDOWS-1252" META NAME="GENERATOR" CONTENT="Oracle JDeveloper" TITLE Hello World /TITLE /HEAD BODY H2The following output is from JSP code:/H2 jsp:usebean id="profile" class="proto.Profile" jsp:setProperty name="profile" property="account" value = "18190" / /jsp:usebean jsp:usebean id="addrsProfile" class="proto.Address" /jsp:usebean % proto.Address[] addrs = (proto.Address[])profile.loadAddresses("18190"); % Thanks for any help you can give me
Built mod_jk on linux
For anyone who is interested. I compiled mod_jk.so on linux (Red Hat 6.2, Apache 1.3.14, Tomcat 1.3). here is what I did. from ( /usr/local/jakartahome/jakarta-tomcat/src/native/apache/jserv ) I used the command line ( apxs -o mod_jk.so -I../jk -I/usr/local/java/include -I/usr/local/java/include/linux -c *.c ../jk/*.c ) It ran through, but did not finish, so I used ( gcc -shared -o mod_jk.so *.o ) to finish the build. I was having trouble finding out how to do this, so I thought I would pass on the info incase anyone else wanted to know. Now all I have to do is learn how to implement it..lol. Thanks gang for the support and help the group has provided me. John Elia WD 711.NET [EMAIL PROTECTED]
RE: JSP compile error using bean jar file
its jsp:useBean with a capital B -Original Message- From: Dan Lovell [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 02, 2000 11:37 AM To: [EMAIL PROTECTED] Subject: JSP compile error using bean jar file I am using Tomcat 3.1 on Win NT. When I try and bring up my JSP page I receive the following error: Error: 500 Location: /mytest/test.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPC:\Program Files\Apache Group\Tomcat\work\localhost_8080%2Fmytest\_0002ftest_0002ejsptest_jsp_0.java :66: Undefined variable or class name: profile proto.Address[] addrs = (proto.Address[])profile.loadAddresses("18190"); ^ C:\Program Files\Apache Group\Tomcat\work\localhost_8080%2Fmytest\_0002ftest_0002ejsptest_jsp_0.java :74: Undefined variable: addrsProfile addrsProfile = addrs[i]; ^ C:\Program Files\Apache Group\Tomcat\work\localhost_8080%2Fmytest\_0002ftest_0002ejsptest_jsp_0.java :123: Undefined variable: acctProfile acctProfile = (proto.Account)profile.loadAccount("18190"); ^ C:\Program Files\Apache Group\Tomcat\work\localhost_8080%2Fmytest\_0002ftest_0002ejsptest_jsp_0.java :123: Undefined variable or class name: profile acctProfile = (proto.Account)profile.loadAccount("18190"); ^ C:\Program Files\Apache Group\Tomcat\work\localhost_8080%2Fmytest\_0002ftest_0002ejsptest_jsp_0.java :179: Undefined variable or class name: profile proto.Phone [] phns = (proto.Phone[])profile.loadPhones("18190"); ^ C:\Program Files\Apache Group\Tomcat\work\localhost_8080%2Fmytest\_0002ftest_0002ejsptest_jsp_0.java :188: Undefined variable: acctPhone acctPhone = phns[i]; ^ 6 errors at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:149) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:161) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) I have a JAR file in the WEB-INF\lib directory that contains my beans. Is there anything else I am missing. I tried to put the JAR file in the CLASSPATH, but that did not work. My bean JAR contains a class called Account, Phone, Officer, Address, Profile Here is part of my JSP page: %@ page contentType="text/html;charset=WINDOWS-1252"% HTML HEAD META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=WINDOWS-1252" META NAME="GENERATOR" CONTENT="Oracle JDeveloper" TITLE Hello World /TITLE /HEAD BODY H2The following output is from JSP code:/H2 jsp:usebean id="profile" class="proto.Profile" jsp:setProperty name="profile" property="account" value = "18190" / /jsp:usebean jsp:usebean id="addrsProfile" class="proto.Address" /jsp:usebean % proto.Address[] addrs = (proto.Address[])profile.loadAddresses("18190"); % Thanks for any help you can give me
Apache-Tomcat
Hi, Can any one help me , how to configure apache1.3.12 and tomcat3.1 with mod_jk under win2000. thanks, nell ___ CoolEmail -- Now you're talking. Get Free Email-By-Phone Today. http://www.CoolEmail.com
Re: [ANNOUNCE] Tomcat 4.0 Milestone 4
mike niemaz wrote: "Craig R. McClanahan" wrote: We're pleased to announce the availabililty of milestone 4 of the Tomcat 4.0 servlet container and JSP engine. Compared to milestone 3, this release reflects the following changes: [...] Is this release only working in standalone mode? As the release notes point out, there are still no web connectors so the answer is "yes". Web connectors are being actively worked on ... they just don't work well enough yet to start testing (you can ask Pier, who wrote the original mod_jserv code and is working on this, how much he liked having to write C code again after years of Java's freedom from pointer-related problems :-). --mike Craig
RV: Problems finding properties files
- Original Message - From: Ivan To: [EMAIL PROTECTED] Sent: Wednesday, November 01, 2000 6:31 PM Subject: Problems finding properties files Hello, I'm atomcat user, and I was trying to develop a web application, Iincluded the following lines in server.xml file Context path="/isover" docBase="webapps/isover" debug="0" reloadable="true"/Context and then I created the isover directory with the appropiate structure and files, I included the properties files in WEB-APP directory, and when I run the application an error appears that says it can't find the property file; this file is used in a servlet. The web.xml file included in my application is the default one that is in the conf directory. I tried to solve the problem including the property file in all of the application directories and the same error appeared again. What could be the problem? My linux version is Red Hat 7.0 with glibc5.0. Thanks in advance, Ivan Gutierrez Garcia.
RE: Problems finding properties files
Your directory should be like the following: webapps isover WEB-INF web.xml classes servlet.class file.properties lib jdbcdrivers.jar etc.jar You could put your properties file in the "webapps/isover/WEB-INF/classes" directory and use getClass().getResourceAsStream("file.properties") then use propertes.load. Hope this helps. Ryan -Original Message-From: Ivan [mailto:[EMAIL PROTECTED]]Sent: Wednesday, November 01, 2000 9:41 AMTo: [EMAIL PROTECTED]Subject: RV: Problems finding properties files - Original Message - From: Ivan To: [EMAIL PROTECTED] Sent: Wednesday, November 01, 2000 6:31 PM Subject: Problems finding properties files Hello, I'm atomcat user, and I was trying to develop a web application, Iincluded the following lines in server.xml file Context path="/isover" docBase="webapps/isover" debug="0" reloadable="true"/Context and then I created the isover directory with the appropiate structure and files, I included the properties files in WEB-APP directory, and when I run the application an error appears that says it can't find the property file; this file is used in a servlet. The web.xml file included in my application is the default one that is in the conf directory. I tried to solve the problem including the property file in all of the application directories and the same error appeared again. What could be the problem? My linux version is Red Hat 7.0 with glibc5.0. Thanks in advance, Ivan Gutierrez Garcia.
RE: Problems finding properties files
both classes and lib directories should exist. you put your servlet classes in the classes directory and you put your supporting jars in your lib directory. then you can refer to the servlet as machine/appname/servlet/ServletName -Original Message- From: David Knaack [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 02, 2000 1:26 PM To: [EMAIL PROTECTED] Subject: Re: Problems finding properties files I think I'm confused. In my setup I have webapps appname WEB-INF lib With the servlet jar in the lib directory. I originally had the lib directory under appname, but the servlet would not load there (I have a load-on-startup tag in the web.xml). Below you list classes and lib under appname, then mention appname/WEB-INF/classes. Do the both exist? I ask because I'm still having trouble getting any output from my servlet. If I open URL machine/servlets/sfs?... I just get an Internal Server Error message after about a 15-90 second wait. DK From: "Ryan Littrell" [EMAIL PROTECTED] Your directory should be like the following: webapps isover WEB-INF web.xml classes servlet.class file.properties lib jdbcdrivers.jar etc.jar [...] put your properties file in the "webapps/isover/WEB-INF/classes" directory
READ THIS First! Mailing-list archive and good tips
To unsubscribe from this list mailto:[EMAIL PROTECTED] To stop subscription for an alternate account (e.g. [EMAIL PROTECTED]) send an eMail to [EMAIL PROTECTED] Before posting any questions --- + We welcome open discussion of Tomcat issues at both advanced and beginner levels of expertise. However, please be respectful of other people's time. Before posting questions, do your own reading and research. As the saying goes, "There are no stupid questions"... except the ones you could have answered by yourself! Before posting a question, perform the following steps. + Be familiar with servlets in general. See: http://java.sun.com/products/servlet/ http://java.sun.com/products/jsp/ + Read any of the several published books about servlets or JSP. + Read the Servlet API 2.2 Specification. Download a copy of the spec in PostScript or Acrobat PDF formats: http://java.sun.com/products/servlet/download.html#specs The spec is currently not available online; you must download a copy. You may obtain free Acrobat PDF reader software from: http://www.adobe.com/products/acrobat/readstep.html Tomcat implements this spec, so think of it as one of Tomcat's manuals. + Read Tomcat's other documentation: http://jakarta.apache.org/tomcat/index.html + Study the Tomcat examples. First use the servlets found in the /examples context. Read their source code. Then try your own first servlets in the /examples context, and add an entry into /example/WEB-INF/web.xml + Search either of these two archives for past discussions. Contributed by Bob Tanner: http://archives.real-time.com/rte-tomcat/ Contributed by Philip J. Mikal: http://mikal.org/interests/java/tomcat/index.html Search for short phrases, such as your server error messages. Search the archive again with better or different phrases. Many beginner questions have already been asked, so please make several attempts at finding your question in the archive. + Read the FAQ: http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayTopics/ Click the Jakarta link. + Search the bug report facility http://znutar.cortexity.com: provided by Nick Bauman. + Read this mailing list regularly, not just when you have a problem. + Examine your error messages problems not directly related to Tomcat, such as CLASSPATH problems. Write, compile, and run a "Hello World" application to be sure your problem is related to servlets or Tomcat. + Ask an expert in your company, school class, or local Java users group. http://industry.java.sun.com/jug/ + Do not treat this list as a dumping ground for your problems. Think of the list as a volunteer community of people engaging in respectful discussion. == THE MORAL OF THE STORY Help yourself first. Be responsible for your own learning. Try to solve your own problem. If you are still suffering, then post to this list. == + Be aware: This mailing list may contain viruses. Don't trust anybody. If your are not absolutely sure, do not open any attachments. Do not read the postings with a JavaScript-enabled email client. Microsoft Windows users: Disable all stuff like ActiveScripting etc. in your mail reader. Be careful with attachments, especially of type .exe .vbs or some virus attachments like "livestages.txt.shs". The .shs extension disappears/is not visible under Windows but represents an executable script which will execute when opened separately. + Other resources: - An archive of the mailing list for the developers building Tomcat discussing bugs, future releases, etc. http://www.metronet.com/~wjm/tomcat/ - Sun's mailing list for general servlet information: Search its archive at: http://archives.java.sun.com/archives/servlet-interest.html Subscribe only, if you are willing to receive hundred messages per day! - Search DejaNews at http://www.deja.com/home_ps.shtml - Look at jGuru, JCentral etc. - Search the whole Web with a popular search engine. As a developer of server applications you should know all about it. :-) You can find entire websites dedicated to Java servlets. Find the online versions of Java magazines with past articles on servlets and JSP. -- end --
RE: Problems finding properties files
In my testing as long as you package the properties file in the root of the jar it should work. I am not positive on this since I have not fully tested it yet. An example of getting a resource is done in the WROX connection pooling code. http://www.wrox.com/Books/Book_down.asp?isbn=1861002777sub_section=1subject=Javasubject_id=13 Download Chapter 9. Ryan -Original Message-From: Ranko Bijelonic [mailto:[EMAIL PROTECTED]]Sent: Thursday, November 02, 2000 10:29 AMTo: [EMAIL PROTECTED]Subject: RE: Problems finding properties files Ok, a question related to using resources in jar and war files. Given the hierarchy below, if I had a class in etc.jar that used a proprety file also in etc.jar, how would I refer to that property file from that class? Thanks ranko -Original Message-From: Ryan Littrell [mailto:[EMAIL PROTECTED]]Sent: Thursday, November 02, 2000 1:02 PMTo: [EMAIL PROTECTED]; [EMAIL PROTECTED]Subject: RE: Problems finding properties files Your directory should be like the following: webapps isover WEB-INF web.xml classes servlet.class file.properties lib jdbcdrivers.jar etc.jar You could put your properties file in the "webapps/isover/WEB-INF/classes" directory and use getClass().getResourceAsStream("file.properties") then use propertes.load. Hope this helps. Ryan -Original Message-From: Ivan [mailto:[EMAIL PROTECTED]]Sent: Wednesday, November 01, 2000 9:41 AMTo: [EMAIL PROTECTED]Subject: RV: Problems finding properties files - Original Message - From: Ivan To: [EMAIL PROTECTED] Sent: Wednesday, November 01, 2000 6:31 PM Subject: Problems finding properties files Hello, I'm atomcat user, and I was trying to develop a web application, Iincluded the following lines in server.xml file Context path="/isover" docBase="webapps/isover" debug="0" reloadable="true"/Context and then I created the isover directory with the appropiate structure and files, I included the properties files in WEB-APP directory, and when I run the application an error appears that says it can't find the property file; this file is used in a servlet. The web.xml file included in my application is the default one that is in the conf directory. I tried to solve the problem including the property file in all of the application directories and the same error appeared again. What could be the problem? My linux version is Red Hat 7.0 with glibc5.0. Thanks in advance, Ivan Gutierrez Garcia.
mod_jk.conf-auto source file
Which file is used to generate mod_jk.conf-auto from? Thanks, -_Rick Anderson __ Rick Anderson | [EMAIL PROTECTED] |_ Continuous Education Outreach Manager of Computer Systems, (732)932-5071 __
map_uri_to_worker problems?
Hi I've running Tomcat 3.2b6 with the mod_jk installed into apache as a work and I'm getting this error in my 'apache-tomcat' log not the /use/locla/tomcat/log/tomcat.log but the one I setup in /var/log/httpd/apache-tomcat.log [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match Anyone know what it means? -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- John Bateman Cyber World Group Inc.
Tomcat NT headaches...
I've installed Jakarta Tomcat on Windows NT and there are a couple of (seemingly un-related) problems: 1. When I go to %TOMCAT_HOME%\bin, and run "tomcat start", I get the following error message: "Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion' has value '1.3', but '1.2' is required." I have the exact same setup on my Windows2000 box, and it works just fine (with JRE set to 1.3). 2. I've set up the NT service using the jk_nt_service.exe, and when I try to launch it, I get an error dialog that says: "Could not start the JakartaTomcat service on \\COMSTOCK Error 2140: An internal Windows NT error occurred." I can configure the JRE to 1.2 in the registry, and it fixes problem #1, but does not fix problem #2. I really want to run this as a service, and only have to have one JRE/JDK on the box. I don't understand why it wants 1.2 on NT, but its OK with 1.3 on Windows2000. Thanks. James Iuliano Technical Lead 425-893-7242 mailto:[EMAIL PROTECTED]
Request for clarification - I.E. Tomcat mod_jk installed in Apache
Hi I've installed the mod_jk module into Apache, everything 'seems' to work fine. I've also configured a new App called "Servlets" just to test stuff. When I issue http://serverIP/Servlets/servlet/SampleCode The server says "404 cannot find file" and the logs claim "Cannot find file /path_to_this_context/Servlets/servlet/SampleCode When I issue: http://serverIP:8080/Servlets/servlet/SampleCode The Servlet runs fine. Why would I need to put the module 'inside' apache, if I'm required to run Tomcat as a process AND access my servlets on another port? Can I not just run it all off Tomcat standalone? I understand that Apache is more 'configurable' and handles static content better, but, I don't understand why I would add Tomcat into apache if I just access the same URL as I would if it was stand alone. Could I not get the same results leaving NOTHING extra inside Apache and referencing my Servlet files on the 8080 port (as tomcat stand alone)? Hope this wasn't too confusing. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- John Bateman Cyber World Group Inc.
Re: Problems finding properties files
You also can put any .properties files your apps use in TOMCAT_HOME/bin and they should find them. -Leon - Original Message - From: Ivan To: [EMAIL PROTECTED] Sent: Wednesday, November 01, 2000 12:41 PM Subject: RV: Problems finding properties files - Original Message - From: Ivan To: [EMAIL PROTECTED] Sent: Wednesday, November 01, 2000 6:31 PM Subject: Problems finding properties files Hello, I'm atomcat user, and I was trying to develop a web application, Iincluded the following lines in server.xml file Context path="/isover" docBase="webapps/isover" debug="0" reloadable="true"/Context and then I created the isover directory with the appropiate structure and files, I included the properties files in WEB-APP directory, and when I run the application an error appears that says it can't find the property file; this file is used in a servlet. The web.xml file included in my application is the default one that is in the conf directory. I tried to solve the problem including the property file in all of the application directories and the same error appeared again. What could be the problem? My linux version is Red Hat 7.0 with glibc5.0. Thanks in advance, Ivan Gutierrez Garcia.
talking to MS SQL server from Tomcat?
Is anyone talking to a MS SQL server database with Tomcat? I'm looking for a JDBC-OBDC bridge, and EasySoft's offering has been problematic. Does anyone have any other suggestions? -Rick [EMAIL PROTECTED]
Package.getPackage
Hi All, I've looked through the archives and don't see anything regarding this. I want to get the package version of my code and when I do: packRPC = Package.getPackage("com.mycompany.rpc"); I get back a null pointer. This code works under Netscape iPlanet. I suspect it is a Tomcat configuration issue. I currently have the class files un-JAR'd. Is this a problem? The reason I have them un-JAR'd is because I can't get the servlets to work at all when they are in a JAR file - in the CLASS directory, but it DOES find the lib classes in a JAR file in the lib directory. Any thoughts would be appreciated, Thanks in advance, Toby
RE: talking to MS SQL server from Tomcat?
Hi Your best bet is to check out the sun DB site at http://industry.java.sun.com/products/jdbc/drivers I like JDataConnect and Jssql myself but, they aren't free. -Original Message- From: Rick Castello [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 02, 2000 2:59 PM To: [EMAIL PROTECTED] Subject: talking to MS SQL server from Tomcat? Is anyone talking to a MS SQL server database with Tomcat? I'm looking for a JDBC-OBDC bridge, and EasySoft's offering has been problematic. Does anyone have any other suggestions? -Rick [EMAIL PROTECTED]
Re: Problems finding properties files
You also can put any .properties files your apps use in TOMCAT_HOME/bin and they should find them. Ok. you can even put then into tomcat classpath. But all those solutions are against Servlet/JSP spec. So, is it a bug in Tomcat? I'm talking about 3.2beta6. Same thing about loading jar-files from WEB-INF/lib or tomcat-home/lib. -- _ Alexander KoganParametric Technology Corporation [EMAIL PROTECTED] 128 Technology Drive, Waltham MA 02453
using postgres jdbc driver in tomcat
hello, im using the postgress jdbc driver in tomcat, with the poolman connection pooling package. it works well, but there is a strange limit on the lengths of texts that are possible to insert, i can only insert about 8k long texts using the setString function. does anybody have any experience with this problem? i tried the setCharacter steram functions, but they were unimplemented. (i realise this is sligthly off topic) -- Joakim Verona [EMAIL PROTECTED] http://www.verona.se/
Re: mod_jk.conf-auto source file
Rick Anderson wrote: Which file is used to generate mod_jk.conf-auto from? Thanks, -_Rick Anderson __ Rick Anderson | [EMAIL PROTECTED] |_ Continuous Education Outreach Manager of Computer Systems, (732)932-5071 __ IIRC it's from server.xml Robert M. Zigweid
Tomcat 4.0 m3, 4 sealing violation
Hi all, I get package sealing violations when I run my web app on Tomcat 4.0 m3 and m4. I never got these with previous releases, and it looks to me as if the cause is the addition of the sealed crimson.jar JAR file to the library. Problem is that my app uses JDOM b4, which is using Xerces 1.1.2, and Xerces contains a bunch of JAXP/DOM/SAX classes that also appear in crimson.jar (hence the sealing violation). Does anybody have any advice on how best to handle this situation? I guess that one way is to remove the duplicate classes from either crimson.jar or xerces_1_1_2.jar, but that seems less than ideal, and could easily lead to breakage. Maybe some solution involving loading the JARs with different class loaders? Thanks, Willie
Re: mod_jk.conf-auto source file
I am getting a java.lang.OutOfMemoryError while building Tomcat on RedHat Linux 6.2 with tomcat V. 3.2 . My problem starts when I try to build tomcat with ant (which I just compiled, and it went well). so here is a [snip!] of what I did. [root@node1 tomcat]# ../ant/bin/ant Buildfile: build.xml init: prepare: BUILD FAILED java.lang.OutOfMemoryError: at java.lang.StringBuffer.expandCapacity(StringBuffer.java:200) at java.lang.StringBuffer.append(StringBuffer.java:392) at java.io.UnixFileSystem.resolve(UnixFileSystem.java:92) at java.io.File.init(File.java:271) at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:637) at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:648) at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:648) [end snip!] Any suggestions??? John Elia 711.NET
Re: [ANNOUNCE] Tomcat 4.0 Milestone 4 - cocoon security problem?
"Craig R. McClanahan" wrote: We're pleased to announce the availabililty of milestone 4 of the Tomcat 4.0 servlet container and JSP engine. Compared to milestone 3, this release reflects the following changes: Come and get it! Got it! Ooops! I lost cocoon! 2872427 Oct 31 09:38 ../archive/jakarta-tomcat-4.0-20001031.tar.gz runs cocoon, 2870683 Nov 2 08:32 ../archive/jakarta-tomcat-4.0-m4.tar.gz does not. -- My installation procedure was to unzip (gzip) 4.0-m4, rename the directory to jakarta-tomcat, 'cp -r' [old]/webapps/cocoon to jakarta-tomcat/webapps cd to jakarta-tomcat and type bin/startup.sh. JSP and servlets otherwise look fine. -- Cocoon 1.8.1-dev Publishing Engine could not be initialized. java.lang.SecurityException: sealing violation at java.net.URLClassLoader.defineClass(URLClassLoader.java:234) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:648) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:987) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:906) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:648) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:987) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:906) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:648) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:987) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:906) at org.apache.cocoon.framework.Manager.create(Manager.java:91) at org.apache.cocoon.Engine.(Engine.java:139) at org.apache.cocoon.Engine.getInstance(Engine.java:223) at org.apache.cocoon.Cocoon.init(Cocoon.java:141) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:755) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:544) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:229) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:165) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:1876) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161) at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:343) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:159) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977) at
/servlet under NT
By some miracle I got this working under Mac OSX (BSD style), but now I need it under NT. I have some existing apps that require the serverts to by accessed under http://www.yourcompany.com/servlet/com.your.company.servlet So I need to setup a "/servlet" context right? I want these servlets (class files) to reside in "C:\Program Files\Apache Group\Apache\htdocs\servlets" I do not want anything in the TOMCAT_HOME tree. I also want JSP files to work from any web directory (think this works). So my question is, where do I put this? Do I use forward slashes or backslashes? On my OS X box I edited tomcat.properties to add a new zone called "servlets". I defined a properties files "servlet.properties" that specified a repository in the right directory. I then added "ApJServMount /servlet /servlets" to my tomcat.conf (which is included in httpd.conf). This worked fine. Is there some new way to do this with Tomcat? The way I am trying is more of a mod_JServ way. Thanks! Joe Laffey LAFFEY Computer Imaging St. Louis, MO - With no walls or fences on the Internet, who needs Windows or Gates? -
Re: Tomcat 4.0 m3, 4 sealing violation
Willie Wheeler wrote: Hi all, I get package sealing violations when I run my web app on Tomcat 4.0 m3 and m4. I never got these with previous releases, and it looks to me as if the cause is the addition of the sealed crimson.jar JAR file to the library. Problem is that my app uses JDOM b4, which is using Xerces 1.1.2, and Xerces contains a bunch of JAXP/DOM/SAX classes that also appear in crimson.jar (hence the sealing violation). Does anybody have any advice on how best to handle this situation? I guess that one way is to remove the duplicate classes from either crimson.jar or xerces_1_1_2.jar, but that seems less than ideal, and could easily lead to breakage. Maybe some solution involving loading the JARs with different class loaders? Thanks, Willie Welcome to the wonderful world of classloaders :-). You're correct -- trying to remove classes from one or the other of the JAR files is not going to work at all. Each library will be depending on its own internal implementation of those classes. The crimson.jar file is placed in $CATALINA_HOME/lib (and therefore visible to web apps) because Jasper needs a JAXP-1.1 compatible parser. It would be technically feasible for Jasper to load its own XML parser in a private classloader, but this is not a trivial amount of work. Once Xerces is upgraded to JAXP-1.1 compatibility you will simply be able to use Xerces instead (and thus not have these conflicts). If your app does not need JSP, you could simply remove crimson.jar from $CATALINA_HOME/lib (you will want to comment out the JSP servlet in $CATALINA_HOME/conf/web.xml as well). If you do, I'm afraid there isn't much that can be done in the short run until all the parsers catch back up with JAXP compatibility again. Craig McClanahan
Re: Tomcat ... sealing violation - [Cool! Answered before I get my message echoed ;)]
"Craig R. McClanahan" wrote: Willie Wheeler wrote: Hi all,
Re: [ANNOUNCE] Tomcat 4.0 Milestone 4 - cocoon security problem?
Ray Allis wrote: "Craig R. McClanahan" wrote: We're pleased to announce the availabililty of milestone 4 of the Tomcat 4.0 servlet container and JSP engine. Compared to milestone 3, this release reflects the following changes: Come and get it! Got it! Ooops! I lost cocoon! Groan ... BOY do I hate class loaders :-) Could you try me an experiment? * Comment out the servlet declaration for the JSP servlet in $CATALINA_HOME/conf/web.xml * Temporarily remove "crimson.jar" and "jaxp.jar" from $CATALINA_HOME/lib * Restart and see if Cocoon works The right long term answer is that Xerces becomes JAXP-1.1 compatible, so that system administrators can simply use that instead of Crimson if they want to. In the mean time, Jasper (the JSP servlet) has a requirement for Crimson because it is the only JAXP-1.1 compatible parser available (we needed the portable SAX2 support). If you need Cocoon *and* JSP, I don't have a good answer for you right at the moment ... Craig McClanahan
Re: using postgres jdbc driver in tomcat
On Thu, 2 Nov 2000, Joakim Verona wrote: hello, im using the postgress jdbc driver in tomcat, with the poolman connection pooling package. it works well, but there is a strange limit on the lengths of texts that are possible to insert, i can only insert about 8k long texts using the setString function. I don't know wether this is normal or not, but with SQL you can expect a low of irregular behaviour. fe, some SQL implementations don't allow all text in a VARCHAR (fi they don't like commas) so you have to PEM encode them. You can expect al sorts of other problems if you switch database. (i realise this is sligthly off topic) it is. Sloot.
Q: HotSpot Server VM 2.0
Can anyone tell me if there are issues using: Java 1.2.2, Win2K w/ IIS 5.0, Tomcat 3.1 WITH HotSpot Server VM 2.0 ? Does HotSpot work with the above configuration? I have found references to problems with Java 1.3 but nothing on 1.2.2. Thanks in advance, Todd
Re: Tomcat 4.0 Milestone 4 - cocoon security problem?
"Craig R. McClanahan" wrote: Could you try me an experiment? * Comment out the servlet declaration for the JSP servlet in $CATALINA_HOME/conf/web.xml I must not be commenting correctly; if I comment this out I get "Page contains no data" on http://memes.sea.boeing.com:8080 (index.html). * Temporarily remove "crimson.jar" and "jaxp.jar" from $CATALINA_HOME/lib * Restart and see if Cocoon works Well, yes! It does! Of course JSP doesn't. (web.xml is unchanged) If you need Cocoon *and* JSP, I don't have a good answer for you right at the moment ... Craig McClanahan Well, I -can- run two tomcats for a while; this is only a demo system, after all. (And actually I prefer XSP to JSP anyway ;)) Thanks! Ray Allis
RE: talking to MS SQL server from Tomcat?
WE use inet Opta 2000, which is a type 4. It costs about $600. WE have had no problems, it is very fast and does all the cool stuff like JNDI pooling and jdbc2.0, in particular we use the webrowset functionality for disconnected rowsets. -Original Message- From: Rick Castello [mailto:[EMAIL PROTECTED]] Sent: Friday, November 03, 2000 6:59 AM To: [EMAIL PROTECTED] Subject: talking to MS SQL server from Tomcat? Is anyone talking to a MS SQL server database with Tomcat? I'm looking for a JDBC-OBDC bridge, and EasySoft's offering has been problematic. Does anyone have any other suggestions? -Rick [EMAIL PROTECTED]
Out of Stack Space Problems Compiling JSP
Hey, We're running into a problem here where our JSP doesn't compile because of a stack space issue (see below). Any ideas what the underlying problem might be and how to fix it? Thanks, DM org.apache.jasper.JasperException: Unable to compile class for JSPThe compiler has run out of stack space. Consider using the "- J-oss" command line option to increase the memory allocated for the Java stack. at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException. (ServletException.java:107) at org.apache.jasper.JasperException. (JasperException.java:73) at org.apache.jasper.compiler.Compiler.compile(Compiled Code) at org.apache.jasper.runtime.JspServlet.loadJSP (JspServlet.java:413) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecess ary(JspServlet.java:149) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service (JspServlet.java:161) at org.apache.jasper.runtime.JspServlet.serviceJspFile (JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest (Compiled Code) at org.apache.tomcat.core.RequestDispatcherImpl.forward (RequestDispatcherImpl.java:163) at com.xxx.framework.HttpEvent.forward(HttpEvent.java:63) at com.xxx.listeners.StaticListener.executeEvent (StaticListener.java:82) at com.xxx.framework.HttpEventSwitch.executeEvent (HttpEventSwitch.java:10) at com.xxx.framework.xxx.doService(xxx.java:96) at com.xxx.framework.xxx.doGet(xxx.java:39) at javax.servlet.http.HttpServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest (Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest (ServletWrapper.java:597) at org.apache.tomcat.servlets.InvokerServlet.service (InvokerServlet.java:257) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest (Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnect ion(Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run (Compiled Code) at java.lang.Thread.run(Compiled Code)
Re: talking to MS SQL server from Tomcat?
If your Tomcat is running under NT, you can use the SUN ODBC-JDBC driver. Is good enough for most simple tasks. It it runs under other operating systems you may be in trouble.. Anyway, take a look at OpenLink (http://www.openlinksw.com/) they provide a JDBC type 3 or 4 for MS Sql. I haven't used it, but I understand that they provide client drivers and a server side component. Good luck, Julio Serje Calian Tech. - Original Message - From: Rick Castello [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 02, 2000 2:58 PM Subject: talking to MS SQL server from Tomcat? Is anyone talking to a MS SQL server database with Tomcat? I'm looking for a JDBC-OBDC bridge, and EasySoft's offering has been problematic. Does anyone have any other suggestions? -Rick [EMAIL PROTECTED]
Re: Changing Root
To configure the root just put an empty context path: Context path="" docBase="c:/Program Files/Calendra/cdm20/server-root" debug="0" reloadable="true" Julio Serje. Calian Tech. - Original Message - From: Alain Origlia To: [EMAIL PROTECTED] Sent: Thursday, November 02, 2000 1:46 PM Subject: Changing Root Hi, I useTomcat3.3 (a fresh nightly build 2000/10/31) in standalone mode, and I don't succeed in changing the root of the internal 8080 web server. I declared a new context in the server.xml file: Context path="/" docBase="c:/Program Files/Calendra/cdm20/server-root" debug="0" reloadable="true" RequestInterceptor className="org.apache.tomcat.request.SimpleRealm" filename="conf/example-users.xml" debug="0" / Logger name="cdm_log" path="logs/cdm.log" verbosityLevel = "INFORMATION" / ServletLogger name="cdm_servlet_log" path="logs/servlet_cdm.log" verbosityLevel = "INFORMATION" / /Context But I still have the default Tomcat Home Page when I ask for http://localhost:8080 Is it the right way to do this? Is it possible (!)? Is there another file to configure? Thanks P.S: this used to work with a previous version (3.2beta6) Alain Origlia CALENDRA135, rue du DirigeableZI Les Paluds13783 AUBAGNE CedexTel: +33 (0)4 42 18 69 90http://www.calendra.com
Where to put my own class after combined with apache?
Here is my problem! org.apache.jasper.JasperException: Unable to compile class for JSP/usr/local/jakarta-tomcat/work/localhost_8080/_0002fnew_0002fcn_0002fclients_0002fclients_0002ejspclients_jsp_0.java:92: Class n_00025w.cn.clients.Replace not found in type declaration. Replace myReplace = null; ^ I have install Apache+ Tomcat +Mysql on my Cobalt3 (Linux 2.2.14C10), and everything goes well. But when I use a bean, the problem is coming. I have put "Replace.class" under "ROOT/WEB-INF/classes/", WEB-INF/classes under my webroot and ${TOMCAT_HOME}/lib, but it still can not be pick out by the CAT. And an other thing happened, when I add "package org.gjt.mm.mysql" to the header of my class and put it to the jar file of JDBC. It can be found by "org.gjt.mm.mysql.Replace", is it funny? So I decide that I have not import some of class ,such as "java.io.*". And I add all the classes imported by the JDBC to it, but it still can not work alone by "Replace". By the way , I using the bean as follow: jsp:useBean id="myReplace" class="Replace" scope="page" / So any hints will be appreciated! Wairting for you help! Comman Song Consultant [EMAIL PROTECTED] --- www.protime.com.cn Protime Consulting - We build your Internet success Tel: 53062999x123 Fax: 63852929 11A China Overseas Building, 398 Huai Hai (M) Rd., 200020, Shanghai, China
Re: Problem with tomcat-apache
I think you don't need to modify tomcat.conf to set up a new context. Modify only server.xml as per the documentation, and it should work fine. If you are working with servlets modify web.xml to map them to directories. Julio Serje Calian Tech. - Original Message - From: Abhiman Srikant [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 01, 2000 10:59 AM Subject: Problem with tomcat-apache Hi, I am trying to set up a context on tomcat by name "ept" Here are my entries in tomcat.conf --- All jsp files will go to tomcat ApJServMount default /root AddType text/jsp .jsp AddHandler jserv-servlet .jsp ## Context mapping - all requests go to tomcat ApJServMount /examples /root ApJServMount /ept /usr/home/httpd/html/epttest/test ## Context mapping - you need to "deploy" # ( copy or ln -s ) the context into htdocs ## # ApJservMount /CONTEXT/servlet /root # Location /CONTEXT/WEB-INF/ # AllowOverride None # deny from all # /Location ApJservMount /ept/servlet /ept Location /ept/WEB-INF/ jserv-servlet *.jsp AllowOverride None deny from all /Location /IfModule --- Here are my entries for server .xml - Context path="/ept" docBase="/usr/home/httpd/html/epttest/test" debug="9" reloadable="true" /Context -- - Surprisingly here is the entry that comes into tomcat-apache.conf -- - AddType test/jsp .jsp AddHandler jserv-servlet .jsp Alias /ept /usr/local/tomcat/webapps/ept Directory "/usr/local/tomcat/webapps/ept" Options Indexes FollowSymLinks /Directory ApJServMount /ept/servlet /ept Location /ept/WEB-INF/ AllowOverride None deny from all /Location -- -- Is there a reason for this?? Am I missing something?? Any help would be appreciated. Thanks Abhi
Re: where can i get pay by incident or something for java servlet development
Anyone know if Covalent Technologies supports Tomcat, since it's an Apache Group product? We use Covalent for pay-per-incident support for Apache where I work and the support has been good. http://www.covalent.net/ If you are not using Tomcat, try calling the vendor of your servlet engine. On Thursday 02 November 2000 09:22, you wrote: i have been looking all over for answers to my question/problem and have not gotten it resolved yet. my client is growing very concerned, as am i. anyone know where i can get some pay by incident support or does anyone want to volunteer to have me call them or email them directly for help? btw: my problem was with passing data from a servlet to a jsp page. cheers, david j harding
RE: Tomcat as a service on NT
Hi, When I mistakely setenv TOMCAT_HOME to a wrong path, it gave the same error message. That meansjavax can not find the main program to run. I suggest you tocheck your environment variable. Hope it help. Liming Xie [EMAIL PROTECTED] -Original Message-From: Jos?Luis Gómez Bocanegra [mailto:[EMAIL PROTECTED]]Sent: Thursday, November 02, 2000 7:09 PMTo: [EMAIL PROTECTED]Subject: Tomcat as a service on NT Hi Tomcat team, I'm trying to use Tomcat as a service on NT, but I can see an error in stderr.log file, this error is: java.lang.NoClassDefFoundError: javax/xml/parsers/SAXParserFactory Where can I find this class? My CLASSPATHcontains: jaxp.jar, jasper.jar, webserver.jar and parser.jar, the jar files that contains Tomcat version 3.2 beta 6. Could you tell me what jar file/s I need?? Thanks.
Re: Where to put my own class after combined with apache?
comman wrote: Here is my problem! org.apache.jasper.JasperException: Unable to compile class for JSP/usr/local/jakarta-tomcat/work/localhost_8080/_0002fnew_0002fcn_0002fclients_0002fclients_0002ejspclients_jsp_0.java:92: Class n_00025w.cn.clients.Replace not found in type declaration. Replace myReplace = null; ^ By the way , I using the bean as follow: jsp:useBean id="myReplace" class="Replace" scope="page" / That may be your problem - class= MUST give the complete package and class due to the way Tomcat does the instantiation. -- WBB - [EMAIL PROTECTED] Chief Scientist, LANWrights, Inc. Java Programmer Certification information and mock exam at http://www.lanw.com/java/javacert/
RE: talking to MS SQL server from Tomcat?
Rick, We use JDataConnect with SQL Server 7 without issue. There is a free trial version, but the production version costs. Try http://www.j-netdirect.com Hope this helps, Todd -Original Message- From: Rick Castello [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 2, 2000 2:59 pm To: [EMAIL PROTECTED] Subject: talking to MS SQL server from Tomcat? Is anyone talking to a MS SQL server database with Tomcat? I'm looking for a JDBC-OBDC bridge, and EasySoft's offering has been problematic. Does anyone have any other suggestions? -Rick [EMAIL PROTECTED]
Shutting down Tomcat on HP-UX
I'm having a hard time shutting down tomcat 3.2b6 on HP-UX. It takes 3 to 4 shutdowns before the jvm is released from tomcats grasp, I have to manually kill the PID. Is there a know bug on this, a work around or is there a configuration problem. Thank You Kurt R. Hoehn Etech Studios, Inc.
Re: Apache/Tomcat Setup on Win2000 Professional
Don: I suspect that your JAVA_HOME environmental variable is not properly set. javac is required for compilation of JSPs, and is probably not being found. Try including SET JAVA_HOME=C:\JDK1.3\ in your startup.bat file. Then try the test JSPs. Bo Simon Lam wrote: Dear Don Lee, You'd better post your tomcat-apache.conf here. At 2000-10-31 11:42:00 you wrote: Hi, I'm trying to run Apache/Jakarta-Tom cat on Windows 2000 Professional but it's not successful. If anyone has suggestion/input about what I did for setup, I'll eternally appreciate it. (Please bear in mind that I'm a beginner in Java/JSP/Apache world) Again, my OS is Windows 2000 Professional, not unix. (1) JDK1.3 Downloaded JDK1.3 and installed under c:\jdk1.3. Set the path value for C:\jdk1.3\bin;C:\jdk1.3\lib. (from System property GUI not from autoexec.bat) (2) Apache Downloaded apache_1_3_12_win32.exe. Installed under C:\program Files\Apache Group\Apache Added "ServerName localhost" on \conf\httpd.conf (actual line doesn't have quotes) (3) Jakarta-Tomcat Downloaded jakarta-tomcat Win32 version. Installed under C:\program files\apache group\jakarta-tomcat (4) Mod_jserv Downloaded ApacheModuleJServ.dll Installed under C:\Program files\apache group\apache\modules Registered dll with regsrv32.exe (5) httpd.conf edit Include "C:/program files/apache group/jakarta-tomcat/conf/tomcat-apache.conf" to the end. Start tomcat using \bin\startup.bat. Start Apache. After I did all these steps, I tried with http://localhost:8080/ , it's working. I can see html files. Also, I can execute sample serverlets that come with tomcat-jakarta. But when I tried to execute sample jsp files, I'm getting 500 error. What am I doing wrong here? Any input will be greatly appreciated. Don Regards, Z Simon Lam Z z z ||| m(_ _)m Simon Lam(Lin Yang) ICQ:33310990 Email: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] ___ _ _ / __(_)_ __ ___ _ _ | | __ _ _ __ \__ \ | ' \/ _ \ ' \ | |__/ _` | ' \ |___/_|_|_|_\___/_||_| |\__,_|_|_|_| -- /** * Robert (Bo) Jordan 919/362.1205 office * [EMAIL PROTECTED]919/362.1301 fax * http://bo.cornbreadtree.org 919/454.5704 mobile/voicemail **/
[jBoss-User] Naming exception in standalone Tomcat
Hello, Sorry for raising this topic again, but I just want to clear up this. I'm running jboss BETA-PROD-03 and Tomcat 3.2 beta6 completely separately (no integration at all!) under JDK 1.3 The following problem appears when I following the recommendation from jboss "Manual": M jBoss Libraries M The following jBoss libraries should be copied to web app/WEB-INF/lib:M jboss-client.jar, jnp-client.jar, ejb.jar, jta-spec1_0_1.jar M M JNDI Configuration M The jndi.properties files should be copied to web app/WEB-INF/classes M M EJB Client Code M The EJB client code should go in web app/WEB-INF/classes In such configuration I always get the NoInitialContextException javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory. Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java, Compiled Code) at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java, Compiled Code) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java, Compiled Code) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java, Compiled Code) at javax.naming.InitialContext.init(InitialContext.java, Compiled Code) at javax.naming.InitialContext.init(InitialContext.java, Compiled Code) at engas.client.EngasClient.setInitialContext(EngasClient.java, Compiled Code) at engas.web.Engas.init(Engas.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java, Compiled Code) [...] This problem does NOT occurs when I add all jboss jars and jndi.properties into Tomcat CLASSPATH. Is it Tomcat's problem or mine (wrong DNA or something)? My deployment descriptor looks like that: ~/Engas/demo0: jar -tf build/engas.war WEB-INF/ WEB-INF/web.xml WEB-INF/lib/jboss-client.jar WEB-INF/lib/jnp-client.jar WEB-INF/lib/ejb.jar WEB-INF/lib/jta-spec1_0_1.jar WEB-INF/lib/JettyUtil.jar WEB-INF/lib/xerces.jar WEB-INF/lib/jdom.jar WEB-INF/classes/engas/ WEB-INF/classes/engas/core/ WEB-INF/classes/engas/core/EngasException.class WEB-INF/classes/engas/core/XmlDescriptor.class WEB-INF/classes/engas/client/ WEB-INF/classes/engas/client/EngasCSClient.class WEB-INF/classes/engas/client/GenericClient.class WEB-INF/classes/engas/client/EngasClient.class WEB-INF/classes/engas/web/ WEB-INF/classes/engas/web/EngasServlet.class WEB-INF/classes/engas/web/Engas.class WEB-INF/classes/jndi.properties META-INF/ META-INF/MANIFEST.MF portal.jsp portalErrorPage.jsp engasTitle.jsp toolbar.jsp softcomp.jsp software.jsp portal1.jsp images/ [...] Thanks in advance. -- _ Alexander KoganParametric Technology Corporation [EMAIL PROTECTED] 128 Technology Drive, Waltham MA 02453 -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
Re: [jBoss-User] Naming exception in standalone Tomcat
This is something that used to work and seems to have stopped working. It's not clear whether it was a Tomcat change or a jBoss change that caused the problem, but we are aware of it. As a workaround, you can manually load the jndi.properties file into a properties object or the system properties. Also, the new embedded tomcat service should solve that problem if you're running the two products in the same VM, but the directions for that are not yet in the manual. For the benefit of the Tomcat folks, I think the JNDI code uses getResources to look for jndi.properties, which is not implemented in AdaptiveClassLoader, but I'm pretty sketchy on that, and I don't know why it would have worked before (unless this was caused by one of the Linux JDK 1.3 updates?). Unfortunately the JNDI code is pretty grim. Aaron On Thu, 2 Nov 2000, Alexander Kogan wrote: Hello, Sorry for raising this topic again, but I just want to clear up this. I'm running jboss BETA-PROD-03 and Tomcat 3.2 beta6 completely separately (no integration at all!) under JDK 1.3 The following problem appears when I following the recommendation from jboss "Manual": M jBoss Libraries M The following jBoss libraries should be copied to web app/WEB-INF/lib: M jboss-client.jar, jnp-client.jar, ejb.jar, jta-spec1_0_1.jar M M JNDI Configuration M The jndi.properties files should be copied to web app/WEB-INF/classes M M EJB Client Code M The EJB client code should go in web app/WEB-INF/classes In such configuration I always get the NoInitialContextException javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory. Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java, Compiled Code) at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java, Compiled Code) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java, Compiled Code) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java, Compiled Code) at javax.naming.InitialContext.init(InitialContext.java, Compiled Code) at javax.naming.InitialContext.init(InitialContext.java, Compiled Code) at engas.client.EngasClient.setInitialContext(EngasClient.java, Compiled Code) at engas.web.Engas.init(Engas.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java, Compiled Code) [...] This problem does NOT occurs when I add all jboss jars and jndi.properties into Tomcat CLASSPATH. Is it Tomcat's problem or mine (wrong DNA or something)? My deployment descriptor looks like that: ~/Engas/demo0: jar -tf build/engas.war WEB-INF/ WEB-INF/web.xml WEB-INF/lib/jboss-client.jar WEB-INF/lib/jnp-client.jar WEB-INF/lib/ejb.jar WEB-INF/lib/jta-spec1_0_1.jar WEB-INF/lib/JettyUtil.jar WEB-INF/lib/xerces.jar WEB-INF/lib/jdom.jar WEB-INF/classes/engas/ WEB-INF/classes/engas/core/ WEB-INF/classes/engas/core/EngasException.class WEB-INF/classes/engas/core/XmlDescriptor.class WEB-INF/classes/engas/client/ WEB-INF/classes/engas/client/EngasCSClient.class WEB-INF/classes/engas/client/GenericClient.class WEB-INF/classes/engas/client/EngasClient.class WEB-INF/classes/engas/web/ WEB-INF/classes/engas/web/EngasServlet.class WEB-INF/classes/engas/web/Engas.class WEB-INF/classes/jndi.properties META-INF/ META-INF/MANIFEST.MF portal.jsp portalErrorPage.jsp engasTitle.jsp toolbar.jsp softcomp.jsp software.jsp portal1.jsp images/ [...] Thanks in advance.
AW: configure the tomcat for my own error page
We discussed that two days before!! But the answer from Kenneth was not properly displayed in my mail-program. Perhaps you had some problems, too. Here is the solution: Belong the Servlet-Spec 2.2 we have to edit web.xml like this: ... web-app ... error-page error-code404/error-code location/404.jsp/location /error-page /web-app 404.jsp has to be located in path_to_web_app/404.jsp Note that you can't use the name 404.html Tomcat hangs in an endless loop. If you use .jsp all is fine. Does anybody know if that is a tomcat's bug??? regards Thomas -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet am: Donnerstag, 2. November 2000 09:55 An: [EMAIL PROTECTED] Betreff: configure the tomcat for my own error page I want to configure the tomcat to use a given error page. How can I do that? Katrin Seiffert