Re: [Resin-interest] How to set up Eclipse for Web app at root?

2016-01-02 Thread Alex Rojkov
> In Eclipse, if I create a dynamic web app project called "foo", then a 
> Resin server using the plugin config tool, I can then deploy it and
> it runs at localhost:8080/foo. I need to have it deployed to the root, 
> i.e. just localhost:8080. It seems its the "Add/Remove" dialog in the 
> Resin Plug in which creates the webapp name in the path - how can I 
> choose ROOT there please? I don't want to call the project "ROOT" just 
> to achieve this, nor do I want to rename any WAR's each deploy because 
> the will slow down dev time. I'm sure there must be a smarter way ;-)

Hi Carl, 

I just tested with a symbolic link named ROOT pointing to the deploy foo 
directory and that worked for me. 

So you should remove webapps/ROOT and make a link with  ln -s foo ROOT 


Alex

> 
> ___
> 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 set up Eclipse for Web app at root?

2016-01-02 Thread Alex Rojkov
>>> In Eclipse, if I create a dynamic web app project called "foo", then a
> 
> Hi Carl,
> 
> I just tested with a symbolic link named ROOT pointing to the deploy foo 
> directory and that worked for me.
> 
> So you should remove webapps/ROOT and make a link with  ln -s foo ROOT
> 
> 
> Alex
> 
> Thanks Alex, its great to know there's an easy fix for Linux but ... you 
> guessed it ... devs done on Windows.

Have you tried mklink /D   

Alex

>>> ___
>>> 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 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] Can't find symbol error when deploying a webapp on Resin 4 using JMS

2014-04-15 Thread Alex Rojkov
Sorry, that’s a code-gen bug.

It should have generated ‘.’ for ‘$’ in class name.

http://bugs.caucho.com/view.php?id=5715

To work around the issue please make your exception a normal public class.

Alex

 [14-04-15 09:38:48.729] {main} 
 /opt/resin-4.0.39/webapps/multichannel/WEB-INF/work/ejb/com/veeva/multichannel/webhook/mailgun/MailGunWebHookAgent__MessageProxy.java:95:
  error: cannot find symbol
} catch 
 (com.veeva.multichannel.core.job.agent.JobAgentA$JobAgentProcessingException 
 e) {
  ^
  symbol:   class JobAgentA$JobAgentProcessingException
  location: package 
 com.veeva.multichannel.core.job.agent
1 error


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Fresh resin install won't run my app or log

2014-03-13 Thread Alex Rojkov
 
 On Mar 12, 2014, at 20:23 , Alex Rojkov a...@caucho.com wrote:
 
 Did you remove resin:import for app-default.xml by any chance ? 
 
 Why do you ask?

app-default.xml has all the required imports to for web.xml, resin-web.xml, 
etc. Without the imports application won’t be properly initialized. 

Commenting app-default.xml out or excluding the imports would make application 
behave as you describe. 

 
 ___
 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] Fresh resin install won't run my app or log

2014-03-13 Thread Alex Rojkov

 So, any other suggestions for getting more logging out of the system to see 
 where things are falling down?

Are your servlets in WB-INF/classes? 

Try adding a compiling-loader (or a simple-loader if classes are compiled 
already) to your class-loader.

class-loader
compiling-loader path=WEB-INF/classes”/
tree-loader../
/class-loader

