Re: [Resin-interest] ROOT.war not expanded when explicitly defined in resin.xml

2011-03-22 Thread Keith Fetterman
Thanks.

If we were to use your format for the version number, would we start 
with ROOT-1.0.0.war instead of ROOT.war?  and the second version would 
be ROOT-1.0.1.war?



On 03/22/2011 11:37 AM, Scott Ferguson wrote:
> On 03/22/2011 11:25 AM, Keith Fetterman wrote:
>> I have a question about versioning.  If we want to use it, do we append
>> the version number to the name of the war file? For example:
>>
>> ROOT.war, ROOT-2.war, ROOT-3.war, etc.
> Correct. Since the version # is like 1.0.0, and most of our tests use
> that format, it's possible that a -2 might not be properly handled (I'd
> need to check our tests to see if they handle that.)
>
>> When we roll out a new version, do we delete the previous war file?  For
>> example, if I deploy ROOT-2.ear, do I delete ROOT.war?
> Yes, just to clean up. It wouldn't affect Resin's behavior, though,
> since Resin would only use the latest version.
>
> By the way, when you deploy a new version, Resin will continue to send
> current sessions to the old version for 60 minutes (by default). New
> sessions will go to the new version.
>
> -- Scott
>
>> On 03/22/2011 11:12 AM, Scott Ferguson wrote:
>>> On 03/22/2011 12:31 AM, Daniel López wrote:
 AFAIK, you either place the .war file in webapps or define the directory
 using an explicit web-app tag, but having both is not necessary and just
 seems to confuse Resin.
>>> They're supposed to be merged with thein the resin.xml
>>> applied last (taking precedence). Internally, though, that merging is a
>>> fairly complicated operation, so it's certainly possible that a
>>> combination of version="true/false" with ROOT might be a case we haven't
>>> covered.
>>>
>>> -- Scott
 S!
 D.

 El 22/03/2011 1:03, Keith Fetterman escribió:
> I am experiencing a problem in resin 4.0.16 where resin is not expanding
> the ROOT.war file if I explicitly define the root webapp in resin.xml
> file.  In resin.xml, I have the tag " root-directory="webapps/ROOT"/>" defined under my"" tag.  I also
> have the tag ""
> defined under my "" tag.
>
> When I update the ROOT.war file in my "webapps" directory, the war file
> is not being expanded into the webapps/ROOT directory.  I have tried
> both shutting down resin, updating the ROOT.war file and then starting
> resin, and I've tried updating ROOT.war while resin is running.
>
> If I remove the tag ""
> from the resin.xml file, then ROOT.war expansion occurs.
>
> Do I need to add an attribute to the root-directory="webapps/ROOT"/>  tag to get the war file to expand?
>
> Also, what is the difference between the attribute "root-directory" and
> "document-directory" in the  tag?  I noticed in the resin
> documentation that "root-directory" is mentioned in the list of
> attributes but "document-directory" is not on the following page:
>
> http://caucho.com/resin/reference.xtp#web-app
>
> But, if you look at the examples, they all show " document-directory='/usr/local/apache/htdocs'>"
>
> Thanks,
> Keith
 ___
 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
>

-- 
-
Keith FettermanDirect: 206-319-9434
Mariner Supply, Inc.   206-780-5670
http://www.go2marine.com   kfetter...@go2marine.com

http://www.boatersline.com




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


Re: [Resin-interest] ROOT.war not expanded when explicitly defined in resin.xml

2011-03-22 Thread Scott Ferguson
On 03/22/2011 11:25 AM, Keith Fetterman wrote:
> I have a question about versioning.  If we want to use it, do we append
> the version number to the name of the war file? For example:
>
> ROOT.war, ROOT-2.war, ROOT-3.war, etc.

Correct. Since the version # is like 1.0.0, and most of our tests use 
that format, it's possible that a -2 might not be properly handled (I'd 
need to check our tests to see if they handle that.)

> When we roll out a new version, do we delete the previous war file?  For
> example, if I deploy ROOT-2.ear, do I delete ROOT.war?

Yes, just to clean up. It wouldn't affect Resin's behavior, though, 
since Resin would only use the latest version.

By the way, when you deploy a new version, Resin will continue to send 
current sessions to the old version for 60 minutes (by default). New 
sessions will go to the new version.

-- Scott

