tomcat.policy, SSL and SQL -> AccessControlException
hi all, i have troubles configuring the tomcat.policy file. my application reads some data from a mysql database running on port 3306, localhost. i use the org.gjt.mm.mysql classes to connect to it and everything run fine. i also use basic authentification with tomcat, the user data are also in the mysql database. now i want make everything secure. i tried a lot and i got nearly everything working fine. but i am not able to set the tomcat.policy, that the org.gjt.mm.mysql classes within my servlets are allowed to connect to the mysql database. tomcat.policy: //java. the org.gjt.mm.mysql jars are in jdk1.2.2/jre/lib/ext. grant codeBase "file:d:/jdk1.2.2/lib/-" {permission java.security.AllPermission;}; grant codeBase "file:d:/jdk1.2.2/jre/lib/-" {permission java.security.AllPermission;}; grant codeBase "file:d:/jdk1.2.2/jre/lib/ext/-" {permission java.security.AllPermission;}; // Tomcat gets all permissions. grant codeBase "file:d:/tomcat/lib/-" {permission java.security.AllPermission;}; grant codeBase "file:d:/tomcat/classes/-" {permission java.security.AllPermission;}; //my application directory grant codeBase "file:d:/tomcat/webapps/shv_wb/WEB-INF/classes/-" {permission java.security.AllPermission;}; grant codeBase "file:d:/tomcat/webapps/shv_wb/WEB-INF/lib/-" {permission java.security.AllPermission;}; it is realy confusing, because tomcat is able to read the authority-data for the basic authentification out of the database, but my servlets are not allowed to do this. i get this message from tomcat: java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:195) at java.security.AccessController.checkPermission(AccessController.java:403) at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) at java.lang.SecurityManager.checkConnect(SecurityManager.java:1019) at java.net.InetAddress.getAllByName0(InetAddress.java:565) at java.net.InetAddress.getAllByName0(InetAddress.java:546) at java.net.InetAddress.getByName(InetAddress.java:455) at java.net.Socket.(Socket.java:98) at org.gjt.mm.mysql.MysqlIO.(MysqlIO.java:114) at org.gjt.mm.mysql.Connection.(Connection.java:229) at org.gjt.mm.mysql.Driver.connect(Driver.java:126) at java.sql.DriverManager.getConnection(DriverManager.java:457) at java.sql.DriverManager.getConnection(DriverManager.java:137) at KMAnmeldungen.doGet(KMAnmeldungen.java:65) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:479) can anyone help? tanks a lot, gerd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Character encoding Resources
I read all of your comments about how you should implement character encoding and it is very us/euro-centric. I'm not griping about this (as I grew up in Philly) but this consideration obviously lends a consideration of the entire http protocol which as I understand is ascii based. If we are to accept that http wont change to accomodate the non-english speaking world any time soon than lets assume it will be ascii for the next x years. Therefore data on a web page can only exist in one encoding scheme at a time (not one character set, but one encoding scheme). What is the scheme that covers the most ground?UTF-8. But because web pages can refer to other data on servers which exist in other encodings, lets allow a webapp to set a default with the ability to override it on the page level. I hope my posting doesnt soound idiotic.
quick Tomcat question
SUB: is TOMCAT is a JSP ENGINE + SERVELET ENGINE or ONLY A JSP ENGINE.?? If it is JSP + Servelets then why we have to run JSDK for testing the JSP files.? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: how to upgrade JDK or JRE
Konnichi wa Kimi San !!! Its a good idea to uninstall older JDK/JRE cheers arnold - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: JDBC connectivity - java.sql.SQLException: No suitable driver
give the the path of mySQL driver JAR file in the CLASSPATH in the tomcat.sh file which is used to start tomcat thambi - Original Message - From: Dipankar Sinha To: [EMAIL PROTECTED] Cc: Ignacio J. Ortega Sent: Monday, February 05, 2001 4:52 AM Subject: JDBC connectivity - java.sql.SQLException: No suitable driver I am trying to host some webpages using Tomcat and when my webpage is being accessed, I am getting an error message on the linux console as: java.sql.SQLException: No suitable driverI have setup Tomcat-3.2.1 and Apache_1.3.14 with MySQL-3.23.31 under RedHatLinux 6.2. jdk1.3 is installed under /usr/java. Tomcat, Apache and MySQL are basically working fine I have to setup login authentication from the webpages accessing data from MySQL (name of database is test, no user, no password). I am trying to use MM.MySQL for JDBC connectivity to MySQL As indicated in Tomcat/MM.MySQL documentation, I have tried as follows:1. Modified $TOMCAT_HOME/conf/server.xml to add following lines: className="org.apache.tomcat.request.JDBCRealm" debug="99" driverName="org.gjt.mm.mysql.Driver" connectionURL="jdbc:mysql://localhost/test''" />2. I tried dropping mm.mysql-2.0.4-bin without un jaring under $TOMCAT_HOME/lib Tomcat starts without any error but does not confirm Database connection. Further when I am trying to stop Tomcat, I am getting additional error message as:java.lang.NullPointerExceptionIn a separate environment, I have used NT4.0, JavaWebserver, MySQL and ODBCdriver. Every thing is working over there including database access from the sameWebPages etc.Can somebody help?Thanks a million in advance.Dipankar
tomcat server stop without giving error
I am running tomcat 3.2.1 with Apache 1.3.12 . The tomcat server stopped more than thrice a day. I don't know what may be problem Can anyone help me in this. My server is Redhat 6.2 , Apache 1.3.12 , Tomcat 3.2.1 thanks thambi
Re: Apache - tomcat interaction
On Sun, Feb 04, 2001 at 08:55:05PM -0800, Ajayi-Obe, Martin-SAN FRANCISCO wrote: > I have installed Apache and Tomcat. I fully configured the server and it > works. However, my application is configured with action servlets. Action > classes have been defined. > This application works well when run server from Tomcat:8080 > > When run from Apache:80, connected to Tomcat thru Mod_Jserv:8007, the > default home page shows, in fact, all jsp pages show ok, but the navigation > action classes just won't execute. I can't go to links with urls like > "http://localhost:9000/servername/nav.do?p=ConsForeign" However all classes > are well defined. It works in Tomcat. What should I do to make it work? Educated guess here: Check your ApJservMount directives in your httpd.conf (or mod_jserv.conf) and make sure you are sending all requests for 'servername' to Tomcat. I.e.: ApJServMount /servername /servername It sounds like you've correctly setup the jsp type handler but not the actual URL mapping that ApJServMount does -MM -- Michael Mealling| Vote Libertarian! | www.rwhois.net/michael Sr. Research Engineer | www.ga.lp.org/gwinnett | ICQ#: 14198821 Network Solutions | www.lp.org | [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
how to upgrade JDK or JRE
Simple question, When we upgrade JDK or JRE to newer version, Must I un-install old version of JDK and JRE? Or Can I install newer version on old JDK or JRE? Which is better? Thank you, Kimi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Apache - tomcat interaction
I have installed Apache and Tomcat. I fully configured the server and it works. However, my application is configured with action servlets. Action classes have been defined. This application works well when run server from Tomcat:8080 When run from Apache:80, connected to Tomcat thru Mod_Jserv:8007, the default home page shows, in fact, all jsp pages show ok, but the navigation action classes just won't execute. I can't go to links with urls like "http://localhost:9000/servername/nav.do?p=ConsForeign" However all classes are well defined. It works in Tomcat. What should I do to make it work? Pls respond. Thanx Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: JDBC connectivity - java.sql.SQLException: No suitable driver
Please check classpath. Before testing any jdbc connection using Tomcat, I run a simple java program that does dblook-up outside of Tomcat. This helps resolve any classpath/driver issues. - Original Message - From: Dipankar Sinha To: [EMAIL PROTECTED] Cc: Ignacio J. Ortega Sent: Sunday, February 04, 2001 3:22 PM Subject: JDBC connectivity - java.sql.SQLException: No suitable driver I am trying to host some webpages using Tomcat and when my webpage is being accessed, I am getting an error message on the linux console as: java.sql.SQLException: No suitable driverI have setup Tomcat-3.2.1 and Apache_1.3.14 with MySQL-3.23.31 under RedHatLinux 6.2. jdk1.3 is installed under /usr/java. Tomcat, Apache and MySQL are basically working fine I have to setup login authentication from the webpages accessing data from MySQL (name of database is test, no user, no password). I am trying to use MM.MySQL for JDBC connectivity to MySQL As indicated in Tomcat/MM.MySQL documentation, I have tried as follows:1. Modified $TOMCAT_HOME/conf/server.xml to add following lines: className="org.apache.tomcat.request.JDBCRealm" debug="99" driverName="org.gjt.mm.mysql.Driver" connectionURL="jdbc:mysql://localhost/test''" />2. I tried dropping mm.mysql-2.0.4-bin without un jaring under $TOMCAT_HOME/lib Tomcat starts without any error but does not confirm Database connection. Further when I am trying to stop Tomcat, I am getting additional error message as:java.lang.NullPointerExceptionIn a separate environment, I have used NT4.0, JavaWebserver, MySQL and ODBCdriver. Every thing is working over there including database access from the sameWebPages etc.Can somebody help?Thanks a million in advance.Dipankar
serializing some XML to a ServletOutputStream fails
Hi, I'm trying to serialize some XML out to a ServletOutputStream but the resulting XML on the client side contains corrupted Unicode characters (the DOM I'm serializing out contains Chinese, Korean, English, etc). Here's the code in question: response.setContentType("text/xml; charset=UTF-8"); ServletOutputStream out = response.getOutputStream(); out.print("\n" + "http://www.ietf.org/cnrp.dtd\">\n"); out.flush(); OutputFormat format = new OutputFormat(document); format.setOmitXMLDeclaration(true); format.setIndenting(true); // it makes debuggin easier format.setEncoding("UTF-8"); // this is the default anyway XMLSerializer serializer = new XMLSerializer(out, format); serializer.serialize(document.getDocumentElement()); The XML that the client gets is fine except that the non-ASCII subset of the UTF-8 encoded Unicode characters are garbled. I can serialize the XML out to a FileOutputStream and it works just fine. I'm running Tomcat 3.2.1 that's the backend for a remote Apache 1.3.17 server using ajp13 (and thus mod_jk). This code looks like its the right way to do this but either I've hit a bug or else I'm missing something (an encoding somewhere between a Stream and a Writer?) -MM -- Michael Mealling| Vote Libertarian! | www.rwhois.net/michael Sr. Research Engineer | www.ga.lp.org/gwinnett | ICQ#: 14198821 Network Solutions | www.lp.org | [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: JDBC connectivity - java.sql.SQLException: No suitable driver
Check your "classpath". Make sure that the JDBC jar file specified in your "classpath" is one in the same as that used by the development tool you are using to develop your Java app. Cheers, George - Original Message - From: Dipankar Sinha To: [EMAIL PROTECTED] Cc: Ignacio J. Ortega Sent: Monday, February 05, 2001 10:22 AM Subject: JDBC connectivity - java.sql.SQLException: No suitable driver I am trying to host some webpages using Tomcat and when my webpage is being accessed, I am getting an error message on the linux console as: java.sql.SQLException: No suitable driverI have setup Tomcat-3.2.1 and Apache_1.3.14 with MySQL-3.23.31 under RedHatLinux 6.2. jdk1.3 is installed under /usr/java. Tomcat, Apache and MySQL are basically working fine I have to setup login authentication from the webpages accessing data from MySQL (name of database is test, no user, no password). I am trying to use MM.MySQL for JDBC connectivity to MySQL As indicated in Tomcat/MM.MySQL documentation, I have tried as follows:1. Modified $TOMCAT_HOME/conf/server.xml to add following lines: className="org.apache.tomcat.request.JDBCRealm" debug="99" driverName="org.gjt.mm.mysql.Driver" connectionURL="jdbc:mysql://localhost/test''" />2. I tried dropping mm.mysql-2.0.4-bin without un jaring under $TOMCAT_HOME/lib Tomcat starts without any error but does not confirm Database connection. Further when I am trying to stop Tomcat, I am getting additional error message as:java.lang.NullPointerExceptionIn a separate environment, I have used NT4.0, JavaWebserver, MySQL and ODBCdriver. Every thing is working over there including database access from the sameWebPages etc.Can somebody help?Thanks a million in advance.Dipankar
Re: Can sendRedirect() be used to POST?
> Try Forwarding the request intstead... if the origional request was a > POST then the forwarded one will be as well. > Matt Goss >From what I gather from the specs -- and by the lack of this working in Tomcat -- you cannot forward to another system. RequestDispatcher.forward() appears to be limited to a particular context only. I tried to use the getServletConfig().getServletContext().getContext(https://another.computer.c om/) returns 'null' so I guess I can't get a context object for a URL that's not in the current tomcat server. Recall, I've got tomcat running on host1.com and would like to validate a login while on host1.com, and if all's okay, send them to host2.com. But I don't want host2.com to allow the user to come if they just typed in the URL directly, so I was hoping to pass "authorization data" from host1 to host2, but that info is probably too big to fit directly in a URL, which means that sendRedirect probably won't work for me. Is this even possible? It's a basic scheme of "single signon" so that when you sign in on host1.com, you can get to host2.com and it's webapp without having to login again. David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Lib Class can not be found problem
It looks like your app is hung at the Class.forName() method, which will reference a class loader. I seem to remember that there are some very special caveats about using a class loader from within a JSP... you somehow don't get access to the same classpath or scope for some reason, maybe security? Sorry I don't have any more details, but hopefully that will set you off in the right direction, or maybe cue someone else to add to this. Chris >> Original Message << On 2/4/01, 6:28:44 PM, Lifeng Xu <[EMAIL PROTECTED]> wrote regarding Lib Class can not be found problem: > Hi, > We are using Apache & Tomcat to host our jsp application, which in turn, > access ejbs running in Inprise AppServer. The whole application is on Linux > plateform. Now I am running into a problem that has been droven me crizy. > When I start my brower to access my jsp file, I got an error (see message > attached bellow) that says that Tomcat (or somebody else?) can't find the > javax.rmi.CORBA.Uril class. I double checked that I include the jar file > that contains this javax.rmi.CORBA.Uril class in 2 places: 1)Tomcat's > "tomcat.properties" file, using wrapper.classpath directive, and 2)In my > document root's WEB-INF/jar directory. It seems to me that it was taken, > because in the error message bellow I can see classes like > "com.inprise.vbroker.orb.CDRInputStream", which is in the same > jar file that contians the "missing" javax.rmi.CORBA.Uril file. But for some > reason it still says that it can't find > the Util class. It found one class from a jar file but can't find another > class existing in the same jar file! How can this be possible? Is this a > classpath issue? Is there anywhere else that I need to set classpath to? > Any thoughts will be highly appreciated. > Thank you in advance. > Lifeng > Error: 500 > Location: /memberLink/Login.jsp > Internal Servlet Error: > javax.servlet.ServletException: javax/rmi/CORBA/Util > at > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextI mp > l.java, Compiled Code) > at > _0002fLogin_0002ejspLogin_jsp_0._jspService(_0002fLogin_0002ejspLogin_jsp_ 0. > java, Compiled Code) > at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, > Compiled Code) > at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled > Code) > at > org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet. ja > va, Compiled Code) > at > org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java, > Compiled Code) > at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, > Compiled Code) > at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled > Code) > at > org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, > Compiled Code) > at > org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled > Code) > at > org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnecti on > (Ajp12ConnectionHandler.java, Compiled Code) > at > org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, > Compiled Code) > at java.lang.Thread.run(Thread.java, Compiled Code) > Root cause: > javax.servlet.ServletException: javax/rmi/CORBA/Util > at > _0002fLogin_0002ejspLogin_jsp_0._jspService(_0002fLogin_0002ejspLogin_jsp_ 0. > java, Compiled Code) > at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, > Compiled Code) > at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled > Code) > at > org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet. ja > va, Compiled Code) > at > org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java, > Compiled Code) > at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, > Compiled Code) > at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled > Code) > at > org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, > Compiled Code) > at > org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled > Code) > at > org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnecti on > (Ajp12ConnectionHandler.java, Compiled Code) > at > org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, > Compiled Code) > at java.lang.Thread.run(Thread.java, Compiled Code) > Root cause: > java.lang.NoClassDefFoundError: javax/rmi/CORBA/Util > at javax.rmi.CORBA.Stub.(Stub.java:43) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java, Compiled Code) > at > com.inprise.vbroker.orb.CDRInputStream.class$(CDRInputStream.java, Compiled > Code) > at > com.inprise.vbroker.orb.CDRInputStream.read
Re: Problem with response.sendRedirect
It really sounds like a browser problem. There's not much you can do to the JSP other than to try changing the redirection to/from a relative/absolute URL (if possible) to see if that makes a difference with your browser. The next obvious suggestion is to verify the problem on a different browser. >> Original Message << On 2/4/01, 6:26:46 PM, Melissa Matthews <[EMAIL PROTECTED]> wrote regarding Problem with response.sendRedirect: > I am using the sendRedirect method from a JSP page to send a user to another > JSP page after logging in. While it does redirect to the correct page, the > fonts, images etc. are not right until I hit the refresh. If I go to the > exact same page in my browser, it's fine. > Is the redirect doing something that loses or changes the paths for files > that are included? > Melissa Matthews > Product Development Manager > Packexpo.com > Phone 703.205.9256 > Fax 703.205.2961 > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
JDBC connectivity - java.sql.SQLException: No suitable driver
I am trying to host some webpages using Tomcat and when my webpage is being accessed, I am getting an error message on the linux console as: java.sql.SQLException: No suitable driverI have setup Tomcat-3.2.1 and Apache_1.3.14 with MySQL-3.23.31 under RedHatLinux 6.2. jdk1.3 is installed under /usr/java. Tomcat, Apache and MySQL are basically working fine I have to setup login authentication from the webpages accessing data from MySQL (name of database is test, no user, no password). I am trying to use MM.MySQL for JDBC connectivity to MySQL As indicated in Tomcat/MM.MySQL documentation, I have tried as follows:1. Modified $TOMCAT_HOME/conf/server.xml to add following lines: className="org.apache.tomcat.request.JDBCRealm" debug="99" driverName="org.gjt.mm.mysql.Driver" connectionURL="jdbc:mysql://localhost/test''" />2. I tried dropping mm.mysql-2.0.4-bin without un jaring under $TOMCAT_HOME/lib Tomcat starts without any error but does not confirm Database connection. Further when I am trying to stop Tomcat, I am getting additional error message as:java.lang.NullPointerExceptionIn a separate environment, I have used NT4.0, JavaWebserver, MySQL and ODBCdriver. Every thing is working over there including database access from the sameWebPages etc.Can somebody help?Thanks a million in advance.Dipankar
Lib Class can not be found problem
Hi, We are using Apache & Tomcat to host our jsp application, which in turn, access ejbs running in Inprise AppServer. The whole application is on Linux plateform. Now I am running into a problem that has been droven me crizy. When I start my brower to access my jsp file, I got an error (see message attached bellow) that says that Tomcat (or somebody else?) can't find the javax.rmi.CORBA.Uril class. I double checked that I include the jar file that contains this javax.rmi.CORBA.Uril class in 2 places: 1)Tomcat's "tomcat.properties" file, using wrapper.classpath directive, and 2)In my document root's WEB-INF/jar directory. It seems to me that it was taken, because in the error message bellow I can see classes like "com.inprise.vbroker.orb.CDRInputStream", which is in the same jar file that contians the "missing" javax.rmi.CORBA.Uril file. But for some reason it still says that it can't find the Util class. It found one class from a jar file but can't find another class existing in the same jar file! How can this be possible? Is this a classpath issue? Is there anywhere else that I need to set classpath to? Any thoughts will be highly appreciated. Thank you in advance. Lifeng Error: 500 Location: /memberLink/Login.jsp Internal Servlet Error: javax.servlet.ServletException: javax/rmi/CORBA/Util at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java, Compiled Code) at _0002fLogin_0002ejspLogin_jsp_0._jspService(_0002fLogin_0002ejspLogin_jsp_0. java, Compiled Code) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va, Compiled Code) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) Root cause: javax.servlet.ServletException: javax/rmi/CORBA/Util at _0002fLogin_0002ejspLogin_jsp_0._jspService(_0002fLogin_0002ejspLogin_jsp_0. java, Compiled Code) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va, Compiled Code) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) Root cause: java.lang.NoClassDefFoundError: javax/rmi/CORBA/Util at javax.rmi.CORBA.Stub.(Stub.java:43) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java, Compiled Code) at com.inprise.vbroker.orb.CDRInputStream.class$(CDRInputStream.java, Compiled Code) at com.inprise.vbroker.orb.CDRInputStream.read_Object(CDRInputStream.java, Compiled Code) at com.inprise.vbroker.orb.CDRInputStream.read_Object(CDRInputStream.java, Compiled Code) at com.inprise.vbroker.orb.AnyImpl.read_value(AnyImpl.java, Compiled Code) at com.inprise.vbroker.orb.RequestImpl._invoke(RequestImpl.java, Compiled Code) at com.inprise.vbroker.orb.RequestImpl.invoke(RequestImpl.java, Compiled Code) at org.omg.CosNaming._NamingContextStub.resolve(_NamingContextStub.java, Compiled Code) at com.inprise.ejb.NamingContextWrapper.resolve(NamingContextWrapper.java, Compiled Code) at org.omg.CosNaming.NamingContextPOA._invoke(NamingContextPOA.java, Compiled Code) at org.omg.CosNaming.NamingContextExtPOA._invoke(NamingContextExtPOA.java, Compiled Code) at com.inprise.vbroker.poa.POAImpl.invoke(POAImpl.
Problem with response.sendRedirect
I am using the sendRedirect method from a JSP page to send a user to another JSP page after logging in. While it does redirect to the correct page, the fonts, images etc. are not right until I hit the refresh. If I go to the exact same page in my browser, it's fine. Is the redirect doing something that loses or changes the paths for files that are included? Melissa Matthews Product Development Manager Packexpo.com Phone 703.205.9256 Fax 703.205.2961 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
test
This is just a test of my subscribing to the list. Pleas disregard it... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: JNDI and Tomcat and XALANJ2
Many thanks Simon!! I finally go around to applying this fix. It worked! Also I had to place the jndi.properties file under TOMCAT_HOME/classes So much for portability... Great...then the next error which was resolved quickly regarding the use of XALANJ2 ... In the startup scripts, I had to put the xerces and xalan jars before the jaxp and parser jars...otherwise all hell breaks loose I think the XALAN folks noted problems with JRUN, but this seems to be also with Tomcat... perhaps someone has a better solution than hardcoding the workaround in the start up script regards bob On Tue, 23 Jan 2001 14:40:43 +0100 "Simon Oldeboershuis, outermedia" <[EMAIL PROTECTED]> wrote: > Bob Mulrenin schrieb: > > > > I am using JNDI and RMI -- > > Has anyone used JNDI with Tomcat? Both Linux and NT give me difficulty. > > > > JNDI looks like my problem ... I have the jndi.properties files > > referred to in many classpathswhether it be automatic under the web > > app classes folder, etc. > > > > Thanks! > > > > Bob > > > Hi Bob, > > I had a lot of problems with jndi and rmi. My first solution was to put > all classes and properties into > tomcat/lib/*.jar > tomcat/classes > BUT this destroys the separation of the different webapps. > > If you are using jdk1.2 or higher you can put the following into your > server.xml > copy_ > className="org.apache.tomcat.request.Jdk12Interceptor" > debug="0" /> > paste > Now, every thread get the correct web application dependent classloader. > Everything is fine, IF ALL jndi/rmi depending classes are located in the > corresponding application dirs > WEB-INF/classes > WEB-INF/lib/*.jar > > I hope this helps. > simon > > PS: I do not know if I have given a correct "general" solution or if I > described the problem correctly. But a solution for this problem should > be listed in some FAQ or in a user guide. I invested a lot of time to > find a solution. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > Bob Robert Mulrenin SalzburgNewMediaLab Salzburg Research Forschungsgesellschaft m.b.H Jakob-Haringer-Strasse 5/III A-5020 Salzburg AUSTRIA phone: +43-662-2288-402 fax: +43-662-2288-222 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: startup
Alfred Tsang wrote: > Thanks.. but, how to fix the problem? What problem? > I have only double clicks the startup.bat at tomcat/bin, and it stops at > PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 Well, that _IS_ what it should do; Tomcat doesn't generate any other (console) output as long as there are no errors - it's just sitting there waiting for clients to connect. Point your browser to http://localhost:8080/ and you should get the Tomcat example webpages served by Tomcat. What else did you expect to happen after starting a server, anyway? -- Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria Music: http://www.mp3.com/Leak --- Work: http://www.ssw.uni-linz.ac.at ...It might be written "Mindfuck", but it's spelt "L-A-I-N"... np: Pole - Fragen (CD 1) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Apache mod_ssl and knowing crypto bit length
> The mod_ssl log file ssl_engine_log shows the Protocol, Cipher and bit > length. When I use the environment variable SSL_CIPHER, it doesn't include > the number of bits, only something like RC4-MD5 A quick check of modssl.org shows that the environment variable is called SSL_CIPHER_USEKEYSIZE (I think this is what I want). My httpd.conf does export +StdEnvVars, but when Tomcat mod_jk.conf file documents several mappings for environment variables, but the choice is limited and doesn't include SSL_CIPHER_USEKEYSIZE. I did configure apache with "JkExtractSSL On" and the SSLOptions include +StdEvnVars (not +ExportCertData because I don't care about client certs). Would I extract these using request.getHeader() ? David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Apache mod_ssl and knowing crypto bit length
What's the trick for retriving the number of crypto bits used in SSL from a JSP/servlet if I'm using Apache mod_ssl with OpenSSL? The mod_ssl log file ssl_engine_log shows the Protocol, Cipher and bit length. When I use the environment variable SSL_CIPHER, it doesn't include the number of bits, only something like RC4-MD5 We'd like to provide a warning to customers who are using a sub-128 bit browser. Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: adding dynamic content to
Just a guess... I've had several problems where the compiled page screws up when it hits quotes. Try changing the double quotes (") to single ('), or none at all. Also be sure to declare your variables: <%!int jspID;%> or whatever, so it is in scope. Chris >> Original Message << On 2/4/01, 1:03:22 PM, "David Treves" <[EMAIL PROTECTED]> wrote regarding adding dynamic content to : > Hi, I tried to create a page which dynamically will add an id to each user > who enters the page, this id should be used by an applet. In order to do so > I used JSP to create that id, and now I am trying to insert that number as a > parameter to the applet: > width="300"> > > > > > oopsss... can't load the applet! > > > Only that the "<%=jspID%> is not allowed by the Tomcat, it tells me that the > attribute (id) has no value. > Is there a problem with giving params values that way? > Thanks, > David. > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
adding dynamic content to
Hi, I tried to create a page which dynamically will add an id to each user who enters the page, this id should be used by an applet. In order to do so I used JSP to create that id, and now I am trying to insert that number as a parameter to the applet: oopsss... can't load the applet! Only that the "<%=jspID%> is not allowed by the Tomcat, it tells me that the attribute (id) has no value. Is there a problem with giving params values that way? Thanks, David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Which JVM for Tomcat?
Sorry if I mis-spoke, Java 3D is not included in the core classes of jdk 1.3. It is a separate download and is in beta 1.21 at the moment (an early access product). You can download a version of the jdk with Java 3d as an executable file, it will automatically upgrade your current jdk and jre if you like. I am not using this version on my server but on a separate computer. Beware, it requires a fast computer for the rendering. Not quite ready for prime time. :0) Jdk 1.3 is faster then 1.2. IBM's 1.3 is said to be good as well. Regards, Craig -Original Message- From: Chris Janicki [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 04, 2001 8:58 AM To: [EMAIL PROTECTED] Subject: Re: Which JVM for Tomcat? Importance: High Check out this bug before you commit to 1.3 for production: 4293268 (on Sun's Java Bug Parade) It's a rare bug on slow apps, but a killer if your JVM is heavily loaded. >> Original Message << On 1/25/01, 3:02:50 PM, "Michael G. Anderson" <[EMAIL PROTECTED]> wrote regarding Re: Which JVM for Tomcat?: > Hi Craig, > When did Sun incorporate JAVA 3D into the core classes -- if I read your post > correctly? > regard, > mike anderson > Craig O'Brien wrote: > > Hello forsythe, > > > > I recommend downloading the Java 1.3 SDK. I believe it is final now..? It > > outperforms earlier versions and would be the best choice for your server. > > If you are downloading at 56k - ...oh well, just do it. It also includes > > all of the latest features (java 2d, java 3d, java media, etc.) It is > > stable and is a good performer. You need a good compiler for JSP pages. > > > > For applets, you are stuck with 1.1 and earlier if you want the majority of > > your visitors to make use of them. The plug in is a 2-3 meg download and it > > is unreasonable to expect a visitor to download that. There is also a bug > > in Sun's delivery system currently which doesn't allow Internet Explorer to > > download the plug in anyway. You will receive the latest plug in with your > > version 1.3. You can still compile your applets with depreciated methods. > > You can install multiple JDKs of different versions on the same machine. > > > > Good luck, > > Craig > > > > -Original Message- > > From: forsythe [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, January 23, 2001 6:21 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Which JVM for Tomcat? > > > > > Also I will also have APPLETS running in addition to servlets & JSPson > > this > > > server... So if I create a JAVA2 APPLET that WILL require a user download, > > > right? Right. > > > > Fine. What has that got to do with Tomcat or the JVM you are installing > > on your server? Nothing. Right? Right. > > > > > If you read carefully I asked "Which jvm works BEST" The Best. BEST. Ok > > one > > > more time " THE BEST" I Tomcat supports ALL JVMs, I'm asking if people > > have > > > preferences based off experience. > > > > Best for what. FOR WHAT? Ever hear of requirements? Right? Right. > > > > > Hey 'Charles' I think you should try to learn how not to be a prick while > > > answering people questions. Ass. > > > > OK. Tomorrow I will be nicer. I doubt that you will be any smarter. > > > > -- Charles > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Can't see line numbers in exceptions
Angus M wrote: > > William Brogden wrote: > > > > Angus M wrote: > > > > > > When I dump a stack trace the the brower or to the tomcat log I can seem > > > to see the line numbers in the trace. How do I turn this on? > > > > > > build.xml snippet: > > > > > > > >classpath="${deploy.home}/WEB-INF/classes" > > >debug="on" optimize="off" deprecation="off"/> > > > > > > > > > > > > > > > > > > Stack Trace: > > > java.lang.NullPointerException > > > at org.phoenix.bugbase.Frame.doGet(Frame.java, Compiled Code) > > > at org.phoenix.bugbase.Frame.doPost(Frame.java, Compiled Code) > > > > I can think of two possible reasons you are seeing Compiled Code > > instead of line numbers. > > > > 1) you need to compile with the option that leaves line number > >information in the .class file. See the compiler options in the > >tooldocs. > > Um, did you read the build.xml snippet? debug="on" Or is there some > other switch? That should ensure complete debug information in the .class file. > > > > > 2) you need to run without the JIT compiler because it discards > >line number information. Try setting the environment variable > > > > set JAVA_COMPILER=NONE > > > > Which file should I put this in so that I don't have to worry about it > being sent for and auto-startup by the server on reboot? This environment variable needs to be in effect before Tomcat starts. Since it is going to slow down the response considerably, you better put it somewhere that you won't forget about it when time comes to deploy your application. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Can't see line numbers in exceptions
Go to java.sun.com for documentation. (Good luck wading through it though.) The "sunwjit" means the environment variable was not set right. It should look like this (I'm using c-shell, /bin/csh): Notice the "nojit". > setenv JAVA_COMPILER NONE > ./java -version java version "1.2.2" Solaris VM (build Solaris_JDK_1.2.2_05, native threads, nojit) > Remember that an environment variable is only set for the current shell. If you set the variable, then open a new terminal window, that setting is *not* in the new terminal. >> Original Message << On 2/4/01, 12:19:34 PM, Angus M <[EMAIL PROTECTED]> wrote regarding Re: Can't see line numbers in exceptions: > Where do I set this flag? I did setenv and set for this variable. > Didn't help. Is there a reference that describes these features where I > could look this up? > java -version > java version "1.2.2" > Classic VM (build Linux_JDK_1.2.2_FCS, native threads, sunwjit) > ^ Could this be part of the problem? ^ > As you can see in the build.xml snippet below, I did turn debug="on" > --Angus > Chris Janicki wrote: > > > > The phrase "Compiled Code" in your stack trace indicates that your java > > bytecode has been compiled by the JIT or Hotspot, so it has no reference > > to line numbers anymore. You can prevent your code from being natively > > compiled by setting an environment variable: JAVA_COMPILER=NONE Then, > > java will just execute your bytecode and have full knowledge of where > > it's at. Of course it will run a bit slower too, so just use this for > > testing. > > > > I think you might also have to make sure that your code was compiled by > > javac/fastjavac with the "-g" option, but I'm not sure about that. > > > > Chris > > > > >> Original Message << > > > > On 2/4/01, 9:21:19 AM, Angus M <[EMAIL PROTECTED]> wrote regarding > > Can't see line numbers in exceptions: > > > > > When I dump a stack trace the the brower or to the tomcat log I can seem > > > to see the line numbers in the trace. How do I turn this on? > > > > > build.xml snippet: > > > > > > > >classpath="${deploy.home}/WEB-INF/classes" > > >debug="on" optimize="off" deprecation="off"/> > > > > > > > > > > > > > > > > > Stack Trace: > > > java.lang.NullPointerException > > > at org.phoenix.bugbase.Frame.doGet(Frame.java, Compiled Code) > > > at org.phoenix.bugbase.Frame.doPost(Frame.java, Compiled Code) > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Can't see line numbers in exceptions
Where do I set this flag? I did setenv and set for this variable. Didn't help. Is there a reference that describes these features where I could look this up? java -version java version "1.2.2" Classic VM (build Linux_JDK_1.2.2_FCS, native threads, sunwjit) ^ Could this be part of the problem? ^ As you can see in the build.xml snippet below, I did turn debug="on" --Angus Chris Janicki wrote: > > The phrase "Compiled Code" in your stack trace indicates that your java > bytecode has been compiled by the JIT or Hotspot, so it has no reference > to line numbers anymore. You can prevent your code from being natively > compiled by setting an environment variable: JAVA_COMPILER=NONE Then, > java will just execute your bytecode and have full knowledge of where > it's at. Of course it will run a bit slower too, so just use this for > testing. > > I think you might also have to make sure that your code was compiled by > javac/fastjavac with the "-g" option, but I'm not sure about that. > > Chris > > >> Original Message << > > On 2/4/01, 9:21:19 AM, Angus M <[EMAIL PROTECTED]> wrote regarding > Can't see line numbers in exceptions: > > > When I dump a stack trace the the brower or to the tomcat log I can seem > > to see the line numbers in the trace. How do I turn this on? > > > build.xml snippet: > > > > >classpath="${deploy.home}/WEB-INF/classes" > >debug="on" optimize="off" deprecation="off"/> > > > > > > > > > > > Stack Trace: > > java.lang.NullPointerException > > at org.phoenix.bugbase.Frame.doGet(Frame.java, Compiled Code) > > at org.phoenix.bugbase.Frame.doPost(Frame.java, Compiled Code) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problem to stop Tomcat
It's effectively the case... I've just changed port to 8009 for Ajp13, but, to stop, Tomcat need to be up on the 8007 port (with ajp12 or ajp13). Thanks - Original Message - From: "Chris Janicki" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 04, 2001 5:37 PM Subject: Re: Problem to stop Tomcat I've been told that Tomcat listens on port 8007 (the Apache connector) for instructions to shutdown. Have you disabled the Apache connector service (in ~/conf/web.xml?) >> Original Message << On 2/4/01, 8:16:57 AM, Loïc Courtois <[EMAIL PROTECTED]> wrote regarding Problem to stop Tomcat: > Hello, > I have some difficulties to stop the Tomcat Server... > I use a Mandrake 7.2, the Sun JDK 1.3, and Apache 1.3.14, with mod_jk and > Tomcat 3.2.1. > Here, the response of the script bin/tomcat.sh stop: > #bin/tomcat.sh stop > Using classpath: > /root/jakarta-tomcat-3.2.1/lib/ant.jar:/root/jakarta-tomcat-3.2.1/lib/jasp er > jar:/root/jakarta-tomcat-3.2.1/lib/jaxp.jar:/root/jakarta-tomcat-3.2.1/li b/ > parser.jar:/root/jakarta-tomcat-3.2.1/lib/servlet.jar:/root/jakarta-tomcat -3 > 2.1/lib/test:/root/jakarta-tomcat-3.2.1/lib/webserver.jar:/usr/local/jdk1 3 > /lib/tools.jar > Stop tomcat > java.net.ConnectException: Connexion refusée > at java.net.PlainSocketImpl.socketConnect(Native Method) > at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312) > at > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125) > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112) > at java.net.Socket.(Socket.java:273) > at java.net.Socket.(Socket.java:100) > at org.apache.tomcat.task.StopTomcat.execute(StopTomcat.java:104) > at org.apache.tomcat.startup.Tomcat.stopTomcat(Tomcat.java:267) > at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:174) > at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) > Thanks > Loic > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Which JVM for Tomcat?
Check out this bug before you commit to 1.3 for production: 4293268 (on Sun's Java Bug Parade) It's a rare bug on slow apps, but a killer if your JVM is heavily loaded. >> Original Message << On 1/25/01, 3:02:50 PM, "Michael G. Anderson" <[EMAIL PROTECTED]> wrote regarding Re: Which JVM for Tomcat?: > Hi Craig, > When did Sun incorporate JAVA 3D into the core classes -- if I read your post > correctly? > regard, > mike anderson > Craig O'Brien wrote: > > Hello forsythe, > > > > I recommend downloading the Java 1.3 SDK. I believe it is final now..? It > > outperforms earlier versions and would be the best choice for your server. > > If you are downloading at 56k - ...oh well, just do it. It also includes > > all of the latest features (java 2d, java 3d, java media, etc.) It is > > stable and is a good performer. You need a good compiler for JSP pages. > > > > For applets, you are stuck with 1.1 and earlier if you want the majority of > > your visitors to make use of them. The plug in is a 2-3 meg download and it > > is unreasonable to expect a visitor to download that. There is also a bug > > in Sun's delivery system currently which doesn't allow Internet Explorer to > > download the plug in anyway. You will receive the latest plug in with your > > version 1.3. You can still compile your applets with depreciated methods. > > You can install multiple JDKs of different versions on the same machine. > > > > Good luck, > > Craig > > > > -Original Message- > > From: forsythe [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, January 23, 2001 6:21 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Which JVM for Tomcat? > > > > > Also I will also have APPLETS running in addition to servlets & JSPson > > this > > > server... So if I create a JAVA2 APPLET that WILL require a user download, > > > right? Right. > > > > Fine. What has that got to do with Tomcat or the JVM you are installing > > on your server? Nothing. Right? Right. > > > > > If you read carefully I asked "Which jvm works BEST" The Best. BEST. Ok > > one > > > more time " THE BEST" I Tomcat supports ALL JVMs, I'm asking if people > > have > > > preferences based off experience. > > > > Best for what. FOR WHAT? Ever hear of requirements? Right? Right. > > > > > Hey 'Charles' I think you should try to learn how not to be a prick while > > > answering people questions. Ass. > > > > OK. Tomorrow I will be nicer. I doubt that you will be any smarter. > > > > -- Charles > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Can't see line numbers in exceptions
The phrase "Compiled Code" in your stack trace indicates that your java bytecode has been compiled by the JIT or Hotspot, so it has no reference to line numbers anymore. You can prevent your code from being natively compiled by setting an environment variable: JAVA_COMPILER=NONE Then, java will just execute your bytecode and have full knowledge of where it's at. Of course it will run a bit slower too, so just use this for testing. I think you might also have to make sure that your code was compiled by javac/fastjavac with the "-g" option, but I'm not sure about that. Chris >> Original Message << On 2/4/01, 9:21:19 AM, Angus M <[EMAIL PROTECTED]> wrote regarding Can't see line numbers in exceptions: > When I dump a stack trace the the brower or to the tomcat log I can seem > to see the line numbers in the trace. How do I turn this on? > build.xml snippet: > > classpath="${deploy.home}/WEB-INF/classes" >debug="on" optimize="off" deprecation="off"/> > > > > > Stack Trace: > java.lang.NullPointerException > at org.phoenix.bugbase.Frame.doGet(Frame.java, Compiled Code) > at org.phoenix.bugbase.Frame.doPost(Frame.java, Compiled Code) > at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled > Code) > at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled > Code) > at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, > Compiled Code) > at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) > at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, > Compiled Code) > at > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, > Compiled Code) > at org.apache.tomcat.core.ContextManager.service(ContextManager.java, > Compiled Code) > at > org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt pConnectionHandler.java, > Compiled Code) > at > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, > Compiled Code) > at > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, > Compiled Code) > at java.lang.Thread.run(Thread.java, Compiled Code) > Thanks, > --Angus > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problem to stop Tomcat
I've been told that Tomcat listens on port 8007 (the Apache connector) for instructions to shutdown. Have you disabled the Apache connector service (in ~/conf/web.xml?) >> Original Message << On 2/4/01, 8:16:57 AM, Loïc Courtois <[EMAIL PROTECTED]> wrote regarding Problem to stop Tomcat: > Hello, > I have some difficulties to stop the Tomcat Server... > I use a Mandrake 7.2, the Sun JDK 1.3, and Apache 1.3.14, with mod_jk and > Tomcat 3.2.1. > Here, the response of the script bin/tomcat.sh stop: > #bin/tomcat.sh stop > Using classpath: > /root/jakarta-tomcat-3.2.1/lib/ant.jar:/root/jakarta-tomcat-3.2.1/lib/jasp er > .jar:/root/jakarta-tomcat-3.2.1/lib/jaxp.jar:/root/jakarta-tomcat-3.2.1/li b/ > parser.jar:/root/jakarta-tomcat-3.2.1/lib/servlet.jar:/root/jakarta-tomcat -3 > .2.1/lib/test:/root/jakarta-tomcat-3.2.1/lib/webserver.jar:/usr/local/jdk1 .3 > /lib/tools.jar > Stop tomcat > java.net.ConnectException: Connexion refusée > at java.net.PlainSocketImpl.socketConnect(Native Method) > at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312) > at > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125) > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112) > at java.net.Socket.(Socket.java:273) > at java.net.Socket.(Socket.java:100) > at org.apache.tomcat.task.StopTomcat.execute(StopTomcat.java:104) > at org.apache.tomcat.startup.Tomcat.stopTomcat(Tomcat.java:267) > at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:174) > at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) > Thanks > Loic > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problem to stop Tomcat
hai , The connection refused message come when tomcat is already stopped. Otherwise it won't come thambi - Original Message - From: "Loïc Courtois" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 04, 2001 6:46 PM Subject: Problem to stop Tomcat > Hello, > > I have some difficulties to stop the Tomcat Server... > > I use a Mandrake 7.2, the Sun JDK 1.3, and Apache 1.3.14, with mod_jk and > Tomcat 3.2.1. > > Here, the response of the script bin/tomcat.sh stop: > > #bin/tomcat.sh stop > Using classpath: > /root/jakarta-tomcat-3.2.1/lib/ant.jar:/root/jakarta-tomcat-3.2.1/lib/jasper > .jar:/root/jakarta-tomcat-3.2.1/lib/jaxp.jar:/root/jakarta-tomcat-3.2.1/lib/ > parser.jar:/root/jakarta-tomcat-3.2.1/lib/servlet.jar:/root/jakarta-tomcat-3 > .2.1/lib/test:/root/jakarta-tomcat-3.2.1/lib/webserver.jar:/usr/local/jdk1.3 > /lib/tools.jar > Stop tomcat > java.net.ConnectException: Connexion refusée > at java.net.PlainSocketImpl.socketConnect(Native Method) > at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312) > at > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125) > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112) > at java.net.Socket.(Socket.java:273) > at java.net.Socket.(Socket.java:100) > at org.apache.tomcat.task.StopTomcat.execute(StopTomcat.java:104) > at org.apache.tomcat.startup.Tomcat.stopTomcat(Tomcat.java:267) > at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:174) > at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) > > > Thanks > > Loic > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problems with mod_jk.so, RH7.0, binary/compiled
GOMEZ Henri escribi?: > >That means that I can recompile it using -DSTDAPI or something > >like that? If > >it's that easy, I can do it myself... > > Just use the apxs command, it will set the necessary flags :-) Yep, but it looks like it sets EAPI by default, and there does not seem to be a way to undef it. J - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Can't see line numbers in exceptions
William Brogden wrote: > > Angus M wrote: > > > > When I dump a stack trace the the brower or to the tomcat log I can seem > > to see the line numbers in the trace. How do I turn this on? > > > > build.xml snippet: > > > > >classpath="${deploy.home}/WEB-INF/classes" > >debug="on" optimize="off" deprecation="off"/> > > > > > > > > > > > > Stack Trace: > > java.lang.NullPointerException > > at org.phoenix.bugbase.Frame.doGet(Frame.java, Compiled Code) > > at org.phoenix.bugbase.Frame.doPost(Frame.java, Compiled Code) > > I can think of two possible reasons you are seeing Compiled Code > instead of line numbers. > > 1) you need to compile with the option that leaves line number >information in the .class file. See the compiler options in the >tooldocs. Um, did you read the build.xml snippet? debug="on" Or is there some other switch? > > 2) you need to run without the JIT compiler because it discards >line number information. Try setting the environment variable > > set JAVA_COMPILER=NONE > Which file should I put this in so that I don't have to worry about it being sent for and auto-startup by the server on reboot? --Angus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
<<< XILIADES PROGRAMMATA - PC GAMES - PLAYSTATION APO 2000/CD >>>
DEAR tomcat-user <<< XILIADES PROGRAMMATA - PC GAMES - PLAYSTATION APO 2000 DRS/CD >>> PROGRAMMATA - PC GAMES - PLAYSTATION - VIDEO CD - DREAMCAST - MP3 - ARXITECTONIKA - IATRIKA - WEEKS - PAKETA (1000 NEOI TITLOI KATHE EVDOMADA) KARTES N*VA FOR FREE TV IF WE DON'T HAVE IT ...YOU PROBABLY DON'T NEED IT... THLEFONO 093091 (13:00 - 20:00) KATHE HMERA EKTOS SABBATOY & KYRIAKHS WE SEND CD'S TO THESE COUNTRIES: AUSTRIA,BELGIUM,FRANCE,GERMANY,SWITZERLAND,ITALY,LUXMBOURG,NORWAY,HOLLAND,SWEDEN,CYPRUS...(COST 10 EURO/CD + POST EXPENCES) www.geocities.com/katalogos2002 AN TO SITE DEN LEITOYRGEI KALESTE MAS STO 093091 NA SAS STEILOYME KATALOGO ME E-MAIL... _\|/_ (o o) ---oOO-{_}-OOo--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Can't see line numbers in exceptions
Angus M wrote: > > When I dump a stack trace the the brower or to the tomcat log I can seem > to see the line numbers in the trace. How do I turn this on? > > build.xml snippet: > > classpath="${deploy.home}/WEB-INF/classes" >debug="on" optimize="off" deprecation="off"/> > > > > > > Stack Trace: > java.lang.NullPointerException > at org.phoenix.bugbase.Frame.doGet(Frame.java, Compiled Code) > at org.phoenix.bugbase.Frame.doPost(Frame.java, Compiled Code) I can think of two possible reasons you are seeing Compiled Code instead of line numbers. 1) you need to compile with the option that leaves line number information in the .class file. See the compiler options in the tooldocs. 2) you need to run without the JIT compiler because it discards line number information. Try setting the environment variable set JAVA_COMPILER=NONE -- WBB - [EMAIL PROTECTED] Java Cert mock exams http://www.lanw.com/java/javacert/ Author of Java Developer's Guide to Servlets and JSP ISBN 0-7821-2809-2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
debug in J-Developer
Hi I have a problem debuging servlet's in J-Developer When I'm useing JDom I get the following exception: java.lang.NoSuchMethodError: java.lang.String org.w3c.dom.DocumentType.getPublicId() void org.jdom.input.DOMBuilder.buildTree(org.w3c.dom.Node, org.jdom.Document, org.jdom.Element, boolean)log3: void org.jdom.input.DOMBuilder.buildTree(org.w3c.dom.Node, org.jdom.Document, org.jdom.Element, boolean)log3: org.jdom.Document org.jdom.input.DOMBuilder.build(java.io.InputStream)log3: void com.mobilitec.mpower.framework.config.ConfigurationManager.reconfiure(java.l ang.String)log3: void com.mobilitec.mpower.framework.config.ConfigurationManager.(java.lang. String, java.lang.String, java.lang.String)log3: void com.mobilitec.mpower.framework.FrameworkServices.(java.lang.String, java.lang.String, java.lang.String, java.lang.String)log3: com.mobilitec.mpower.framework.FrameworkServices com.mobilitec.mpower.framework.FrameworkLoader.getFrameworkServices()log3: void com.mobilitec.mpower.framework.FrameworkLoader.()log3: com.mobilitec.mpower.framework.Framework com.mobilitec.mpower.framework. FrameworkLoader.getFramework()log3: void com.mobilitec.mpower.gui.submit.LoginServlet.init(javax.servlet.ServletConfi g)log3: javax.servlet.Servlet oracle.lite.web.JupServlet.createInstance()log3: javax.servlet.Servlet oracle.lite.web.JupServlet.getServlet()log3: void oracle.lite.web.JupServlet.service(oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)log3: void oracle.lite.web.AppServletHandler.handle(java.lang.String, int, oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)log3: void oracle.lite.web.JupApplication.service(oracle.lite.web.JupRequest,oracle.lit e.web.JupResponse)log3: void oracle.lite.web.JupHandler.handle(oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)log3: void oracle.lite.web.HTTPServer.process(oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)log3: boolean oracle.lite.web.HTTPServer.handleRequest(oracle.lite.web.JupInputStream, oracle.lite.web.JupOutputStream)log3: boolean oracle.lite.web.JupServer.handle(oracle.lite.web.JupInputStream, oracle.lite.web.JupOutputStream)log3: void oracle.lite.web.SocketListener.process(java.net.Socket)log3: void oracle.lite.web.SocketListener$ReqHandler.run()log3: E-mail : [EMAIL PROTECTED] Web : http://www.mobilitec.com/ Mobilitec, Inc. P.O. Box 15049 Matam Haifa 31905, Israel Tel +972-4-855-1133 ext. 115 Fax +972-4-855-1112 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
servlet security
can tomcat give authentication to a servlet ? I want to add a user name and password requirements to a particular servlet , how can I do it ?? thanks ahead shlomi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Can't see line numbers in exceptions
When I dump a stack trace the the brower or to the tomcat log I can seem to see the line numbers in the trace. How do I turn this on? build.xml snippet: Stack Trace: java.lang.NullPointerException at org.phoenix.bugbase.Frame.doGet(Frame.java, Compiled Code) at org.phoenix.bugbase.Frame.doPost(Frame.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) Thanks, --Angus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Newbie: Just installed Tomcat
Here is my conf: Apache 1.3 and Tomcat 3.2 on Linux RH7 I installed Tomcat w/o any problems, it is even using it to serve JSP/JavaServlets and I didn't even having to change and configuration files yet. (For example when I go to http://localhost/examples Tomcat takes over) I've been reading the "help files" and they aren't being too helpful. What I want to know (because I hate editing files manually) how do I set the authentication for http://localhost/amin? Everytime I go to add or view the context it prompts me for a uid/pw... I don't know what they are. I'd like to know ho to set it so I can add context from that admin site. And does Tomcat have something like JRun's web admin interface? Mike S. Avelar [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: current date in a web page
Or you can have more control over the format using something like... <%@ page import="java.text.DateFormat" %> <% Date lastModified = new Date( miliseconds ); String strLastModified = DateFormat.getDateTimeInstance( DateFormat.SHORT, DateFormat.SHORT ).format( lastModified ); %> Today's date is: <%=strLastModified%> You can use the various factory methods on DateFormat to create a exactly the format you want. - Original Message - From: Chris Janicki <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, February 03, 2001 1:25 PM Subject: Re: current date in a web page Try this: Today's date is: <%=(new java.util.Date()).toString()%> >> Original Message << On 2/3/01, 11:38:20 AM, [EMAIL PROTECTED] wrote regarding current date in a web page: > Can any body help me? > my problem is that i dont know, using jsp, how to present in a web pahe the current date. Can anybody send me the code, all page's code, for show te current date? > -- > por favor puede alguien enviarme una pagina en jsp, todo el codio, ue me muestre la fecha actual? > no tehgo ni idea de como lo puedo hacer. > muchas gracias > carlos > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Problem to stop Tomcat
Hello, I have some difficulties to stop the Tomcat Server... I use a Mandrake 7.2, the Sun JDK 1.3, and Apache 1.3.14, with mod_jk and Tomcat 3.2.1. Here, the response of the script bin/tomcat.sh stop: #bin/tomcat.sh stop Using classpath: /root/jakarta-tomcat-3.2.1/lib/ant.jar:/root/jakarta-tomcat-3.2.1/lib/jasper .jar:/root/jakarta-tomcat-3.2.1/lib/jaxp.jar:/root/jakarta-tomcat-3.2.1/lib/ parser.jar:/root/jakarta-tomcat-3.2.1/lib/servlet.jar:/root/jakarta-tomcat-3 .2.1/lib/test:/root/jakarta-tomcat-3.2.1/lib/webserver.jar:/usr/local/jdk1.3 /lib/tools.jar Stop tomcat java.net.ConnectException: Connexion refusée at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112) at java.net.Socket.(Socket.java:273) at java.net.Socket.(Socket.java:100) at org.apache.tomcat.task.StopTomcat.execute(StopTomcat.java:104) at org.apache.tomcat.startup.Tomcat.stopTomcat(Tomcat.java:267) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:174) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Thanks Loic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Which JVM for Tomcat?
Hi Craig, When did Sun incorporate JAVA 3D into the core classes -- if I read your post correctly? regard, mike anderson Craig O'Brien wrote: > Hello forsythe, > > I recommend downloading the Java 1.3 SDK. I believe it is final now..? It > outperforms earlier versions and would be the best choice for your server. > If you are downloading at 56k - ...oh well, just do it. It also includes > all of the latest features (java 2d, java 3d, java media, etc.) It is > stable and is a good performer. You need a good compiler for JSP pages. > > For applets, you are stuck with 1.1 and earlier if you want the majority of > your visitors to make use of them. The plug in is a 2-3 meg download and it > is unreasonable to expect a visitor to download that. There is also a bug > in Sun's delivery system currently which doesn't allow Internet Explorer to > download the plug in anyway. You will receive the latest plug in with your > version 1.3. You can still compile your applets with depreciated methods. > You can install multiple JDKs of different versions on the same machine. > > Good luck, > Craig > > -Original Message- > From: forsythe [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 23, 2001 6:21 PM > To: [EMAIL PROTECTED] > Subject: Re: Which JVM for Tomcat? > > > Also I will also have APPLETS running in addition to servlets & JSPson > this > > server... So if I create a JAVA2 APPLET that WILL require a user download, > > right? Right. > > Fine. What has that got to do with Tomcat or the JVM you are installing > on your server? Nothing. Right? Right. > > > If you read carefully I asked "Which jvm works BEST" The Best. BEST. Ok > one > > more time " THE BEST" I Tomcat supports ALL JVMs, I'm asking if people > have > > preferences based off experience. > > Best for what. FOR WHAT? Ever hear of requirements? Right? Right. > > > Hey 'Charles' I think you should try to learn how not to be a prick while > > answering people questions. Ass. > > OK. Tomorrow I will be nicer. I doubt that you will be any smarter. > > -- Charles > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] begin:vcard n:Anderson;Michael tel;pager:510-872-1085 tel;cell:510-681-4982 tel;fax:925-681-0173 tel;home:N/A tel;work:510-644-2966 x-mozilla-html:FALSE url:http://www.eye-go.com/ org:Eye-go.com;IT version:2.1 email;internet:[EMAIL PROTECTED] title:CTO adr;quoted-printable:;;2477 Virginia Street=0D=0ASuite 305=0D=0A;Berkeley;CA;94709;USA fn:Michael G.Anderson end:vcard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]