[opencms-dev] URL Mapping for OpenCms on WebSphere
Edwin Chiu
edwin.chiu at gmail.com
Tue Feb 2 06:15:58 CET 2010
Hi Dylan,
I am using OpenCms 7.5.2 in Websphere 6.1. I've attached my application.xml
and web.xml in this post. I deployed the application in "ear" structure.
The most important thing is setting identical "param-value" in
DefaultWebApplication and WebApplicationContext.
<context-param>
<param-name>DefaultWebApplication</param-name>
<param-value>ROOT</param-value>
</context-param>
<context-param>
<param-name>WebApplicationContext</param-name>
<param-value>ROOT</param-value>
</context-param>
You can look into org.opencms.main.CmsServletContainerSettings for how the
OpenCms set up various application path.
Thanks
Edwin
http://old.nabble.com/file/p27415642/application.xml application.xml
http://old.nabble.com/file/p27415642/web.xml web.xml
Dylan Milks wrote:
>
> Hi,
>
>
>
> I'm having a problem getting OpenCMS to map to the right URL. The path
> I want to access it is: http://localhost:9081/opencms/system/login.
> However, I can only access it fully working through:
> http://localhost:9081/opencms.war/opencms/system/login.
>
>
>
> The problem I'm having is that when I change the context root of the
> OpenCms application from "/opencms.war" to "/", the images and CSS of
> the login page aren't found. Nor can I login because the form submits
> to /opencms.war/opencms/system/login/index.html. When I view the source
> of the page, the paths to the resources (images, css, js, etc) still
> have the prefix of "/opencms.war". For example:
> /opencms.war/export/system/workplace/commons/style/workplace.css
>
>
>
> How can I get rid of the "/opencms.war"? I have changed the context
> path to "/" and restarted the app server. What else must be updated?
>
>
>
> Please note that I am using OpenCMS 7.5.2 on a WebSphere 7 server. But
> I suspect that the behavior of WebSphere 7 is similar to 6.1. I'm
> thinking that this problem can probably occur on just about any app
> server and that the solution is the same for all servers.
>
>
>
> Thanks,
>
>
>
> - Dylan
>
>
>
>
> ---------------------------------------------------------------------------------
> The contents of this communication, including any attachment(s), are
> confidential and may be privileged. If you are not the intended recipient
> (or
> are not receiving this communication on behalf of the intended recipient),
> please notify the sender immediately and delete or destroy this
> communication
> without reading it, and making, forwarding or retaining any copy or record
> of it
> or its contents. Thank you.
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
--
View this message in context: http://old.nabble.com/URL-Mapping-for-OpenCms-on-WebSphere-tp27410391p27415642.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
More information about the opencms-dev
mailing list