> On 03/22/2011 11:12 AM, Scott Ferguson wrote:
>> On 03/22/2011 12:31 AM, Daniel López wrote:
>>> AFAIK, you either place the .war file in webapps or define the directory
>>> using an explicit web-app tag, but having both is not necessary and just
>>> seems to confuse Resin.
>> They're supposed to be merged with the   in the resin.xml
>> applied last (taking precedence). Internally, though, that merging is a
>> fairly complicated operation, so it's certainly possible that a
>> combination of version="true/false" with ROOT might be a case we haven't
>> covered.
>>
>> -- Scott
>>> S!
>>> D.
>>>
>>> El 22/03/2011 1:03, Keith Fetterman escribió:
 I am experiencing a problem in resin 4.0.16 where resin is not expanding
 the ROOT.war file if I explicitly define the root webapp in resin.xml
 file.  In resin.xml, I have the tag ">>> root-directory="webapps/ROOT"/>" defined under my"" tag.  I also
 have the tag ""
 defined under my "" tag.

 When I update the ROOT.war file in my "webapps" directory, the war file
 is not being expanded into the webapps/ROOT directory.  I have tried
 both shutting down resin, updating the ROOT.war file and then starting
 resin, and I've tried updating ROOT.war while resin is running.

 If I remove the tag ""
 from the resin.xml file, then ROOT.war expansion occurs.

 Do I need to add an attribute to the>>> root-directory="webapps/ROOT"/> tag to get the war file to expand?

 Also, what is the difference between the attribute "root-directory" and
 "document-directory" in the tag?  I noticed in the resin
 documentation that "root-directory" is mentioned in the list of
 attributes but "document-directory" is not on the following page:

 http://caucho.com/resin/reference.xtp#web-app

 But, if you look at the examples, they all show ">>> document-directory='/usr/local/apache/htdocs'>"

 Thanks,
 Keith
>>> ___
>>> 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] ROOT.war not expanded when explicitly defined in resin.xml

2011-03-22 Thread Keith Fetterman
I have a question about versioning.  If we want to use it, do we append 
the version number to the name of the war file? For example:

ROOT.war, ROOT-2.war, ROOT-3.war, etc.

When we roll out a new version, do we delete the previous war file?  For 
example, if I deploy ROOT-2.ear, do I delete ROOT.war?

On 03/22/2011 11:12 AM, Scott Ferguson wrote:
> On 03/22/2011 12:31 AM, Daniel López wrote:
>> AFAIK, you either place the .war file in webapps or define the directory
>> using an explicit web-app tag, but having both is not necessary and just
>> seems to confuse Resin.
> They're supposed to be merged with the  in the resin.xml
> applied last (taking precedence). Internally, though, that merging is a
> fairly complicated operation, so it's certainly possible that a
> combination of version="true/false" with ROOT might be a case we haven't
> covered.
>
> -- Scott
>> S!
>> D.
>>
>> El 22/03/2011 1:03, Keith Fetterman escribió:
>>> I am experiencing a problem in resin 4.0.16 where resin is not expanding
>>> the ROOT.war file if I explicitly define the root webapp in resin.xml
>>> file.  In resin.xml, I have the tag ">> root-directory="webapps/ROOT"/>" defined under my"" tag.  I also
>>> have the tag ""
>>> defined under my "" tag.
>>>
>>> When I update the ROOT.war file in my "webapps" directory, the war file
>>> is not being expanded into the webapps/ROOT directory.  I have tried
>>> both shutting down resin, updating the ROOT.war file and then starting
>>> resin, and I've tried updating ROOT.war while resin is running.
>>>
>>> If I remove the tag ""
>>> from the resin.xml file, then ROOT.war expansion occurs.
>>>
>>> Do I need to add an attribute to the>> root-directory="webapps/ROOT"/>tag to get the war file to expand?
>>>
>>> Also, what is the difference between the attribute "root-directory" and
>>> "document-directory" in thetag?  I noticed in the resin
>>> documentation that "root-directory" is mentioned in the list of
>>> attributes but "document-directory" is not on the following page:
>>>
>>> http://caucho.com/resin/reference.xtp#web-app
>>>
>>> But, if you look at the examples, they all show ">> document-directory='/usr/local/apache/htdocs'>"
>>>
>>> Thanks,
>>> Keith
>>
>> ___
>> 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
>

-- 
-
Keith FettermanDirect: 206-319-9434
Mariner Supply, Inc.   206-780-5670
http://www.go2marine.com   kfetter...@go2marine.com

http://www.boatersline.com




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


Re: [Resin-interest] ROOT.war not expanded when explicitly defined in resin.xml

2011-03-22 Thread Scott Ferguson
On 03/21/2011 05:03 PM, Keith Fetterman wrote:
> Also, what is the difference between the attribute "root-directory" and
> "document-directory" in the  tag?  I noticed in the resin
> documentation that "root-directory" is mentioned in the list of
> attributes but "document-directory" is not on the following page:
>
> http://caucho.com/resin/reference.xtp#web-app
>
> But, if you look at the examples, they all show " document-directory='/usr/local/apache/htdocs'>"

