Re: Tomcat vs. JBoss
At 13:16 6.4.2003 +0200, you wrote: Hi there, At my company some are discussing to replace our Tomcat installation with JBoss application server. What are the main arguments pro/contra using Tomcat/JBoss? Is anybody able to share some production experiences? I have not used JBoss myself but had a look at it's documentation some time ago and if I understand it correctly JBoss is an EJB container and does not include the other features of J2EE that are available with Tomcat. I.e. you need Tomcat and if you want also EJB support you can have that with JBoss. Tomcat does not support EJB's. regards Kaarle To my mind it seems *) if I need EJB - take JBoss disadvantage: more complex *) if I need the reference J2EE engine - take Tomcat advantage: easier to use, less overhead with EJB What do you think? cheers, Johannes - Kaarle Kaila http://www.iki.fi/kaila mailto:[EMAIL PROTECTED] tel: +358 50 3725844 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to store files in a portable app?
At 15:35 29.3.2003 +0100, you wrote: HI there, In my app I need to store files after a transaction is complete. I want to keep my application portable, so where should I store such files to?? I would put the directory address for the files in a properties file (ResourceBundle) Then you can really put them anywhere you like. regards Kaarle Should I use a /output/.. directory in the root area or where else could be a smart location? Any ideas on this topic?? thx alot Johannes - Kaarle Kaila http://www.iki.fi/kaila mailto:[EMAIL PROTECTED] tel: +358 50 3725844 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to store files in a portable app?
At 15:58 29.3.2003 +0100, you wrote: Hi Kaarle, Thx for the input. Unfortunately the development system is Windows and production system is Unix, so absolute paths will never be the same. I would think that you need different settings for production and development. When you have the settings in a properties file (or some xml-file if you like) then you can anyway have the java and jsp-files independent of the environment. Perhaps you have everything packed in a war-file for production. In development you could keep the files unpacked and thus it would be easy to replace the properties file in development. Kaarle Do you have any idea for how to manage properties files which will be different for windows than unix? Should I create a separate web_local and web_remote directory and make a simple ant copy task to distinguish production/development? Or is there a more elegant approach to this? thx alot Johannes Kaarle Kaila [EMAIL PROTECTED] 29.03.2003 15:41 Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: Where to store files in a portable app? At 15:35 29.3.2003 +0100, you wrote: HI there, In my app I need to store files after a transaction is complete. I want to keep my application portable, so where should I store such files to?? I would put the directory address for the files in a properties file (ResourceBundle) Then you can really put them anywhere you like. regards Kaarle Should I use a /output/.. directory in the root area or where else could be a smart location? Any ideas on this topic?? thx alot Johannes - Kaarle Kaila http://www.iki.fi/kaila mailto:[EMAIL PROTECTED] tel: +358 50 3725844 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Kaarle Kaila http://www.iki.fi/kaila mailto:[EMAIL PROTECTED] tel: +358 50 3725844 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with Servlets
At 13:53 23.3.2003 -0500, you wrote: I've spent DAYS and DAYS and DAYS trying to get tomcat to run servlets. Nothing I try works. I have followed the instructions in three books, several online tutorials and attempted to decipher tomcat documentation on the apache site. I've installed and reinstalled two versions to Tomcat (currently on 4.1.24). I've modified server.xml and web.xml files until my fingers are sore from typing. Any help would be GREATLY appreciated. Nothing helps; nothing works except the tomcat examples which mock me! You need also something like servlet-mapping servlet-nameHelloWorldExample/servlet-name url-pattern/mytest/url-pattern /servlet-mapping in your web.xml Kaarle Here is my problem: From a clean install of tomcat, create a new directory under webapps called dumfries. Create subdirectories dumfries/WEB-INF/classes. Copy the file HelloWorldExample.class from webapps/examples/WEB-INF/classes and paste it into webapps/dumfries/WEB-INF/classes Create the following file and save as web.xml in the webapps/dumfries/WEB-INF directory: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/j2ee/dtds/web-app_2_3.dtd; servlet servlet-nameHelloWorldExample/servlet-name servlet-classHelloWorldExample/servlet-class /servlet web-app /web-app Add the following tag to the server.xml file: Context path=/dumfries docBase=dumfries debug=0 reloadable=true / Start the server and browse to http://localhost:8080/examples/servlet/HelloWorldExample; Note that the page displays. Now browse to http://localhost:8080/dumfries/servlet/HelloWorldExample; and behold the error message. What am I doing wrong How can I make this work??? I'm supposed to be half way done with my project and I can't get my first servlet to work!!! Help! - Kaarle Kaila http://www.iki.fi/kaila mailto:[EMAIL PROTECTED] tel: +358 50 3725844 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The classical problem: Tomcat with Apache
At 12:49 25.2.2003 -0600, Victor Gonzalez wrote: Hi, hi, A rather good guide exists on http://www.johnturner.com/ for the older connector. regards Kaarle I will believe I am dummy! Because I check different methods to implement it but never I can do! Well, I have the versions: Apache 2.0.44 and Tomcat 4.1.18 (both for Windows) in the same machine. Well, I need to know the module or dll to download (please, the link too) and how is it configure (please, step by step). Tnks so much!!! Regards Victor Gonzalez ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Kaarle Kaila http://www.iki.fi/kaila mailto:[EMAIL PROTECTED] tel: +358 50 3725844 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Special characters
At 15:59 19.2.2003 +0100, you wrote: I have changed Jserv to Tomcat. I'm in trouble with special characters and I dont't know where is the problem. All the special characters that servlet writes to the web page are changed by a '?' character. I add the useUnicode characterEncoding parameters of mm.mysql.Driver. With this solution the resultsets of database selects shows specials characters correctly. But I still havent found the solution for strings that don't come from database and, with db columnames with special characters. Anybody can help me? I wrote a simple test using mysql and tomcat to output special characters. You find description and sources of my tests at http://www.kk-software.fi/kalle/opensource.html regards Kaarle Thanks Carlos Godoy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Kaarle Kaila http://www.iki.fi/kaila mailto:[EMAIL PROTECTED] tel: +358 50 3725844 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] free Database with Transaction (Sorry for the noise)
At 19:20 18.2.2003 +0100, you wrote: hi, I'm looking for a Database, that can do - sql transactions, (or anything similiar to sql - if it works with a xml database, xml is fine) - has a java 1.4.1 jdbc driver - is free (even better if for commercial use) 'Mysql' was my first option, but it does not have transactions. MySQL has transactions with InnoDB tables if I remember correctly. Kaarle - Kaarle Kaila http://www.iki.fi/kaila mailto:[EMAIL PROTECTED] tel: +358 50 3725844 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NamingException in tomcat 4.1.18 LE
hi, I just joined this list but have used tomcat a while now. I used jakarta-tomcat-4.1.10 until now and changed my server to jakarta-tomcat-4.1.18-LE-jdk14 and got it running almost OK. in server.xml I have a Context element like this: Context path= docBase=/var/www/htdocs debug=1 reloadable=true Resource name=jdbc/KalleDB auth=Container type=javax.sql.DataSource description=Kalle database/ ResourceParams name=jdbc/KalleDB parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://localhost/test?user=test/value /parameter /ResourceParams /Context With tomcat-1.1.10 it works OK and in Java code I can use Context initCtx = new InitialContext(); DataSource ds = (DataSource)initCtx.lookup(java:comp/env/jdbc/KalleDB); Connection conn = ds.getConnection(); to get the connection. I can use the code also if I get connection from DriverManager Connection conn = DriverManager.getConnection(jdbc:mysql://localhost/test?user=test); With 4.1.18-LE I get the exception below if I use the initCts.lookup What is missing in my 4.1.18 or has something changed here? regards Kaarle -- javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:189) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301) at org.apache.naming.NamingContext.lookup(NamingContext.java:834) at org.apache.naming.NamingContext.lookup(NamingContext.java:181) at org.apache.naming.NamingContext.lookup(NamingContext.java:822) at org.apache.naming.NamingContext.lookup(NamingContext.java:181) at org.apache.naming.NamingContext.lookup(NamingContext.java:822) at org.apache.naming.NamingContext.lookup(NamingContext.java:181) at org.apache.naming.NamingContext.lookup(NamingContext.java:822) at org.apache.naming.NamingContext.lookup(NamingContext.java:194) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:183) at javax.naming.InitialContext.lookup(InitialContext.java:347) at fi.iki.kaila.util.SoccerUtil.makeConnection(Unknown Source) - Kaarle Kaila http://www.iki.fi/kaila mailto:[EMAIL PROTECTED] tel: +358 50 3725844 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]