RE: Hundreds of LogConfigurationException
Filip, Jim, Yoav thank you! I am using Tomcat 4.1.18 which has commons-logging.jar in server/lib *and* commons-logging-api.jar in common/lib. The jar files commons-logging.jar and commons-logging-api.jar seem to differ only in the absence of log4j support in the latter file. Placing both files as well log4j-1.2.8.jar in common/lib seems to be working as far as logging is concerned. (I also removed commons-logging.jar from my webapps WEB-INF/lib.) Eventually though, my tomcat server still dies a painful death but I can now see the error messages. :-) Why on earth are there two different jar files with almost identical content? At 12:33 19.02.2003 -0500, you wrote: Howdy, Ceki - it's kind of weird to see your name outside the log4j dev list ;) Cool though. Anyways, I think the issue here is with having multiple copies of commons-logging. Tomcat uses commons-logging and allows apps to use it as well by placing it common/lib. However, there's a classloading conflict. Other people have reported this, e.g. http://marc.theaimsgroup.com/?l=tomcat-user&m=104305604609583&w=2 Perhaps this is worth a shot: move commons-logging jar out of common/lib and into server/lib, so tomcat can still use it internally. Keep a copy of of commons-logging jar (and log4j jar) in your /WEB-INF/lib directory. Does that make the problem go away? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Ceki Gülcü [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, February 19, 2003 12:26 PM >To: [EMAIL PROTECTED] >Subject: Hundreds of LogConfigurationException > >Hi all, > >I am getting a large number of the following exceptions, until the server >eventually stops responding. > >org.apache.commons.logging.LogConfigurationException: >org.apache.commons.logging.LogConfigurationException: >org.apache.commons.logging.LogConfigurationException: Class >org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log > at >org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.j >ava:555) > at >org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.j >ava:289) > at >org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409) > at >org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandler.java:97) > at org.apache.tomcat.util.log.Log.log(Log.java:198) > at org.apache.tomcat.util.log.Log.log(Log.java:192) > at org.apache.tomcat.util.log.Log.log(Log.java:174) > at >org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja >va:533) > at java.lang.Thread.run(Thread.java:536) >Caused by: org.apache.commons.logging.LogConfigurationException: >org.apache.commons.logging.LogConfigurationException: Class >org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log > at >org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactory >Impl.java:420) > at >org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.j >ava:548) > ... 8 more >Caused by: org.apache.commons.logging.LogConfigurationException: Class >org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log > at >org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactory >Impl.java:416) > ... 9 more > >I have log4j in WEB-INF/lib and commons-logging.jar in WEB-INF/lib and also >in TOMCAT_HOME/server/lib. I am using tomcat 4.1.18, struts 1.1b3 on Linux >2.4.7 and JDK 1.4.1. > >-- >Ceki > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ceki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems during shutdown in Tomcat 4.1.18
may i add, that this is a harmless problem, as tomcat seems to be functioning normally without any errors and no side effects of the shutdown are noticed Its only that when u start and stop Tomcat from the command line interface , this message is noticable, so most of us would'nt have even seen this. if any one has please let me know as soon as possible -ankur -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 5:29 PM To: 'Tomcat Users List' Subject: RE: problems during shutdown in Tomcat 4.1.18 Did you block port 8005 on your machine? Did you remove the shutdown port definition from server.xml? John > -Original Message- > From: Ankur Goel [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 19, 2003 6:28 AM > To: [EMAIL PROTECTED] > Subject: problems during shutdown in Tomcat 4.1.18 > > > hi, > i m new to the user-list. i have a Tomcat 4.1.18 setup > installed and > everything works fine! the problem comes only at shutdown. i get a > > "java.net.bindException: cannot assign the requested address" > > i m giving the complete message log for lookup > > [INFO] Registry - -Loading registry information > [INFO] Registry - -Creating new Registry instance > [INFO] Registry - -Creating MBeanServer > [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080 > Starting service Tomcat-Standalone > Apache Tomcat/4.1.18 > [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080 > [INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009 > [INFO] JkMain - -Jk running ID=0 time=10/100 config=d:\Tomcat > 4.1.18\conf\jk2.properties > Stopping service Tomcat-Standalone > java.net.BindException: Cannot assign requested address: connect > at java.net.PlainSocketImpl.socketConnect(Native Method) > at > java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350) > at > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137) > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124) > at java.net.Socket.(Socket.java:268) > at java.net.Socket.(Socket.java:122) > at > org.apache.jk.common.ChannelSocket.destroy(ChannelSocket.java:417) > at org.apache.jk.server.JkMain.stop(JkMain.java:308) > at > org.apache.jk.server.JkCoyoteHandler.destroy(JkCoyoteHandler.java:179) > at > org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector > .java:1081) > at > org.apache.catalina.core.StandardService.stop(StandardService. > java:546) > at > org.apache.catalina.core.StandardServer.stop(StandardServer.java:2224) > at > org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run( > Catalina.java: > 624) > > what i figured out by looking at the code of > "ChannelSocket.java" was that > in method "init" of class "ChannelSocket" the following code > > if (getAddress() == null) > setAddress("0.0.0.0"); > > is setting 'inet' variable to address 0.0.0.0, which is > creating problems at > the time of shutdown when method "destroy" is called and a new socket > creation is tried which results in the above mentioned "Bind > Exception"... > > if (inet == null) { > s=new Socket("127.0.0.1", port ); > }else{ > s=new Socket(inet, port ); > // setting soLinger to a small value will > help shutdown the > // connection quicker > s.setSoLinger(true, 0); > } > Is this a real bug or there is some other problem which i > don't know??? > (investigating the code does'nt suggest the possibility of > any configuration > problems!!!) > > please help! if any of u knows the problem > > -thanks > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DB2 version 8.1 using Jakarta Commons Connection Pool
Hello, all, Does anyone successfully configure DB2 version 8.1 using Jakarta Commons Connection Pool? Could you share your experience with us? Thanks in advance, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best Logging practices
Note that the settings in web.xml can be overridden at runtime. For instance, without the customer every modifying the .war archive, they can set a custom location for logs. In Tomcat, it would work like this... in web.xml log-location WEB-INF/logs in server.xml or, beter yet, in a context configuration file I think I got the syntax right. Not positive. Double check with the Tomcat docs before using the above. So, you distribute your fully self-encapsulated portable myapp.war file and the deployer has the job of doing configuration appropriate to their own needs. Not all servers will have the same server configuration, but they will all have some way to do what we just did for Tomcat. The deployer should understand this. Jake At 11:25 AM 2/20/2003 -0800, you wrote: I agree. When I posted that, it was a summation of the posts that I had seen till that time. What I've been looking for is a "standard" way to configure my .war archives, such that we can call it a "true" deployable - without any interference from the users. Like someone else pointed out, the intent is to make have "configuration free" archive. I've had several instances in the past, where despite the best efforts, we ended up having to provide "instructions" to the end-user for deployment (and the worst is one you ask the end-user to open up the web.xml or some application-specific properties file that the applications reads from). Further, there are instances where certain servers do not explode the .war archive, so the end-user never gets to see those properties files themselves. Regards, Manav. - Original Message - From: "Jacob Kjome" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, February 19, 2003 8:51 PM Subject: Re: Best Logging practices > > Your question is now becoming a lot more logging-in-general oriented where > it was about logging from webapps before. I suggest you look to the > experts on the log4j-user list or, better yet, buy the book on using log4j: > > http://www.qos.ch/shop/products/clm_t.jsp > > This is loaded with information and I highly recommend getting it. It will > answer most, if not all, of your logging questions. > > Jake > > At 09:27 AM 2/20/2003 -0800, you wrote: > >Without an intent to offend anyone, I'd say majority of the posts were > >centered around what tools to use, rather than the best practices itself > >(apart from the posts of Jacob and Peter Lin). > > > >So, from what I understand: > >1. Web applications written using tomcat should have the logging path > >configurable (via the parameters in the web.xml, for example) - since the > >webapp can be run directly from the .war archive. And Steve had a remark > >about not being able to have configurable files inside the jar. > >2. While logging to a directory inside the webapp structure, its a good > >practice to check context.getRealPath("/") returns non-null first. > >3. Keep an alternative - so when logging to your file fails, use > >ServletContext.log(string) to send the message string to application log. > > > >What about, like Peter mentioned (but did not quite elaborate) log rotation? > >report generation based on logs? log backups? Also guidelines for the > >developers to separate the log messages that are errors, and log messages > >that are produced by the application as indications of the outcome of some > >task? > > > >Thanks, > >Manav. > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with classpath modification
We encountered an issue when adding a classpath entry to the 'setclasspath.sh' script. Our environment is RH Linux 8, Apache 2.0, and Tomcat 4.1.18. We have connected Apache and Tomcat, and moved our appbase to another folder (not $TOMCAT_HOME/webapps). We need to add a classpath entry in order to help our servlet *find itself*. This sounds a bit funny, but the servlet reads a config file, and parses its own tag library. In a traditional environment we would set an entry in the classpath for our servlet, and a couple dependent jar files. In our Tomcat 4.x environment, such configuration is done through XML files. As it is, a 'HelloWorld' servlet runs fine in our 'classes' folder, and dependent jar files can be found in our 'lib' folder. But our own servlet cannot *find itself* to bootstrap the tag library. So we tried to add the entry '/home/web/mediaware/WEB-INF/classes' to the CLASSPATH by modifying the 'setclasspath.sh' script. But it caused us to get various 500 errors - the supporting classes could not be found! Even the 'HelloWorld' servlet cannot be found. To overcome this issue, we make the following modification in the 'setclasspath.sh' file (the 'joinClassPath' function assures that any existing classpath is inherited, and that there are no null entries in the classpath): # Set standard CLASSPATH # CLASSPATH="$JAVA_HOME"/lib/tools.jar joinClassPath() { # adds string argument to end of existing classpath if [ -z "$CLASSPATH" ] ; then CLASSPATH=$1 else CLASSPATH=$CLASSPATH:$1 fi export CLASSPATH=`echo $CLASSPATH | tr '::' ':'` } joinClassPath "$JAVA_HOME"/lib/tools.jar joinClassPath "$TOMCAT_HOME"/common/lib/servlet.jar joinClassPath /home/web/mediaware/WEB-INF/classes joinClassPath /home/web/mediaware/WEB-INF/lib/activation.jar joinClassPath /home/web/mediaware/WEB-INF/lib/collections.jar joinClassPath /home/web/mediaware/WEB-INF/lib/mail.jar A test servlet, located in our 'classes' folder displays the resulting classpath as follows: Output - The classpath is: /usr/java/j2sdk1.4.1_01/lib/tools.jar: /usr/local/jakarta/jakarta-tomcat-4.1.18/common/lib/servlet.jar: /home/web/mediaware/WEB-INF/classes: /home/web/mediaware/WEB-INF/lib/activation.jar: /home/web/mediaware/WEB-INF/lib/collections.jar: /home/web/mediaware/WEB-INF/lib/mail.jar: /usr/local/jakarta/jakarta-tomcat-4.1.18/bin/bootstrap.jar With this change, our servlet runs fine, and is able to *find itself* (using the 'classes' entry). But the question is this: all our servlet really needs to see is its own directory in the classpath - why does adding this single entry to our classpath cause Tomcat to fail to find our supporting jar files, and especially its own servlet jar! Why is it necessary for us to forcibly tell Tomcat the classpath for our jar files, which are sitting in our web application folder (literally under '/WEB-INF/lib')? Thanks in advance. Regards, Bill Claxton [[EMAIL PROTECTED]] OpenAsia Solutions provides streaming media & payment solutions. Check out http://www.openasia.net : - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best Logging practices
Hi Peter, Thanks a lot for the response. > here are some other considerations. For some of the > projects I've worked on in the past, there were > established directories for logs. Therefore I used > log4j to write my logs asynchronisly. Could you elaborate on "established directories"? I assume these directories were within your webapp context. If yes, then what if the application is deployed onto a server that does not explore your .war file? Secondly, there are instances where, thought the application is deployed correctly, there are no write permissions to that directory - how did you resolve such a situation? Finally, at times there are log files that are generated as a result of certain user action, not necessarily errors, but these have to be made available to the user as information. Would you store them into the same directory as other log files? Then there are other issues of such log files increasing in size and number continuously, and log rotation as well as backup. Any ideas about that? > logging isn't as simple as "write stuff to file". You > have to take into consideration other things like how > are the logs backed up, when are reports generated, > and other system administration processes. Oh, I agree to that. Since the advent of Log4J, I've seen the logging process to be more standardized, and the though there might be one-off incidents of literally anything being logged, there is some level of sanity. Though yes, log backup, report etc still are prevalent issues. > I typically stick configuration information in > web.xml, if the application is meant to be a > deployable web app in .war format. one thing to keep > in mind is what happens if your log fails, you will > want to direct the exceptions to the application log > by passing it to ServletContext.log(string). In some situations, system administrators at the customer's facility insist they should know what directories your application shall write to, and that this directory can be changed, if required for them (say, you develop the application and its deployed on a cluster, and they might want to change this path). You might stick this path in web.xml but then again, there is no guarantee the web app will be exploded. Thanks, Manav. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Oracle connection pooling + Tomcat 4.1.12
I had problems using oracle connection pooling when I was using transactions. So I scrapped that and went back to poolman. There is/was something funny in the way it was doing things, I'd commit the transaction, but it'd still be dirty or something. As I explicitly set the isolation mode prior to starting work I'd be getting these "commit prior to changing transaction mode" exceptions back from oracle (don't remember exactly the wording or the ora error code, but you get the idea). I tried putting a rollback or commit into the connection setup logic, but then I had other strange results. Sorry, I can't answer your question about your config, it could be ok, it might not be. --mikej -=- mike jackson [EMAIL PROTECTED] > -Original Message- > From: Alexey Yastremskiy [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 19, 2003 9:04 PM > To: Tomcat Users List > Subject: Oracle connection pooling + Tomcat 4.1.12 > > > Hi. > > I've got a problem: I tried to setup oracle connection pooling in my > tomcat configuration, but didn't succeed. I checked Tomcat docs and Oracle > docs to produce this, but nothing helped :( > Does anyone have in production such a configuration, using > Oracle-implemented connection pooling? Please, help me to do the > same... > > Here is my configs > > [server.xml] > > scope="Shareable" type="javax.sql.ConnectionPoolDataSource"/> > > > factory > > oracle.jdbc.pool.OracleDataSourceFactory > > > dataSourceName > > oracle.jdbc.pool.OracleConnectionPoolDataSource > > > url > jdbc:oracle:thin:@dbserver:1521:SID > > > description > my datasource > > > user > ... > > > password > ... > > > ... > [end server.xml] > > [web.xml] > ... > > my db > jdbc/DB > > javax.sql.ConnectionPoolDataSource e-env-ref-type> > > ... > [end web.xml] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best Logging practices
I agree. When I posted that, it was a summation of the posts that I had seen till that time. What I've been looking for is a "standard" way to configure my .war archives, such that we can call it a "true" deployable - without any interference from the users. Like someone else pointed out, the intent is to make have "configuration free" archive. I've had several instances in the past, where despite the best efforts, we ended up having to provide "instructions" to the end-user for deployment (and the worst is one you ask the end-user to open up the web.xml or some application-specific properties file that the applications reads from). Further, there are instances where certain servers do not explode the .war archive, so the end-user never gets to see those properties files themselves. Regards, Manav. - Original Message - From: "Jacob Kjome" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, February 19, 2003 8:51 PM Subject: Re: Best Logging practices > > Your question is now becoming a lot more logging-in-general oriented where > it was about logging from webapps before. I suggest you look to the > experts on the log4j-user list or, better yet, buy the book on using log4j: > > http://www.qos.ch/shop/products/clm_t.jsp > > This is loaded with information and I highly recommend getting it. It will > answer most, if not all, of your logging questions. > > Jake > > At 09:27 AM 2/20/2003 -0800, you wrote: > >Without an intent to offend anyone, I'd say majority of the posts were > >centered around what tools to use, rather than the best practices itself > >(apart from the posts of Jacob and Peter Lin). > > > >So, from what I understand: > >1. Web applications written using tomcat should have the logging path > >configurable (via the parameters in the web.xml, for example) - since the > >webapp can be run directly from the .war archive. And Steve had a remark > >about not being able to have configurable files inside the jar. > >2. While logging to a directory inside the webapp structure, its a good > >practice to check context.getRealPath("/") returns non-null first. > >3. Keep an alternative - so when logging to your file fails, use > >ServletContext.log(string) to send the message string to application log. > > > >What about, like Peter mentioned (but did not quite elaborate) log rotation? > >report generation based on logs? log backups? Also guidelines for the > >developers to separate the log messages that are errors, and log messages > >that are produced by the application as indications of the outcome of some > >task? > > > >Thanks, > >Manav. > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC & ORACLE implementation !
hey CHONG ! yepp, i think i am hurrying too fast, and i have the FILE SYSTEM with me but the thing is that i need a sytem is which i can atlesat shoud be able to do something like this -- 1) strip of the files of the un-necessary content. 2) then use the data for searching patterns. 3) apply the patterns to the unsual causes. 4) then use the data to relate to GRAPHS right now i am using a file system in which i cant perform the string matching and other operatoins. moreover all thsi has to be implemented on teh WINDOWS NT or XP. so i am sure as to how u implement somethign like shell scripting in windows. anyways thats more or less knowledge i ahev about al lthis. will be great to hear from u about all this ! thanx ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Chong Yu Meng <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: Tomcat Users List <[EMAIL PROTECTED]> Subject: Re: JDBC & ORACLE implementation ! Date: Thu, 20 Feb 2003 11:04:32 +0800 Hi Swapneel ! I have to agree with Peter on this. Try to keep your application as simple as possible. Don't use a database (especially NOT Oracle, if you are new to databases) if you can help it, because things can get very, very complicated very quickly. I think your main problem will not be connecting to Oracle via JDBC, but rather : - how to install and tune Oracle - how to handle BLOBs/CLOBs - how to do text indexing in a database My suggestion is the same as Peter's : write to the filesystem. This way, you only need to learn one skill - how to read/write files in Java - rather than learning how to handle JDBC, install and administer Oracle (which took me almost a month the last time I did it, and this was with Oracle Consulting staff!) and learning how the text indexer in Oracle works. Hate to say this, but you may be reaching a little too far on this one. Regards, pascal chong _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Oracle connection pooling + Tomcat 4.1.12
Hi. I've got a problem: I tried to setup oracle connection pooling in my tomcat configuration, but didn't succeed. I checked Tomcat docs and Oracle docs to produce this, but nothing helped :( Does anyone have in production such a configuration, using Oracle-implemented connection pooling? Please, help me to do the same... Here is my configs [server.xml] factory oracle.jdbc.pool.OracleDataSourceFactory dataSourceName oracle.jdbc.pool.OracleConnectionPoolDataSource url jdbc:oracle:thin:@dbserver:1521:SID description my datasource user ... password ... ... [end server.xml] [web.xml] ... my db jdbc/DB javax.sql.ConnectionPoolDataSource ... [end web.xml] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best Logging practices
Your question is now becoming a lot more logging-in-general oriented where it was about logging from webapps before. I suggest you look to the experts on the log4j-user list or, better yet, buy the book on using log4j: http://www.qos.ch/shop/products/clm_t.jsp This is loaded with information and I highly recommend getting it. It will answer most, if not all, of your logging questions. Jake At 09:27 AM 2/20/2003 -0800, you wrote: Without an intent to offend anyone, I'd say majority of the posts were centered around what tools to use, rather than the best practices itself (apart from the posts of Jacob and Peter Lin). So, from what I understand: 1. Web applications written using tomcat should have the logging path configurable (via the parameters in the web.xml, for example) - since the webapp can be run directly from the .war archive. And Steve had a remark about not being able to have configurable files inside the jar. 2. While logging to a directory inside the webapp structure, its a good practice to check context.getRealPath("/") returns non-null first. 3. Keep an alternative - so when logging to your file fails, use ServletContext.log(string) to send the message string to application log. What about, like Peter mentioned (but did not quite elaborate) log rotation? report generation based on logs? log backups? Also guidelines for the developers to separate the log messages that are errors, and log messages that are produced by the application as indications of the outcome of some task? Thanks, Manav. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems during shutdown in Tomcat 4.1.18
Is anybody else encountering the same problem during shutdown in Tomcat 4.1.18??? please let me know, 'cause as far as my knowledge goes, the code of "ChannelSocket.java" of "jk2" looks problematic to me, as shown below... -ankur -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 5:29 PM To: 'Tomcat Users List' Subject: RE: problems during shutdown in Tomcat 4.1.18 Did you block port 8005 on your machine? Did you remove the shutdown port definition from server.xml? John > -Original Message- > From: Ankur Goel [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 19, 2003 6:28 AM > To: [EMAIL PROTECTED] > Subject: problems during shutdown in Tomcat 4.1.18 > > > hi, > i m new to the user-list. i have a Tomcat 4.1.18 setup > installed and > everything works fine! the problem comes only at shutdown. i get a > > "java.net.bindException: cannot assign the requested address" > > i m giving the complete message log for lookup > > [INFO] Registry - -Loading registry information > [INFO] Registry - -Creating new Registry instance > [INFO] Registry - -Creating MBeanServer > [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080 > Starting service Tomcat-Standalone > Apache Tomcat/4.1.18 > [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080 > [INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009 > [INFO] JkMain - -Jk running ID=0 time=10/100 config=d:\Tomcat > 4.1.18\conf\jk2.properties > Stopping service Tomcat-Standalone > java.net.BindException: Cannot assign requested address: connect > at java.net.PlainSocketImpl.socketConnect(Native Method) > at > java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350) > at > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137) > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124) > at java.net.Socket.(Socket.java:268) > at java.net.Socket.(Socket.java:122) > at > org.apache.jk.common.ChannelSocket.destroy(ChannelSocket.java:417) > at org.apache.jk.server.JkMain.stop(JkMain.java:308) > at > org.apache.jk.server.JkCoyoteHandler.destroy(JkCoyoteHandler.java:179) > at > org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector > .java:1081) > at > org.apache.catalina.core.StandardService.stop(StandardService. > java:546) > at > org.apache.catalina.core.StandardServer.stop(StandardServer.java:2224) > at > org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run( > Catalina.java: > 624) > > what i figured out by looking at the code of > "ChannelSocket.java" was that > in method "init" of class "ChannelSocket" the following code > > if (getAddress() == null) > setAddress("0.0.0.0"); > > is setting 'inet' variable to address 0.0.0.0, which is > creating problems at > the time of shutdown when method "destroy" is called and a new socket > creation is tried which results in the above mentioned "Bind > Exception"... > > if (inet == null) { > s=new Socket("127.0.0.1", port ); > }else{ > s=new Socket(inet, port ); > // setting soLinger to a small value will > help shutdown the > // connection quicker > s.setSoLinger(true, 0); > } > Is this a real bug or there is some other problem which i > don't know??? > (investigating the code does'nt suggest the possibility of > any configuration > problems!!!) > > please help! if any of u knows the problem > > -thanks > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC & ORACLE implementation !
hey peter ! ur right, that there is no transaction involved in this process here. only thing i will be doing is receiving files on the server using the servlets. now may be it was too much thinking on my part to say that i will use ORAVCLE. what do u say that for atleast 7200 files a day of size max 1MB, shouldnt i use ORACLE ? should i try some other options and if YES then what kind of database can i implement. right now i have the FILE SYSTEM implemented here. but i think it has limited my ability to do pattern searching and data mining, thats why i was trying to move to something more stable and robust such as a database which can support TOUGHER queries. awaiting reaply ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Peter Lin <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: Tomcat Users List <[EMAIL PROTECTED]> Subject: Re: JDBC & ORACLE implementation ! Date: Wed, 19 Feb 2003 18:09:36 -0800 (PST) First off, you probably should be use Oracle enterprise edition, unless you're on a box with less than 128meg of memory. Oracle personal edition for 8i and 9i is really designed for simple uses. The scenario you've described will probably mean storing the text as a clob or in multiple columns. keep in mind if you store it as a clob, it limits your ability to search performance. breaking the text into columns will allow you to index the content easier. If query time is important, you may want to generate summaries of the text and use that for your indexes instead. as far as connecting to oracle, it's fairly straight forward. databases are handy, but take care with how you implement the application. If you don't need to index the content, or do not need transaction capabilities, you're better off using file system to store the text. RDBMS are designed specifically to handle relational data. If your data isn't relational, using Oracle is a bit over kill. Using the right tool will make your life easier in the long run. peter _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NNOT Red Herrings (Re: [OT] free Database with Transaction (Sorry for the noise))
This thread brought to mind something in Perl's Artistic License. It also reminded me that the arguments against the GPL are all red herrings. Anyway -- > Seems pretty straightforward to me: > > "If your application is not licensed under GPL or compatible OSI license > approved by MySQL AB and you intend to distribute MySQL software (be that > internally or externally), you must first obtain a commercial license to the > MySQL software in question." http://www.mysql.com/products/licensing.html Yeah, that does sound confusing. However, applying internal/external to the verb distribute would almost seem to be an attempt to extend the GPL. The GPL does not talk about internal distributions, nor does it distinguish between commercial and non-commercial uses. While MySQL does emphasize the benefit to the customer in buying licenses and support, they aren't trying to weasel around the GPL. Deployment is specifically described by the FSF as being a seperate issue from distribution, and is not restricted under the GPL unless a particular deployment requires distribution. (Do you have to install GPLed software X on all the workstations for your app to run? That sort of deployment would be a distribution, even if it were internal only. However, if the deployment does not involve modifying or incorporating said GPLed software X, the GPL would place no restrictions on it. And if deployment only requires said GPLed software X to run on the server, and all access is via some other means, then there has been no distribution in the deployment.) IIRC, the Artistic License talks about linking as a determinant of whether one program incorporates another or not. I seem to recall the FSF trying to talk about linking in some of their previous licenses or FAQs, but the present license and FAQ do not seem to do so explicitly. http://www.fsf.org/licenses/gpl-faq.html#MereAggregation MySQL AB seems to be waving their corporate hands at the issue in item 3B on the page you referenced. (If you talk to un-altered MySQL only through a third-party, non-GPLed, driver, your software should be clear of GPL requirements.) And then we get into the fuzziness of interpreters. Perl, being under the Artistic License, can link to the driver without License conflicts, even when distributed. Source code is considered through the Artistic License to be input to Perl, rather than some sort of means of incorporating Perl's library. So, if your program is entirely in Perl and only talks to MySQL through any driver, that also clears you of the GPL requirements. The Apache license does not appear, at first glance, to provide the same sort of buffer, if that's relevant. I think it isn't. Avoiding the payment of money is not the point. Even if you're using the stripped-down "free-means-free-or-else!" license that openBSD advocates, you really should know what you're using where and under what terms. If you don't, you don't really know where to turn when things fail. Free software should not be used as an excuse to abdicate responsibility. It's exactly the opposite, and if you understand that, you understand the GPL. -- Joel Rees <[EMAIL PROTECTED]> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best Logging practices
Without an intent to offend anyone, I'd say majority of the posts were centered around what tools to use, rather than the best practices itself (apart from the posts of Jacob and Peter Lin). So, from what I understand: 1. Web applications written using tomcat should have the logging path configurable (via the parameters in the web.xml, for example) - since the webapp can be run directly from the .war archive. And Steve had a remark about not being able to have configurable files inside the jar. 2. While logging to a directory inside the webapp structure, its a good practice to check context.getRealPath("/") returns non-null first. 3. Keep an alternative - so when logging to your file fails, use ServletContext.log(string) to send the message string to application log. What about, like Peter mentioned (but did not quite elaborate) log rotation? report generation based on logs? log backups? Also guidelines for the developers to separate the log messages that are errors, and log messages that are produced by the application as indications of the outcome of some task? Thanks, Manav. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.0.1
>From where can i download tomcat 4.0.1 version Rifai - Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more
Re: JDBC & ORACLE implementation !
Hi Swapneel ! I have to agree with Peter on this. Try to keep your application as simple as possible. Don't use a database (especially NOT Oracle, if you are new to databases) if you can help it, because things can get very, very complicated very quickly. I think your main problem will not be connecting to Oracle via JDBC, but rather : - how to install and tune Oracle - how to handle BLOBs/CLOBs - how to do text indexing in a database My suggestion is the same as Peter's : write to the filesystem. This way, you only need to learn one skill - how to read/write files in Java - rather than learning how to handle JDBC, install and administer Oracle (which took me almost a month the last time I did it, and this was with Oracle Consulting staff!) and learning how the text indexer in Oracle works. Hate to say this, but you may be reaching a little too far on this one. Regards, pascal chong Peter Lin wrote: First off, you probably should be use Oracle enterprise edition, unless you're on a box with less than 128meg of memory. Oracle personal edition for 8i and 9i is really designed for simple uses. The scenario you've described will probably mean storing the text as a clob or in multiple columns. keep in mind if you store it as a clob, it limits your ability to search performance. breaking the text into columns will allow you to index the content easier. If query time is important, you may want to generate summaries of the text and use that for your indexes instead. as far as connecting to oracle, it's fairly straight forward. databases are handy, but take care with how you implement the application. If you don't need to index the content, or do not need transaction capabilities, you're better off using file system to store the text. RDBMS are designed specifically to handle relational data. If your data isn't relational, using Oracle is a bit over kill. Using the right tool will make your life easier in the long run. peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat/apache problems
One more thing you need to check : your server.xml. Is the port number of the connector you are using also 8019 ? Regards, pascal chong Robert Andersson wrote: hi all! i just wanted to set up tomcat to speak with my apache server with this jk2-module. i can get the tomcat server to up and running on its own port 8080 as default. though when starting the apache server it only says in the error log: [Thu Feb 20 00:07:35 2003] [debug] /tmp/httpd-2.0.44/server/mpm/prefork/prefork.c(1039): AcceptMutex: pthread (default: pthread) [Thu Feb 20 00:07:35 2003] [error] shm.init(): No file [Thu Feb 20 00:07:35 2003] [error] mod_jk child init 1 0 [Thu Feb 20 00:07:35 2003] [error] shm.init(): No file [Thu Feb 20 00:07:35 2003] [error] shm.init(): No file i am running tomcat 4.1... on solaris 9 sparc got this in my worksers2.properties # Define the communication channel [channel.socket:localhost:8019] info=Ajp13 forwarding over socket tomcatId=localhost:8019 # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp and this in my j2k.properties handler.list=apr channelSocket.port=8019 shm.file=/usr/local/apache/apache2/logs/jk2.shm apr.jniModeSo=/usr/local/apache/apache2/modules/mod_jk2.so i really tried to follow your manuals... hehehe, over 20 years of hacking seemed like a waste... :) you really have to do something about your manuals, gee yours, /robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JDBCRealm - entering site through login page
hi all, developing on w98 with tomcat 3.2.24, mysql 3.23.26, struts 1.0.2, jsk 1.3.1. will be deploying with same setup but on xp. i was taking a custom authorization approach originally, using a Struts LoginAction for the protected areas of my web app. but i thought a JDBCRealm would be a neat thing to implement. so, i got my JDBCRealm configured, no problem. what happens now, is when a user tries to load a protected resource, they are taken to the login page. however, if someone, say, bookmarks the login page itself, or loads http://www.mydomain.com/login.jsp, then logs in successfully, then all bets are off. i get a '404 page /protected_dir/null not found' message. of course, if they give it a duff username/pass they get sent to my , as expected. what should i do to work around this? is there some way to point the login page to a Struts Action servlet? i figured the *only* action i was allowed to use with JDBCRealms was 'j_security_check', with the requisite 'j_username' and 'j_password' form fields. no struts actions allowed. is that right? or is there some way - using a JDBCRealm - to set a default page that login would go to on a successful login, in the cases where a user hasn't previously tried accessing a protected area, but instead simply tried loading the login.jsp page itself? any help anyone can give would be greatly appreciated. thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ChannelSocket reset connection (Re: Querystring seg fault with mod_jk)
Still haven't had any luck trying to debug this, but have found this error msg in catalina.out, [INFO] ChannelSocket - -server has been restarted or reset this connection Stephen Riek <[EMAIL PROTECTED]> wrote:I also have Apache 1.3.x accessing Tomcat 4.1.18 through JK (and not JK2). I can follow hyperlinks from one JSP (served up by Tomca) to another JSP, through JK/Apache. However, I can not follow links with a query appended. Eg. HREF ="somejsp?var=value" would not work but HREF="somejsp" does work. The error log in Apache simply reads, "[Wed Feb 19 12:52:46 2003] [notice] child pid 25102 exit signal Segmentation Fault (11)" At the moment I have set JK to pass ALL requests through with JkMount /* worker1 But is there something else I have to do to allow requests with querystrings ? or as the Apache error log suggests, have I got a more serious problem ? My httpd/conf/workers.properties is : worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300 And my httpd.conf uses this: LoadModule jk_module modules/mod_jk.so AddModule mod_jk.c JkWorkersFile /httpd/conf/workers.properties JkLogFile /httpd/logs/mod_jk.log JkLogLevel info JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat "%w %V %T" JkMount /* worker1 (copied it from one of you on tomcat-users yesterday. apologies if it looks familiar :) Thanks for any help, Stephen. - With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
RE: failed to access session bean
Opps my typo mistake, should be Whenever i try to access a session beans deploy on JBoss from the struts application deploy on Tomcat in <> JVM the following errors occured. If i deploy the struts based application in Tomcat bundle in JBoss there are no problems. > -Original Message- > From: Stephen Ting [mailto:[EMAIL PROTECTED]] > Sent: 20 February 2003 10:27 > To: [EMAIL PROTECTED] > Subject: failed to access session bean > > > Whenever i try to access a session beans deploy on JBoss from > the struts application deploy on Tomcat in JVM the following > errors occured. If i deploy the struts based application in > Tomcat bundle in JBoss there are no problems. > > Could anyone please help? > > Regards, > Stephen > > > java.lang.RuntimeException: error marshalling arguments; > nested exception is: > java.net.SocketException: Software caused connection abort: > socket write error at > my.com.shinyang.einout.ejb.bd.MaintenanceDelegateEJBImpl.initB > ean(Unknow > n Source) > at > my.com.shinyang.einout.ejb.bd.MaintenanceDelegateEJBImpl.invok > eBean(Unkn > own Source) > at > my.com.shinyang.einout.ejb.bd.MaintenanceDelegateEJBImpl.getAl > lCategory( > Unknown Source) > at my.com.shinyang.einout.web.EinoutPlugin.initDBInformation(Unknown > Source) > at my.com.shinyang.einout.web.EinoutPlugin.init(Unknown > Source) at > org.apache.struts.action.ActionServlet.initModulePlugIns(Actio > nServlet.j > ava:1105) > at > org.apache.struts.action.ActionServlet.init(ActionServlet.java:471) > at javax.servlet.GenericServlet.init(GenericServlet.java:256) > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardW > rapper.jav > a:934) > at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper. > java:821) > at > org.apache.catalina.core.StandardContext.loadOnStartup(Standar > dContext.j > ava:3420) > at > org.apache.catalina.core.StandardContext.start(StandardContext > .java:3608 > ) > at > org.apache.catalina.core.ContainerBase.addChildInternal(Contai > nerBase.ja > va:821) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase. > java:807) > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) > at > org.apache.catalina.core.StandardHostDeployer.install(Standard > HostDeploy > er.java:257) > at > org.apache.catalina.core.StandardHost.install(StandardHost.java:772) > at > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502) > at > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410) > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) > at > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConf > ig.java:36 > 8) > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L > ifecycleSu > pport.java:166) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) > at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) > at > org.apache.catalina.core.StandardService.start(StandardService > .java:497) > at > org.apache.catalina.core.StandardServer.start(StandardServer.j > ava:2189) > at > org.apache.catalina.startup.CatalinaService.start(CatalinaServ > ice.java:2 > 73) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess > orImpl.jav > a:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth > odAccessor > Impl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > org.apache.catalina.startup.BootstrapService.start(BootstrapSe > rvice.java > :245) > at > org.apache.catalina.startup.BootstrapService.main(BootstrapSer > vice.java: > 307) > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
failed to access session bean
Whenever i try to access a session beans deploy on JBoss from the struts application deploy on Tomcat in JVM the following errors occured. If i deploy the struts based application in Tomcat bundle in JBoss there are no problems. Could anyone please help? Regards, Stephen java.lang.RuntimeException: error marshalling arguments; nested exception is: java.net.SocketException: Software caused connection abort: socket write error at my.com.shinyang.einout.ejb.bd.MaintenanceDelegateEJBImpl.initBean(Unknow n Source) at my.com.shinyang.einout.ejb.bd.MaintenanceDelegateEJBImpl.invokeBean(Unkn own Source) at my.com.shinyang.einout.ejb.bd.MaintenanceDelegateEJBImpl.getAllCategory( Unknown Source) at my.com.shinyang.einout.web.EinoutPlugin.initDBInformation(Unknown Source) at my.com.shinyang.einout.web.EinoutPlugin.init(Unknown Source) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j ava:1105) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:471) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:934) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j ava:3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy er.java:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:36 8) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:2 73) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.BootstrapService.start(BootstrapService.java :245) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java: 307)
Re: JDBC & ORACLE implementation !
First off, you probably should be use Oracle enterprise edition, unless you're on a box with less than 128meg of memory. Oracle personal edition for 8i and 9i is really designed for simple uses. The scenario you've described will probably mean storing the text as a clob or in multiple columns. keep in mind if you store it as a clob, it limits your ability to search performance. breaking the text into columns will allow you to index the content easier. If query time is important, you may want to generate summaries of the text and use that for your indexes instead. as far as connecting to oracle, it's fairly straight forward. databases are handy, but take care with how you implement the application. If you don't need to index the content, or do not need transaction capabilities, you're better off using file system to store the text. RDBMS are designed specifically to handle relational data. If your data isn't relational, using Oracle is a bit over kill. Using the right tool will make your life easier in the long run. peter Swapneel Dange <[EMAIL PROTECTED]> wrote:hi ! frankly speaking, i am very new to the database concepts. i am trying to use the "Oracle Database Personal Edition" for my use here. But i can tell about the version of the TOMCAT, i am using , its 3.3.1a. if u could tell me in detail as to what ORACLE product i should use will be great. By the way i am using this database for the users to send data from 3 different states on the webserver i am running here. so that when that data which are huge files coem over here, i can massage them and get the particular details i want for my use. thanx ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange >From: "Andoni" >Reply-To: "Tomcat Users List" >To: "Tomcat Users List" >Subject: Re: JDBC & ORACLE implementation ! >Date: Wed, 19 Feb 2003 10:09:16 - > >The implementation is based on which driver you use, which mostly depends >on >which version of Oracle you are running. > >What version numbers are you using for Oracle & Tomcat > >- Original Message - >From: "Swapneel Dange" >To: >Sent: Wednesday, February 19, 2003 9:47 AM >Subject: JDBC & ORACLE implementation ! > > > > hi there ~ > > > > i am curious to know as to how can u implement ORACLE database in the > > TOMCAT. and can somebody tell me as to where i can read the >DOCUMENTATION > > for the implementation of the JDBC connectivity under TOMCAT. > > > > Swapneel Dange > > 505-642-4126 > > http://www.cs.nmsu.edu/~sdange > > > > > > > > > > _ > > MSN 8 with e-mail virus protection service: 2 months FREE* > > http://join.msn.com/?page=features/virus > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day
Re: interesting problem bug with client certificates?
Bill: Can you tell me how or point me to some docs on how to do the tcp traces you are requesting? I can certainly run some test cases and deposit them in the bug report. Yes I am using jdk 1.4! Thanks, Tony Bill Barker wrote: "Tony Dahbura" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Team: I have noticed something very inconsistent within Tomcat 4.1.18. My application is using client certificates over ssl (these all occur after I unlock and present my certificate (which btw is the same on all three of these browsers). When I access my protected resource with IE version 6.0 all works fine. When I access my protected resource with Mozilla version 1.1 I receive an error page from tomcat that says: HTTP Status 400 - No client certificate chain in this request. Description:The request sent by the client was syntactically incorrect (No client certificate chain in this request). If I hit reload it works fine. When I access my protected resource with Netscape Communicator I receive a blank page. After hitting reload I am prompted for my certificate again and it works correctly. I believe this message is being generated by the following code in org.apache.catalina.authenticator.SSLAuthenticator.java: // Retrieve the certificate chain for this client HttpServletResponse hres = (HttpServletResponse) response.getResponse(); if (debug >= 1) log(" Looking up certificates"); X509Certificate certs[] = (X509Certificate[]) request.getRequest().getAttribute(Globals.CERTIFICATES_ATTR); if ((certs == null) || (certs.length < 1)) { certs = (X509Certificate[]) request.getRequest().getAttribute(Globals.SSL_CERTIFICATE_ATTR); } if ((certs == null) || (certs.length < 1)) { if (debug >= 1) log(" No certificates included with this request"); hres.sendError(HttpServletResponse.SC_BAD_REQUEST, sm.getString("authenticator.certificates")); return (false); } My question is why the inconsistent behavior between browsers? Secondly if I do not do cert authentication within my webapp but instead turn it on for the whole SSL context (using clientAuth) I do not get this message with any of the above mentioned browsers. The special (internal to Tomcat) 'SSL_CERTIFICATE_ATTR' attribute causes Tomcat to re-negotiate the handshake with the additional requirement of a client cert if there isn't already a cert present (and this is why clientAuth works). In addition, for the JDK1.4 of JSSE, there are some tricks to get around that version's refusal to re-negotiate until there is real traffic on the Socket. This is probably what is confusing Mozilla & Netscape. You can file a bug-report at http://nagoya.apache.org/bugzilla/, but it would be more helpful (and very welcome :) if you could include the TCP traces as well. I'm guessing that you are using JDK1.4. I'm also guessing that down-grading to JDK1.3.1.x+JSSE 1.0.2 would suddenly cause everything to start working. Another option would be to use PureTLS (http://www.rtfm.com/puretls/). I haven't tried it with JDK1.4.x, but it works well with JDK1.3.1.x. Thanks, Tony -- Tony Dahbura Deployment Director Opsware Business Practice EDS Inc. 13900 Lincoln Park Drive Suite 405/WH-OPS Herndon, VA 20171 voice: 703.742.1280 fax: 703.742.1163 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] free Database with Transaction (Sorry for the noise)
Internal and External refer to whether you compile the mySQL source into your program and distribute that (internal), or you just distribute mySQL along with your software (external). The only important part is that you have to *distribute* the mySQL software in order to incur charges. As I said before, you can use it to drive your web application free of charge. -Jake Erik Price wrote: > > > Turner, John wrote: >> I guess MySQL AB should remove the phrase "internal or external" from the >> statement, then. ;) > > I agree, it is confusing, and doesn't even say what context "internal" > or "external" refers to. > > > Erik > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBC & ORACLE implementation !
Ok, lets start from the beginning, you're getting 1 file per 12 seconds, roughtly 7200 files a day. Where does oracle come into this? You don't really need oracle, you just need a directory and a way to generate unique filenames. Then you can use grep or something scripted to massage them and figure out what you want to keep. Now, if you want to store the files in oracle and then use the oracle text index on clobs to do keyword searching for stuff, then you're going to need to connect to oracle somehow and put the files into the database. Since the files aren't too large you shouldn't have problems with the version of oracle, but you will have problems with the intermedia text index (it's called something else now, but I forget what the current name is). The index won't auto-update, so you'll have to make a dml call to update the index. You'd probably only want to do this prior to when you're going to work with the files. Now, you need the servlet/jsp handling the uploads to be able to access oracle, not tomcat. Tomcat could but doesn't need to come into the picture, up to you. Either way, assuming you're going to put the files into oracle, you're going to need a connection. You could do that simply by putting the required code into the jsp/servlet, which would look something like this: Class.forName( "oracle.jdbc.driver.OracleDriver" ); Connection con = DriverManager.getConnection( "jdbc:oracle:thin:@127.0.0.1:1521:CTMC", "user", "pass" ); At this point you're going to have a connection. If you want to go the datasource route you're going to have to ask someone else, I haven't setup tomcat to provide the connection. Anyway, once you have the connection you're going to write into the clob, which will look like this: con.setAutoCommit( false ); Statement s = con.createStatement(); s.execute( "insert into clob_table ( id, clob ) values ( 1, empty_clob() )"; ResultSet rs = s.executeQuery( "select clob from clob_table where id = 1 for update" ); if ( rs.next() ) { oracle.sql.CLOB c = ( oracle.sql.CLOB ) rs.getClob( 1 ); java.io.PrintStream out = new java.io.PrintStream( c.getAsciiOutputStream() ); out.println( file_data ); out.close(); } s.close(); con.commit(); Now in some cases you'd want to use a different transactionIsolation mode, the one you'll need to use when working with clobs under oracle is READ_COMMITED. If you use SERIALIZED you'll have intermittent problems (most likely, but not in all cases). Does this answer your questions? --mikej -=- mike jackson [EMAIL PROTECTED] > -Original Message- > From: Swapneel Dange [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 19, 2003 4:49 PM > To: [EMAIL PROTECTED] > Subject: RE: JDBC & ORACLE implementation ! > > > hi mike ! > > the files i am using are quite small in size like 200-300 KB but > sometimes i > get files of the size 1MB or so. but the rate at which i get > these files is > huge, i get a file every 12 second so that makes 7200 files a day and all > are useful files. i will then massgae the files and strip them of the > un-necessary details. and then look out for keywords in the file. > draw some > conclusions based on that and then implement the solutions. > > moreoevr i could not understand as to what u wanted to convey through the > sentense," So, you don't really need tomcat per say to talk to > oracle, you > need your>servlets/jsps to be able to talk to oracle. " . i am a NOVICE, > thats the reason that i didnt understans the meaning of the > sentense there. > anyways i can user the other JDBC drivers which are not supplied > by ORACLE. > some of the drivers suggested to me here are the ones by DATADIRECT. > > awaiting reply ! > > Swapneel Dange > 505-642-4126 > http://www.cs.nmsu.edu/~sdange > > > > > > > > > >From: "Mike Jackson" <[EMAIL PROTECTED]> > >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> > >To: "Tomcat Users List" <[EMAIL PROTECTED]> > >Subject: RE: JDBC & ORACLE implementation ! > >Date: Wed, 19 Feb 2003 16:24:25 -0800 > > > >So, you don't really need tomcat per say to talk to oracle, you need your > >servlets/jsps to be able to talk to oracle. What type of data are you > >working with and how big is it? That's really the question to > ask that'll > >tell you what version of oracle to use. If you using small data > (standard > >types or lobs) then any version should work ok. But you'll want to be in > >the READ_COMMITED transaction isolation mode (default). If > you're working > >with large lobs (>25 megs) you'll probably want to be on 9.2.0.1.0 or > >better > >(or a patched 9.1, but not an 8.x version I think). And you'll want to > >make > >sure you're using the jdbc driver supplied by the database, or one from a > >newer version, the older ones with newer databases tend to cause > problems. > >Personal/Standard/Enterprise may not matter. >
RE: JDBC & ORACLE implementation !
hi mike ! the files i am using are quite small in size like 200-300 KB but sometimes i get files of the size 1MB or so. but the rate at which i get these files is huge, i get a file every 12 second so that makes 7200 files a day and all are useful files. i will then massgae the files and strip them of the un-necessary details. and then look out for keywords in the file. draw some conclusions based on that and then implement the solutions. moreoevr i could not understand as to what u wanted to convey through the sentense," So, you don't really need tomcat per say to talk to oracle, you need your>servlets/jsps to be able to talk to oracle. " . i am a NOVICE, thats the reason that i didnt understans the meaning of the sentense there. anyways i can user the other JDBC drivers which are not supplied by ORACLE. some of the drivers suggested to me here are the ones by DATADIRECT. awaiting reply ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: "Mike Jackson" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Subject: RE: JDBC & ORACLE implementation ! Date: Wed, 19 Feb 2003 16:24:25 -0800 So, you don't really need tomcat per say to talk to oracle, you need your servlets/jsps to be able to talk to oracle. What type of data are you working with and how big is it? That's really the question to ask that'll tell you what version of oracle to use. If you using small data (standard types or lobs) then any version should work ok. But you'll want to be in the READ_COMMITED transaction isolation mode (default). If you're working with large lobs (>25 megs) you'll probably want to be on 9.2.0.1.0 or better (or a patched 9.1, but not an 8.x version I think). And you'll want to make sure you're using the jdbc driver supplied by the database, or one from a newer version, the older ones with newer databases tend to cause problems. Personal/Standard/Enterprise may not matter. --mikej -=- mike jackson [EMAIL PROTECTED] > -Original Message- > From: Swapneel Dange [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 19, 2003 4:11 PM > To: [EMAIL PROTECTED] > Subject: Re: JDBC & ORACLE implementation ! > > > hi ! > > frankly speaking, i am very new to the database concepts. i am > trying to use > the "Oracle Database Personal Edition" for my use here. But i can > tell about > the version of the TOMCAT, i am using , its 3.3.1a. if u could tell me in > detail as to what ORACLE product i should use will be great. > > By the way i am using this database for the users to send data from 3 > different states on the webserver i am running here. so that when > that data > which are huge files coem over here, i can massage them and get the > particular details i want for my use. > > thanx ! > > Swapneel Dange > 505-642-4126 > http://www.cs.nmsu.edu/~sdange > > > > > > >From: "Andoni" <[EMAIL PROTECTED]> > >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> > >To: "Tomcat Users List" <[EMAIL PROTECTED]> > >Subject: Re: JDBC & ORACLE implementation ! > >Date: Wed, 19 Feb 2003 10:09:16 - > > > >The implementation is based on which driver you use, which > mostly depends > >on > >which version of Oracle you are running. > > > >What version numbers are you using for Oracle & Tomcat > > > >- Original Message - > >From: "Swapneel Dange" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Sent: Wednesday, February 19, 2003 9:47 AM > >Subject: JDBC & ORACLE implementation ! > > > > > > > hi there ~ > > > > > > i am curious to know as to how can u implement ORACLE database in the > > > TOMCAT. and can somebody tell me as to where i can read the > >DOCUMENTATION > > > for the implementation of the JDBC connectivity under TOMCAT. > > > > > > Swapneel Dange > > > 505-642-4126 > > > http://www.cs.nmsu.edu/~sdange > > > > > > > > > > > > > > > _ > > > MSN 8 with e-mail virus protection service: 2 months FREE* > > > http://join.msn.com/?page=features/virus > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > _ > Protect your PC - get McAfee.com VirusScan Online > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _
RE: tomcat/apache problems
Tomcat is open source, so I think you probably meant to say "our documentation". Every example HERE: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebex.html has: [shm] file=${serverRoot}/logs/shm.file size=1048576 in it. Have you tried something like that? BTW, patches to the documentation are welcome. John -Original Message- From: Robert Andersson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 6:36 PM To: [EMAIL PROTECTED] Subject: tomcat/apache problems hi all! i just wanted to set up tomcat to speak with my apache server with this jk2-module. i can get the tomcat server to up and running on its own port 8080 as default. though when starting the apache server it only says in the error log: [Thu Feb 20 00:07:35 2003] [debug] /tmp/httpd-2.0.44/server/mpm/prefork/prefork.c(1039): AcceptMutex: pthread (default: pthread) [Thu Feb 20 00:07:35 2003] [error] shm.init(): No file [Thu Feb 20 00:07:35 2003] [error] mod_jk child init 1 0 [Thu Feb 20 00:07:35 2003] [error] shm.init(): No file [Thu Feb 20 00:07:35 2003] [error] shm.init(): No file i am running tomcat 4.1... on solaris 9 sparc got this in my worksers2.properties # Define the communication channel [channel.socket:localhost:8019] info=Ajp13 forwarding over socket tomcatId=localhost:8019 # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp and this in my j2k.properties handler.list=apr channelSocket.port=8019 shm.file=/usr/local/apache/apache2/logs/jk2.shm apr.jniModeSo=/usr/local/apache/apache2/modules/mod_jk2.so i really tried to follow your manuals... hehehe, over 20 years of hacking seemed like a waste... :) you really have to do something about your manuals, gee yours, /robert -- Systems Administrator Swedish National Graduate School of Language Technology - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003 --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBC & ORACLE implementation !
So, you don't really need tomcat per say to talk to oracle, you need your servlets/jsps to be able to talk to oracle. What type of data are you working with and how big is it? That's really the question to ask that'll tell you what version of oracle to use. If you using small data (standard types or lobs) then any version should work ok. But you'll want to be in the READ_COMMITED transaction isolation mode (default). If you're working with large lobs (>25 megs) you'll probably want to be on 9.2.0.1.0 or better (or a patched 9.1, but not an 8.x version I think). And you'll want to make sure you're using the jdbc driver supplied by the database, or one from a newer version, the older ones with newer databases tend to cause problems. Personal/Standard/Enterprise may not matter. --mikej -=- mike jackson [EMAIL PROTECTED] > -Original Message- > From: Swapneel Dange [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 19, 2003 4:11 PM > To: [EMAIL PROTECTED] > Subject: Re: JDBC & ORACLE implementation ! > > > hi ! > > frankly speaking, i am very new to the database concepts. i am > trying to use > the "Oracle Database Personal Edition" for my use here. But i can > tell about > the version of the TOMCAT, i am using , its 3.3.1a. if u could tell me in > detail as to what ORACLE product i should use will be great. > > By the way i am using this database for the users to send data from 3 > different states on the webserver i am running here. so that when > that data > which are huge files coem over here, i can massage them and get the > particular details i want for my use. > > thanx ! > > Swapneel Dange > 505-642-4126 > http://www.cs.nmsu.edu/~sdange > > > > > > >From: "Andoni" <[EMAIL PROTECTED]> > >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> > >To: "Tomcat Users List" <[EMAIL PROTECTED]> > >Subject: Re: JDBC & ORACLE implementation ! > >Date: Wed, 19 Feb 2003 10:09:16 - > > > >The implementation is based on which driver you use, which > mostly depends > >on > >which version of Oracle you are running. > > > >What version numbers are you using for Oracle & Tomcat > > > >- Original Message - > >From: "Swapneel Dange" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Sent: Wednesday, February 19, 2003 9:47 AM > >Subject: JDBC & ORACLE implementation ! > > > > > > > hi there ~ > > > > > > i am curious to know as to how can u implement ORACLE database in the > > > TOMCAT. and can somebody tell me as to where i can read the > >DOCUMENTATION > > > for the implementation of the JDBC connectivity under TOMCAT. > > > > > > Swapneel Dange > > > 505-642-4126 > > > http://www.cs.nmsu.edu/~sdange > > > > > > > > > > > > > > > _ > > > MSN 8 with e-mail virus protection service: 2 months FREE* > > > http://join.msn.com/?page=features/virus > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > _ > Protect your PC - get McAfee.com VirusScan Online > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC & ORACLE implementation !
hi ! frankly speaking, i am very new to the database concepts. i am trying to use the "Oracle Database Personal Edition" for my use here. But i can tell about the version of the TOMCAT, i am using , its 3.3.1a. if u could tell me in detail as to what ORACLE product i should use will be great. By the way i am using this database for the users to send data from 3 different states on the webserver i am running here. so that when that data which are huge files coem over here, i can massage them and get the particular details i want for my use. thanx ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: "Andoni" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Subject: Re: JDBC & ORACLE implementation ! Date: Wed, 19 Feb 2003 10:09:16 - The implementation is based on which driver you use, which mostly depends on which version of Oracle you are running. What version numbers are you using for Oracle & Tomcat - Original Message - From: "Swapneel Dange" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 19, 2003 9:47 AM Subject: JDBC & ORACLE implementation ! > hi there ~ > > i am curious to know as to how can u implement ORACLE database in the > TOMCAT. and can somebody tell me as to where i can read the DOCUMENTATION > for the implementation of the JDBC connectivity under TOMCAT. > > Swapneel Dange > 505-642-4126 > http://www.cs.nmsu.edu/~sdange > > > > > _ > MSN 8 with e-mail virus protection service: 2 months FREE* > http://join.msn.com/?page=features/virus > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best Logging practices
> From: "Justin Ruthenbeck" <[EMAIL PROTECTED]> > Sent: Wednesday, February 19, 2003 3:15 PM > Subject: Re: Best Logging practices > I'm sure this is a contentious topic ripe for disagreement, but I see no > reason why a .war file should be read-only. The point of packaging your > application in such a way is to make a single cohesive unit that is > deployable across various vendors, right? Then why should users be forced, > if they don't want, to store application-SPECIFIC data outside of that > application. Seems to me that it only moves us away from our original > intention. My view is that the WAR file is identical to an EXE file (on Windows). A single, atomic unit that represents the application. Looked at in this way, you'll notice that most (if not all) applications never see the "inside" of the EXE file. They simply don't care. The reason that a WAR is not writeable is that there is simply no guarantee that the WAR is placed upon a writeable medium. One (albeit contrived) example is that the WAR could be shared across several different servers running simultaneously. So, in a Unix environment, you might have the WAR file in /usr/local/war/App.war. And its permissions might simply be -r--r--r--. Since there is no guarantee that the container even explode the WAR file, here you have a case that would prevent your application from writing. Also, in this example, you'd have a problem with multiple servers updating shared state in the common WAR. The other extreme may be that the WAR is buried in ReadOnly FLASH on a small embedded server someplace. All sorts of scenarios come to mind as to why a WAR could be read only. > In a large application, I'd agree that writing to resources inside the .war > file has limited advantages -- it's not like you want to store data inside > the war file instead of a database. But even large applications (such as > the one I'm working on) can eventually acquire awareness of their > surroudings and environment that they discover over time. If you force > users to supply this information by setting param values in the web.xml or > using external xml configuration files or properties files, then you've > lost the simplicity of a single application archive. Since the application > has no portable place to store this data, you're stuck specifying a > location outside the war and we're back to the same problem. Yup! Pain in the neck. Plus, you can not provide a "configuration free" web interface to adjust those parameters. You will always need at least ONE parameter from the user (where and how can I persist information). If they need to supply The One parameter, might as well toss in the rest as well. > Seems better to me to allow an application to change its own configuration > in cases like this -- regardless of whether the app is packed or > unpacked. Think of this as application meta-data -- data that an > application would want to store persistently and, for sake of consistency, > should be stored along with other application configuration information > inside the war. For small applications with very limited data, this could > even be a central data store and would allow the movement of applications > between servers and hosts without the need to worry about file > compatibility, directory structures, or permissions. Now, I'm not really up to speed on this (I only know it exists, and I've read a couple paragraphs of the spec). In many ways the new Preferences API handles some of this. It seems that the Pref API is supplied, and implemented by JDK 1.4. I suppose that it's configurable in some way at the JVM level, being as it's supposed to be backend neutral. But it seems like it offers a "free", simple Windows Registry-esque functonality to Java programs, including WARs. If you don't mind limiting your WAR to JDK 1.4+, then you have this capability now: a simple mechanism to save configuration options and what not. This mechanism addresses a lot of issues for WARs I think. I, too, would like to have a "standard" mechanism to help configure WARs that is external to the WAR, yet perhaps maintained by the container. For example, (maybe Tomcat does this, I'd have to look), it would be nice to have access to the JNDI namespace (like env-entry's) at, say, the Context level within the container that lets you specify local configuration options without cracking the WAR. The trick, of course, would be to not have the WARs env-entry's overwrite the locally specified ones. But, if the Preferences API is guaranteed to persist some small amount of information, portably, across implementations, then that can be a good start. You can have the defaults buried in your WAR, persist them into preferences, and then have your app pop up a configuration page as soon as it's started to ask for the magic "Where to save LOTS of data" parameters. I think that access to volumes of persistent data will always be a application specific configuration issue. Someone will always
Re: Best Logging practices
At 02:43 PM 2/19/2003, you wrote: > One thought though; for web applications you're supposed to get > external resources by configuring them in the web.xml and using > ServletContext.getResourceAsStream(). This only supports input > streams, but I've always sort of felt it should support output streams > as well. Or that there should be some similar mechanism, so that at > least the point where you're crossing the web application boundary is > explicitly and clearly defined in a standard central location for such > information. But, once you're cracking open the web.xml, then you might as well point it to a directory or JDBC instance. The real issue is, of course, that it's SUPPOSED to be difficult to write things, as writing things "consumes resources" on the host machine, compared to reading, which is non-destructive. I do agree, however, that it would be nice to have some persistent area available. I'm sure this is a contentious topic ripe for disagreement, but I see no reason why a .war file should be read-only. The point of packaging your application in such a way is to make a single cohesive unit that is deployable across various vendors, right? Then why should users be forced, if they don't want, to store application-SPECIFIC data outside of that application. Seems to me that it only moves us away from our original intention. In a large application, I'd agree that writing to resources inside the .war file has limited advantages -- it's not like you want to store data inside the war file instead of a database. But even large applications (such as the one I'm working on) can eventually acquire awareness of their surroudings and environment that they discover over time. If you force users to supply this information by setting param values in the web.xml or using external xml configuration files or properties files, then you've lost the simplicity of a single application archive. Since the application has no portable place to store this data, you're stuck specifying a location outside the war and we're back to the same problem. Seems better to me to allow an application to change its own configuration in cases like this -- regardless of whether the app is packed or unpacked. Think of this as application meta-data -- data that an application would want to store persistently and, for sake of consistency, should be stored along with other application configuration information inside the war. For small applications with very limited data, this could even be a central data store and would allow the movement of applications between servers and hosts without the need to worry about file compatibility, directory structures, or permissions. My apologies as this is getting off topic and is better suited for a spec discussion forum, but I see this problem repeatedly and had to put my 2 cents in... justin Justin Ruthenbeck Software Engineer, NextEngine Inc. [EMAIL PROTECTED] Confidential - See http://www.nextengine.com/confidentiality.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat/apache problems
hi all! i just wanted to set up tomcat to speak with my apache server with this jk2-module. i can get the tomcat server to up and running on its own port 8080 as default. though when starting the apache server it only says in the error log: [Thu Feb 20 00:07:35 2003] [debug] /tmp/httpd-2.0.44/server/mpm/prefork/prefork.c(1039): AcceptMutex: pthread (default: pthread) [Thu Feb 20 00:07:35 2003] [error] shm.init(): No file [Thu Feb 20 00:07:35 2003] [error] mod_jk child init 1 0 [Thu Feb 20 00:07:35 2003] [error] shm.init(): No file [Thu Feb 20 00:07:35 2003] [error] shm.init(): No file i am running tomcat 4.1... on solaris 9 sparc got this in my worksers2.properties # Define the communication channel [channel.socket:localhost:8019] info=Ajp13 forwarding over socket tomcatId=localhost:8019 # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp and this in my j2k.properties handler.list=apr channelSocket.port=8019 shm.file=/usr/local/apache/apache2/logs/jk2.shm apr.jniModeSo=/usr/local/apache/apache2/modules/mod_jk2.so i really tried to follow your manuals... hehehe, over 20 years of hacking seemed like a waste... :) you really have to do something about your manuals, gee yours, /robert -- Systems Administrator Swedish National Graduate School of Language Technology - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't get Servlet Inputstream
>From the exception thrown it appears as though getinputstream has already been >called. I am using the embedded tomcat class to start Tomcat 4.1.18. I have to go now, but I can provide the exact exception thrown later. Thank you, George -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 2:12 PM To: Tomcat Users List Subject: RE: Can't get Servlet Inputstream Howdy, Very interesting. Interesting enough that I want to try to reproduce it myself, but my local tomcat instance is running a 12-hour long performance/stress profile. So in the meantime, let me ask this: - Which version of tomcat? - Which JDK? - Does getReader() work? - Are any exceptions thrown by the getInputStream request? - Are there any relevant exceptions in the tomcat logs? - Have you verified your tomcat installation is good by running the examples? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Manty, George [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, February 19, 2003 2:48 PM >To: Tomcat Users List >Subject: Can't get Servlet Inputstream > >I am converting a servlet from using Jigsaw's Servlet methods to Tomcat's >and I am curious why calling getInputstream on the request in Tomcat >returns null. This calls works fine in Jigsaw receiving the same XML data, >but returns null in Tomcat. Any help would be appreciated. Below is a >simple example of the code that is failing: > >public void doPost(HttpServletRequest request, HttpServletResponse >response) > throws IOException, ServletException >{ >... >System.out.println("Content lenght = "+request.getContentLength()); // >this line works >ServletInputStream in = request.getInputStream(); >// this returns null, why? >... >} > >BTW - I can read the request header and content length fine from the >request, just can't get the inputstream. > >Thank you, >George > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best Logging practices
On Wed, Feb 19, 2003 at 02:43:50PM -0800, Will Hartung wrote: > > One thought though; for web applications you're supposed to get > > external resources by configuring them in the web.xml and using > > ServletContext.getResourceAsStream(). This only supports input > > streams, but I've always sort of felt it should support output streams > > as well. Or that there should be some similar mechanism, so that at > > least the point where you're crossing the web application boundary is > > explicitly and clearly defined in a standard central location for such > > information. > > But, once you're cracking open the web.xml, then you might as well point it > to a directory or JDBC instance. I don't care where it actually gets stored, I'd just like a nice, tightly defined control point, pretty much the same reasoning behind getResourceAsStream to begin with - you're inevitably *going* to need to get at external things, so instead of just living with people breaking the model to go outside, provide a mechanism to allow them to define external resources, and put it in the main configuration area. The fact that you have to crack open web.xml is orthogonal to that reasoning - though it still points back to my earlier complaint about jars and webapps and editing the contents. > The real issue is, of course, that it's SUPPOSED to be difficult to write > things, as writing things "consumes resources" on the host machine, compared > to reading, which is non-destructive. Is that really the reasoning behind it? > I do agree, however, that it would be nice to have some persistent area > available. > > Minimally, it would be nice if the container was supposed to offer up a > persitent implemenation of the Preferences API, or a writeable JNDI > implementation. This, definitely. JNDI is used in the spec for database connection pooling. I'm not actually familiar with the preferences API, though I'm glad it's been added (and I hope they did it right). I'd lean towards a secondary web.xml file, similar role to web.xml, and maybe gotten at via the preferences API, but meant for a preferences sort of use - i.e. WEB-INF/web.xml controls the main configuration of the webapp, WEB-INF/preferences.xml controls the user-configurable aspects of the webapp. > However, to be fair, I think a lot of that motivation is being sucked into > the J2EE side of the equation. It's a real question how long Servlets will > be stand alone at all. Interesting. If by J2EE you mean simply adding EJBs to the equation, I've seen significant reluctance to use EJBs in the industry, though I wouldn't be surprised to find forces on the vendor side pushing in that direction regardless. If you mean all of the other bits that go into a J2EE implementation (JNDI, JMS, etc)... well, I have to say, those are handy, and most of the work I do takes place in a context where it makes sense to have those bits available too. But I think it'd be bad for servlets to be inextricably bound to them. Steven J. Owens [EMAIL PROTECTED] "I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt." - Me at http://darksleep.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best Logging practices
> From: "Steven J. Owens" <[EMAIL PROTECTED]> > Sent: Wednesday, February 19, 2003 1:27 PM > Subject: Re: Best Logging practices > This is something that's bugged me for quite a while (in fact, > since jars were introduced :-). There's no way, as far as I'm aware, > to elegantly handle configurable files inside the jar, nor to handle > writable data inside the webapp jar. Well, there is the temp area that's made available by the container, but it's not a persistent storage area. > One thought though; for web applications you're supposed to get > external resources by configuring them in the web.xml and using > ServletContext.getResourceAsStream(). This only supports input > streams, but I've always sort of felt it should support output streams > as well. Or that there should be some similar mechanism, so that at > least the point where you're crossing the web application boundary is > explicitly and clearly defined in a standard central location for such > information. But, once you're cracking open the web.xml, then you might as well point it to a directory or JDBC instance. The real issue is, of course, that it's SUPPOSED to be difficult to write things, as writing things "consumes resources" on the host machine, compared to reading, which is non-destructive. I do agree, however, that it would be nice to have some persistent area available. Minimally, it would be nice if the container was supposed to offer up a persitent implemenation of the Preferences API, or a writeable JNDI implementation. However, to be fair, I think a lot of that motivation is being sucked into the J2EE side of the equation. It's a real question how long Servlets will be stand alone at all. Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: startup issue (invalid CEN header)
looks like one of your libraries (prob in server/lib or common/lib) is corrupted. simply try to replace them with fresh binaries. Filip -Original Message- From: Andre Jay Meissner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 2:18 PM To: Tomcat Users List Subject: startup issue (invalid CEN header) hi, my tomcat 4.1.8 (mac os 10.2, J2SE 1.3.1) is not launching properly since today (it ran before). the startup.sh is giving me the usual three comments with envs and from the console everything just seems fine. but there is no action on 8080. catalina.out is complaining with the error below - no additional logging takes place. I´d greatly appreciate any help - thank you very much in advance! *Jay java.util.zip.ZipException: invalid CEN header (encrypted entry) at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:105) at java.util.jar.JarFile.(JarFile.java:110) at java.util.jar.JarFile.(JarFile.java:52) at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar dClassLoader.java:1082) at org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.ja va:221) at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoader Factory.java:204) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:147) Bootstrap: Class loader creation threw exception java.lang.IllegalArgumentException: addRepositoryInternal: java.util.zip.ZipException: invalid CEN header (encrypted entry) at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar dClassLoader.java:1110) at org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.ja va:221) at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoader Factory.java:204) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:147) count = 6, total = 51 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
startup issue (invalid CEN header)
hi, my tomcat 4.1.8 (mac os 10.2, J2SE 1.3.1) is not launching properly since today (it ran before). the startup.sh is giving me the usual three comments with envs and from the console everything just seems fine. but there is no action on 8080. catalina.out is complaining with the error below - no additional logging takes place. I´d greatly appreciate any help - thank you very much in advance! *Jay java.util.zip.ZipException: invalid CEN header (encrypted entry) at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:105) at java.util.jar.JarFile.(JarFile.java:110) at java.util.jar.JarFile.(JarFile.java:52) at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar dClassLoader.java:1082) at org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.ja va:221) at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoader Factory.java:204) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:147) Bootstrap: Class loader creation threw exception java.lang.IllegalArgumentException: addRepositoryInternal: java.util.zip.ZipException: invalid CEN header (encrypted entry) at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar dClassLoader.java:1110) at org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.ja va:221) at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoader Factory.java:204) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:147) count = 6, total = 51 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best Logging practices
On Wed, Feb 19, 2003 at 08:15:20AM -0600, Jacob Kjome wrote: > Don't count on being able to write to anywhere within your webapp. Tomcat, > by default, expands your webapp to a directory and deploys your app from > there. This gives you access to within your webapp via File IO. However, > this is not guaranteed by the servlet spec. Your app can be run directly > from the .war archive where you will have no File system access within the > webapp structure. So, either provide some configuration for logging to a > directory outside the webapp and allow the setting to be modifiable in the > deployment configuration (such as a nested in a Tomcat > entry) or do your logging to console or some other non-File > appender. This is something that's bugged me for quite a while (in fact, since jars were introduced :-). There's no way, as far as I'm aware, to elegantly handle configurable files inside the jar, nor to handle writable data inside the webapp jar. One thought though; for web applications you're supposed to get external resources by configuring them in the web.xml and using ServletContext.getResourceAsStream(). This only supports input streams, but I've always sort of felt it should support output streams as well. Or that there should be some similar mechanism, so that at least the point where you're crossing the web application boundary is explicitly and clearly defined in a standard central location for such information. Steven J. Owens [EMAIL PROTECTED] "I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt." - Me at http://darksleep.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re[2]: Best Logging practices
I believe in a previous post I mentioned the extras you get with log4j, like proven reliability, rolling appenders, fully asynchronis logging, ability to log to file, network or other location and option of text or XML configuration files. The same isn't true of Jdk1.4 logging. I could be wrong, since I haven't looked at jdk1.4 logging recently. peter --- Felipe Schnack <[EMAIL PROTECTED]> wrote: > What are the real advantages os log4j? Everybody > says it's better, but > no one says why :-) > just curious > > __ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[4]: Best Logging practices
Hello Felipe, Well, here is an article on that topic: http://www.builder.com.com/article.jhtml?id=u00220020724kev01.htm There are other articles at: http://jakarta.apache.org/log4j/docs/documentation.html Jake Wednesday, February 19, 2003, 2:14:39 PM, you wrote: FS> What are the real advantages os log4j? Everybody says it's better, but FS> no one says why :-) FS> just curious FS> On Wed, 2003-02-19 at 16:16, Jacob Kjome wrote: >> Hello Mike, >> >> If by "newer and more refined" you mean "not compatible with jdk's >> previous to Sun's 1.4 jdk with fewer features than Log4j", then you >> are absolutely correct. >> >> Seriously, Log4j is far more capable than JDK1.4 logging and is >> independent of your favorite JDK. And don't bother with >> commons-logging unless you like debugging weird classloader issues and >> want lowest-common-denominator functionality. >> >> http://qos.ch/logging/thinkAgain.html >> >> Jake >> >> Wednesday, February 19, 2003, 9:01:38 AM, you wrote: >> >> AM> Can you give me the lay of the land regarding log4j? I was under the >> AM> impression that java.util.logging was the way to go for the future. It >> AM> (java.util.logging) appears to be a newer, more refined package. >> >> AM> -Original Message- >> AM> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] >> AM> Sent: Wednesday, February 19, 2003 8:19 AM >> AM> To: Tomcat Users List >> AM> Subject: RE: Best Logging practices >> >> >> AM> Howdy, >> AM> Listen to Jacob -- I wish more people did what he recommended in his >> AM> post. Also use log4j. ;) >> >> >> AM> Yoav Shapira >> AM> Millennium ChemInformatics >> >> >> >>-Original Message- >> >>From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] >> >>Sent: Wednesday, February 19, 2003 2:30 PM >> >>To: Tomcat Users List >> >>Subject: Best Logging practices >> >> >> >>Any pointers/thoughts about web application logging practices? You >> >>generally >> >>see almost each individual with different opinion about this (from >> AM> logging >> >>into the system temporary directory to inside WEB-INF). >> >> >> >>Are there any best practices for this? >> >> >> >>Thanks, >> >>Manav. >> >> >> >> >> >>- >> >>To unsubscribe, e-mail: [EMAIL PROTECTED] >> >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> AM> This e-mail, including any attachments, is a confidential business >> AM> communication, and may contain information that is confidential, >> AM> proprietary and/or privileged. This e-mail is intended only for the >> AM> individual(s) to whom it is addressed, and may not be saved, copied, >> AM> printed, disclosed or used by anyone else. If you are not the(an) >> AM> intended recipient, please immediately delete this e-mail from your >> AM> computer system and notify the sender. Thank you. >> >> >> AM> - >> AM> To unsubscribe, e-mail: [EMAIL PROTECTED] >> AM> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> AM> - >> AM> To unsubscribe, e-mail: [EMAIL PROTECTED] >> AM> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> -- >> Best regards, >> Jacobmailto:[EMAIL PROTECTED] >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> -- Best regards, Jacobmailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBC Drivers Exception ...
Hi Shapira Yoav, The Stack Trace Shows: [STDOUT] java.sql.SQLException: IO Exception: The Network Adapter could not establish the connection Any hints for this trace??? Thanks! From: "Shapira, Yoav" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Subject: RE: JDBC Drivers Exception ... Date: Wed, 19 Feb 2003 15:17:48 -0500 Howdy, A few things. >I installed JDBC Drivers ojdbc14.jar, classes12.jar, nls_charset111.jar on Why both ojdbc14.jar and classes12.jar? If you're connecting to an Oracle 9.1 database, you don't want classes12.jar in there. These two jars have some overlapping classnames which will cause problems. >my APPLICATION Server and SET the CLASSPATH accordingly. Tomcat ignores the CLASSPATH environment variable. You need to make sure the JDBC driver distribution is in the proper place. Usually, this is inside the /WEB-INF/lib directory of your web application OR the common/lib (or equivalent) directory on the server. >When I run my Simple Web Applicatin which Access my DB Server: I get >Exception at following Line: >--- >--- >try >{ > Class.forName("oracle.jdbc.OracleDriver"); > con = DriverManager.getConnection(url,"user","pass"); > stmt = con.createStatement(); > > >} >catch (Exception e) >{ System.out.println("Exceptino raised at Clas.forname."); } >--- >--- Which line generates the exception? All three lines above, not to mention you "...", can generate exceptions. Break up the code into multiple try-catch blocks. Also, what is the exception? You didn't give details. Please give the full stack trace and message for the exception. In addition, I thought the Oracle docs said to use oracle.jdbc.driver.OracleDriver to load the driver, not the shorter oracle.jdbc.OracleDriver. Check the Oracle JDBC driver docs on that. >Also, my APP SERVER has just moved to JDK1.4 whereas my DB Server still has >JDK 1.3. Do you think this is an issues? Probably not an issue. But then again, I haven't even seen your stack trace yet. Yoav Shapira Millennium ChemInformatics _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deployment with ant
On Wednesday 19 February 2003 09:14 am, Rasputin wrote: > Does the install ant task from 'catalina-ant.jar' work for anyone? > > When I try to use it works fine until I restart the server - > it seems like the install task uses a HTTP PUT to put the warfile > under work/ then catalina edits its own server.xml so the new > context will survive a reboot. > This is just what I need, but it seems to write invalid xml back to it. > Have you read this: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html scroll down to the fourth paragraph under Introduction ("In addition to nesting...", etc). Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBC Drivers Exception ...
Should be using nls_charset12.jar, if you're using classes12.jar. If you're to use the version 12 drivers, then you ought to include ocrs12.jar as well. --mikej -=- mike jackson [EMAIL PROTECTED] > -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 19, 2003 12:18 PM > To: Tomcat Users List > Subject: RE: JDBC Drivers Exception ... > > > > Howdy, > A few things. > > >I installed JDBC Drivers ojdbc14.jar, classes12.jar, nls_charset111.jar > on > > Why both ojdbc14.jar and classes12.jar? If you're connecting to an > Oracle 9.1 database, you don't want classes12.jar in there. These two > jars have some overlapping classnames which will cause problems. > > >my APPLICATION Server and SET the CLASSPATH accordingly. > > Tomcat ignores the CLASSPATH environment variable. You need to make > sure the JDBC driver distribution is in the proper place. Usually, this > is inside the /WEB-INF/lib directory of your web application OR the > common/lib (or equivalent) directory on the server. > > >When I run my Simple Web Applicatin which Access my DB Server: I get > >Exception at following Line: > >--- > > >--- > >try > >{ > > Class.forName("oracle.jdbc.OracleDriver"); > > con = DriverManager.getConnection(url,"user","pass"); > > stmt = con.createStatement(); > > > > > >} > >catch (Exception e) > >{System.out.println("Exceptino raised at Clas.forname."); } > >--- > > >--- > > Which line generates the exception? All three lines above, not to > mention you "...", can generate exceptions. Break up the code > into multiple try-catch blocks. > > Also, what is the exception? You didn't give details. Please give the > full stack trace and message for the exception. > > In addition, I thought the Oracle docs said to use > oracle.jdbc.driver.OracleDriver to load the driver, not the shorter > oracle.jdbc.OracleDriver. Check the Oracle JDBC driver docs on that. > > >Also, my APP SERVER has just moved to JDK1.4 whereas my DB Server still > has > >JDK 1.3. Do you think this is an issues? > > Probably not an issue. But then again, I haven't even seen your stack > trace yet. > > Yoav Shapira > Millennium ChemInformatics > > > > > This e-mail, including any attachments, is a confidential > business communication, and may contain information that is > confidential, proprietary and/or privileged. This e-mail is > intended only for the individual(s) to whom it is addressed, and > may not be saved, copied, printed, disclosed or used by anyone > else. If you are not the(an) intended recipient, please > immediately delete this e-mail from your computer system and > notify the sender. Thank you. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ant deploy task?
On Wednesday 19 February 2003 12:55 pm, Wendy Smoak wrote: > What's the least amount of work I can do to deploy a new version of my > webapp? I've been cheating and developing directly under the webapps > directory. Now I've moved to a separate directory structure and am > building a .war file which gets copied over to webapps. > > Since Tomcat auto-expands the war file, I find I have to delete the > directory and restart in order to get the new version in place. > > I found an ant task named 'deploy' but it doesn't seem to be apparently > requires another .jar file, and I'm having no luck finding that with > Google. It isn't, as far as I can tell, a core ant task: > > W:\java\bendev>ant deploy > Buildfile: build.xml > deploy: > BUILD FAILED > file:W:/java/bendev/build.xml:136: Could not create task or type of type: > deploy. > Ant could not find the task or a class this task relies upon. > > > http://my.development.box"; path="${context}" > war="${dist}/${context}.war" > username="wendy" password="password" /> > > > I'm also not sure how this is going to work... Tomcat is on the same > machine so right now I'm just copying the war file over. Would it be > better to use the 'install' or 'restart' tasks instead? > > Thanks, Wendy, There is a wonderful document on the Tomcat's website called App Developer Guide that shows some best practices for project and build management. Its sample application relies on Ant tasks you're interested in and a full build.xml is provided. Ant makes building and deploying webapps a breeze, and I wish all Tomcat users read that little guide to make their lives easier. Thanks again to Craig for authoring it. Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re[2]: Best Logging practices
My opinion is you choose whatever you like. Obviously jdk1.4 logging API is for jdk 1.4. commons-logging is a good API only if you use it as a logger not a wrapper of another logger. Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: Felipe Schnack [mailto:[EMAIL PROTECTED]] Sent: February 19, 2003 3:15 PM To: Jacob Kjome Cc: Tomcat Users List Subject: Re: Re[2]: Best Logging practices What are the real advantages os log4j? Everybody says it's better, but no one says why :-) just curious On Wed, 2003-02-19 at 16:16, Jacob Kjome wrote: > Hello Mike, > > If by "newer and more refined" you mean "not compatible with jdk's > previous to Sun's 1.4 jdk with fewer features than Log4j", then you > are absolutely correct. > > Seriously, Log4j is far more capable than JDK1.4 logging and is > independent of your favorite JDK. And don't bother with > commons-logging unless you like debugging weird classloader issues and > want lowest-common-denominator functionality. > > http://qos.ch/logging/thinkAgain.html > > Jake > > Wednesday, February 19, 2003, 9:01:38 AM, you wrote: > > AM> Can you give me the lay of the land regarding log4j? I was under the > AM> impression that java.util.logging was the way to go for the future. It > AM> (java.util.logging) appears to be a newer, more refined package. > > AM> -Original Message- > AM> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] > AM> Sent: Wednesday, February 19, 2003 8:19 AM > AM> To: Tomcat Users List > AM> Subject: RE: Best Logging practices > > > AM> Howdy, > AM> Listen to Jacob -- I wish more people did what he recommended in his > AM> post. Also use log4j. ;) > > > AM> Yoav Shapira > AM> Millennium ChemInformatics > > > >>-Original Message- > >>From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] > >>Sent: Wednesday, February 19, 2003 2:30 PM > >>To: Tomcat Users List > >>Subject: Best Logging practices > >> > >>Any pointers/thoughts about web application logging practices? You > >>generally > >>see almost each individual with different opinion about this (from > AM> logging > >>into the system temporary directory to inside WEB-INF). > >> > >>Are there any best practices for this? > >> > >>Thanks, > >>Manav. > >> > >> > >>- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > > > > > AM> This e-mail, including any attachments, is a confidential business > AM> communication, and may contain information that is confidential, > AM> proprietary and/or privileged. This e-mail is intended only for the > AM> individual(s) to whom it is addressed, and may not be saved, copied, > AM> printed, disclosed or used by anyone else. If you are not the(an) > AM> intended recipient, please immediately delete this e-mail from your > AM> computer system and notify the sender. Thank you. > > > AM> - > AM> To unsubscribe, e-mail: [EMAIL PROTECTED] > AM> For additional commands, e-mail: [EMAIL PROTECTED] > > > AM> - > AM> To unsubscribe, e-mail: [EMAIL PROTECTED] > AM> For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > Best regards, > Jacobmailto:[EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Centro Universitário Ritter dos Reis http://www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303341 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBC Drivers Exception ...
Howdy, A few things. >I installed JDBC Drivers ojdbc14.jar, classes12.jar, nls_charset111.jar on Why both ojdbc14.jar and classes12.jar? If you're connecting to an Oracle 9.1 database, you don't want classes12.jar in there. These two jars have some overlapping classnames which will cause problems. >my APPLICATION Server and SET the CLASSPATH accordingly. Tomcat ignores the CLASSPATH environment variable. You need to make sure the JDBC driver distribution is in the proper place. Usually, this is inside the /WEB-INF/lib directory of your web application OR the common/lib (or equivalent) directory on the server. >When I run my Simple Web Applicatin which Access my DB Server: I get >Exception at following Line: >--- >--- >try >{ > Class.forName("oracle.jdbc.OracleDriver"); > con = DriverManager.getConnection(url,"user","pass"); > stmt = con.createStatement(); > > >} >catch (Exception e) >{ System.out.println("Exceptino raised at Clas.forname."); } >--- >--- Which line generates the exception? All three lines above, not to mention you "...", can generate exceptions. Break up the code into multiple try-catch blocks. Also, what is the exception? You didn't give details. Please give the full stack trace and message for the exception. In addition, I thought the Oracle docs said to use oracle.jdbc.driver.OracleDriver to load the driver, not the shorter oracle.jdbc.OracleDriver. Check the Oracle JDBC driver docs on that. >Also, my APP SERVER has just moved to JDK1.4 whereas my DB Server still has >JDK 1.3. Do you think this is an issues? Probably not an issue. But then again, I haven't even seen your stack trace yet. Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re[2]: Best Logging practices
What are the real advantages os log4j? Everybody says it's better, but no one says why :-) just curious On Wed, 2003-02-19 at 16:16, Jacob Kjome wrote: > Hello Mike, > > If by "newer and more refined" you mean "not compatible with jdk's > previous to Sun's 1.4 jdk with fewer features than Log4j", then you > are absolutely correct. > > Seriously, Log4j is far more capable than JDK1.4 logging and is > independent of your favorite JDK. And don't bother with > commons-logging unless you like debugging weird classloader issues and > want lowest-common-denominator functionality. > > http://qos.ch/logging/thinkAgain.html > > Jake > > Wednesday, February 19, 2003, 9:01:38 AM, you wrote: > > AM> Can you give me the lay of the land regarding log4j? I was under the > AM> impression that java.util.logging was the way to go for the future. It > AM> (java.util.logging) appears to be a newer, more refined package. > > AM> -Original Message- > AM> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] > AM> Sent: Wednesday, February 19, 2003 8:19 AM > AM> To: Tomcat Users List > AM> Subject: RE: Best Logging practices > > > AM> Howdy, > AM> Listen to Jacob -- I wish more people did what he recommended in his > AM> post. Also use log4j. ;) > > > AM> Yoav Shapira > AM> Millennium ChemInformatics > > > >>-Original Message- > >>From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] > >>Sent: Wednesday, February 19, 2003 2:30 PM > >>To: Tomcat Users List > >>Subject: Best Logging practices > >> > >>Any pointers/thoughts about web application logging practices? You > >>generally > >>see almost each individual with different opinion about this (from > AM> logging > >>into the system temporary directory to inside WEB-INF). > >> > >>Are there any best practices for this? > >> > >>Thanks, > >>Manav. > >> > >> > >>- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > > > > > AM> This e-mail, including any attachments, is a confidential business > AM> communication, and may contain information that is confidential, > AM> proprietary and/or privileged. This e-mail is intended only for the > AM> individual(s) to whom it is addressed, and may not be saved, copied, > AM> printed, disclosed or used by anyone else. If you are not the(an) > AM> intended recipient, please immediately delete this e-mail from your > AM> computer system and notify the sender. Thank you. > > > AM> - > AM> To unsubscribe, e-mail: [EMAIL PROTECTED] > AM> For additional commands, e-mail: [EMAIL PROTECTED] > > > AM> - > AM> To unsubscribe, e-mail: [EMAIL PROTECTED] > AM> For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > Best regards, > Jacobmailto:[EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Centro Universitário Ritter dos Reis http://www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303341 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] free Database with Transaction (Sorry for the noise)
Turner, John wrote: I guess MySQL AB should remove the phrase "internal or external" from the statement, then. ;) I agree, it is confusing, and doesn't even say what context "internal" or "external" refers to. Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't get Servlet Inputstream
Howdy, Very interesting. Interesting enough that I want to try to reproduce it myself, but my local tomcat instance is running a 12-hour long performance/stress profile. So in the meantime, let me ask this: - Which version of tomcat? - Which JDK? - Does getReader() work? - Are any exceptions thrown by the getInputStream request? - Are there any relevant exceptions in the tomcat logs? - Have you verified your tomcat installation is good by running the examples? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Manty, George [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, February 19, 2003 2:48 PM >To: Tomcat Users List >Subject: Can't get Servlet Inputstream > >I am converting a servlet from using Jigsaw's Servlet methods to Tomcat's >and I am curious why calling getInputstream on the request in Tomcat >returns null. This calls works fine in Jigsaw receiving the same XML data, >but returns null in Tomcat. Any help would be appreciated. Below is a >simple example of the code that is failing: > >public void doPost(HttpServletRequest request, HttpServletResponse >response) > throws IOException, ServletException >{ >... >System.out.println("Content lenght = "+request.getContentLength()); // >this line works >ServletInputStream in = request.getInputStream(); >// this returns null, why? >... >} > >BTW - I can read the request header and content length fine from the >request, just can't get the inputstream. > >Thank you, >George > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JDBC Drivers Exception ...
Hi: I am using Apache 1.3.26 + JBoss + Tomcat on my Web/APP Server and Oracle 9.1 on DB Server. I installed JDBC Drivers ojdbc14.jar, classes12.jar, nls_charset111.jar on my APPLICATION Server and SET the CLASSPATH accordingly. What all need to be done as far as this is concerned? When I run my Simple Web Applicatin which Access my DB Server: I get Exception at following Line: -- try { Class.forName("oracle.jdbc.OracleDriver"); con = DriverManager.getConnection(url,"user","pass"); stmt = con.createStatement(); } catch (Exception e) { System.out.println("Exceptino raised at Clas.forname."); } -- Can anyone TELL what is this error about? Also, my APP SERVER has just moved to JDK1.4 whereas my DB Server still has JDK 1.3. Do you think this is an issues? Thanks! _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] free Database with Transaction (Sorry for the noise)
I guess MySQL AB should remove the phrase "internal or external" from the statement, then. ;) John > -Original Message- > From: Erik Price [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 19, 2003 2:53 PM > To: Tomcat Users List > Subject: Re: [OT] free Database with Transaction (Sorry for the noise) > > > > > Turner, John wrote: > > Without going into a whole argument...technically MySQL is > not free for > > commercial use. If you use MySQL in a commercial setting, > internal or > > external, without purchasing a commercial license, you may > do so only if the > > application that uses MySQL is also GPL > > (http://www.mysql.com/products/licensing.html). This is > something that many > > companies (and developers) would prefer to avoid, for > various reasons. > > PostgreSQL has no such requirement as it is distributed > under the BSD > > license. > > Sorry, this is incorrect. You may use it in a commercial setting > without a commercial license in a non-GPL'd application if you do not > redistribute the MySQL software. In other words, if the customer of > your application downloads and installs MySQL herself, then > she is able > to use MySQL to power the application regardless, without a > commercial > license and without requiring the application to be GPL'd. > > > > Erik > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] free Database with Transaction (Sorry for the noise)
Turner, John wrote: Without going into a whole argument...technically MySQL is not free for commercial use. If you use MySQL in a commercial setting, internal or external, without purchasing a commercial license, you may do so only if the application that uses MySQL is also GPL (http://www.mysql.com/products/licensing.html). This is something that many companies (and developers) would prefer to avoid, for various reasons. PostgreSQL has no such requirement as it is distributed under the BSD license. Sorry, this is incorrect. You may use it in a commercial setting without a commercial license in a non-GPL'd application if you do not redistribute the MySQL software. In other words, if the customer of your application downloads and installs MySQL herself, then she is able to use MySQL to power the application regardless, without a commercial license and without requiring the application to be GPL'd. Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't get Servlet Inputstream
I am converting a servlet from using Jigsaw's Servlet methods to Tomcat's and I am curious why calling getInputstream on the request in Tomcat returns null. This calls works fine in Jigsaw receiving the same XML data, but returns null in Tomcat. Any help would be appreciated. Below is a simple example of the code that is failing: public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { ... System.out.println("Content lenght = "+request.getContentLength()); // this line works ServletInputStream in = request.getInputStream(); // this returns null, why? ... } BTW - I can read the request header and content length fine from the request, just can't get the inputstream. Thank you, George - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Location of property files
Howdy, >> <%@ page import="java.util.*" %> >> . >> <% >> Properties myProps = new Properties(); >> InputStream pin = >> getServletContext().getResourceAsStream("/WEB-INF/my.properties"); >> myProps.load(pin); >> pin.close(); >> %> > >Is that portable? Is there anyplace in the spec that mentions that /WEB- My understand of SRV.3.5 as well as the JavaDoc for javax.servlet.ServletContext#getResource was that this is portable. Your code has to be tolerant of the case where the resource doesn't exist (null is returned) as well as enforce further security on the resource (for example if some data in a data file shouldn't be available to the user, you have to filter out this data yourself). But other than that, the container is required to make resources under your context root available. Looking at the 2.4 spec PFD, I don't see anything to contradict the above. But if I'm wrong on this point, I'd like to know about it please ;) Thanks, Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Best Logging practices
Hello Mike, If by "newer and more refined" you mean "not compatible with jdk's previous to Sun's 1.4 jdk with fewer features than Log4j", then you are absolutely correct. Seriously, Log4j is far more capable than JDK1.4 logging and is independent of your favorite JDK. And don't bother with commons-logging unless you like debugging weird classloader issues and want lowest-common-denominator functionality. http://qos.ch/logging/thinkAgain.html Jake Wednesday, February 19, 2003, 9:01:38 AM, you wrote: AM> Can you give me the lay of the land regarding log4j? I was under the AM> impression that java.util.logging was the way to go for the future. It AM> (java.util.logging) appears to be a newer, more refined package. AM> -Original Message- AM> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] AM> Sent: Wednesday, February 19, 2003 8:19 AM AM> To: Tomcat Users List AM> Subject: RE: Best Logging practices AM> Howdy, AM> Listen to Jacob -- I wish more people did what he recommended in his AM> post. Also use log4j. ;) AM> Yoav Shapira AM> Millennium ChemInformatics >>-Original Message- >>From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] >>Sent: Wednesday, February 19, 2003 2:30 PM >>To: Tomcat Users List >>Subject: Best Logging practices >> >>Any pointers/thoughts about web application logging practices? You >>generally >>see almost each individual with different opinion about this (from AM> logging >>into the system temporary directory to inside WEB-INF). >> >>Are there any best practices for this? >> >>Thanks, >>Manav. >> >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] AM> This e-mail, including any attachments, is a confidential business AM> communication, and may contain information that is confidential, AM> proprietary and/or privileged. This e-mail is intended only for the AM> individual(s) to whom it is addressed, and may not be saved, copied, AM> printed, disclosed or used by anyone else. If you are not the(an) AM> intended recipient, please immediately delete this e-mail from your AM> computer system and notify the sender. Thank you. AM> - AM> To unsubscribe, e-mail: [EMAIL PROTECTED] AM> For additional commands, e-mail: [EMAIL PROTECTED] AM> - AM> To unsubscribe, e-mail: [EMAIL PROTECTED] AM> For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Location of property files
> From: "Bill Barker" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, February 18, 2003 10:43 PM > Subject: Re: Location of property files > <%@ page import="java.util.*" %> > . > <% > Properties myProps = new Properties(); > InputStream pin = > getServletContext().getResourceAsStream("/WEB-INF/my.properties"); > myProps.load(pin); > pin.close(); > %> Is that portable? Is there anyplace in the spec that mentions that /WEB-INF/ is actually available as a resource? Or is it fair to say that anything with an "absolute" path off of the ROOT of the context is available? (Mind, I'm not denying that it works, I'm curious if it working is a fluke, or is it "guaranteed" across platforms.) Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best Logging practices
> From: "Arachtingi, Mike" <[EMAIL PROTECTED]> > Sent: Wednesday, February 19, 2003 7:48 AM > Subject: RE: Best Logging practices > What do you think of this opinion: I am inclined to use the JDK1.4 > logger just because it's included in rt.jar, thus fewer jars and shorter > classpath, and all that. If you don't like the length of your CLASSPATH, you can try dropping the jar into $JAVA_HOME/lib/ext directory, as all of those jars are aauotmatically placed on your CLASSPATH. Most folks don't think of this (I don't personally do it). Folks tend to forget about this mechanism and wonder where Things Are Coming From when they don't seem them on the CLASSPATH variable. However, I also agree with the other poster that CLASSPATH is really a non-issue. Regards, Will Hartung ([EMAIL PROTECTED]) - 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: How To Unit Testing Tomcat Datasource
Okay. I will check that out. Thanks. Haytham -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 12:42 PM To: [EMAIL PROTECTED] Subject: RE: How To Unit Testing Tomcat Datasource No idea about JBoss. Tomcat's JNDI is not a real directory service but a "simulation". Look at struts' test suites. C:\jakarta-struts-1.1-b3-src\src\test\org\apache\struts\action Class TestActionServlet might be helpful. Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: Haytham Samad [mailto:[EMAIL PROTECTED]] Sent: February 19, 2003 1:30 PM To: Tomcat Users List Subject: RE: How To Unit Testing Tomcat Datasource PQ, Thanks for the reply. I actually use that in my factory class to connect to JNDI, get the datasource and use it to create connections for my database specific DAO implementations by calling getConnection(). In any case, I am running this code external to Tomcat. So the actual JDNI resource is in TOmcat but I am testing the DAO code externally using a JUnit TestCases. I guess the big question is, can I access JNDI resources in Tomcat from external code (not deployed in tomcat)? If so, are there any properties I need to set to be able to access Tomcat's JNDI resources: Like ctx.INITIAL_CONTEXT_FACTORY, ctx.PROVIDER_URL, etc. This can be done with JBoss for example. If so, what are the values used (I have not seen any documentation on this anywhere)? Thanks, Haytham -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 12:14 PM To: [EMAIL PROTECTED] Subject: RE: How To Unit Testing Tomcat Datasource Always use java:comp/env/yourdatasource Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: Haytham Samad [mailto:[EMAIL PROTECTED]] Sent: February 19, 2003 1:13 PM To: Tomcat Users List Subject: How To Unit Testing Tomcat Datasource I have set up a datasource in Tomcat's server.xml using dbcp. It works fine, I get connections connect to the database, etc. Now, I am in the process of putting together quite a bit of DAO code and would like to unit test each call as I am going through the coding using my JUnit tests. How can I connect to Tomcat's JNDI and get a reference to the datasource there to pass to the classes I am testing? Or should I just rework my test code to just create a connection from the DriverManager and go from there? Anybody doing anything like this with suggestions? I appreciate any help BTW: I tried to connect to Tomcat's JDNI using the InitialContext and that did not work because I could not get a datasource. Peace, Haytham - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How To Unit Testing Tomcat Datasource
No idea about JBoss. Tomcat's JNDI is not a real directory service but a "simulation". Look at struts' test suites. C:\jakarta-struts-1.1-b3-src\src\test\org\apache\struts\action Class TestActionServlet might be helpful. Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: Haytham Samad [mailto:[EMAIL PROTECTED]] Sent: February 19, 2003 1:30 PM To: Tomcat Users List Subject: RE: How To Unit Testing Tomcat Datasource PQ, Thanks for the reply. I actually use that in my factory class to connect to JNDI, get the datasource and use it to create connections for my database specific DAO implementations by calling getConnection(). In any case, I am running this code external to Tomcat. So the actual JDNI resource is in TOmcat but I am testing the DAO code externally using a JUnit TestCases. I guess the big question is, can I access JNDI resources in Tomcat from external code (not deployed in tomcat)? If so, are there any properties I need to set to be able to access Tomcat's JNDI resources: Like ctx.INITIAL_CONTEXT_FACTORY, ctx.PROVIDER_URL, etc. This can be done with JBoss for example. If so, what are the values used (I have not seen any documentation on this anywhere)? Thanks, Haytham -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 12:14 PM To: [EMAIL PROTECTED] Subject: RE: How To Unit Testing Tomcat Datasource Always use java:comp/env/yourdatasource Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: Haytham Samad [mailto:[EMAIL PROTECTED]] Sent: February 19, 2003 1:13 PM To: Tomcat Users List Subject: How To Unit Testing Tomcat Datasource I have set up a datasource in Tomcat's server.xml using dbcp. It works fine, I get connections connect to the database, etc. Now, I am in the process of putting together quite a bit of DAO code and would like to unit test each call as I am going through the coding using my JUnit tests. How can I connect to Tomcat's JNDI and get a reference to the datasource there to pass to the classes I am testing? Or should I just rework my test code to just create a connection from the DriverManager and go from there? Anybody doing anything like this with suggestions? I appreciate any help BTW: I tried to connect to Tomcat's JDNI using the InitialContext and that did not work because I could not get a datasource. Peace, Haytham - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error opening tomcat admin login page
Thanks for your response. I am having trouble understanding what to do. I tried to track down the source of the problem and I found the message tag in struts-bean.tld ... but that's it. I couldn't find any properties files in the admin webapp ... would you be more specific about which file(s) you mean? Are you saying to reinstall Tomcat? I'm not sure what would happen differently if I did. It's a simple gunzip, tar -xf then run tomcat. Would you elaborate on this too? TIA, Mark Roberts, Eric wrote: Hi, Its a case sensitivity issue - when you installed either "message" got translated to "MESSAGE" or the other way round. Two solutions - 1) re-install from another souce or 2) go down into the admin app directories and change the names of the properties files manually HTH -Original Message- From: Mark Strecker [mailto:[EMAIL PROTECTED]] Sent: Mittwoch, 19. Februar 2003 17:42 To: Tomcat Users List Subject: error opening tomcat admin login page Hello All, I installed tomcat 4.1.18 on an sgi(Java 1.3.1 on Irix 6.5) and cannot open the admin login(/admin/login.jsp). I get this exception : org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:530, Compiled Code) at org.apache.jsp.login_jsp._jspService(login_jsp.java:188, Compiled Code) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853, Compiled Code) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204, Compiled Code) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295, Compiled Code) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853, Compiled Code) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247, Compiled Code) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193, Compiled Code) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480, Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995, Compiled Code) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643, Compiled Code) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:550, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480, Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995, Compiled Code) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415, Compiled Code) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643, Compiled Code) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641, Compiled Code) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480, Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995, Compiled Code) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480, Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995, Compiled Code) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223, Compiled Code) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432, Compiled Code) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.pr
RE: How To Unit Testing Tomcat Datasource
PQ, Thanks for the reply. I actually use that in my factory class to connect to JNDI, get the datasource and use it to create connections for my database specific DAO implementations by calling getConnection(). In any case, I am running this code external to Tomcat. So the actual JDNI resource is in TOmcat but I am testing the DAO code externally using a JUnit TestCases. I guess the big question is, can I access JNDI resources in Tomcat from external code (not deployed in tomcat)? If so, are there any properties I need to set to be able to access Tomcat's JNDI resources: Like ctx.INITIAL_CONTEXT_FACTORY, ctx.PROVIDER_URL, etc. This can be done with JBoss for example. If so, what are the values used (I have not seen any documentation on this anywhere)? Thanks, Haytham -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 12:14 PM To: [EMAIL PROTECTED] Subject: RE: How To Unit Testing Tomcat Datasource Always use java:comp/env/yourdatasource Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: Haytham Samad [mailto:[EMAIL PROTECTED]] Sent: February 19, 2003 1:13 PM To: Tomcat Users List Subject: How To Unit Testing Tomcat Datasource I have set up a datasource in Tomcat's server.xml using dbcp. It works fine, I get connections connect to the database, etc. Now, I am in the process of putting together quite a bit of DAO code and would like to unit test each call as I am going through the coding using my JUnit tests. How can I connect to Tomcat's JNDI and get a reference to the datasource there to pass to the classes I am testing? Or should I just rework my test code to just create a connection from the DriverManager and go from there? Anybody doing anything like this with suggestions? I appreciate any help BTW: I tried to connect to Tomcat's JDNI using the InitialContext and that did not work because I could not get a datasource. Peace, Haytham - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 2.0.1 and Apache 2.0.44 problem
To make changes to tomcat under jboss you must edit tomcat41-service.xml not server.xml; changes made to the server.xml will not be used by tomcat. The tomcat41-service.xml file will be located in your /deploy directory of the selected configuration set. Might i suggest that you purchase the JBoss 3.0 Handbook for further details, this book kicks ASS! http://www.amazon.com/exec/obidos/tg/detail/-/1861008120/qid=1045677540/ sr=8-1/ref=sr_8_1/104-9967696-6863144?v=glance&s=books&n=507846 -Original Message- From: Mete Kural [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 9:51 AM To: Tomcat Users List Subject: RE: JK2 2.0.1 and Apache 2.0.44 problem I think so. This is in my servlet.xml: One thing to mention, I am using the Tomcat that comes bundled with JBoss, which is Tomcat 4.1.12. Do you think the fact that Tomcat is invoked by JBoss make a difference? Any ideas? Thanks, Mete --- "Turner, John" <[EMAIL PROTECTED]> wrote: > > Do you have a Connector configured for port 8009 in > server.xml? > > John > > > > -Original Message- > > From: Mete Kural [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, February 19, 2003 11:35 AM > > To: Tomcat Users List > > Subject: RE: JK2 2.0.1 and Apache 2.0.44 problem > > > > > > Thanks for the feedback. Hmm.. for some reason it > > doesn't tell you to add the lines that you gave me > in > > the workers2.properties file in the JK2 > documentation. > > But anyways, I added these lines to > > workers2.properties: > > > > [shm] > > file=$/usr/apache/logs/shm.file > > size=1048576 > > > > Now I don't get the "shm.init(): No file" errors > any > > more. But the Apache-Tomcat connection still > doesn't > > happen. Even after adding those lines to > > workers2.properties, I still get these errors: > > > > > > [Wed Feb 19 08:30:59 2003] [notice] Apache/2.0.44 > > (Unix) mod_jk2/2.0.0 configured -- resuming normal > > operations > > [Wed Feb 19 08:31:06 2003] [error] > > channelSocket.open() connect failed localhost:8009 > 111 > > Connection refused > > [Wed Feb 19 08:31:06 2003] [error] ajp13.connect() > > failed ajp13:localhost:8009 > > [Wed Feb 19 08:31:06 2003] [error] ajp13.service() > > failed to connect endpoint errno=111 Connection > > refused > > [Wed Feb 19 08:31:06 2003] [error] ajp13.service() > > Error forwarding ajp13:localhost:8009 1 1 > > [Wed Feb 19 08:31:06 2003] [error] lb.service() > worker > > failed ajp13:localhost:8009 > > [Wed Feb 19 08:31:06 2003] [error] > > channelSocket.open() connect failed localhost:8009 > 111 > > Connection refused > > [Wed Feb 19 08:31:06 2003] [error] ajp13.connect() > > failed ajp13:localhost:8009 > > [Wed Feb 19 08:31:06 2003] [error] ajp13.service() > > failed to connect endpoint errno=111 Connection > > refused > > [Wed Feb 19 08:31:06 2003] [error] ajp13.service() > > Error forwarding ajp13:localhost:8009 1 1 > > [Wed Feb 19 08:31:06 2003] [error] lb.service() > worker > > failed ajp13:localhost:8009 > > [Wed Feb 19 08:31:06 2003] [error] > lb_worker.service() > > all workers in error or disabled state > > [Wed Feb 19 08:31:06 2003] [error] > mod_jk.handler() > > Error connecting to tomcat 12 > > > > Do you have any idea? > > > > Thanks, > > Mete > > > > --- "Turner, John" <[EMAIL PROTECTED]> wrote: > > > > > > I'm pretty sure you need a shared memory block > in > > > your workers2.properties > > > file. > > > > > > I don't use JK2, but I think it should look > > > something like this: > > > > > > [shm] > > > file=${serverRoot}/logs/shm.file > > > size=1048576 > > > > > > John > > > > > > > -Original Message- > > > > From: Mete Kural [mailto:[EMAIL PROTECTED]] > > > > Sent: Tuesday, February 18, 2003 7:56 PM > > > > To: [EMAIL PROTECTED] > > > > Subject: JK2 2.0.1 and Apache 2.0.44 problem > > > > > > > > > > > > Hello guys, > > > > > > > > I'm having trouble connecting Apache and > Tomcat > > > with > > > > JK2 v2.0.1. I am using Apache 2.0.44 and > Tomcat > > > 4.1.12 > > > > which is bundled inside of the JBoss 3.0.4 > > > > distribution. I'm on a Red Hat Linux 8.0. I > set up > > > the > > > > configuration as the minimum recommended on > the > > > jk2 > > > > documentation website. > > > > > > > > The only line I added to httpd.conf is: > > > > LoadModule jk2_module modules/mod_jk2.so > > > > > > > > My workers2.properties file looks like this: > > > > > > > > # Define the communication channel > > > > [channel.socket:localhost:8009] > > > > info=Ajp13 forwarding over socket > > > > tomcatId=localhost:8009 > > > > # Map the Tomcat examples webapp to the Web > server > > > uri > > > > space > > > > [uri:/examples/*] > > > > info=Map the whole webapp > > > > > > > > And I left jk2.properties as it came with > Tomcat > > > > 4.1.12, i.e. all the lines inside it are > commented > > > > out. > > > > > > > > When I try to access localhost/examples, I get > > > this > > > > page: > > > > <<< > > > > Internal Server Error > > > > The server encount
Typo on http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-Service-howto.html
There is a missing semi-colon on an nbsp on the page: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-Service-howto.html Search for nbspUser mrc -- Mike Castle [EMAIL PROTECTED] www.netcom.com/~dalgoda/ We are all of us living in the shadow of Manhattan. -- Watchmen fatal ("You are in a maze of twisty compiler features, all different"); -- gcc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Login problems (still)
Are you sure you looked at the right API ;-) It is in the servlet api. Look carefully and you will find it. Cheers -Original Message- From: Sloan Seaman [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 6:00 AM To: Tomcat Users List Subject: Re: Login problems (still) I looked right at it and didn't see it in the API.. duh! Side question: If I wanted to write my own login action (I'm using struts) how would you populate the session so that methods such as isUserInRole() would still work? Thanks! -- Sloan - Original Message - From: "Barney Hamish" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Friday, February 14, 2003 8:45 AM Subject: RE: Login problems (still) > use the Session.invalidate() method > Try looking at the j2ee api. > Hamish > > > -Original Message- > > From: Sloan Seaman [mailto:[EMAIL PROTECTED]] > > Sent: Friday, February 14, 2003 2:46 PM > > To: Tomcat Users List > > Subject: Re: Login problems (still) > > > > > > What is the best way to go about invalidating a session? > > > > Do I just go through the HttpSession object nulling > > everything or do I null > > objects in the java.security.Principal object? > > > > Thanks! > > > > -- > > Sloan > > > > - Original Message - > > From: "Filip Hanik" <[EMAIL PROTECTED]> > > To: "Tomcat Users List" <[EMAIL PROTECTED]> > > Sent: Thursday, February 13, 2003 5:38 PM > > Subject: RE: Login problems (still) > > > > > > for logout, you can simple invalidate your session. > > > > if you need to keep the session around after invalidating it, > > just create a > > new one and populate data to it > > > > Filip > > > > -Original Message- > > From: Sloan Seaman [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, February 13, 2003 2:40 PM > > To: Tomcat Users List > > Subject: Login problems (still) > > > > > > Ok, so I kind of have login authentication working to where I > > want it to > > work. > > > > But here is the next question? > > > > How do they logout/login again? > > > > What I did was have an index.jsp page have a link to a > > location within a > > security-context. So if they click on it it asks them to > > login and then > > forwards them to the proper place. Works great. > > > > Now, say I go back to the main index.jsp page and I want to > > login a someone > > else. > > > > Since I have already logged in as one person I clear the > > security check and > > go right to the page instead of getting the login page. > > > > If I have a link directly to the login page I start getting > > the invalid > > direct reference error. > > > > Should I just write a loginAction in struts and be done with > > it? If so, how > > can I get to the realm information? > > > > Thanks! > > -- > > Sloan > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question about building jakarta-tomcat-connectors-4.1.18-src
That did it as well. Thanks! Cheers, Ryan In my opinion you will have a much easier time of it if you use configure instead: ./configure --with-apxs=/path/to/apache/bin/apxs make make install I've had all kinds of problems with ant on RH 7.2 trying to build the connectors. The configure method is painless. John -Original Message- From: Ryan Dooley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 12:57 PM To: [EMAIL PROTECTED] Subject: Question about building jakarta-tomcat-connectors-4.1.18-src Hi, I'm having issues building the jakarta-tomcat-connectors (4.1.18) from source. The build environment is: server platform: redhat linux 7.3 java version: j2sdk 1.4.1_01 ant version: 1.5 tomcat version: 4.1.18 I've setup up the environment for JAVA_HOME, CATALINA_HOME, PATH, etc. The errors I'm getting are: jkjava: [javac] Compiling 31 source files to /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/build/classes [javac] /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/java/or g/apache/jk/common/JkInputStream.java:66: package javax.servlet does not exist [javac] import javax.servlet.ServletInputStream; [javac] ^ [javac] /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/java/or g/apache/jk/common/JkInputStream.java:67: package javax.servlet.http does not exist [javac] import javax.servlet.http.HttpServletRequest; [javac] ^ [javac] /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/java/or g/apache/jk/common/JkInputStream.java:68: package javax.servlet.http does not exist [javac] import javax.servlet.http.Cookie; [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 3 errors Any help would be appreciated. Cheers, Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Free utility for installing and managing Tomcat as a WindowsService
David, Thanks for sharing this information. It will sure come handy as I am forced to interoperate IIS 5.0 with Tomcat. Haytham -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 9:51 AM To: [EMAIL PROTECTED] Subject: Free utility for installing and managing Tomcat as a WindowsService This is an updated version. It'll manage one or more services running on the same box, including multiple server.xml's and policy files. It'll also allow you to use the same %tomcat_home% for multiple service instances. http://web.bvu.edu/staff/david/tcservcfg/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question about building jakarta-tomcat-connectors-4.1.18-src
Hi, Thanks, that got me past that part. I had put the common lib directory in my class path but not the jar directly. Thanks again, Cheers, Ryan [EMAIL PROTECTED] wrote: Servlet.jar is not in your classpath Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: Ryan Dooley [mailto:[EMAIL PROTECTED]] Sent: February 19, 2003 12:57 PM To: [EMAIL PROTECTED] Subject: Question about building jakarta-tomcat-connectors-4.1.18-src Hi, I'm having issues building the jakarta-tomcat-connectors (4.1.18) from source. The build environment is: server platform: redhat linux 7.3 java version: j2sdk 1.4.1_01 ant version: 1.5 tomcat version: 4.1.18 I've setup up the environment for JAVA_HOME, CATALINA_HOME, PATH, etc. The errors I'm getting are: jkjava: [javac] Compiling 31 source files to /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/build/classes [javac] /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/java/org/apache/jk/co mmon/JkInputStream.java:66: package javax.servlet does not exist [javac] import javax.servlet.ServletInputStream; [javac] ^ [javac] /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/java/org/apache/jk/co mmon/JkInputStream.java:67: package javax.servlet.http does not exist [javac] import javax.servlet.http.HttpServletRequest; [javac] ^ [javac] /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/java/org/apache/jk/co mmon/JkInputStream.java:68: package javax.servlet.http does not exist [javac] import javax.servlet.http.Cookie; [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 3 errors Any help would be appreciated. Cheers, Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How To Unit Testing Tomcat Datasource
Always use java:comp/env/yourdatasource Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: Haytham Samad [mailto:[EMAIL PROTECTED]] Sent: February 19, 2003 1:13 PM To: Tomcat Users List Subject: How To Unit Testing Tomcat Datasource I have set up a datasource in Tomcat's server.xml using dbcp. It works fine, I get connections connect to the database, etc. Now, I am in the process of putting together quite a bit of DAO code and would like to unit test each call as I am going through the coding using my JUnit tests. How can I connect to Tomcat's JNDI and get a reference to the datasource there to pass to the classes I am testing? Or should I just rework my test code to just create a connection from the DriverManager and go from there? Anybody doing anything like this with suggestions? I appreciate any help BTW: I tried to connect to Tomcat's JDNI using the InitialContext and that did not work because I could not get a datasource. Peace, Haytham - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How To Unit Testing Tomcat Datasource
I have set up a datasource in Tomcat's server.xml using dbcp. It works fine, I get connections connect to the database, etc. Now, I am in the process of putting together quite a bit of DAO code and would like to unit test each call as I am going through the coding using my JUnit tests. How can I connect to Tomcat's JNDI and get a reference to the datasource there to pass to the classes I am testing? Or should I just rework my test code to just create a connection from the DriverManager and go from there? Anybody doing anything like this with suggestions? I appreciate any help BTW: I tried to connect to Tomcat's JDNI using the InitialContext and that did not work because I could not get a datasource. Peace, Haytham - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ant deploy task?
My apologies, I do see responses to the thread (Best practices - dev & deploy?). I now know to follow your thread for longer than a few hours :-). -Original Message- From: John Ruffin Sent: Wednesday, February 19, 2003 12:05 PM To: 'Tomcat Users List' Subject: RE: ant deploy task? I asked this same question last week - with no response. What I did was tell TC to not auto-expand and get everything from the war file itself. Ant will copy the war file to catalina_home/webapps. Then I use Manager to stop and start the app - restart doesn't work for me. Testing "Best Practices" from the seasoned folks on the list is greatly appreciated. -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 11:55 AM To: 'Tomcat Users List' Subject: ant deploy task? What's the least amount of work I can do to deploy a new version of my webapp? I've been cheating and developing directly under the webapps directory. Now I've moved to a separate directory structure and am building a .war file which gets copied over to webapps. Since Tomcat auto-expands the war file, I find I have to delete the directory and restart in order to get the new version in place. I found an ant task named 'deploy' but it doesn't seem to be apparently requires another .jar file, and I'm having no luck finding that with Google. It isn't, as far as I can tell, a core ant task: W:\java\bendev>ant deploy Buildfile: build.xml deploy: BUILD FAILED file:W:/java/bendev/build.xml:136: Could not create task or type of type: deploy. Ant could not find the task or a class this task relies upon. http://my.development.box"; path="${context}" war="${dist}/${context}.war" username="wendy" password="password" /> I'm also not sure how this is going to work... Tomcat is on the same machine so right now I'm just copying the war file over. Would it be better to use the 'install' or 'restart' tasks instead? Thanks, -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management The information in this email is confidential and may be legally privileged. It is intended solely for the addressee, and access by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you believe that you have received this email in error, please advise us by calling (901) 385 3688, or emailing [EMAIL PROTECTED], and then delete this message and all copies and backups thereof. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ant deploy task?
I asked this same question last week - with no response. What I did was tell TC to not auto-expand and get everything from the war file itself. Ant will copy the war file to catalina_home/webapps. Then I use Manager to stop and start the app - restart doesn't work for me. Testing "Best Practices" from the seasoned folks on the list is greatly appreciated. -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 11:55 AM To: 'Tomcat Users List' Subject: ant deploy task? What's the least amount of work I can do to deploy a new version of my webapp? I've been cheating and developing directly under the webapps directory. Now I've moved to a separate directory structure and am building a .war file which gets copied over to webapps. Since Tomcat auto-expands the war file, I find I have to delete the directory and restart in order to get the new version in place. I found an ant task named 'deploy' but it doesn't seem to be apparently requires another .jar file, and I'm having no luck finding that with Google. It isn't, as far as I can tell, a core ant task: W:\java\bendev>ant deploy Buildfile: build.xml deploy: BUILD FAILED file:W:/java/bendev/build.xml:136: Could not create task or type of type: deploy. Ant could not find the task or a class this task relies upon. http://my.development.box"; path="${context}" war="${dist}/${context}.war" username="wendy" password="password" /> I'm also not sure how this is going to work... Tomcat is on the same machine so right now I'm just copying the war file over. Would it be better to use the 'install' or 'restart' tasks instead? Thanks, -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management The information in this email is confidential and may be legally privileged. It is intended solely for the addressee, and access by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you believe that you have received this email in error, please advise us by calling (901) 385 3688, or emailing [EMAIL PROTECTED], and then delete this message and all copies and backups thereof. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question about building jakarta-tomcat-connectors-4.1.18-src
In my opinion you will have a much easier time of it if you use configure instead: ./configure --with-apxs=/path/to/apache/bin/apxs make make install I've had all kinds of problems with ant on RH 7.2 trying to build the connectors. The configure method is painless. John > -Original Message- > From: Ryan Dooley [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 19, 2003 12:57 PM > To: [EMAIL PROTECTED] > Subject: Question about building jakarta-tomcat-connectors-4.1.18-src > > > Hi, > > I'm having issues building the jakarta-tomcat-connectors > (4.1.18) from > source. The build environment is: > > server platform: redhat linux 7.3 > java version: j2sdk 1.4.1_01 > ant version: 1.5 > tomcat version: 4.1.18 > > I've setup up the environment for JAVA_HOME, CATALINA_HOME, PATH, etc. > > The errors I'm getting are: > > jkjava: > [javac] Compiling 31 source files to > /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/build/classes > [javac] > /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/java/or > g/apache/jk/common/JkInputStream.java:66: > package javax.servlet does not exist > [javac] import javax.servlet.ServletInputStream; > [javac] ^ > [javac] > /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/java/or > g/apache/jk/common/JkInputStream.java:67: > package javax.servlet.http does not exist > [javac] import javax.servlet.http.HttpServletRequest; > [javac] ^ > [javac] > /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/java/or > g/apache/jk/common/JkInputStream.java:68: > package javax.servlet.http does not exist > [javac] import javax.servlet.http.Cookie; > [javac] ^ > [javac] Note: Some input files use or override a deprecated API. > [javac] Note: Recompile with -deprecation for details. > [javac] 3 errors > > Any help would be appreciated. > Cheers, > Ryan > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ant deploy task?
url is your manager app's url, e.g. http://localhost:8080/manager Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED]] Sent: February 19, 2003 12:55 PM To: 'Tomcat Users List' Subject: ant deploy task? What's the least amount of work I can do to deploy a new version of my webapp? I've been cheating and developing directly under the webapps directory. Now I've moved to a separate directory structure and am building a .war file which gets copied over to webapps. Since Tomcat auto-expands the war file, I find I have to delete the directory and restart in order to get the new version in place. I found an ant task named 'deploy' but it doesn't seem to be apparently requires another .jar file, and I'm having no luck finding that with Google. It isn't, as far as I can tell, a core ant task: W:\java\bendev>ant deploy Buildfile: build.xml deploy: BUILD FAILED file:W:/java/bendev/build.xml:136: Could not create task or type of type: deploy. Ant could not find the task or a class this task relies upon. http://my.development.box"; path="${context}" war="${dist}/${context}.war" username="wendy" password="password" /> I'm also not sure how this is going to work... Tomcat is on the same machine so right now I'm just copying the war file over. Would it be better to use the 'install' or 'restart' tasks instead? Thanks, -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management
Re: Special characters
At 03:59 PM 2/19/03 +0100, Carlos Godoy 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? Carlos, This is just a guess, but check the default encoding that your browser uses. I'll bet it's something other than unicode. My solution to this problem is to check for special characters and substitute the appropriate html entity or code before displaying the text. That way I don't need to worry so much about the user's browser not being able display the encoding. I found this page to be very useful... http://www.webenalysis.com/special-characters.asp I hope this helps. Cindy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 2.0.1 and Apache 2.0.44 problem
It's possible. I have no experience with JBoss. John > -Original Message- > From: Mete Kural [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 19, 2003 12:51 PM > To: Tomcat Users List > Subject: RE: JK2 2.0.1 and Apache 2.0.44 problem > > > I think so. This is in my servlet.xml: > > > className="org.apache.coyote.tomcat4.CoyoteConnector" >port="8009" minProcessors="5" > maxProcessors="75" >enableLookups="true" > redirectPort="8443" >acceptCount="10" debug="0" > connectionTimeout="2" >useURIValidationHack="false" > > protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/> > > One thing to mention, I am using the Tomcat that comes > bundled with JBoss, which is Tomcat 4.1.12. Do you > think the fact that Tomcat is invoked by JBoss make a > difference? Any ideas? > > Thanks, > Mete > > --- "Turner, John" <[EMAIL PROTECTED]> wrote: > > > > Do you have a Connector configured for port 8009 in > > server.xml? > > > > John > > > > > > > -Original Message- > > > From: Mete Kural [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, February 19, 2003 11:35 AM > > > To: Tomcat Users List > > > Subject: RE: JK2 2.0.1 and Apache 2.0.44 problem > > > > > > > > > Thanks for the feedback. Hmm.. for some reason it > > > doesn't tell you to add the lines that you gave me > > in > > > the workers2.properties file in the JK2 > > documentation. > > > But anyways, I added these lines to > > > workers2.properties: > > > > > > [shm] > > > file=$/usr/apache/logs/shm.file > > > size=1048576 > > > > > > Now I don't get the "shm.init(): No file" errors > > any > > > more. But the Apache-Tomcat connection still > > doesn't > > > happen. Even after adding those lines to > > > workers2.properties, I still get these errors: > > > > > > > > > [Wed Feb 19 08:30:59 2003] [notice] Apache/2.0.44 > > > (Unix) mod_jk2/2.0.0 configured -- resuming normal > > > operations > > > [Wed Feb 19 08:31:06 2003] [error] > > > channelSocket.open() connect failed localhost:8009 > > 111 > > > Connection refused > > > [Wed Feb 19 08:31:06 2003] [error] ajp13.connect() > > > failed ajp13:localhost:8009 > > > [Wed Feb 19 08:31:06 2003] [error] ajp13.service() > > > failed to connect endpoint errno=111 Connection > > > refused > > > [Wed Feb 19 08:31:06 2003] [error] ajp13.service() > > > Error forwarding ajp13:localhost:8009 1 1 > > > [Wed Feb 19 08:31:06 2003] [error] lb.service() > > worker > > > failed ajp13:localhost:8009 > > > [Wed Feb 19 08:31:06 2003] [error] > > > channelSocket.open() connect failed localhost:8009 > > 111 > > > Connection refused > > > [Wed Feb 19 08:31:06 2003] [error] ajp13.connect() > > > failed ajp13:localhost:8009 > > > [Wed Feb 19 08:31:06 2003] [error] ajp13.service() > > > failed to connect endpoint errno=111 Connection > > > refused > > > [Wed Feb 19 08:31:06 2003] [error] ajp13.service() > > > Error forwarding ajp13:localhost:8009 1 1 > > > [Wed Feb 19 08:31:06 2003] [error] lb.service() > > worker > > > failed ajp13:localhost:8009 > > > [Wed Feb 19 08:31:06 2003] [error] > > lb_worker.service() > > > all workers in error or disabled state > > > [Wed Feb 19 08:31:06 2003] [error] > > mod_jk.handler() > > > Error connecting to tomcat 12 > > > > > > Do you have any idea? > > > > > > Thanks, > > > Mete > > > > > > --- "Turner, John" <[EMAIL PROTECTED]> wrote: > > > > > > > > I'm pretty sure you need a shared memory block > > in > > > > your workers2.properties > > > > file. > > > > > > > > I don't use JK2, but I think it should look > > > > something like this: > > > > > > > > [shm] > > > > file=${serverRoot}/logs/shm.file > > > > size=1048576 > > > > > > > > John > > > > > > > > > -Original Message- > > > > > From: Mete Kural [mailto:[EMAIL PROTECTED]] > > > > > Sent: Tuesday, February 18, 2003 7:56 PM > > > > > To: [EMAIL PROTECTED] > > > > > Subject: JK2 2.0.1 and Apache 2.0.44 problem > > > > > > > > > > > > > > > Hello guys, > > > > > > > > > > I'm having trouble connecting Apache and > > Tomcat > > > > with > > > > > JK2 v2.0.1. I am using Apache 2.0.44 and > > Tomcat > > > > 4.1.12 > > > > > which is bundled inside of the JBoss 3.0.4 > > > > > distribution. I'm on a Red Hat Linux 8.0. I > > set up > > > > the > > > > > configuration as the minimum recommended on > > the > > > > jk2 > > > > > documentation website. > > > > > > > > > > The only line I added to httpd.conf is: > > > > > LoadModule jk2_module modules/mod_jk2.so > > > > > > > > > > My workers2.properties file looks like this: > > > > > > > > > > # Define the communication channel > > > > > [channel.socket:localhost:8009] > > > > > info=Ajp13 forwarding over socket > > > > > tomcatId=localhost:8009 > > > > > # Map the Tomcat examples webapp to the Web > > server > > > > uri > > > > > space > > > > > [uri:/examples/*] > > > > > info=Map the whole webapp > > > > > > > > > > And I left jk2.propert
RE: ant deploy task?
Hi, The file you're looking for is $CATALINA_HOME/server/lib/catalina-ant.jar. Make sure your ant script sees this file for the deploy (and other) taskdefs. Set unpackWARs="false" in server.xml to prevent tomcat from packing the wars. Then, to deploy you just copy the war over and restart the webapp using the manager webapp or the ant task. You won't have to remove any directories. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Wendy Smoak [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, February 19, 2003 12:55 PM >To: 'Tomcat Users List' >Subject: ant deploy task? > > >What's the least amount of work I can do to deploy a new version of my >webapp? I've been cheating and developing directly under the webapps >directory. Now I've moved to a separate directory structure and am >building >a .war file which gets copied over to webapps. > >Since Tomcat auto-expands the war file, I find I have to delete the >directory and restart in order to get the new version in place. > >I found an ant task named 'deploy' but it doesn't seem to be apparently >requires another .jar file, and I'm having no luck finding that with >Google. >It isn't, as far as I can tell, a core ant task: > >W:\java\bendev>ant deploy >Buildfile: build.xml >deploy: >BUILD FAILED >file:W:/java/bendev/build.xml:136: Could not create task or type of type: >deploy. >Ant could not find the task or a class this task relies upon. > > > http://my.development.box"; path="${context}" >war="${dist}/${context}.war" >username="wendy" password="password" /> > > >I'm also not sure how this is going to work... Tomcat is on the same >machine >so right now I'm just copying the war file over. Would it be better to use >the 'install' or 'restart' tasks instead? > >Thanks, > >-- >Wendy Smoak >Applications Systems Analyst, Sr. >Arizona State University PA Information Resources Management > > > > This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question about building jakarta-tomcat-connectors-4.1.18-src
Servlet.jar is not in your classpath Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: Ryan Dooley [mailto:[EMAIL PROTECTED]] Sent: February 19, 2003 12:57 PM To: [EMAIL PROTECTED] Subject: Question about building jakarta-tomcat-connectors-4.1.18-src Hi, I'm having issues building the jakarta-tomcat-connectors (4.1.18) from source. The build environment is: server platform: redhat linux 7.3 java version: j2sdk 1.4.1_01 ant version: 1.5 tomcat version: 4.1.18 I've setup up the environment for JAVA_HOME, CATALINA_HOME, PATH, etc. The errors I'm getting are: jkjava: [javac] Compiling 31 source files to /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/build/classes [javac] /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/java/org/apache/jk/co mmon/JkInputStream.java:66: package javax.servlet does not exist [javac] import javax.servlet.ServletInputStream; [javac] ^ [javac] /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/java/org/apache/jk/co mmon/JkInputStream.java:67: package javax.servlet.http does not exist [javac] import javax.servlet.http.HttpServletRequest; [javac] ^ [javac] /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/java/org/apache/jk/co mmon/JkInputStream.java:68: package javax.servlet.http does not exist [javac] import javax.servlet.http.Cookie; [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 3 errors Any help would be appreciated. Cheers, Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ant deploy task?
What's the least amount of work I can do to deploy a new version of my webapp? I've been cheating and developing directly under the webapps directory. Now I've moved to a separate directory structure and am building a .war file which gets copied over to webapps. Since Tomcat auto-expands the war file, I find I have to delete the directory and restart in order to get the new version in place. I found an ant task named 'deploy' but it doesn't seem to be apparently requires another .jar file, and I'm having no luck finding that with Google. It isn't, as far as I can tell, a core ant task: W:\java\bendev>ant deploy Buildfile: build.xml deploy: BUILD FAILED file:W:/java/bendev/build.xml:136: Could not create task or type of type: deploy. Ant could not find the task or a class this task relies upon. http://my.development.box"; path="${context}" war="${dist}/${context}.war" username="wendy" password="password" /> I'm also not sure how this is going to work... Tomcat is on the same machine so right now I'm just copying the war file over. Would it be better to use the 'install' or 'restart' tasks instead? Thanks, -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management
Question about building jakarta-tomcat-connectors-4.1.18-src
Hi, I'm having issues building the jakarta-tomcat-connectors (4.1.18) from source. The build environment is: server platform: redhat linux 7.3 java version: j2sdk 1.4.1_01 ant version: 1.5 tomcat version: 4.1.18 I've setup up the environment for JAVA_HOME, CATALINA_HOME, PATH, etc. The errors I'm getting are: jkjava: [javac] Compiling 31 source files to /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/build/classes [javac] /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/java/org/apache/jk/common/JkInputStream.java:66: package javax.servlet does not exist [javac] import javax.servlet.ServletInputStream; [javac] ^ [javac] /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/java/org/apache/jk/common/JkInputStream.java:67: package javax.servlet.http does not exist [javac] import javax.servlet.http.HttpServletRequest; [javac] ^ [javac] /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/java/org/apache/jk/common/JkInputStream.java:68: package javax.servlet.http does not exist [javac] import javax.servlet.http.Cookie; [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 3 errors Any help would be appreciated. Cheers, Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 2.0.1 and Apache 2.0.44 problem
I think so. This is in my servlet.xml: One thing to mention, I am using the Tomcat that comes bundled with JBoss, which is Tomcat 4.1.12. Do you think the fact that Tomcat is invoked by JBoss make a difference? Any ideas? Thanks, Mete --- "Turner, John" <[EMAIL PROTECTED]> wrote: > > Do you have a Connector configured for port 8009 in > server.xml? > > John > > > > -Original Message- > > From: Mete Kural [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, February 19, 2003 11:35 AM > > To: Tomcat Users List > > Subject: RE: JK2 2.0.1 and Apache 2.0.44 problem > > > > > > Thanks for the feedback. Hmm.. for some reason it > > doesn't tell you to add the lines that you gave me > in > > the workers2.properties file in the JK2 > documentation. > > But anyways, I added these lines to > > workers2.properties: > > > > [shm] > > file=$/usr/apache/logs/shm.file > > size=1048576 > > > > Now I don't get the "shm.init(): No file" errors > any > > more. But the Apache-Tomcat connection still > doesn't > > happen. Even after adding those lines to > > workers2.properties, I still get these errors: > > > > > > [Wed Feb 19 08:30:59 2003] [notice] Apache/2.0.44 > > (Unix) mod_jk2/2.0.0 configured -- resuming normal > > operations > > [Wed Feb 19 08:31:06 2003] [error] > > channelSocket.open() connect failed localhost:8009 > 111 > > Connection refused > > [Wed Feb 19 08:31:06 2003] [error] ajp13.connect() > > failed ajp13:localhost:8009 > > [Wed Feb 19 08:31:06 2003] [error] ajp13.service() > > failed to connect endpoint errno=111 Connection > > refused > > [Wed Feb 19 08:31:06 2003] [error] ajp13.service() > > Error forwarding ajp13:localhost:8009 1 1 > > [Wed Feb 19 08:31:06 2003] [error] lb.service() > worker > > failed ajp13:localhost:8009 > > [Wed Feb 19 08:31:06 2003] [error] > > channelSocket.open() connect failed localhost:8009 > 111 > > Connection refused > > [Wed Feb 19 08:31:06 2003] [error] ajp13.connect() > > failed ajp13:localhost:8009 > > [Wed Feb 19 08:31:06 2003] [error] ajp13.service() > > failed to connect endpoint errno=111 Connection > > refused > > [Wed Feb 19 08:31:06 2003] [error] ajp13.service() > > Error forwarding ajp13:localhost:8009 1 1 > > [Wed Feb 19 08:31:06 2003] [error] lb.service() > worker > > failed ajp13:localhost:8009 > > [Wed Feb 19 08:31:06 2003] [error] > lb_worker.service() > > all workers in error or disabled state > > [Wed Feb 19 08:31:06 2003] [error] > mod_jk.handler() > > Error connecting to tomcat 12 > > > > Do you have any idea? > > > > Thanks, > > Mete > > > > --- "Turner, John" <[EMAIL PROTECTED]> wrote: > > > > > > I'm pretty sure you need a shared memory block > in > > > your workers2.properties > > > file. > > > > > > I don't use JK2, but I think it should look > > > something like this: > > > > > > [shm] > > > file=${serverRoot}/logs/shm.file > > > size=1048576 > > > > > > John > > > > > > > -Original Message- > > > > From: Mete Kural [mailto:[EMAIL PROTECTED]] > > > > Sent: Tuesday, February 18, 2003 7:56 PM > > > > To: [EMAIL PROTECTED] > > > > Subject: JK2 2.0.1 and Apache 2.0.44 problem > > > > > > > > > > > > Hello guys, > > > > > > > > I'm having trouble connecting Apache and > Tomcat > > > with > > > > JK2 v2.0.1. I am using Apache 2.0.44 and > Tomcat > > > 4.1.12 > > > > which is bundled inside of the JBoss 3.0.4 > > > > distribution. I'm on a Red Hat Linux 8.0. I > set up > > > the > > > > configuration as the minimum recommended on > the > > > jk2 > > > > documentation website. > > > > > > > > The only line I added to httpd.conf is: > > > > LoadModule jk2_module modules/mod_jk2.so > > > > > > > > My workers2.properties file looks like this: > > > > > > > > # Define the communication channel > > > > [channel.socket:localhost:8009] > > > > info=Ajp13 forwarding over socket > > > > tomcatId=localhost:8009 > > > > # Map the Tomcat examples webapp to the Web > server > > > uri > > > > space > > > > [uri:/examples/*] > > > > info=Map the whole webapp > > > > > > > > And I left jk2.properties as it came with > Tomcat > > > > 4.1.12, i.e. all the lines inside it are > commented > > > > out. > > > > > > > > When I try to access localhost/examples, I get > > > this > > > > page: > > > > <<< > > > > Internal Server Error > > > > The server encountered an internal error or > > > > misconfiguration and was unable to complete > your > > > > request. > > > > > > > > Please contact the server administrator, > > > > [EMAIL PROTECTED] and inform them of the time > the > > > error > > > > occurred, and anything you might have done > that > > > may > > > > have caused the error. > > > > > > > > More information about this error may be > available > > > in > > > > the server error log. > > > > >>> > > > > > > > > And here is my error_log: > > > > > > > > [Tue Feb 18 15:27:28 2003] [notice] > Apache/2.0.44 > > > > (Unix) configured -- resuming normal > operations > > > > [Tue Feb 18 15:29:29 2003] [notice] caught > > > SI
RE: JK2 2.0.1 and Apache 2.0.44 problem
Do you have a Connector configured for port 8009 in server.xml? John > -Original Message- > From: Mete Kural [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 19, 2003 11:35 AM > To: Tomcat Users List > Subject: RE: JK2 2.0.1 and Apache 2.0.44 problem > > > Thanks for the feedback. Hmm.. for some reason it > doesn't tell you to add the lines that you gave me in > the workers2.properties file in the JK2 documentation. > But anyways, I added these lines to > workers2.properties: > > [shm] > file=$/usr/apache/logs/shm.file > size=1048576 > > Now I don't get the "shm.init(): No file" errors any > more. But the Apache-Tomcat connection still doesn't > happen. Even after adding those lines to > workers2.properties, I still get these errors: > > > [Wed Feb 19 08:30:59 2003] [notice] Apache/2.0.44 > (Unix) mod_jk2/2.0.0 configured -- resuming normal > operations > [Wed Feb 19 08:31:06 2003] [error] > channelSocket.open() connect failed localhost:8009 111 > Connection refused > [Wed Feb 19 08:31:06 2003] [error] ajp13.connect() > failed ajp13:localhost:8009 > [Wed Feb 19 08:31:06 2003] [error] ajp13.service() > failed to connect endpoint errno=111 Connection > refused > [Wed Feb 19 08:31:06 2003] [error] ajp13.service() > Error forwarding ajp13:localhost:8009 1 1 > [Wed Feb 19 08:31:06 2003] [error] lb.service() worker > failed ajp13:localhost:8009 > [Wed Feb 19 08:31:06 2003] [error] > channelSocket.open() connect failed localhost:8009 111 > Connection refused > [Wed Feb 19 08:31:06 2003] [error] ajp13.connect() > failed ajp13:localhost:8009 > [Wed Feb 19 08:31:06 2003] [error] ajp13.service() > failed to connect endpoint errno=111 Connection > refused > [Wed Feb 19 08:31:06 2003] [error] ajp13.service() > Error forwarding ajp13:localhost:8009 1 1 > [Wed Feb 19 08:31:06 2003] [error] lb.service() worker > failed ajp13:localhost:8009 > [Wed Feb 19 08:31:06 2003] [error] lb_worker.service() > all workers in error or disabled state > [Wed Feb 19 08:31:06 2003] [error] mod_jk.handler() > Error connecting to tomcat 12 > > Do you have any idea? > > Thanks, > Mete > > --- "Turner, John" <[EMAIL PROTECTED]> wrote: > > > > I'm pretty sure you need a shared memory block in > > your workers2.properties > > file. > > > > I don't use JK2, but I think it should look > > something like this: > > > > [shm] > > file=${serverRoot}/logs/shm.file > > size=1048576 > > > > John > > > > > -Original Message- > > > From: Mete Kural [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, February 18, 2003 7:56 PM > > > To: [EMAIL PROTECTED] > > > Subject: JK2 2.0.1 and Apache 2.0.44 problem > > > > > > > > > Hello guys, > > > > > > I'm having trouble connecting Apache and Tomcat > > with > > > JK2 v2.0.1. I am using Apache 2.0.44 and Tomcat > > 4.1.12 > > > which is bundled inside of the JBoss 3.0.4 > > > distribution. I'm on a Red Hat Linux 8.0. I set up > > the > > > configuration as the minimum recommended on the > > jk2 > > > documentation website. > > > > > > The only line I added to httpd.conf is: > > > LoadModule jk2_module modules/mod_jk2.so > > > > > > My workers2.properties file looks like this: > > > > > > # Define the communication channel > > > [channel.socket:localhost:8009] > > > info=Ajp13 forwarding over socket > > > tomcatId=localhost:8009 > > > # Map the Tomcat examples webapp to the Web server > > uri > > > space > > > [uri:/examples/*] > > > info=Map the whole webapp > > > > > > And I left jk2.properties as it came with Tomcat > > > 4.1.12, i.e. all the lines inside it are commented > > > out. > > > > > > When I try to access localhost/examples, I get > > this > > > page: > > > <<< > > > Internal Server Error > > > The server encountered an internal error or > > > misconfiguration and was unable to complete your > > > request. > > > > > > Please contact the server administrator, > > > [EMAIL PROTECTED] and inform them of the time the > > error > > > occurred, and anything you might have done that > > may > > > have caused the error. > > > > > > More information about this error may be available > > in > > > the server error log. > > > >>> > > > > > > And here is my error_log: > > > > > > [Tue Feb 18 15:27:28 2003] [notice] Apache/2.0.44 > > > (Unix) configured -- resuming normal operations > > > [Tue Feb 18 15:29:29 2003] [notice] caught > > SIGTERM, > > > shutting down > > > [Tue Feb 18 16:22:58 2003] [error] shm.init(): No > > file > > > [Tue Feb 18 16:22:58 2003] [notice] Apache/2.0.44 > > > (Unix) mod_jk2/2.0.0 configured -- resuming normal > > > operations > > > [Tue Feb 18 16:22:58 2003] [error] shm.init(): No > > file > > > [Tue Feb 18 16:22:58 2003] [error] shm.init(): No > > file > > > [Tue Feb 18 16:23:10 2003] [error] > > workerEnv.init() > > > create slot epStat.0 failed > > > [Tue Feb 18 16:23:10 2003] [error] lb.service() > > worker > > > failed ajp13:localhost:8009 > > > [Tue Feb 18 16:23:10 2003] [error] lb.service() > > > unrecoverable error... > > > [Tu
RE: Tomcat 4.1.8 and httpd-2.0.40-11
The old Apache is not stopped. John > -Original Message- > From: sunisson [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 19, 2003 3:29 PM > To: Tomcat Users List > Subject: Re: Tomcat 4.1.8 and httpd-2.0.40-11 > > > More help and comments needed. > > I am installing httpd-2.0.44 as you suggested. I did the following > steps: stop the old apache, configure, make, and make install for new > apache. When I test the new apache by > /usr/local/apache2/bin/apachectl start > I saw the following error message: > > httpd: Could not determine the server's fully qualified domain name, > using 127.0.0.1 for ServerName > (98)Address already in use: make_sock: could not bind to > address 0.0.0.0:80 > no listening sockets available, shutting down > Unable to open logs > > > > > > > [EMAIL PROTECTED] wrote: > > >Yes, mine is 7.2 too. If I were you, I would choose not to > install apache > >which came with RH8. Building apache from source should ease > your pain. > > > >Regards, > > > > > >PQ > > > >"This Guy Thinks He Knows Everything" > >"This Guy Thinks He Knows What He Is Doing" > > > >-Original Message- > >From: sunisson [mailto:[EMAIL PROTECTED]] > >Sent: February 18, 2003 3:30 PM > >To: Tomcat Users List > >Subject: Re: Tomcat 4.1.8 and httpd-2.0.40-11 > > > >Thank you. > > > >What OS do you use? Redhat 8.0. > > > >I asked this since most of people I asked use Redhat 7.2 or 7.3. > > > >Thanks again > > > >[EMAIL PROTECTED] wrote: > > > > > > > >>Sorry if I misunderstood your question. > >> > >>I encountered errors like jni_md.h no such file etc when I > was building my > >>connector. After I read and followed the instruction provided by > >>http://www.pubbitch.org/jboss/mod_jk2.html, I passed the compile. > >> > >>So below is what I think might be helpful. > >> > >>1. grab tomcat binary. > >>2. build apache 2 with MPM enabled. > >>3. follow pubbitch's instruction, e.g. move header file one > level up. > >> > >> > >>Regards, > >> > >> > >>PQ > >> > >>"This Guy Thinks He Knows Everything" > >>"This Guy Thinks He Knows What He Is Doing" > >> > >>-Original Message- > >>From: sunisson [mailto:[EMAIL PROTECTED]] > >>Sent: February 18, 2003 3:11 PM > >>To: Tomcat Users List > >>Subject: Tomcat 4.1.8 and httpd-2.0.40-11 > >> > >>Hi all, > >> > >>I tried to connect Tomcat 4.1.8 and > Apache2(httpd-2.0.40-11 ) with jk2 > >>on my redhat 8.0 box, where apach2 was installed when I > installed Redhat > >>8.0. I use JDK 1.4.1. > >> > >>When I used ant to build native, I met errors(see attched). > I cannot > >>resolve this. Could anyone help me on this? > >> > >>Thank you very much, > >> > >>Xue-Feng > >> > >> [so] StdErr: > >> [so] In file included from > >>/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/co > mmon/jk_mutex_t > >> > >> > >h > > > > > >>read.c:64: > >> > >> [so] > >>/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/in > clude/jk_global > >> > >> > >. > > > > > >>h:165:17: > >>apr.h: No such file or directory > >> [so] > >>/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/in > clude/jk_global > >> > >> > >. > > > > > >>h:166:23: > >>apr_errno.h: No such file or directory > >> [so] > >>/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/in > clude/jk_global > >> > >> > >. > > > > > >>h:167:22: > >>apr_time.h: No such file or directory > >> [so] > >>/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/in > clude/jk_global > >> > >> > >. > > > > > >>h:168:25: > >>apr_strings.h: No such file or directory > >> [so] In file included from > >>/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/in > clude/jk_worker > >> > >> > >E > > > > > >>nv.h:68, > >> > >> [so] from > >>/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/in > clude/jk_servic > >> > >> > >e > > > > > >>.h:75, > >> > >> [so] from > >>/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/in > clude/jk_worker > >> > >> > >. > > > > > >>h:70, > >> > >> [so] from > >>/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/in > clude/jk_env.h: > >> > >> > >6 > > > > > >>9, > >> > >> [so] from > >>/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/in > clude/jk_pool.h > >> > >> > >: > > > > > >>67, > >> > >> [so] from > >>/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/in > clude/jk_map.h: > >> > >> > >6 > > > > > >>7, > >> > >> [so] from > >>/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/co > mmon/jk_mutex_t > >> > >> > >h > > > > > >>read.c:65: > >> > >> [so] > >>/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/in > clude/jk_endpoi > >> > >> > >n > > > > > >>t.h:207: > >>parse error before "apr_time_t" > >> [so] > >>/root/tmp/jakarta-tomca
RE: Hundreds of LogConfigurationException
Howdy, Ceki - it's kind of weird to see your name outside the log4j dev list ;) Cool though. Anyways, I think the issue here is with having multiple copies of commons-logging. Tomcat uses commons-logging and allows apps to use it as well by placing it common/lib. However, there's a classloading conflict. Other people have reported this, e.g. http://marc.theaimsgroup.com/?l=tomcat-user&m=104305604609583&w=2 Perhaps this is worth a shot: move commons-logging jar out of common/lib and into server/lib, so tomcat can still use it internally. Keep a copy of of commons-logging jar (and log4j jar) in your /WEB-INF/lib directory. Does that make the problem go away? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Ceki Gülcü [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, February 19, 2003 12:26 PM >To: [EMAIL PROTECTED] >Subject: Hundreds of LogConfigurationException > >Hi all, > >I am getting a large number of the following exceptions, until the server >eventually stops responding. > >org.apache.commons.logging.LogConfigurationException: >org.apache.commons.logging.LogConfigurationException: >org.apache.commons.logging.LogConfigurationException: Class >org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log > at >org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.j >ava:555) > at >org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.j >ava:289) > at >org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409) > at >org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandler.java:97) > at org.apache.tomcat.util.log.Log.log(Log.java:198) > at org.apache.tomcat.util.log.Log.log(Log.java:192) > at org.apache.tomcat.util.log.Log.log(Log.java:174) > at >org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja >va:533) > at java.lang.Thread.run(Thread.java:536) >Caused by: org.apache.commons.logging.LogConfigurationException: >org.apache.commons.logging.LogConfigurationException: Class >org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log > at >org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactory >Impl.java:420) > at >org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.j >ava:548) > ... 8 more >Caused by: org.apache.commons.logging.LogConfigurationException: Class >org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log > at >org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactory >Impl.java:416) > ... 9 more > >I have log4j in WEB-INF/lib and commons-logging.jar in WEB-INF/lib and also >in TOMCAT_HOME/server/lib. I am using tomcat 4.1.18, struts 1.1b3 on Linux >2.4.7 and JDK 1.4.1. > >-- >Ceki > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hundreds of LogConfigurationException
Hi, This is the problem with commons-logging I have been harping on about that causes Tomcat to crash. You need to ensure that commons-logging.jar is only in common/lib. Don't have it in server/lib and yourapp/WEB-INF/lib Regards Jim. > -Original Message- > From: Ceki Gülcü [mailto:[EMAIL PROTECTED]] > Sent: 19 February 2003 17:26 > To: [EMAIL PROTECTED] > Subject: Hundreds of LogConfigurationException > > > Hi all, > > I am getting a large number of the following exceptions, > until the server > eventually stops responding. > > org.apache.commons.logging.LogConfigurationException: > org.apache.commons.logging.LogConfigurationException: > org.apache.commons.logging.LogConfigurationException: Class > org.apache.commons.logging.impl.Log4JCategoryLog does not > implement Log > at > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log > FactoryImpl.java:555) > at > org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log > FactoryImpl.java:289) > at > org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409) > at > org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandl > er.java:97) > at org.apache.tomcat.util.log.Log.log(Log.java:198) > at org.apache.tomcat.util.log.Log.log(Log.java:192) > at org.apache.tomcat.util.log.Log.log(Log.java:174) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( > ThreadPool.java:533) > at java.lang.Thread.run(Thread.java:536) > Caused by: org.apache.commons.logging.LogConfigurationException: > org.apache.commons.logging.LogConfigurationException: Class > org.apache.commons.logging.impl.Log4JCategoryLog does not > implement Log > at > org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct > or(LogFactoryImpl.java:420) > at > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log > FactoryImpl.java:548) > ... 8 more > Caused by: > org.apache.commons.logging.LogConfigurationException: Class > org.apache.commons.logging.impl.Log4JCategoryLog does not > implement Log > at > org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct > or(LogFactoryImpl.java:416) > ... 9 more > > I have log4j in WEB-INF/lib and commons-logging.jar in > WEB-INF/lib and also > in TOMCAT_HOME/server/lib. I am using tomcat 4.1.18, struts > 1.1b3 on Linux > 2.4.7 and JDK 1.4.1. > > -- > Ceki > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hundreds of LogConfigurationException
did you put the log4j library in server/lib? if so, remove it again. Filip -Original Message- From: Ceki Gülcü [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 9:26 AM To: [EMAIL PROTECTED] Subject: Hundreds of LogConfigurationException Hi all, I am getting a large number of the following exceptions, until the server eventually stops responding. org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:555) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:289) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409) at org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandler.java:97) at org.apache.tomcat.util.log.Log.log(Log.java:198) at org.apache.tomcat.util.log.Log.log(Log.java:192) at org.apache.tomcat.util.log.Log.log(Log.java:174) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:420) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:548) ... 8 more Caused by: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416) ... 9 more I have log4j in WEB-INF/lib and commons-logging.jar in WEB-INF/lib and also in TOMCAT_HOME/server/lib. I am using tomcat 4.1.18, struts 1.1b3 on Linux 2.4.7 and JDK 1.4.1. -- Ceki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1.8 and httpd-2.0.40-11
More help and comments needed. I am installing httpd-2.0.44 as you suggested. I did the following steps: stop the old apache, configure, make, and make install for new apache. When I test the new apache by /usr/local/apache2/bin/apachectl start I saw the following error message: httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs [EMAIL PROTECTED] wrote: Yes, mine is 7.2 too. If I were you, I would choose not to install apache which came with RH8. Building apache from source should ease your pain. Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: sunisson [mailto:[EMAIL PROTECTED]] Sent: February 18, 2003 3:30 PM To: Tomcat Users List Subject: Re: Tomcat 4.1.8 and httpd-2.0.40-11 Thank you. What OS do you use? Redhat 8.0. I asked this since most of people I asked use Redhat 7.2 or 7.3. Thanks again [EMAIL PROTECTED] wrote: Sorry if I misunderstood your question. I encountered errors like jni_md.h no such file etc when I was building my connector. After I read and followed the instruction provided by http://www.pubbitch.org/jboss/mod_jk2.html, I passed the compile. So below is what I think might be helpful. 1. grab tomcat binary. 2. build apache 2 with MPM enabled. 3. follow pubbitch's instruction, e.g. move header file one level up. Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: sunisson [mailto:[EMAIL PROTECTED]] Sent: February 18, 2003 3:11 PM To: Tomcat Users List Subject: Tomcat 4.1.8 and httpd-2.0.40-11 Hi all, I tried to connect Tomcat 4.1.8 and Apache2(httpd-2.0.40-11 ) with jk2 on my redhat 8.0 box, where apach2 was installed when I installed Redhat 8.0. I use JDK 1.4.1. When I used ant to build native, I met errors(see attched). I cannot resolve this. Could anyone help me on this? Thank you very much, Xue-Feng [so] StdErr: [so] In file included from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/common/jk_mutex_t h read.c:64: [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global . h:165:17: apr.h: No such file or directory [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global . h:166:23: apr_errno.h: No such file or directory [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global . h:167:22: apr_time.h: No such file or directory [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global . h:168:25: apr_strings.h: No such file or directory [so] In file included from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_worker E nv.h:68, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_servic e .h:75, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_worker . h:70, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_env.h: 6 9, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_pool.h : 67, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_map.h: 6 7, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/common/jk_mutex_t h read.c:65: [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:207: parse error before "apr_time_t" [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:207: warning: no semicolon at end of struct or union [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:211: warning: data definition has no type or storage class [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:212: parse error before "maxTime" [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:212: warning: data definition has no type or storage class [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:215: parse error before "startTime" [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:215: warning: data definition has no type or storage class [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:216: parse error before "jkStartTime" [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/na
Hundreds of LogConfigurationException
Hi all, I am getting a large number of the following exceptions, until the server eventually stops responding. org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:555) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:289) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409) at org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandler.java:97) at org.apache.tomcat.util.log.Log.log(Log.java:198) at org.apache.tomcat.util.log.Log.log(Log.java:192) at org.apache.tomcat.util.log.Log.log(Log.java:174) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:420) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:548) ... 8 more Caused by: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416) ... 9 more I have log4j in WEB-INF/lib and commons-logging.jar in WEB-INF/lib and also in TOMCAT_HOME/server/lib. I am using tomcat 4.1.18, struts 1.1b3 on Linux 2.4.7 and JDK 1.4.1. -- Ceki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC & ORACLE implementation !
Hi Swapneel ! If you absolutely MUST use Oracle with Tomcat, use the DataDirect JDBC drivers, not the JDBC drivers bundled with Oracle. I am assuming (since you did not mention the version number of Oracle) that you are pretty new to the Oracle database product. You should then go for the Sequelink JDBC product (http://www.datadirect-technologies.com/products/sequelink/slindex.asp). It will help you to get started a lot quicker. Regards, pascal chong Swapneel Dange wrote: hi there ~ i am curious to know as to how can u implement ORACLE database in the TOMCAT. and can somebody tell me as to where i can read the DOCUMENTATION for the implementation of the JDBC connectivity under TOMCAT. Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] free Database with Transaction (Sorry for the noise)
Hypersonic ? I've had some problems running it in standalone server mode. Can't seem to be able to connect. But two non-commercial (i.e. free) databases I like are : 1. McKoi (http://www.mckoi.com/database/) 2. InstantDB - no, it's not dead, just frozen. (http://www.simpledb.org/) IBM's DB2 is excellent for database newbies and "casual" database users and administrators.I particularly like the "one-click install" and the stable GUI admin tool. The installation process is a LOT more painless than Oracle, and the database tunes itself more effectively. I didn't like the number of pre-install tasks when installing Oracle 8i, and I thought the installer was not as seamless as it should be. Just my 2 cents Regards, pascal chong Kemp Randy-W18971 wrote: There are some great installation guides for Oracle on Linux and Solaris found at http://www.dbspecialists.com/ -Original Message- From: Felipe Schnack [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 18, 2003 1:47 PM To: Tomcat Users List Subject: Re: [OT] free Database with Transaction (Sorry for the noise) Oracle is expensive to buy, expensive to hire a DBA... and well, in windows the installation is okay, but in linux is a real nightmare... I took almost a week the first time (I wasn't a very experienced linux user too) I'm using postgresql with Java and I'm very satisfied, much more "serious" than MySQL, just as free and have a good comunity. I heard Hypersonic is very nice, but you shouldn't use it if you get lots of data. You know, it's java... it eats memory :-))) On Tue, 2003-02-18 at 16:45, Jens Skripczynski wrote: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: error opening tomcat admin login page
Hi, Its a case sensitivity issue - when you installed either "message" got translated to "MESSAGE" or the other way round. Two solutions - 1) re-install from another souce or 2) go down into the admin app directories and change the names of the properties files manually HTH -Original Message- From: Mark Strecker [mailto:[EMAIL PROTECTED]] Sent: Mittwoch, 19. Februar 2003 17:42 To: Tomcat Users List Subject: error opening tomcat admin login page Hello All, I installed tomcat 4.1.18 on an sgi(Java 1.3.1 on Irix 6.5) and cannot open the admin login(/admin/login.jsp). I get this exception : org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:530, Compiled Code) at org.apache.jsp.login_jsp._jspService(login_jsp.java:188, Compiled Code) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853, Compiled Code) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204, Compiled Code) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295, Compiled Code) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853, Compiled Code) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247, Compiled Code) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193, Compiled Code) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480, Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995, Compiled Code) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643, Compiled Code) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:550, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480, Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995, Compiled Code) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415, Compiled Code) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643, Compiled Code) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641, Compiled Code) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480, Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995, Compiled Code) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480, Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995, Compiled Code) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223, Compiled Code) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432, Compiled Code) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386, Compiled Code) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534, Compiled Code) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530, Compiled Code) at java.lang.Thread.run(Thread.java:484, Compiled Code) Any help would be greatly appreciated. Thanks, Mark - To unsubscribe
RE: [OT] free Database with Transaction (Sorry for the noise)
That's a very strange database. Once it's setup it's not too bad, but I've had no fun setting it up. --mikej -=- mike jackson [EMAIL PROTECTED] > -Original Message- > From: Varley, Roger [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 19, 2003 5:38 AM > To: 'Tomcat Users List' > Subject: RE: [OT] free Database with Transaction (Sorry for the noise) > > > I'm surprised that no-one has mentioned SAPDB ( www.sapdb.org ). If this > will support a production SAP R3 system then it shoud be able to > give Oracle > a run for its money. > > Regards > Roger > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1.8 and httpd-2.0.40-11
I am trying to install httpd-2.0.44. I let the old apache stop to run. After comfigure, make and make install. I checked by /usr/local/apache2/bin/apachectl start I met the following error message. Any suggestion? (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down [EMAIL PROTECTED] wrote: Yes, mine is 7.2 too. If I were you, I would choose not to install apache which came with RH8. Building apache from source should ease your pain. Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: sunisson [mailto:[EMAIL PROTECTED]] Sent: February 18, 2003 3:30 PM To: Tomcat Users List Subject: Re: Tomcat 4.1.8 and httpd-2.0.40-11 Thank you. What OS do you use? Redhat 8.0. I asked this since most of people I asked use Redhat 7.2 or 7.3. Thanks again [EMAIL PROTECTED] wrote: Sorry if I misunderstood your question. I encountered errors like jni_md.h no such file etc when I was building my connector. After I read and followed the instruction provided by http://www.pubbitch.org/jboss/mod_jk2.html, I passed the compile. So below is what I think might be helpful. 1. grab tomcat binary. 2. build apache 2 with MPM enabled. 3. follow pubbitch's instruction, e.g. move header file one level up. Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: sunisson [mailto:[EMAIL PROTECTED]] Sent: February 18, 2003 3:11 PM To: Tomcat Users List Subject: Tomcat 4.1.8 and httpd-2.0.40-11 Hi all, I tried to connect Tomcat 4.1.8 and Apache2(httpd-2.0.40-11 ) with jk2 on my redhat 8.0 box, where apach2 was installed when I installed Redhat 8.0. I use JDK 1.4.1. When I used ant to build native, I met errors(see attched). I cannot resolve this. Could anyone help me on this? Thank you very much, Xue-Feng [so] StdErr: [so] In file included from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/common/jk_mutex_t h read.c:64: [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global . h:165:17: apr.h: No such file or directory [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global . h:166:23: apr_errno.h: No such file or directory [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global . h:167:22: apr_time.h: No such file or directory [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global . h:168:25: apr_strings.h: No such file or directory [so] In file included from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_worker E nv.h:68, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_servic e .h:75, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_worker . h:70, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_env.h: 6 9, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_pool.h : 67, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_map.h: 6 7, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/common/jk_mutex_t h read.c:65: [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:207: parse error before "apr_time_t" [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:207: warning: no semicolon at end of struct or union [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:211: warning: data definition has no type or storage class [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:212: parse error before "maxTime" [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:212: warning: data definition has no type or storage class [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:215: parse error before "startTime" [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:215: warning: data definition has no type or storage class [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:216: parse error before "jkStartTime" [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:216: warning: data definition has no type or storage class [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n
error opening tomcat admin login page
Hello All, I installed tomcat 4.1.18 on an sgi(Java 1.3.1 on Irix 6.5) and cannot open the admin login(/admin/login.jsp). I get this exception : org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:530, Compiled Code) at org.apache.jsp.login_jsp._jspService(login_jsp.java:188, Compiled Code) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853, Compiled Code) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204, Compiled Code) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295, Compiled Code) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853, Compiled Code) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247, Compiled Code) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193, Compiled Code) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480, Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995, Compiled Code) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643, Compiled Code) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:550, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480, Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995, Compiled Code) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415, Compiled Code) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643, Compiled Code) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641, Compiled Code) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480, Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995, Compiled Code) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480, Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995, Compiled Code) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223, Compiled Code) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432, Compiled Code) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386, Compiled Code) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534, Compiled Code) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530, Compiled Code) at java.lang.Thread.run(Thread.java:484, Compiled Code) Any help would be greatly appreciated. Thanks, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: LDAP connection pool suggestions?
Rob Moore wrote: Hi, Joshua, FWIW, you can use LDAP connection pooling in JDK 1.4.1. See: http://java.sun.com/products/jndi/tutorial/ldap/connect/pool.html This is off-topic, so please reply to me personally, but... FWIW, this is Sun continuing to cannabalize the Netscape and Novell Java LDAP SDKs, which both still exist. IMHO, the implementation of pooling is cleaner with Netscape and Novell, just as most most LDAP operations are cleaner. If you don't want to communicate with name or file servers too, but instead want lots of LDAP specific features, you might want to check out: http://www.mozilla.org/directory/javasdk.html Of course, who am I to question the Sun? Jon Roberts www.mentata.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 2.0.1 and Apache 2.0.44 problem
Thanks for the feedback. Hmm.. for some reason it doesn't tell you to add the lines that you gave me in the workers2.properties file in the JK2 documentation. But anyways, I added these lines to workers2.properties: [shm] file=$/usr/apache/logs/shm.file size=1048576 Now I don't get the "shm.init(): No file" errors any more. But the Apache-Tomcat connection still doesn't happen. Even after adding those lines to workers2.properties, I still get these errors: [Wed Feb 19 08:30:59 2003] [notice] Apache/2.0.44 (Unix) mod_jk2/2.0.0 configured -- resuming normal operations [Wed Feb 19 08:31:06 2003] [error] channelSocket.open() connect failed localhost:8009 111 Connection refused [Wed Feb 19 08:31:06 2003] [error] ajp13.connect() failed ajp13:localhost:8009 [Wed Feb 19 08:31:06 2003] [error] ajp13.service() failed to connect endpoint errno=111 Connection refused [Wed Feb 19 08:31:06 2003] [error] ajp13.service() Error forwarding ajp13:localhost:8009 1 1 [Wed Feb 19 08:31:06 2003] [error] lb.service() worker failed ajp13:localhost:8009 [Wed Feb 19 08:31:06 2003] [error] channelSocket.open() connect failed localhost:8009 111 Connection refused [Wed Feb 19 08:31:06 2003] [error] ajp13.connect() failed ajp13:localhost:8009 [Wed Feb 19 08:31:06 2003] [error] ajp13.service() failed to connect endpoint errno=111 Connection refused [Wed Feb 19 08:31:06 2003] [error] ajp13.service() Error forwarding ajp13:localhost:8009 1 1 [Wed Feb 19 08:31:06 2003] [error] lb.service() worker failed ajp13:localhost:8009 [Wed Feb 19 08:31:06 2003] [error] lb_worker.service() all workers in error or disabled state [Wed Feb 19 08:31:06 2003] [error] mod_jk.handler() Error connecting to tomcat 12 Do you have any idea? Thanks, Mete --- "Turner, John" <[EMAIL PROTECTED]> wrote: > > I'm pretty sure you need a shared memory block in > your workers2.properties > file. > > I don't use JK2, but I think it should look > something like this: > > [shm] > file=${serverRoot}/logs/shm.file > size=1048576 > > John > > > -Original Message- > > From: Mete Kural [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, February 18, 2003 7:56 PM > > To: [EMAIL PROTECTED] > > Subject: JK2 2.0.1 and Apache 2.0.44 problem > > > > > > Hello guys, > > > > I'm having trouble connecting Apache and Tomcat > with > > JK2 v2.0.1. I am using Apache 2.0.44 and Tomcat > 4.1.12 > > which is bundled inside of the JBoss 3.0.4 > > distribution. I'm on a Red Hat Linux 8.0. I set up > the > > configuration as the minimum recommended on the > jk2 > > documentation website. > > > > The only line I added to httpd.conf is: > > LoadModule jk2_module modules/mod_jk2.so > > > > My workers2.properties file looks like this: > > > > # Define the communication channel > > [channel.socket:localhost:8009] > > info=Ajp13 forwarding over socket > > tomcatId=localhost:8009 > > # Map the Tomcat examples webapp to the Web server > uri > > space > > [uri:/examples/*] > > info=Map the whole webapp > > > > And I left jk2.properties as it came with Tomcat > > 4.1.12, i.e. all the lines inside it are commented > > out. > > > > When I try to access localhost/examples, I get > this > > page: > > <<< > > Internal Server Error > > The server encountered an internal error or > > misconfiguration and was unable to complete your > > request. > > > > Please contact the server administrator, > > [EMAIL PROTECTED] and inform them of the time the > error > > occurred, and anything you might have done that > may > > have caused the error. > > > > More information about this error may be available > in > > the server error log. > > >>> > > > > And here is my error_log: > > > > [Tue Feb 18 15:27:28 2003] [notice] Apache/2.0.44 > > (Unix) configured -- resuming normal operations > > [Tue Feb 18 15:29:29 2003] [notice] caught > SIGTERM, > > shutting down > > [Tue Feb 18 16:22:58 2003] [error] shm.init(): No > file > > [Tue Feb 18 16:22:58 2003] [notice] Apache/2.0.44 > > (Unix) mod_jk2/2.0.0 configured -- resuming normal > > operations > > [Tue Feb 18 16:22:58 2003] [error] shm.init(): No > file > > [Tue Feb 18 16:22:58 2003] [error] shm.init(): No > file > > [Tue Feb 18 16:23:10 2003] [error] > workerEnv.init() > > create slot epStat.0 failed > > [Tue Feb 18 16:23:10 2003] [error] lb.service() > worker > > failed ajp13:localhost:8009 > > [Tue Feb 18 16:23:10 2003] [error] lb.service() > > unrecoverable error... > > [Tue Feb 18 16:23:10 2003] [error] > mod_jk.handler() > > Error connecting to tomcat 12 > > > > > > Can you please help me out with this? I am new to > JK2 > > and I have no idea why this could be happenning. > If > > more information about my configuration is > necessary > > please let me know. > > > > Thank you very much, > > Mete > > > > > > > > > > > > > > > > > > > > > - > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > --
RE: Best Logging practices
Howdy, > I know what you mean, but maybe he doesn't really need what log4j >offers in better ways than jdk1.4 > I use it for very simple logging and have no problems with it. You could be right. If his use case is very simple and will never grow more complex. One thing to keep in mind though, is performance (time and memory consumption), of both logging and "not logging" ie issuing logging statements to a logger that's configured not to output anything above a certain threshold. Our internal benchmarks show log4j to be superior in both time and memory performance, even using very plain (1 log file) configurations. That alone can affect which implementation to use. Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best Logging practices
commons-logging should be just as easy to use as log4j. I have used it in a standalone application with no problems, and it is nice that I can switch to a different logging implementation (i.e from log4j to JDK1.4 logging) without changing my code at all. The problem is using commons-logging in Tomcat. Regards Jim. > -Original Message- > From: Peter Lin [mailto:[EMAIL PROTECTED]] > Sent: 19 February 2003 15:52 > To: Tomcat Users List > Subject: RE: Best Logging practices > > > > I just noticed the typos in my post. what I meant to > say is, use log4j since commons-logging uses it. > > using commons-logging will require more work than > using log4j directly. there are numerous examples > distributed with log4j, including how to extend it > with custom logging categories. sorry for any > un-intentional confusion :) > > peter > > > --- "Collins, Jim" <[EMAIL PROTECTED]> wrote: > > I would not recommend using commons-logging in a > > web-app. If you want to > > separately configure the logging requirements of an > > application you have to > > deploy it with its own logging properties file > > (log4j.properties for log4j). > > For commons-logging to pick up your apps logging > > properties file you need to > > deploy commons-logging.jar in yourapp/WEB-INF/lib. > > This should not be a > > problem however having commons-logging.jar in > > yourapp/WEB-INF/lib and > > common/lib causes Tomcat to crash. I have had this > > problem and so have a > > number of other people. So avoid the heartache of > > this and log directly to > > log4j or the JDK1.4 logger. > > > > Regards > > > > Jim. > > > > > > __ > Do you Yahoo!? > Yahoo! Shopping - Send Flowers for Valentine's Day > http://shopping.yahoo.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best Logging practices
I know what you mean, but maybe he doesn't really need what log4j offers in better ways than jdk1.4 I use it for very simple logging and have no problems with it. On Wed, 2003-02-19 at 12:57, Shapira, Yoav wrote: > > Howdy, > > >What do you think of this opinion: I am inclined to use the JDK1.4 > >logger just because it's included in rt.jar, thus fewer jars and > shorter > >classpath, and all that. > > I think everyone is free to have their own opinion. > > I don't think the length of the classpath is a relevant argument to > anything. I don't think JDK 1.4 is well implemented. I do think log4j > is superior in many ways. I do think using JDK 1.4 logging is a > mistake. I do think you should check out some of the documentation on > both packages, as well as comparisons available on this list's archives, > the log4j list archives, and the log4j documentation site. > > And all that ;) > > Yoav Shapira > Millennium ChemInformatics > > > > This e-mail, including any attachments, is a confidential business communication, >and may contain information that is confidential, proprietary and/or privileged. >This e-mail is intended only for the individual(s) to whom it is addressed, and may >not be saved, copied, printed, disclosed or used by anyone else. If you are not >the(an) intended recipient, please immediately delete this e-mail from your computer >system and notify the sender. Thank you. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Centro Universitário Ritter dos Reis http://www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303341 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]