compilation
Does anyone know of the configuration file that I will have to edit to allow for the compilation of jsp's automatically when sent to Tomcat I know there is one setting that is defaulted to false but I can't remember which config file that it's in. I had changed this setting so that someone couldn't automatically drop files into my root directory from outside and execute them as webapps. Anyway, I am getting the following error and I believe that the change that I made to the above setting is involved. org.apache.jasper.JasperException: Unable to compile class for JSP C:\Tomcat\work\localhost_8080%2Fedocket\_0002fTMP_00034dbapzhtjx_0002ejspTMP 4dbapzhtjx_jsp_0.java:62: ')' expected. if (session.getValue(MM_AddressID !=null) {Address__svAddress = (String)session.getValue(MM_AddressID;} ^ C:\Tomcat\work\localhost_8080%2Fedocket\_0002fTMP_00034dbapzhtjx_0002ejspTMP 4dbapzhtjx_jsp_0.java:62: ')' expected. if (session.getValue(MM_AddressID !=null) {Address__svAddress = (String)session.getValue(MM_AddressID;} Regards, dave
Re: JDBC Realm error on startup
What can you recommend to use as a driver (JDBC) for an Access/Tomcat/Apache/jdk 1.3.1 configuration?? thanks, dave Using the JDBC-ODBC Bridge can not lead to jar problems as is included on the default bootstrap classpath.., perhaps a incorrectly created ODBC? My point was not that the bridge would cause this problem but that it causes problems in general. Why add another layer to your code when it is unnecessary. The only reason I really see for Access is DB portability to other machine, and for most individuals this is not an issue. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
Re: JDBC Realm error on startup
I am still a little perplexed about which .jar file I should use?? How do I determine which library is needed from the following error message: 2001-07-06 02:49:01 - ContextManager: JDBCRealm: Starting JDBCRealm, trying to acquire JDBC Driver class and DB Connection java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key jdbcRealm.checkConnectionSQLException at java.util.ResourceBundle.getObject(ResourceBundle.java:382) at java.util.ResourceBundle.getString(ResourceBundle.java:354) at org.apache.tomcat.util.StringManager.getString(StringManager.java:136) at org.apache.tomcat.request.JDBCRealm.checkConnection(JDBCRealm.java:528) at org.apache.tomcat.request.JDBCRealm.contextInit(JDBCRealm.java:407) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491) at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) My server.xml file contains the following: RequestInterceptor className='org.apache.tomcat.request.JDBCRealm' debug='99' driverName='sun.jdbc.odbc.JdbcOdbcDriver' connectionURL='jdbc:odbc:TOMCAT' userTable='users' userNameCol='user_name' userCredCol='user_pass' userRoleTable='user_roles' roleNameCol='role_name'/ I have the following .jars in my TOMCAT_HOME/lib dir: ant.jar dt.jar htmlconvert.jar i18n.jar jasper.jar jaws.jar jaxp.jar parser.jar RmiJdbc.jar rt.jar servlet.jar sunrassign.jar tools.jar webserver.jar I suspect that I would have to have the .jar file for the JdbcOdbcDriver but I dont know where this is or if I can compile it from .class files. Any help is appreciated. dave -- From: Michael Wentzel [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: JDBC Realm error on startup Date: Fri, Jul 6, 2001, 3:21 PM I am getting the following error on startup of Tomcat: 2001-07-06 02:49:01 - ContextManager: JDBCRealm: Starting JDBCRealm, trying to acquire JDBC Driver class and DB Connection You need your libraries in TOMCAT_HOME/lib to be able to make the connection. Although JDBCRealm has been mentioned to work like magic in that it does all the work for you, you still have to have some library for communicating with the appropriate DB. java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key jdbcRealm.checkConnectionSQLException These are from the LocalString.properties files. If you open webserver.jar you will find several properties files. The one in org.apache.tomcat.request is the one this property should be in(the package which contains JDBCRealm). My copy does not have a key for jdbcRealm.checkConnectionSQLException. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
Re: JDBC Realm error on startup
Information: MS Access DB Tomcat 3.2.2 Apache 1.3.20 jdk 1.3.1 I only have the bare apps installed... examples, test, root, and admin. What would the missing JDBC jars be for these apps? dave -- From: Ignacio J. Ortega [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: JDBC Realm error on startup Date: Mon, Jul 9, 2001, 1:11 PM This is a bug in JDBCRealm, that is trying to use a non existing resource string in localstrigs.properties, this bug is corrected ( a will be out ) on 3.2.2 / currently in CVS. But apart from that, the bug is only surfaced when you are trying to connect to an incorrect JDBC URL, beccause missing drivers..or whatever other propblem you have in your config.. look for missing JDBC Jars or alike.. Saludos , Ignacio J. Ortega -Mensaje original- De: David Herder [mailto:[EMAIL PROTECTED]] Enviado el: lunes 9 de julio de 2001 18:23 Para: [EMAIL PROTECTED] Asunto: Re: JDBC Realm error on startup Importancia: Alta I am still a little perplexed about which .jar file I should use?? How do I determine which library is needed from the following error message: 2001-07-06 02:49:01 - ContextManager: JDBCRealm: Starting JDBCRealm, trying to acquire JDBC Driver class and DB Connection java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key jdbcRealm.checkConnectionSQLException at java.util.ResourceBundle.getObject(ResourceBundle.java:382) at java.util.ResourceBundle.getString(ResourceBundle.java:354) at org.apache.tomcat.util.StringManager.getString(StringManager.java:136) at org.apache.tomcat.request.JDBCRealm.checkConnection(JDBCRealm. java:528) at org.apache.tomcat.request.JDBCRealm.contextInit(JDBCRealm.java:407) at org.apache.tomcat.core.ContextManager.initContext(ContextManag er.java:491) at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) My server.xml file contains the following: RequestInterceptor className='org.apache.tomcat.request.JDBCRealm' debug='99' driverName='sun.jdbc.odbc.JdbcOdbcDriver' connectionURL='jdbc:odbc:TOMCAT' userTable='users' userNameCol='user_name' userCredCol='user_pass' userRoleTable='user_roles' roleNameCol='role_name'/ I have the following .jars in my TOMCAT_HOME/lib dir: ant.jar dt.jar htmlconvert.jar i18n.jar jasper.jar jaws.jar jaxp.jar parser.jar RmiJdbc.jar rt.jar servlet.jar sunrassign.jar tools.jar webserver.jar I suspect that I would have to have the .jar file for the JdbcOdbcDriver but I dont know where this is or if I can compile it from .class files. Any help is appreciated. dave -- From: Michael Wentzel [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: JDBC Realm error on startup Date: Fri, Jul 6, 2001, 3:21 PM I am getting the following error on startup of Tomcat: 2001-07-06 02:49:01 - ContextManager: JDBCRealm: Starting JDBCRealm, trying to acquire JDBC Driver class and DB Connection You need your libraries in TOMCAT_HOME/lib to be able to make the connection. Although JDBCRealm has been mentioned to work like magic in that it does all the work for you, you still have to have some library for communicating with the appropriate DB. java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key jdbcRealm.checkConnectionSQLException These are from the LocalString.properties files. If you open webserver.jar you will find several properties files. The one in org.apache.tomcat.request is the one this property should be in(the package which contains JDBCRealm). My copy does not have a key for jdbcRealm.checkConnectionSQLException. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
JDBC Realm error on startup
I have the following configuration WinNT4 workstation Apache 1.3.20 tomcat 3.2.2 jdk 1.3.1 I am getting the following error on startup of Tomcat: Using CLASSPATH: C:\Tomcat\classes;C:\Tomcat\lib\ant.jar;C:\Tomcat\lib\dt.jar; C:\Tomcat\lib\htmlconverter.jar;C:\Tomcat\lib\i18n.jar; C:\Tomcat\lib\jasper.jar;C:\Tomcat\lib\jaws.jar;C:\Tomcat\lib\jaxp.jar; C:\Tomcat\lib\parser.jar;C:\Tomcat\lib\rt.jar;C:\Tomcat\lib\servlet.jar; C:\Tomcat\lib\sunrsasign.jar;C:\Tomcat\lib\tools.jar; C:\Tomcat\lib\webserver.jar;C:\Tomcat\lib\jasper.jar; C:\Tomcat\lib\ant.jar;C:\Tomcat\lib\jaxp.jar; C:\Tomcat\lib\parser.jar; C:\Tomcat\lib\servlet.jar; C:\Tomcat\lib\webserver.jar; C:\jdk1.3.1\lib\tools.jar;c:\Tomcat\webapps\example; C:\jdk1.3.1\lib\tools.jar 2001-07-06 02:49:01 - ContextManager: Adding context Ctx( /examples ) 2001-07-06 02:49:01 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-07-06 02:49:01 - ContextManager: JDBCRealm: Starting JDBCRealm, trying to acquire JDBC Driver class and DB Connection java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key jdbcRealm.checkConnectionSQLException at java.util.ResourceBundle.getObject(ResourceBundle.java:382) at java.util.ResourceBundle.getString(ResourceBundle.java:354) at org.apache.tomcat.util.StringManager.getString(StringManager.java:136) at org.apache.tomcat.request.JDBCRealm.checkConnection(JDBCRealm.java:528) at org.apache.tomcat.request.JDBCRealm.contextInit(JDBCRealm.java:407) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491) at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) 2001-07-06 02:49:01 - ContextManager: JDBCRealm: cannot find message associated with key : jdbcRealm.checkConnectionSQLException 2001-07-06 02:49:01 - ContextManager: JDBCRealm: SQLException: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified THOUGHTS: The same error occurs for the admin context. My database that I would like to connect to is Microsoft Access. Should I use the JDBC-ODBC bridge driver. From what I have read, this might not be a good idea. The intended purpose of this application is to create an electronic docket delivery system and the Access DB has been created already. Nonetheless, I have not set up a Context for this app because I have not been able to get tomcat to run without exception. Is the solution to this problem getting the right JDBC .jar file and putting it in the classpath? Thanks, dave
Re: Tomcat startup under NT
A thank you goes out to Steven Turoff... your suggestion helped me to isolate the problem once I was able to see what Tomcat was doing... an improperly terminated Resource Interceptor in the server.xml. Thanks!!! Another request... now that my servlets are working, where can I access the password (in order to change it) for the Context Administrator webapp? dave
Re: admin password
I believe that it has something to do with editing the tomcat-user.xml file to match what the (admin context) web.xml file states for the particular role. I am trying to solve this problem, too, so if you find out, please let me know. dave -- From: Chris Kmiec [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: admin password Date: Thu, Jul 5, 2001, 4:42 PM Does anyone know what the password is to get into the Admin tool that comes with the standard installation of tomcat? I didn't find anything of relevance in the /webapps/admin/Web-inf/web.xml file or anywhere in its vicinity. I tried the various combinations of Admin/Admin, Admin/Tomact username and passwords without success. How is that access controlled? Is there some good documentation on this? I wasn't able to find anything relevant in the installation guide or user doc. Am I looking in the wrong places? Thanks for the help! --Chris _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Tomcat startup under NT
Title: Tomcat startup under NT Essential Info: Tomcat 3.2.2 Apache 1.3.20 NT 4 Workstation Service pack 4 JDK 1.3.1 When executing the command startup from TOMCAT_HOME, a startup window appears then disappears in a fraction of a second. I read in the FAQ that this is due to memory allocation for the command prompt, but under NT, I cannot find a way to change this. Nonetheless, I don't think this is the probem, as I am also getting a 500 Internal Server Error when trying to run servlets. I have followed the suggestions in the faq about capitalizing the WEB-INF folder, but this has not changed anything. But first things first, any suggestions on keeping the Tomcat Window open?? Thanks, Dave
Re: Tomcat startup under NT
JAVA_HOME is set up as c:\jdk1.3.1 and I cannot access the tomcat.bat file. When I try to edit it with sysedit, I get the response: The name specified is not recognized as an internal or external command, operable program or batch file. dave check to see if you have setup JAVA_HOME in your system classpath aand also in the tomcat.bat Kris --- David Herder [EMAIL PROTECTED] wrote: Essential Info: Tomcat 3.2.2 Apache 1.3.20 NT 4 Workstation Service pack 4 JDK 1.3.1 When executing the command startup from TOMCAT_HOME, a startup window appears then disappears in a fraction of a second. I read in the FAQ that this is due to memory allocation for the command prompt, but under NT, I cannot find a way to change this. Nonetheless, I don't think this is the probem, as I am also getting a 500 Internal Server Error when trying to run servlets. I have followed the suggestions in the faq about capitalizing the WEB-INF folder, but this has not changed anything. But first things first, any suggestions on keeping the Tomcat Window open?? Thanks, Dave __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/