Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Environment:Maven 2.0.4, weblogic-maven-plugin:2.9.0-SNAPSHOT, WebLogic 9.2, JDK 1.5, Windows XP
-
Number of attachments :
Description
When running "mvn weblogic:appc" I get errors reported by Weblogic complaining that it cannot find a number of classes in the web.xml file. Here are some excerpts from the console:
[INFO] Argument List for Appc settings [-forceGeneration, -keepgenerated, -verb
ose, -classpath, C:\Shared\Maven\aopalliance\aopalliance\1.0\aopalliance-1.0.jar
:C:\Shared\Maven\javax\transaction\jta\1.0.1B\jta-1.0.1B.jar:C:\Shared\Maven\asp
ectj\aspectjweaver\1.5.2\aspectjweaver-1.5.2.jar:C:\Shared\Maven\asm\asm-tree\2.
[snip]
[JspcInvoker]Checking web app for compliance.
<Dec 16, 2006 6:02:04 PM PST> <Info> <HTTP> <BEA-101047> <[ComplianceChecker] Va
lidating the servlet element with servlet-name named "JspSupportServlet".>
<Dec 16, 2006 6:02:04 PM PST> <Info> <HTTP> <BEA-101047> <[ComplianceChecker] wa
rning :The class "com.opensymphony.webwork.views.JspSupportServlet" referred by
the descriptor element "servlet-class" is not found. Please ensure that it is pr
esent in the classpath.>
<Dec 16, 2006 6:02:04 PM PST> <Info> <HTTP> <BEA-101047> <[ComplianceChecker] wa
rning :The class "org.springframework.web.filter.CharacterEncodingFilter" referr
ed by the descriptor element "filter-class" is not found. Please ensure that it
is present in the classpath.>
[snip]
There are 2 nested errors:
weblogic.servlet.internal.dd.compliance.ComplianceException: The class "org.spri
ngframework.web.context.request.RequestContextListener" referred by the descript
or element "listener" is not found. Please ensure that it is present in the clas
spath.
at weblogic.servlet.internal.dd.compliance.BaseComplianceChecker.addDesc
riptorError(BaseComplianceChecker.java:74)
at weblogic.servlet.internal.dd.compliance.BaseComplianceChecker.addDesc
riptorError(BaseComplianceChecker.java:80)
Everything works fine on Ubuntu, but fails on Windows. This appears to be a simple issue of the separator used between the artifacts. It looks like it uses a colon rather than a semi-colon on Windows. I've attached a patch that resolves the issue.
Chnage your Environment
1. Maven 2.0.4
2. weblogic-maven-plugin:2.9.0-20061221.203929-8
enter the following in your pom
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>weblogic-maven-plugin</artifactId>
<version>2.9.0-20061221.203929-8</version>
<configuration>
<verbose>true</verbose>
<debugging>true</debugging>
<nowarnings>true</nowarnings>
<keepGenerated>true</keepGenerated>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>appc</goal>
</goals>
</execution>
</executions>
</plugin>
3.WebLogic 9.2
4., jdk1.5.0_11
5.Windows XP