-
1. Re: MyLayout.war error: WEB-INF/web.xml not found.
mholzner Jul 18, 2005 7:52 AM (in response to javatwo)You still need a valid war, and without a /web-inf/web.xml it's not a valid war.
So add it and it should work (assuming everything else is there) -
2. Re: MyLayout.war error: WEB-INF/web.xml not found.
javatwo Jul 18, 2005 2:16 PM (in response to javatwo)I downloaded the myLayout.war from
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossPortalSamples
/WEB-INF/web.xml is missing from the war file. Where can I get it?
Thanks. -
3. Re: MyLayout.war error: WEB-INF/web.xml not found.
lhenderson Aug 19, 2005 2:25 PM (in response to javatwo)Trying to load myLayout. I am using myLayout.war from examples download. I have added a web.xml file. I have also updated the portal-core WEB-INF files. I have set JBOSS_HOME to F:/jboss-portal-2.0-jboss-4.0.2.
I have stopped and started JBoss numerous times. Getting warning below. When I execute /myLayout. I get a directory instead of page. Whatelse should I be doing?
12:30:21,547 INFO [TomcatDeployer] deploy, ctxPath=/myLayout, warUrl=file:/F:/jboss-portal-2.0-jboss-4.0.2/server/default/tmp/deploy/tmp44628myLayout-exp.war/
12:30:21,708 INFO [ContextConfig] Missing application web.xml, using defaults only StandardEngine[jboss.web].StandardHost[localhost].StandardContext[/myLayout]
WEB.XML
<web-app>
<display-name>Portal POC</display-name>
Portal Proof Of Concept
<servlet-name>twoColumns</servlet-name>
<jsp-file>/layout/twoColumns.jsp</jsp-file>
<servlet-mapping>
<servlet-name>twoColumns</servlet-name>
<url-pattern>/layout/twoColumns.jsp</url-pattern>
</servlet-mapping>
<taglib-uri>WEB-INF/theme/portal-layout.tld</taglib-uri>
<taglib-location>WEB-INF/theme/portal-layout.tld</taglib-location>
</web-app>
PORTAL-LAYOUT.XML
<below XML will NOT DISPLAYING PROPERLY, take my word. Its all default data>
2ColumnLayout
/layouts/twoColumns.jsp
PORTAL-THEMES.XML
simple-sample
JBOSS-WEB.XML
<jboss-web>
<context-root>/myLayout</context-root>
</jboss-web>
DEFAULT-PORTAL.XML
org.jboss.portal.property.layout
2ColumnLayout
org.jboss.portal.property.renderSet
divRenderer -
4. Re: MyLayout.war error: WEB-INF/web.xml not found.
lhenderson Aug 19, 2005 10:35 PM (in response to javatwo)Found a solution, which may not be correct. Placed WEB-INF at same level as myLayout.war in war file. Now I can display twoColumns.jsp, with exceptions "No pages to render!"
myLayout.war
|- simple-sample.css
|-/images
|-/layouts
|- twoColumns.jsp
WEB-INF
|- jboss-web.xml
|- portal-layouts.xml
|- portal-themes.xml
|- web.xml -
5. Re: MyLayout.war error: WEB-INF/web.xml not found.
bhaskar Aug 27, 2005 8:30 AM (in response to javatwo)I'm also facing the same problem, web.xml is not found in the sample myLayout.war file downloaded from Jboss site. Placed the web.xml as mentioned in this thread, but still getting the directory listed when I browser /myLayout.
-Bhaskar