Alex

 
 On Mar 12, 2014, at 20:12 , Rick Mann rm...@latencyzero.com wrote:
 
 Well, that's not exactly true, but I'm baffled.
 
 I have my webapp running just fine locally, and just find on a 4.0.37/Java 
 1.6/Ubuntu 10.10 server I've had running for years.
 
 I just created an Ubuntu 13.10/Java 1.7/4.0.38 server using the Pro 
 distribution (but no license file yet) that I build myself (rather than 
 using apt-get) because I wanted to control the directories used. It started 
 up and ran fine.
 
 I then installed my app, and modified resin.xml to point to it. Resin seems 
 to create the app, and the resin-file handler is able to serve up some 
 top-level files in my app.
 
 But it does not appear to be actually executing any of the code in my app. 
 My app is pure-java configed, and uses Log4J. No log files are getting 
 created. I tried logging some stuff using System.out, but it's not appearing 
 in any of the logs I do get. I'm executing with resinctl console, as much 
 logging as I can set to ALL.
 
 I've little by little gone through the various Resin config files removing 
 references to other apps, virtual hosts, and other logging. My app's entry 
 in resin.xml looks like this:
 
  http://pastebin.com/6STAmNBS
 
 Any ideas what else to try? I have the following logs to look at:
 
 rmann@clarke $ ls /logs/resin/
 out.log
 rmann@clarke $ ls /logs/inote/
 access.log  resin.log
 
 Plus what comes out of the resinctl console.
 
 I'm baffled.
 
 Some possible issues?
 
 [03-13 03:01:20.176] {main}  ALL 
 (com.caucho.env.deploy.ExpandDeployController) 
 java.io.FileNotFoundException: 
 /lz/var/www/com/latencyzero/inote/META-INF/resin.application-hash
 
 GETting / results in 404:
 
 [03-13 03:11:38.506] {resin-port-80-46}  FINER 
 (com.caucho.server.dispatch.ServletInvocation) Dispatch '/' to 
 AccessLogFilterChain[http://inote.latencyzero.com, 
 next=WebAppFilterChain[http://inote.latencyzero.com, 
 next=ServletFilterChain[resin-file]]]
 
 
 GETting /css/site.css returns the css file:
 
 [03-13 03:01:36.023] {resin-port-80-22}  FINER 
 (com.caucho.server.dispatch.ServletInvocation) Dispatch '/css/site.css' to 
 AccessLogFilterChain[http://inote.latencyzero.com, 
 next=WebAppFilterChain[http://inote.latencyzero.com, 
 next=ServletFilterChain[resin-file]]]
 
 TIA,
 
 -- 
 Rick
 
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
 
 
 -- 
 Rick
 
 
 
 ___
 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] Fresh resin install won't run my app or log

2014-03-13 Thread Alex Rojkov

On Mar 13, 2014, at 2:26 PM, Rick Mann rm...@latencyzero.com wrote:

 
 On Mar 13, 2014, at 14:13 , Alex Rojkov a...@caucho.com wrote:
 
 Are your servlets in WB-INF/classes? 
 
 Yes.
 
 Try adding a compiling-loader (or a simple-loader if classes are compiled 
 already) to your class-loader.
 
 class-loader
 compiling-loader path=WEB-INF/classes”/
 tree-loader../
 /class-loader
 
 I had that in there originally, but it wasn't working. I removed it because I 
 never want .java files in classes/ to be compiled (that's what it's for, 
 right?).
 
 Just to be sure, I added it and tried again. No go.

And can you move the class-loader registration inside the web-app please?

