Re: [Resin-interest] SSL redirect for specific web applications

2012-09-12 Thread Scott Ferguson

On 09/12/2012 11:46 AM, Matthew Serrano wrote:
I am trying to force all access to a specific web application to be 
secured under SSL. The documentation says:

http://caucho.com/ns/resin";
 xmlns:resin="urn:java:com.caucho.resin">
 
   

   
 ...
 https://${host.name}  
">
   
 
 ...
   

I have tried this in various forms and it does not force the security. 
Is there somewhere specific this needs to be placed or is there a new 
format for this directive? I am running resin-pro 4.0.29.


Can you send me an exact resin.xml? I'm trying to reproduce the problem 
here, but it's working for me.




Also, I import specific web-app definitions in resin.xml using 
resin:import to load things like database resources per application:



*MYAPP.XML (placed in webapps folder)*
http://caucho.com/ns/resin"; 
xmlns:resin="http://caucho.com/ns/resin/core";>



If I try to include the resin:Redirect directive in this imported 
file, I get an error:
'resin:Redirect' is an unknown property of 
'com.caucho.server.webapp.WebApp'.


The xmlns:resin is incorrect for myapp.xml. It needs to be 
"urn:java:com.caucho.resin".


-- Scott

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


[Resin-interest] SSL redirect for specific web applications

2012-09-12 Thread Matthew Serrano
I am trying to force all access to a specific web application to be secured 
under SSL. The documentation says:
http://caucho.com/ns/resin";
xmlns:resin="urn:java:com.caucho.resin">

  
  
...
https://${host.name}";>
  

...
  


I have tried this in various forms and it does not force the security. Is there 
somewhere specific this needs to be placed or is there a new format for this 
directive? I am running resin-pro 4.0.29.

Also, I import specific web-app definitions in resin.xml using resin:import to 
load things like database resources per application:

RESIN.XML

  ...
  
  
 
 
 




 

 

   

 

 

 
  
   

MYAPP.XML (placed in webapps folder)
http://caucho.com/ns/resin"; 
xmlns:resin="http://caucho.com/ns/resin/core";>
   
  
 myapp/jdbc
 
oracle.jdbc.pool.OracleConnectionPoolDataSource
...
   


If I try to include the resin:Redirect directive in this imported file, I get 
an error:
'resin:Redirect' is an unknown property of 'com.caucho.server.webapp.WebApp'.

resin:Redirect is a child of web-app in the documentation so it seems something 
strange happens when this is imported. If I remove the import file and instead 
paste the entire contents of the import file directly into resin.xml I don't 
receive the error…but the redirect still doesn't work.

I think this is the last thing I need to figure out before I can move forward 
with Resin Pro 4.

thanks
matt

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


Re: [Resin-interest] Old files not removed at redeploy

2012-09-12 Thread Bill Au
This has been fixed in 4.0.31:

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

As a temporary work-around, you can remove
expand-preserve-fileset="WEB-INF/work/**" from your resin.xml.  But that
will remove all compiled JSP causing them to be recompiled even if they
have not changed in the new war.

Bill

On Wed, Sep 12, 2012 at 7:30 AM, Mattias Jiderhamn <
mj-li...@expertsystems.se> wrote:

> We're in the process of setting up a new server and have installed Resin
> 4.0.29 from RPM. We have made minimal changes to the config to get up
> and running, and are facing an issue we haven't seen on any other Resin
> installation: When a .war is redeployed it seems the contents of the new
> .war is extracted, although the old content is not removed.
>
> This means, for example, if a JAR file is updated from foo-1.0.jar to
> foo-1.1.jar, when deployed on the new server we will have both
> foo-1.0.jar and foo-1.1.jar (and thus foo-1.0.jar will be used and this
> causes problems).
>
> Restarting Resin doesn't help. Once a file ends up in the expanded
> directory, I can only get rid of it by manual delete.
> Resin is currently running as root, so I can't really see how it could
> be an access issue.
>
> I have increased Resin logging but can't find anything abnormal in there.
>
> Are there any settings that can affect this?
> Anything I should look for in the log? (Any particular Resin package I
> should limit the logging to?)
>
> --
>
>
>
>
> ___
> 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] Old files not removed at redeploy

2012-09-12 Thread Mattias Jiderhamn
We're in the process of setting up a new server and have installed Resin 
4.0.29 from RPM. We have made minimal changes to the config to get up 
and running, and are facing an issue we haven't seen on any other Resin 
installation: When a .war is redeployed it seems the contents of the new 
.war is extracted, although the old content is not removed.

This means, for example, if a JAR file is updated from foo-1.0.jar to 
foo-1.1.jar, when deployed on the new server we will have both 
foo-1.0.jar and foo-1.1.jar (and thus foo-1.0.jar will be used and this 
causes problems).

Restarting Resin doesn't help. Once a file ends up in the expanded 
directory, I can only get rid of it by manual delete.
Resin is currently running as root, so I can't really see how it could 
be an access issue.

I have increased Resin logging but can't find anything abnormal in there.

Are there any settings that can affect this?
Anything I should look for in the log? (Any particular Resin package I 
should limit the logging to?)

-- 

   


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