Weblogic, context path for war files

640 views
Skip to first unread message

Claus Nielsen

unread,
Aug 30, 2016, 4:32:01 AM8/30/16
to Codehaus Cargo
I use both Wildfly and Weblogic with Cargo. I have a problem with the context path for a war file on when using Weblogic. With Wildfly the context path is set correctly. See this snippet:
                     
                        <deployable>
                           
<groupId>com.xxx.security</groupId>
                           
<artifactId>stub-services</artifactId>
                           
<type>war</type>
                           
<properties>
                               
<context>/security</context>
                           
</properties>
                       
</deployable>
On Wildfly the context path for stub-services is /security but on Weblogic the context path is /stub-services-1.0.3.war

Snippet from the generated config.xml from Weblogic:

<app-deployment>
   
<name>cntest</name>
   
<target>server</target>
   
<source-path>C:\projects\cntest\cntest-services\target\cntest.war</source-path>
   
<security-dd-model>DDOnly</security-dd-model>
 
</app-deployment>
 
<app-deployment>
   
<name>security</name>
   
<target>server</target>
   
<source-path>C:\m2repository\com\xxx\security\stub-services\1.0.3\stub-services-1.0.3.war</source-path>
   
<security-dd-model>DDOnly</security-dd-model>
 
</app-deployment>
 
<app-deployment>
   
<name>cargocpc</name>
   
<target>server</target>
   
<module-type>war</module-type>
   
<source-path>autodeploy\cargocpc.war</source-path>
   
<security-dd-model>DDOnly</security-dd-model>
   
<staging-mode>stage</staging-mode>
   
<plan-staging-mode xsi:nil="true"></plan-staging-mode>
   
<cache-in-app-directory>false</cache-in-app-directory>
 
</app-deployment>

I guess this is set in line 287 in WebLogic9x10x103x12xConfigXmlInstalledLocalDeployer - createIdFromFileName method..

Is it possible to have the context path set with Weblogic so that the filename for the war file is not the context path ?


Kind regards
Claus Nielsen

Karel Suta

unread,
Aug 31, 2016, 4:09:19 AM8/31/16
to Codehaus Cargo
Hi Claus,

Right now it isn't possible to set context path for WebLogic deployment by Cargo. Workaround could be to set context path using context-root element in weblogic.xml file.
Anyway this is good idea for improvement. Thanks for a tip.

Br, Karel


Dne úterý 30. srpna 2016 10:32:01 UTC+2 Claus Nielsen napsal(a):

Claus Nielsen

unread,
Sep 1, 2016, 2:18:26 PM9/1/16
to Codehaus Cargo
Hi Karel,

Thanks for your answer :-)

We already set the wls:context-root in weblogic.xml - and it doesn't work.

Who and how can create this as a feature-request ?

Kind regards
Claus

S. Ali Tokmen

unread,
Sep 3, 2016, 12:10:19 PM9/3/16
to codehau...@googlegroups.com

Hi Karel

Thanks for the details :)

@Claus, you can follow https://codehaus-cargo.atlassian.net/browse/CARGO-1402 if you wish to get the latest & greatest updates.

Regards

S. Ali Tokmen
http://ali.tokmen.com/
http://contact.ali.tokmen.com/
--
You received this message because you are subscribed to the Google Groups "Codehaus Cargo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codehaus-carg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codehaus-cargo/52dc5c17-d37f-4fd3-86bc-6e1761c6399c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Savaş Ali Tokmen

unread,
Sep 8, 2016, 1:49:05 AM9/8/16
to Codehaus Cargo

Hi Claus


The implementation is now ready, and you can try the 1.5.1-SNAPSHOT version either by building yourself or by following the instructions on https://codehaus-cargo.github.io/cargo/Maven2+Plugin+Installation.html#Maven2PluginInstallation-snapshots


Can you give a try as well?


Thank you

Reply all
Reply to author
Forward
0 new messages