If that doesn’t work please post log and conf/*.xml conf/*.properties 
someplace. 

Alex


 
 -- 
 Rick
 
 
 
 ___
 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] Fresh resin install won't run my app or log

2014-03-13 Thread Alex Rojkov
Hm… In the referenced resin.xml the classloader is in the host section. Can you 
move it into the web-app section and try accessing one of your mapped servlets?

Alex
 


 
 And can you move the class-loader registration inside the web-app please?
 If that doesn’t work please post log and conf/*.xml conf/*.properties 
 someplace. 
 
 It's inside the web-app inside resin.xml.
 
   resin.xml:  http://pastebin.com/tY8MRf3S
   app-defaults.xml:   http://pastebin.com/iF8F6Ug9
   cluster-default.xml:http://pastebin.com/n84jPp1S
 
   properties: http://pastebin.com/sMBTiNfi
 
 It's probably something really stupid that I did, and I'll be suitably 
 embarrassed when you point it out.
 
 Thanks!
 
 -- 
 Rick
 
 
 
 ___
 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] Fresh resin install won't run my app or log

2014-03-13 Thread Alex Rojkov

 Hmm. I don't have the connector jar outside my webapps in any other 
 environment. I can't remember what it is I did to fix it last time.

As long as database configuration is in the web-app (not in cluster) putting 
the connector.jar into WEB-INF/lib/ should work. 

Your database configuration is in the web-app, but the driver configuration 
is removed from the posted resin.xml ( so I can’t comment on that )

Are you seeing a ClassNotFoundException for the driver class and the driver 
class is in WEB-INF/lib? 

What does the exception look like in the context of web-app begin loaded?

Alex


 
 On Mar 13, 2014, at 15:37 , Rick Mann rm...@latencyzero.com wrote:
 
 Oh! Sorry. That was it. Argh. I am embarrassed (and annoyed with myself, 
 since I've lost precious development time).
 
 Thank you.
 
 Now I'm back to an issue I had earlier (which I realize now I was solving 
 when I created this problem), and that is that Resin can't find the MySQL 
 driver in WEB-INF/lib when it goes to create the DataSource. This is a 
 problem that has plagued me for years, and each time I eventually get things 
 to work, but each new environment seem to trip me up.
 
 It seems to me that if the tree-loader points to lib, and the MySQL 
 connector jar is in there, Resin should be able to find it. Is it trying to 
 create this datasource before the tree-loader can load classes? I guess that 
 also makes sense, since this configuration is outside of my webapp, and 
 therefore not controlled by it.
 
 Is that the right understanding? By that understanding, I should be able to 
 instantiate the datasource inside my webapp instead, using the jar inside 
 the webapp, no?
 
 Thanks again for spotting my error!
 
 On Mar 13, 2014, at 15:31 , Alex Rojkov a...@caucho.com wrote:
 
 Hm… In the referenced resin.xml the classloader is in the host section. Can 
 you move it into the web-app section and try accessing one of your mapped 
 servlets?
 
 Alex
 
 
 
 
 And can you move the class-loader registration inside the web-app please?
 If that doesn’t work please post log and conf/*.xml conf/*.properties 
 someplace. 
 
 It's inside the web-app inside resin.xml.
 
resin.xml:  http://pastebin.com/tY8MRf3S
app-defaults.xml:   http://pastebin.com/iF8F6Ug9
cluster-default.xml:http://pastebin.com/n84jPp1S
 
properties: http://pastebin.com/sMBTiNfi
 
 It's probably something really stupid that I did, and I'll be suitably 
 embarrassed when you point it out.
 
 Thanks!
 
 -- 
 Rick
 
 
 
 ___
 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
 
 
 -- 
 Rick
 
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
 
 
 -- 
 Rick
 
 
 
 ___
 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] Any way to tell resin to put WEB-INF/tmp somewhere else?

2014-03-12 Thread Alex Rojkov

On Mar 12, 2014, at 7:51 PM, Rick Mann rm...@latencyzero.com wrote:

 It would be nice for it to create its work directories somewhere else, not 
 inside my webapp distros. Is this possible?

Should be possible with work-dir and temp-dir tags.

http://www.caucho.com/resin-4.0/reference.xtp#workdir

http://www.caucho.com/resin-4.0/reference.xtp#tempdir

Alex

 
 
 -- 
 Rick
 
 
 
 ___
 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] Fresh resin install won't run my app or log

2014-03-12 Thread Alex Rojkov
Did you remove resin:import for app-default.xml by any chance ? 

Alex

On Mar 12, 2014, at 8:12 PM, Rick Mann rm...@latencyzero.com wrote:

 Well, that's not exactly true, but I'm baffled.
 
 I have my webapp running just fine locally, and just find on a 4.0.37/Java 
 1.6/Ubuntu 10.10 server I've had running for years.
 
 I just created an Ubuntu 13.10/Java 1.7/4.0.38 server using the Pro 
 distribution (but no license file yet) that I build myself (rather than using 
 apt-get) because I wanted to control the directories used. It started up and 
 ran fine.
 
 I then installed my app, and modified resin.xml to point to it. Resin seems 
 to create the app, and the resin-file handler is able to serve up some 
 top-level files in my app.
 
 But it does not appear to be actually executing any of the code in my app. My 
 app is pure-java configed, and uses Log4J. No log files are getting created. 
 I tried logging some stuff using System.out, but it's not appearing in any of 
 the logs I do get. I'm executing with resinctl console, as much logging as I 
 can set to ALL.
 
 I've little by little gone through the various Resin config files removing 
 references to other apps, virtual hosts, and other logging. My app's entry in 
 resin.xml looks like this:
 
   http://pastebin.com/6STAmNBS
 
 Any ideas what else to try? I have the following logs to look at:
 
 rmann@clarke $ ls /logs/resin/
 out.log
 rmann@clarke $ ls /logs/inote/
 access.log  resin.log
 
 Plus what comes out of the resinctl console.
 
 I'm baffled.
 
 Some possible issues?
 
 [03-13 03:01:20.176] {main}  ALL 
 (com.caucho.env.deploy.ExpandDeployController) java.io.FileNotFoundException: 
 /lz/var/www/com/latencyzero/inote/META-INF/resin.application-hash
 
 GETting / results in 404:
 
 [03-13 03:11:38.506] {resin-port-80-46}  FINER 
 (com.caucho.server.dispatch.ServletInvocation) Dispatch '/' to 
 AccessLogFilterChain[http://inote.latencyzero.com, 
 next=WebAppFilterChain[http://inote.latencyzero.com, 
 next=ServletFilterChain[resin-file]]]
 
 
 GETting /css/site.css returns the css file:
 
 [03-13 03:01:36.023] {resin-port-80-22}  FINER 
 (com.caucho.server.dispatch.ServletInvocation) Dispatch '/css/site.css' to 
 AccessLogFilterChain[http://inote.latencyzero.com, 
 next=WebAppFilterChain[http://inote.latencyzero.com, 
 next=ServletFilterChain[resin-file]]]
 
 TIA,
 
 -- 
 Rick
 
 
 
 ___
 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] Any way to set jsp page-encoding with Servlet 3.0 Java-only configuration?

2014-03-11 Thread Alex Rojkov
In Resin you should be able to specify that with character-encoding tag at 
web-app | host | cluster | resin level. 

http://www.caucho.com/resin-4.0/reference.xtp#characterencoding

Thanks,
Alex

 I apologize, since this isn't strictly a Resin issue, but:
 
 I used to have this in my web.xml:
 
 jsp-config
   jsp-property-group
   url-pattern*.jsp/url-pattern
   page-encodingUTF-8/page-encoding
   /jsp-property-group
 /jsp-config
 
 How do I duplicate that effect in Servlet 3.0/Spring Java-only configuration?
 
 Thanks!
 
 -- 
 Rick
 
 
 
 ___
 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] @WebServlet and Hessian

2014-03-10 Thread Alex Rojkov

 Well, I added @WebServlet to my Hessian servlet implementation, and making a 
 GET request results in the expected Hessian Requires POST response. But 
 when my client accesses it properly, the response is empty, and there's no 
 evidence that my actual implementation is being called.
 Is it possible to use @WebServlet on something that inherits from HttpServlet?
 

That should be possible. I just tested with the following:

package qa;

import java.io.*;
import javax.servlet.annotation.*;
import com.caucho.hessian.server.*;

@WebServlet(webservlet)
public class MyBean extends HessianServlet {
  public String hit(InputStream is)
throws IOException
  {
StringBuilder sb = new StringBuilder();
int ch;

sb.append([);
while ((ch = is.read()) = 0) {
  sb.append((char) ch);
}
sb.append(]);

return sb.toString();
  }
}

Have you tried with the finer the logging level?

Alex


 -- 
 Rick
 
 
 
 ___
 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] Registering my CanDI producer with InjectionManager?

2014-03-10 Thread Alex Rojkov
 I'm trying to create a factory to let me @Inject Loggers as shown here:
 
   
 http://docs.jboss.org/cdi/api/1.0/javax/enterprise/inject/spi/InjectionPoint.html
 
 But I get:
 
 [14-03-08 23:59:23.129] WARNING com.caucho.server.webapp.WebApp 
 setConfigException: javax.enterprise.inject.UnsatisfiedResolutionException: 
 Can't find a bean for 'class org.apache.log4j.Logger' because no beans 
 implementing that class have been registered with the injection manager 
 InjectManager[singleton:null#UsageMapServer].
  at 
 com.caucho.config.inject.InjectManager.unsatisfiedException(InjectManager.java:2471)
  at 
 com.caucho.config.inject.InjectManager.resolveByInjectionPoint(InjectManager.java:2656)
  at 
 com.caucho.config.inject.InjectManager.getReferenceFactory(InjectManager.java:2614)
  at 
 com.caucho.config.inject.InjectManager.getReferenceFactory(InjectManager.java:2593)
 
 
 Here's my code (first class needs the injection, second class is the factory):

That should work, please check if there are any compile exceptions for the 
Producer. I verified the pattern with java.util.logging.*


 
   http://pastebin.com/nHiGZyzf
 
 One additional question: when this works, how many LoggerFactory instances 
 can I expect? Is it a singleton? Can I use its constructor or static init to 
 initialize Log4J?

With an @ApplicaitonScoped producer there should be one instance for a Proxy 
class and one for an actual Producer.

Thanks,
Alex

 
 Thanks!
 
 -- 
 Rick
 
 
 
 ___
 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] Order of web-fragment.xml vs .tld

2014-02-17 Thread Alex Rojkov

 Hi list. It seems that Resin will load and initiate Servlet 3.0 
 web-fragment.xml before it loads and initiates any .tld files - including 
 listeners therein - within the same .jar.
 
 This results in the AutoProbe module of http://messadmin.sourceforge.net/ 
 causing exceptions, because it assumes the servlet context listener defined 
 in it's taglib-autoprobe.tld has had it's contextInitialized() called before 
 the filter in 
 web-fragment.xml has it's init() called.
 
 This works fine in JBoss, and I'm wondering if anyone knows what the specs 
 has to say about this?
 Is Resin at fault, or could MessAdmin be relying on something that simply is 
 not defined by specs?

Hi Mattias, 

I am filing a bug for this: http://bugs.caucho.com/view.php?id=5659 , thanks 
for reporting!

Can you try redefining the listener in your application’s web.xml as a work 
around?

Thanks,
Alex

 -- 
 
   /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] GWT - replacing Jetty with Resin in Eclipse

2012-10-18 Thread Alex Rojkov
 I created a GWT project and a Resin Server. When i right click the Resin 
 server and try to add the project to it, I get There are no resources 
 that can be added. Has anyone had any success with this please? 
 Basically my goal is to set up GWT with Resin and EclipseLink, so 
 there're no Google App Engine needed.

I think the issue is that the project ins't  nominated to become a Web 
Application. Please open project properties and add Dynamic Web Module in 
Project Facets node.
Alex

 
 ___
 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] cannot ./configure resin - says java not installed, - it is installed and JAVA_HOME is set correctly..

2012-04-13 Thread Alex Rojkov
 help?
 I have java installed in a custom folder due to distriubtion reasons;

Hi Tom,

Can you add /opt/jdk/bin to the PATH and try again.

./configure in 4.0.27 does 'which java' to find java executable. I added a 
fallback to JAVA_HOME/bin/java for 4.0.28 and up.

Thanks,
Alex
 
 root@ubuntu64#echo $JAVA_HOME
 /opt/jdk/
 
 when double checking the version:
 root@ubuntu64# $JAVA_HOME/bin/java -version
 java version 1.6.0_27
 Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
 Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode)
 
 
 however when doing a configure I get this error: ( I even exported
 JAVA_HOME to /opt/jdk/ )
 ==
 root@ubuntu64:/opt/resin-4.0.27# ./configure
 checking build system type... x86_64-unknown-linux-gnu
 checking host system type... x86_64-unknown-linux-gnu
 ...
 ..
 checking if  is Java 1.6... no
 configure: error: Java 1.6 required.  returned: ./configure: line
 11291: -version: command not found
 ==
 
 why is this happening?
 
 tia!
 
 ___
 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] getting response header in load balancer access logs

2012-02-27 Thread Alex Rojkov
Hi Chris,

I could't reproduce this on version 4.0.25. What version are you running?

Thanks,
Alex

On 2012-02-27, at 2:10 PM, Chris Hart wrote:

 Hi,
 
 I'm having trouble getting the Set-Cookie response header into the access 
 logs on our load balancer.  I've tested this exact same access-log 
 configuration locally with an instance of resin that is not behind any load 
 balancer and it seems to work, but this isn't working in our load balanced 
 production environment.  It's currently just logging - at the end of the 
 access log line.  Here's what our load balancer's configuration looks like:
 
 
 access-log
   path/var/log/resin/ariel/master-access.log/path
   format
   %{Host}i %h %l %u %t %r %s %b %{Referer}i %{User-Agent}i 
 %{X-Forwarded-For}i %{JSESSIONID}c %{ariel}c %{SSLB}c %D %{Cookie}i 
 %{Set-Cookie}o
   /format
   rollover-period1D/rollover-period
   rollover-size-1/rollover-size
   archive-formatmaster-access-%Y%m%d.log.gz/archive-format
 /access-log
 
 
 
 Any help is greatly appreciated.
 
 Thanks,
 Chris
 
 
 ___
 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] getting response header in load balancer access logs

2012-02-27 Thread Alex Rojkov
 Hi Alex,
 
 Thanks for the reply.  I'm using resin-pro-3.1.3.  Again, it seems to work 
 when I hit a single instance of resin that directly serves the requests, but 
 when there's a load balancer involved, the load balancer doesn't log it.  Did 
 you try this access log line on a load balancer running 4.0.25?

Hm... It looks like a bug actually and it affects 4.0 as well. Thanks for 
reporting, my initial test was incorrect.

resin-3.1: http://bugs.caucho.com/view.php?id=4966
resin-4.0: http://bugs.caucho.com/view.php?id=4965

Alex

 
 Thanks,
 Chris
 
 - Original Message -
 From: Alex Rojkov a...@caucho.com
 To: General Discussion for the Resin application server 
 resin-interest@caucho.com
 Sent: Monday, February 27, 2012 2:59:58 PM
 Subject: Re: [Resin-interest] getting response header in load balancer
 access logs
 
 Hi Chris,
 
 I could't reproduce this on version 4.0.25. What version are you running?
 
 Thanks,
 Alex
 
 On 2012-02-27, at 2:10 PM, Chris Hart wrote:
 
 Hi,
 
 I'm having trouble getting the Set-Cookie response header into the access 
 logs on our load balancer.  I've tested this exact same access-log 
 configuration locally with an instance of resin that is not behind any load 
 balancer and it seems to work, but this isn't working in our load balanced 
 production environment.  It's currently just logging - at the end of the 
 access log line.  Here's what our load balancer's configuration looks like:
 
 
 access-log
  path/var/log/resin/ariel/master-access.log/path
  format
  %{Host}i %h %l %u %t %r %s %b %{Referer}i %{User-Agent}i 
 %{X-Forwarded-For}i %{JSESSIONID}c %{ariel}c %{SSLB}c %D %{Cookie}i 
 %{Set-Cookie}o
  /format
  rollover-period1D/rollover-period
  rollover-size-1/rollover-size
  archive-formatmaster-access-%Y%m%d.log.gz/archive-format
 /access-log
 
 
 
 Any help is greatly appreciated.
 
 Thanks,
 Chris
 
 
 ___
 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 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] pb with find() in resin 4.0.13

2011-11-09 Thread Alex Rojkov
 Hello again
 The problem happened again, and I found an exception in another log file 
 (problem with all these logs...)
 
 java.lang.IllegalArgumentException: Unknown entity bean class: class 
 reaentities.Status, please verify that this class has been marked with the 
 @Entity annotation.
   at 
 org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:611)
Can you check if the web-app was reloaded before the exception? 

I recollect having seen the issue in earlier versions of Resin 4. The issue 
arouse  when webapplication or entity class was reloaded  (you can force a 
reload to check).

The issue should be fixed in later versions. The test case that reproduces the 
webapp with persistent context reload issue was created after 4.0.13.

Thanks,
Alex

 
 You'll find joind the full exception and the thread dump, plus the class 
 itself. This object Status is marked as @Entity and work very well normally.
 Thanks for your help.
 
 
 On 08/11/11 22:48, Alex Rojkov wrote:
 Hello
 I'm using many times the find() call in EntityManager :
 
 Status st=m_manager.find(Status.class,identifier);
 
 But with no particular reason, in test or production, the find() call
 stop all processing, there is no exception and any System.out.println()
 Riccardo,
 
 Can you produce a thread-dump of the server's JVM please and send that to us?
 
 Thanks,
 Alex
 
 juste after is simply not called.
 
 
 While the server is in this undefined state, the rest of the
 application may work. I tried to add a createQuery call just before the
 find :
 
 Query qr=m_manager.createQuery(select st from Status st);
 ListStatus  list=(ListStatus)qr.getResultList();
 
 and the same problem happens at getRestulList(). Nothing happens, no
 exception, no further processing.
 
 Is there any people that had this problem ? I could see that only in one
 of my applications, not all. Is this a problem with eclispelink ?
 
 Thanks a lot.
 --
 Riccardo Cohen
 Architecte du Logiciel
 http://www.architectedulogiciel.fr
 BP 77536
 37075 Tours Cedex 2
 +33 (0)6.09.83.64.49
 Membre du réseau http://www.reflexe-conseil-centre.org
 
 
 ___
 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
 
 
 -- 
 Riccardo Cohen
 Architecte du Logiciel
 http://www.architectedulogiciel.fr
 BP 77536
 37075 Tours Cedex 2
 +33 (0)6.09.83.64.49
 Membre du réseau http://www.reflexe-conseil-centre.org
 exception.txtthreaddump.txtStatus.java___
 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] pb with find() in resin 4.0.13

2011-11-08 Thread Alex Rojkov
 Hello
 I'm using many times the find() call in EntityManager :
 
 Status st=m_manager.find(Status.class,identifier);
 
 But with no particular reason, in test or production, the find() call 
 stop all processing, there is no exception and any System.out.println() 
Riccardo,

Can you produce a thread-dump of the server's JVM please and send that to us? 

Thanks,
Alex

 juste after is simply not called.

 
 While the server is in this undefined state, the rest of the 
 application may work. I tried to add a createQuery call just before the 
 find :
 
 Query qr=m_manager.createQuery(select st from Status st);
 ListStatus list=(ListStatus)qr.getResultList();
 
 and the same problem happens at getRestulList(). Nothing happens, no 
 exception, no further processing.
 
 Is there any people that had this problem ? I could see that only in one 
 of my applications, not all. Is this a problem with eclispelink ?
 
 Thanks a lot.
 -- 
 Riccardo Cohen
 Architecte du Logiciel
 http://www.architectedulogiciel.fr
 BP 77536
 37075 Tours Cedex 2
 +33 (0)6.09.83.64.49
 Membre du réseau http://www.reflexe-conseil-centre.org
 
 
 ___
 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] Clustering and load-on-startup

2011-11-08 Thread Alex Rojkov
 Hi
 I have a problem with clustering in Resin 4.0.23 that I hope someone
 can help me with.

Mathias,

Can you try adding bind-ports-after-starttrue/ to server-default?

server-default
  bind-ports-after-starttrue/bind-ports-after-start


Thanks,
Alex

 
 When I bring a cluster node back online after it has been shut down
 the cluster recognizes it as up and functioning too soon (this can
 be monitored on the caucho-status page). My problem is that I have a
 servlet that is really heavy to start and it has load-on-startup
 set. As it is set up now requests goes to this new node trying to
 access the servlet prior too its startup and they are left waiting. I
 would like to have the cluster node off line until all the
 load-on-startup servlets has started. Is there an existing setting
 that can make this work?
 
 What I am looking for is something like load-balance-grace-time or
 cluster-off-line-until-load-on-startup-done :)
 
 Best regards
 Mathias Lagerwall
 
 
 ___
 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