Re: [Resin-interest] Small problem with quercus
[ ... ] Any way of sending back a valid Not Found code instead of this? Suppose talking the quercus config out of resin-web.xml and putting it into the webapp would cut things down a bit. Any other way? javax.servlet.ServletException: java.io.FileNotFoundException: /usr/web/default-server/VeohTV/campaignServer.php That issue was fixed in 3.1.2: http://bugs.caucho.com/view.php?id=1952 As a workaround, you can use rewrite-dispatch and not-found to match the requests and send a 404: http://www.caucho.com/resin-3.1/doc/rewrite-tags.xtp#not-found -- Sam ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Small problem with quercus
I'm running 3 resin servers in a hardware load balanced configuration that are configured to also run some quercus php apps and a number of virtual hosts In our halls of residence I've set up a restricted network our students connect to by default. In order to gain access to the internet they have to do a few things, ( apply windows updates, configure their machine for 802.1x authentication etc..). If a user is on this restricted network our dhcp server hands out the IP address associated with a dns redirector program. This prog will either pass dns requests to our real dns servers or hand back a fixed ip address. I've got it configured so that it resolves any requests for windows update related sites and hands back the load balanced ip address of my resin cluster. When used in conjunction with a few firewall rules it means that whatever http/s host the client machine tries to access gets redirected to the default-server I've got configured in resin. What the user sees is a web page saying you are connected to a restricted network etc.. This all works just fine, except for the fact that I'm now seeing lots of log entries of the form shown below. The file not found iis correct, its not on our server because of the dns redirector. Any way of sending back a valid Not Found code instead of this? Suppose talking the quercus config out of resin-web.xml and putting it into the webapp would cut things down a bit. Any other way? Alex javax.servlet.ServletException: java.io.FileNotFoundException: /usr/web/default-server/VeohTV/campaignServer.php [00:22:42.144] at com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:29 6) [00:22:42.144] at javax.servlet.http.HttpServlet.service(HttpServlet.java:92) [00:22:42.144] at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChai n.java:106) [00:22:42.144] at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java: 207) [00:22:42.144] at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.ja va:173) [00:22:42.144] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.j ava:229) [00:22:42.144] at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274) [00:22:42.144] at com.caucho.server.port.TcpConnection.run(TcpConnection.java:514) [00:22:42.144] at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520) [00:22:42.144] at com.caucho.util.ThreadPool.run(ThreadPool.java:442) [00:22:42.144] at java.lang.Thread.run()V(Unknown Source) [00:22:42.144] Caused by: java.io.FileNotFoundException: /usr/web/default-server/VeohTV/campaignServer.php [00:22:42.144] at com.caucho.vfs.JniFilePathImpl.openReadImpl(JniFilePathImpl.java:338) [00:22:42.144] at com.caucho.vfs.Path.openRead(Path.java:934) [00:22:42.144] at com.caucho.quercus.parser.QuercusParser.parse(QuercusParser.java:284) [00:22:42.144] at com.caucho.quercus.page.PageManager.parse(PageManager.java:201) [00:22:42.144] at com.caucho.quercus.page.PageManager.parse(PageManager.java:180) [00:22:42.144] at com.caucho.quercus.Quercus.parse(Quercus.java:546) [00:22:42.144] at com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:21 7)* To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html *___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Small problem with quercus
Ah! o.k. i'm running 3.0.25 on these servers. i'll use the workaround until I upgrade the boxes. Alex -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sam Sent: 01 February 2008 14:40 To: resin-interest@caucho.com Subject: Re: [Resin-interest] Small problem with quercus [ ... ] Any way of sending back a valid Not Found code instead of this? Suppose talking the quercus config out of resin-web.xml and putting it into the webapp would cut things down a bit. Any other way? javax.servlet.ServletException: java.io.FileNotFoundException: /usr/web/default-server/VeohTV/campaignServer.php That issue was fixed in 3.1.2: http://bugs.caucho.com/view.php?id=1952 As a workaround, you can use rewrite-dispatch and not-found to match the requests and send a 404: http://www.caucho.com/resin-3.1/doc/rewrite-tags.xtp#not-found -- Sam ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest* To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html *___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Database access
Thank you so much! That solved the startup problem! On Jan 31, 2008 3:34 PM, Vic Simkus [EMAIL PROTECTED] wrote: Courtenay wrote: Hi, I realize this is a fairly basic question, but I'm new to setting up resin. I've installed resin on Windows under C:\resin-3.1.3\ . If I run the server using the httpd.exe, the server starts and I can view jsp pages under http://localhost:8080/ as well as under http://localhost:8080/TestResinProject/web where I am testing some code. I am now trying to give access to my database located on another server, but my modifications to the resin.conf file, seem to be causing problems with starting the server. I am accessing a postgres 7.3 database on a remote server. I entered the following into the resin.conf file right below the Sample database pool configuration added by coucho (I've blocked out my actual password): snip I put my JDBC jars in the lib directory under the main resin install directory. So in your case it would be c:\resin-3.1.3\lib. Vic ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Improve Resin Plugin for Eclipse 3 Setup Questions
Hi, I'm new to both Eclipse and Resin, so please bear with me! I'm attempting to set up the Improve Resin Plugin in Eclipse 3.3.1.1 (The Java EE version with WTP). I've got it installed, and created a resin project using the wizard. I've added one jsp and one html file to the project, but when I use the run instructions from the plugin readme file, I get the following error message: java.lang.NoClassDefFoundError: com/caucho/server/http/ResinServer Exception in thread main I have the following installed on my computer: 1. J2EE 5 SDK Update 5 2. Resin 3.1.3 (running) 3. Improve Resin Plugin for Eclipse 3 (installed into eclipse) I've done the following in Eclipse according to the plugin instructions found here: http://www.improve-technologies.com/alpha/resin/zip/readme.txt 1. Set the preferences under Window/Preferences - Resin - put the Eclipse version as 3.x - set the Resin Home directory to C:\resin-3.1.3 - originally I left the Java compiler as blank, since the instructions say if you are running from a JDK, you don't need to set this, but when I ran into problems I did set it to C:\Sun\SDK\jdk\bin\javac.exe, but it made no difference. I then created a resin project as the plugin readme suggests by selecting New/Other and creating a resin project. I added an index.jsp that uses jsp to include an html file, I went to the Open Run Manager and created a new configuration under Resin, gave it a new name and set the configFile path to C:\resin-3.1.3\conf\resin.conf I tried running it, but I got the error above. It seems to be looking for a main class - really weird for a web app! The readme says something about changing a classpath, but I have no idea what I should make it, or how I would set it. I see that under the run configuration setup, there is a tab that says classpath, but I'm not clear how or what I would enter anything there. The other weird thing I noticed is that in the Package Explorer in Eclipse, the classes and work files aren't accessible. If I want to add something to the WEB-INF/classes folder, I can do that by selecting new/Folder or new/File and choose to put it under those directories and it saves it in the file system, but no matter what I do, it doesn't show up in the Package Explorer. I've tried refreshing, but still no luck! I'm not sure if this is a plugin issue or an Eclipse issue, but any advice would be greatly appreciated! Thanks in advance, Courtenay ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest