[jboss-user] [Security & JAAS/JBoss] - Changing context root

sirishy do-not-reply at jboss.com
Mon Jan 22 09:56:03 EST 2007


Hi All,

I'm using Jboss Portal 2.4 bundled version.
I downloaded the sample for defining a new portal instance.

By navigating to the URL http://localhost:8080/portal/portal/HelloPortal, I was able to view the default page.

How can I access the default page by typing the URL as http://localhost:8080/HelloPortal ?

I want to remove /portal/portal from the URL.
How can I achieve it?

I tried changing the jboss-web.xml (ie., I changed
<context-root>/HelloPortal</context-root>) from the location 
jboss-portal-2.4.0\server\default\deploy\jboss-portal.sar\portal-server.war\WEB-INF
Restarted the server and accessed the http://localhost:8080/HelloPortal I was able to see the default page of the default portal.
when I accessed http://localhost:8080/HelloPortal/foobar I'm still viewing the default page instead of foobar page.

Please help me.

Thanks in advance.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004838#4004838

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004838



More information about the jboss-user mailing list