[Resin-interest] how to limit large log file?
Hi all I found resin 3.1.5 generate large log file under $RESIN_HOME/log/jvm-runtime.log, is there any setting to limit its size? Thanks! Michael ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Classloader issues with Axis and Resin 3.1
Hi list. I am running into an unfamiliar classloader issue when trying to upgrade to Resin 3.1. Each separate application runs just fine. Although, when I put two applications both using Apache Axis 1.4, on the same server, I get a problem. The first application to actually make use of Axis works fine, but when the second app tries to run Axis code, I end up with java.lang.LinkageError: loader constraints violated when linking javax/xml/soap/SOAPMessage class at org.apache.axis.AxisFault.setFaultCodeAsString(AxisFault.java:386) at org.apache.axis.AxisFault.init(AxisFault.java:239) ... I can then restart Resin and run the applications in the reverse order, and now the other one gets the error. I tried moving saaj.jar and jaxrpc.jar needed by Axis from WEB-INF/lib to the common $SERVER_ROOT/lib and that removed the LinkageError, however I end up with some NullPointerException instead, which I have yet to analyze... While trying to to come up with some new ideas, has anybody else ran into this and found a solution? Or would somebody just be kind and explain what is going on? (The only explanation I can come up with is that Resin classes are compiled against classes found in jaxrpc.jar in my setup, but that seems a bit far fetched.) (Yeah, it would probably be a good idea to replace the SOAP implemantation altogether, but that does not seem like an option right now, given the amount of time I have available) Thanks in advance, /Mattias ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Classloader issues with Axis and Resin 3.1
Indeed com.caucho.xml.saaj.SOAPMessageImpl extends javax.xml.soap.SOAPMessage which is to be found in saaj.jar, but saaj.jar is NOT included in the Resin dist! In fact, saaj.jar is explicitly excluded from the resin.dist.build target of build-common.xml !-- ... include name=lib/saaj.jar/ -- Why is this? How am I supposed to get things going? Put saaj.jar in $RESIN_HOME/lib? /Mattias Mattias Jiderhamn wrote (2008-05-27 15:44): Hi list. I am running into an unfamiliar classloader issue when trying to upgrade to Resin 3.1. Each separate application runs just fine. Although, when I put two applications both using Apache Axis 1.4, on the same server, I get a problem. The first application to actually make use of Axis works fine, but when the second app tries to run Axis code, I end up with java.lang.LinkageError: loader constraints violated when linking javax/xml/soap/SOAPMessage class at org.apache.axis.AxisFault.setFaultCodeAsString(AxisFault.java:386) at org.apache.axis.AxisFault.init(AxisFault.java:239) ... I can then restart Resin and run the applications in the reverse order, and now the other one gets the error. I tried moving saaj.jar and jaxrpc.jar needed by Axis from WEB-INF/lib to the common $SERVER_ROOT/lib and that removed the LinkageError, however I end up with some NullPointerException instead, which I have yet to analyze... While trying to to come up with some new ideas, has anybody else ran into this and found a solution? Or would somebody just be kind and explain what is going on? (The only explanation I can come up with is that Resin classes are compiled against classes found in jaxrpc.jar in my setup, but that seems a bit far fetched.) (Yeah, it would probably be a good idea to replace the SOAP implemantation altogether, but that does not seem like an option right now, given the amount of time I have available) Thanks in advance, /Mattias ___ 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
Re: [Resin-interest] how to limit large log file?
On May 27, 2008, at 6:30 AM, askxuefeng wrote: Hi all I found resin 3.1.5 generate large log file under $RESIN_HOME/log/ jvm-runtime.log, is there any setting to limit its size? Thanks! We're adding a rotation capability for 3.2.x. For 3.1.5, you can set a stdout-log and stderr-log in your resin.conf to a different file to enable log rotation. Since jvm- runtime is basically System.out and System.err, you can reduce the size of jvm-runtime.log to essentially zero by redirecting stdout and stderr. -- Scott Michael ___ 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
Re: [Resin-interest] resin forward rules w/ case insensitivity
On May 21, 2008, at 2:32 PM, Sandeep Ghael wrote: Has anyone else had issues using regex matching in the resin-web.xml file for url forwarding? I can't profess to be a regex expert, but I'm following the regex examples I'm finding online but can't get my logic to take. What I am trying to do is make the forward generic enough so that if someone mis-capitalizes anything they still go to the right page. I am using resin 3.1.3 pro on RHEL. Here is what I am trying: forward regexp=^/something/i target=/index.php? contents=something/ the regex /i pattern modifier for case insensitivity fails to do anything. Isn't that standard regex? It's a standard flag, but requires the regexp syntax to be /.../ instead of the raw regexp. You might try (?i:...). That's an embedded form of the case insensitive match. -- Scott If I do this: forward regexp=^/something/ target=/index.php? contents=something/ This forward rule works for http://domain.com/something/- case sensitive, ending slash meaningful. Any suggestions? The online documentation didn't provide fruitful on this front. -s ___ 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
Re: [Resin-interest] mod_caucho not finding config?
On May 27, 2008, at 4:54 AM, Thilo Bangert wrote: Hi All, i am trying to get apache to dispatch requests to our resin backend. i have setup apache the following way: in global scope i have (yes, i do start apache with -D CAUCHO) IfDefine CAUCHO LoadModule caucho_module modules/mod_caucho.so ResinConfigServer localhost 6802 CauchoConfigCacheDirectory /tmp CauchoStatus yes Location /caucho-status SetHandler caucho-status /Location /IfDefine in the apache vhost config i have: VirtualHost *:80 DocumentRoot /home/assembly/mat123_xms/app/docs ServerName app.xms.mat123.assembly.danskelearning.dk ErrorLog /home/assembly/mat123_xms/log/error_log CustomLog /home/assembly/mat123_xms/log/access_log common ResinConfigServer 127.0.0.1 6802 /VirtualHost You may need to add the CauchoStatus yes in the virtual host, since Apache creates a sub-scope. To debug this, you really need /caucho- status working. Also, mod_caucho needs write access to the /tmp directory. The localhost_6802 file is very important in making the communication work, so if mod_caucho doesn't have write access, then you're likely to have the server get stuck. -- Scott the resin.conf contains the following two sections host id=app.xms.mat123.assembly.danskelearning.dk host-aliasapp.xms.mat123.assembly/host-alias web-app id=/ document-directory=/home/assembly/mat123_xms/app/docs/ /host and cluster srun server-id= host=127.0.0.1 port=6802/ /cluster I can see that resin is listening on port 6802. and i receive the X when connecting to the port using telnet. the resin server is working as expected in standalone mode (using port 8080). The module is loaded into apache, since when i start apache i see the following in my log [notice] Apache/2.2.8 (Unix) Resin/3.0.25 configured -- resuming normal operations however connecting to http://localhost/caucho-status yields a 404 and the servlet mappings from my application are not served by resin. ie. http://app.xms.mat123.assembly.danskelearning.dk:8080/um/login/ works fine but http://app.xms.mat123.assembly.danskelearning.dk/um/login/ does not. i have tried to sniff traffic between apache and resin and it looks like mod_caucho does not even connect to resin (i am not sure about that however). when compiling mod_caucho with debug enabled i, among other things, see this error on stdout: config.c:898 can't open config path '/tmp/localhost_6802' (errno=2) (That particular line is missing a \n in the code BTW) it seems to me, like mod_caucho and resin dont communicate with each other. is there a way i can test the config that the resin server is outputting on the srun port? i have also tried to get manual dispatching to work, but no luck so far. i am a bit at a loss as what to try next, so any suggestions are more than welcome. thanks in advance. kind regards Thilo ___ 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] Test, please ignore
Apologies. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] [Resin 0002646]: Resin does not work when it's run in the background
Scott Ferguson wrote: Thanks. The log fix is a good one. Actually, though, we could also add the log-directory to the resin.conf since the watchdog reads the resin.conf. Either solution would be great. It's just inconvenient to have to hange log settings in two different places. Thanks, Jose. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest