[JBoss Tools] New message: "Re: org.jboss.tools.jst.web.xml"
by Denis Golovin
User development,
A new message was posted in the thread "org.jboss.tools.jst.web.xml":
http://community.jboss.org/message/519375#519375
Author : Denis Golovin
Profile : http://community.jboss.org/people/dgolovin
Message:
--------------------------------------------------------------
I guess you added richfaces as custom capabilities to Seam project. That triggers update for org.jboss.tools.jst.web.xml and adds a lot of libs with absolute path.
My usecase to reproduce that below.
1. EXECUTE: Create any Seam project in WAR deployment configuration
2. ASSERT: Open .settings/org.jboss.tools.jst.web.xml file and check there are no absolute paths
3. EXECUTE: Add Richfaces Custom Capabilities
4. ASSERT: There are still no absolute paths in .settings/org.jboss.tools.jst.web.xml
On second step .settings/org.jboss.tools.jst.web.xml contains no absolute paths:
<?xml version="1.0" encoding="UTF-8"?><file-systems application-name="seam1" model-entity="FileSystems" VERSION="2.0.0" workspace-home="./WebContent/WEB-INF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<file-system model-entity="FileSystemFolder" location="%workspace.home%" NAME="WEB-INF"></file-system>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<file-system model-entity="FileSystemFolder" info="Content-Type=Web" location="%workspace.home%/.." NAME="WEB-ROOT"></file-system>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<file-system model-entity="FileSystemFolder" location="%workspace.home%/../../src" NAME="src"></file-system>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<file-system model-entity="FileSystemFolder" location="%workspace.home%/lib" NAME="lib"></file-system>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<file-system model-entity="FileSystemFolder" location="%workspace.home%/classes" NAME="classes"></file-system>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<web model-entity="JstWeb" model-path="/web.xml" SERVLET_VERSION="2.4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<module model-entity="WebJSFModule" model-path="/faces-config.xml" root="WEB-ROOT" src="src" URI="/WEB-INF/faces-config.xml"></module>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</web></file-systems>
but on fourth step:
<?xml version="1.0" encoding="UTF-8"?><file-systems VERSION="2.0.0" application-name="seam3" model-entity="FileSystems" workspace-home="./WebContent/WEB-INF"> <file-system NAME="WEB-INF" location="%workspace.home%" model-entity="FileSystemFolder"></file-system> <file-system NAME="WEB-ROOT" info="Content-Type=Web" location="%workspace.home%/.." model-entity="FileSystemFolder"></file-system> <file-system NAME="lib" location="%workspace.home%/lib" model-entity="FileSystemFolder"></file-system> <file-system NAME="classes" location="%workspace.home%/classes" model-entity="FileSystemFolder"></file-system>
<file-system NAME="lib-resources.jar" location="/usr/lib/jvm/java-6-openjdk/jre/lib/resources.jar" model-entity="FileSystemJar"></file-system>
... <file-system NAME="lib-policy.jar" location="/home/eskimo/Java/jboss-4.2.2.GA/client/policy.jar" model-entity="FileSystemJar"></file-system> ... <file-system NAME="lib-antlr-runtime.jar" location="/home/eskimo/workspace-3.1.0.M4/seam3/WebContent/WEB-INF/lib/antlr-runtime.jar" model-entity="FileSystemJar"></file-system>
...
<file-system NAME="src" location="%workspace.home%/../../src/main" model-entity="FileSystemFolder"></file-system> <file-system NAME="src-1" location="%workspace.home%/../../src/hot" model-entity="FileSystemFolder"></file-system> <file-system NAME="seam3" location="%eclipse.project%" model-entity="FileSystemFolder"></file-system> <file-system NAME="lib-richfaces-api-3.3.2.SR1.jar" info="hidden=yes" location="%workspace.home%/lib/richfaces-api-3.3.2.SR1.jar" model-entity="FileSystemJar"></file-system> <file-system NAME="lib-richfaces-impl-3.3.2.SR1.jar" info="hidden=yes" location="%workspace.home%/lib/richfaces-impl-3.3.2.SR1.jar" model-entity="FileSystemJar"></file-system> <file-system NAME="lib-richfaces-ui-3.3.2.SR1.jar" info="hidden=yes" location="%workspace.home%/lib/richfaces-ui-3.3.2.SR1.jar" model-entity="FileSystemJar"></file-system> <file-system NAME="lib-richfaces-api-3.1.6.SR1.jar" info="hidden=yes" location="%workspace.home%/lib/richfaces-api-3.1.6.SR1.jar" model-entity="FileSystemJar"></file-system> <file-system NAME="lib-richfaces-impl-3.1.6.SR1.jar" info="hidden=yes" location="%workspace.home%/lib/richfaces-impl-3.1.6.SR1.jar" model-entity="FileSystemJar"></file-system> <file-system NAME="lib-richfaces-ui-3.1.6.SR1.jar" info="hidden=yes" location="%workspace.home%/lib/richfaces-ui-3.1.6.SR1.jar" model-entity="FileSystemJar"></file-system> <web SERVLET_VERSION="2.4" model-entity="JstWeb" model-path="/web.xml"> <module URI="/WEB-INF/faces-config.xml" model-entity="WebJSFModule" model-path="/faces-config.xml" src="src" web-root="WEB-ROOT"></module> </web></file-systems>
It looks like all jars from jdk, server and web libraries classpath containers were added to org.jboss.tools.jst.web.xml.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/519375#519375
16 years, 3 months
[JBoss Tools] New message: "Re: Wrong project hierarchy with Maven Configuration"
by Fabricio Lemos
User development,
A new message was posted in the thread "Wrong project hierarchy with Maven Configuration":
http://community.jboss.org/message/519374#519374
Author : Fabricio Lemos
Profile : http://community.jboss.org/people/fabricio.lemos
Message:
--------------------------------------------------------------
> Could you open a bug about this with steps to reproduce ? Sounds like we are not reading the project name consistently.
Bug report created: https://jira.jboss.org/jira/browse/JBIDE-5656
> > Just another question:
> >
> > The web project is created with <packaging>ear</packaging>
> > instead of <packaging>war</packaging>
> > Did I miss anything again?
>
> Snjezana would be better to answer that - I know she battled for some time to get the proper setup working.
At the M2 Capabilities screen I was setting the Packaging to EAR because I was creating an EAR project, but it seems that the Packaging of that screen is related to the web project (the one created without any suffix). So if I keep the WAR Packaging it is created OK. But I can´t imagine any situation where the web project should not be packaged as a WAR, so I think this field shouldn´t be editable.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/519374#519374
16 years, 3 months