The root-directory is the preferred name (I'm updating the docs). 
document-directory is for backward compatibility.

We are using root-directory so all the levels of Resin use the same tag 
(, , , ), and "document-directory" would 
only make sense for web-app but wouldn't be accurate for the other levels.

-- Scott

> Thanks,
> Keith
>



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


Re: [Resin-interest] ROOT.war not expanded when explicitly defined in resin.xml

2011-03-22 Thread Scott Ferguson
On 03/22/2011 12:31 AM, Daniel López wrote:
> AFAIK, you either place the .war file in webapps or define the directory
> using an explicit web-app tag, but having both is not necessary and just
> seems to confuse Resin.

They're supposed to be merged with the  in the resin.xml 
applied last (taking precedence). Internally, though, that merging is a 
fairly complicated operation, so it's certainly possible that a 
combination of version="true/false" with ROOT might be a case we haven't 
covered.

-- Scott
> S!
> D.
>
> El 22/03/2011 1:03, Keith Fetterman escribió:
>> I am experiencing a problem in resin 4.0.16 where resin is not expanding
>> the ROOT.war file if I explicitly define the root webapp in resin.xml
>> file.  In resin.xml, I have the tag "> root-directory="webapps/ROOT"/>" defined under my"" tag.  I also
>> have the tag ""
>> defined under my "" tag.
>>
>> When I update the ROOT.war file in my "webapps" directory, the war file
>> is not being expanded into the webapps/ROOT directory.  I have tried
>> both shutting down resin, updating the ROOT.war file and then starting
>> resin, and I've tried updating ROOT.war while resin is running.
>>
>> If I remove the tag ""
>> from the resin.xml file, then ROOT.war expansion occurs.
>>
>> Do I need to add an attribute to the> root-directory="webapps/ROOT"/>   tag to get the war file to expand?
>>
>> Also, what is the difference between the attribute "root-directory" and
>> "document-directory" in the   tag?  I noticed in the resin
>> documentation that "root-directory" is mentioned in the list of
>> attributes but "document-directory" is not on the following page:
>>
>> http://caucho.com/resin/reference.xtp#web-app
>>
>> But, if you look at the examples, they all show "> document-directory='/usr/local/apache/htdocs'>"
>>
>> Thanks,
>> Keith
>
>
> ___
> 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] ROOT.war not expanded when explicitly defined in resin.xml

2011-03-22 Thread Keith Fetterman
I removed the versioning attribute and it works."path='webapps' />"  works.


Thanks


On 03/22/2011 12:04 AM, Mattias Jiderhamn wrote:

Have you tried without versioning="true"?
--


- Original Message -
Subject: [Resin-interest] ROOT.war not expanded when explicitly 
defined in resin.xml

Date: Mon, 21 Mar 2011 17:03:31 -0700
From: Keith Fetterman 

I am experiencing a problem in resin 4.0.16 where resin is not expanding
the ROOT.war file if I explicitly define the root webapp in resin.xml
file. In resin.xml, I have the tag "" defined under my "" tag. I also
have the tag ""
defined under my "" tag.

When I update the ROOT.war file in my "webapps" directory, the war file
is not being expanded into the webapps/ROOT directory. I have tried
both shutting down resin, updating the ROOT.war file and then starting
resin, and I've tried updating ROOT.war while resin is running.

If I remove the tag ""
from the resin.xml file, then ROOT.war expansion occurs.

Do I need to add an attribute to the  tag to get the war file to expand?

Also, what is the difference between the attribute "root-directory" and
"document-directory" in the  tag? I noticed in the resin
documentation that "root-directory" is mentioned in the list of
attributes but "document-directory" is not on the following page:

http://caucho.com/resin/reference.xtp#web-app

But, if you look at the examples, they all show ""

Thanks,
Keith

--
-
Keith Fetterman Direct: 206-319-9434
Mariner Supply, Inc. 206-780-5670
http://www.go2marine.com kfetter...@go2marine.com

http://www.boatersline.com


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


--
-
Keith FettermanDirect: 206-319-9434
Mariner Supply, Inc.   206-780-5670
http://www.go2marine.com   kfetter...@go2marine.com

http://www.boatersline.com


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


Re: [Resin-interest] ROOT.war not expanded when explicitly defined in resin.xml

2011-03-22 Thread Keith Fetterman
In Resin 3.0, we had this configuration and it didn't have a problem.  
Actually, I recall that we did in an early version of 3.0.x, but the 
problem was corrected in the later versions.

There are two reasons why we explicitly had the  tag in 
resin.conf in resin 3.0:

- On our test environment only, I want to specify some security 
constraints to the root web app. to prevent access, for example:

> 
> 
> 
> test
> /*
> 
> 
> intranet
> 
> 
>
> 
> BASIC
> Mariner Supply
> 
>
> 
> intranet
> 
> 
In production, we didn't want this security constraint.

- In our development environments, we specify a different name for the 
war file and we want to assign it to be the root application in the 
host.  For example, we have

> 


On 03/22/2011 12:31 AM, Daniel López wrote:
> AFAIK, you either place the .war file in webapps or define the directory
> using an explicit web-app tag, but having both is not necessary and just
> seems to confuse Resin.
>
> S!
> D.
>
> El 22/03/2011 1:03, Keith Fetterman escribió:
>> I am experiencing a problem in resin 4.0.16 where resin is not expanding
>> the ROOT.war file if I explicitly define the root webapp in resin.xml
>> file.  In resin.xml, I have the tag "> root-directory="webapps/ROOT"/>" defined under my"" tag.  I also
>> have the tag ""
>> defined under my "" tag.
>>
>> When I update the ROOT.war file in my "webapps" directory, the war file
>> is not being expanded into the webapps/ROOT directory.  I have tried
>> both shutting down resin, updating the ROOT.war file and then starting
>> resin, and I've tried updating ROOT.war while resin is running.
>>
>> If I remove the tag ""
>> from the resin.xml file, then ROOT.war expansion occurs.
>>
>> Do I need to add an attribute to the> root-directory="webapps/ROOT"/>   tag to get the war file to expand?
>>
>> Also, what is the difference between the attribute "root-directory" and
>> "document-directory" in the   tag?  I noticed in the resin
>> documentation that "root-directory" is mentioned in the list of
>> attributes but "document-directory" is not on the following page:
>>
>> http://caucho.com/resin/reference.xtp#web-app
>>
>> But, if you look at the examples, they all show "> document-directory='/usr/local/apache/htdocs'>"
>>
>> Thanks,
>> Keith
>
>
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>

-- 
-
Keith FettermanDirect: 206-319-9434
Mariner Supply, Inc.   206-780-5670
http://www.go2marine.com   kfetter...@go2marine.com

http://www.boatersline.com




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


Re: [Resin-interest] ROOT.war not expanded when explicitly defined in resin.xml

2011-03-22 Thread Daniel López
AFAIK, you either place the .war file in webapps or define the directory 
using an explicit web-app tag, but having both is not necessary and just 
seems to confuse Resin.

S!
D.

El 22/03/2011 1:03, Keith Fetterman escribió:
> I am experiencing a problem in resin 4.0.16 where resin is not expanding
> the ROOT.war file if I explicitly define the root webapp in resin.xml
> file.  In resin.xml, I have the tag " root-directory="webapps/ROOT"/>" defined under my"" tag.  I also
> have the tag ""
> defined under my "" tag.
>
> When I update the ROOT.war file in my "webapps" directory, the war file
> is not being expanded into the webapps/ROOT directory.  I have tried
> both shutting down resin, updating the ROOT.war file and then starting
> resin, and I've tried updating ROOT.war while resin is running.
>
> If I remove the tag ""
> from the resin.xml file, then ROOT.war expansion occurs.
>
> Do I need to add an attribute to the root-directory="webapps/ROOT"/>  tag to get the war file to expand?
>
> Also, what is the difference between the attribute "root-directory" and
> "document-directory" in the  tag?  I noticed in the resin
> documentation that "root-directory" is mentioned in the list of
> attributes but "document-directory" is not on the following page:
>
> http://caucho.com/resin/reference.xtp#web-app
>
> But, if you look at the examples, they all show " document-directory='/usr/local/apache/htdocs'>"
>
> Thanks,
> Keith



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


Re: [Resin-interest] ROOT.war not expanded when explicitly defined in resin.xml

2011-03-22 Thread Mattias Jiderhamn

Have you tried without versioning="true"?
--


- Original Message -
Subject: [Resin-interest] ROOT.war not expanded when explicitly defined 
in resin.xml

Date: Mon, 21 Mar 2011 17:03:31 -0700
From: Keith Fetterman 

I am experiencing a problem in resin 4.0.16 where resin is not expanding
the ROOT.war file if I explicitly define the root webapp in resin.xml
file. In resin.xml, I have the tag "" defined under my "" tag. I also
have the tag ""
defined under my "" tag.

When I update the ROOT.war file in my "webapps" directory, the war file
is not being expanded into the webapps/ROOT directory. I have tried
both shutting down resin, updating the ROOT.war file and then starting
resin, and I've tried updating ROOT.war while resin is running.

If I remove the tag ""
from the resin.xml file, then ROOT.war expansion occurs.

Do I need to add an attribute to the  tag to get the war file to expand?

Also, what is the difference between the attribute "root-directory" and
"document-directory" in the  tag? I noticed in the resin
documentation that "root-directory" is mentioned in the list of
attributes but "document-directory" is not on the following page:

http://caucho.com/resin/reference.xtp#web-app

But, if you look at the examples, they all show ""

Thanks,
Keith

--
-
Keith Fetterman Direct: 206-319-9434
Mariner Supply, Inc. 206-780-5670
http://www.go2marine.com kfetter...@go2marine.com

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