[
http://jira.codehaus.org/browse/MOJO-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=149477#action_149477
]
Julien HENRY commented on MOJO-1194:
------------------------------------
Hi,
Thanks for your interest. Since the day I reported the bug, I'm now using
Oracle Weblogic 10.3. But I think the problem is the same and I found a
solution on a forum. Weblogic JARs are not easily hostable on Maven repository
because they are using there own location to find other dependencies.
Read comment #3 on this post:
http://monduke.com/2007/08/29/maven-and-weblogicmbeanmaker-in-weblogic-910/
This guy is talking about "weblogic.Home.getHome() to get to the BEA
installation directory and appends the relative path's to various different
jars it depends on"
So finally I made weblogic:appc working with this configuration:
{code:xml}
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>weblogic-maven-plugin</artifactId>
<version>2.9.0</version>
<configuration>
<adminServerHostName>localhost</adminServerHostName>
<adminServerPort>7001</adminServerPort>
<adminServerProtocol>http</adminServerProtocol>
<userId>weblogic</userId>
<password>weblogic</password>
<upload>false</upload>
<remote>false</remote>
<verbose>false</verbose>
<debug>false</debug>
<targetNames>AdminServer</targetNames>
</configuration>
<dependencies>
<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic</artifactId>
<version>10.3</version>
<scope>system</scope>
<systemPath>C:\bea103\wlserver_10.3\server\lib\weblogic.jar</systemPath>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>webservices</artifactId>
<version>10.3</version>
<scope>system</scope>
<systemPath>C:\bea103\wlserver_10.3\server\lib\webservices.jar</systemPath>
</dependency>
</dependencies>
</plugin>
{code}
With this configuration, JSP compilation starts but fails with lots of errors
like:
javax.servlet.jsp cannot be resolved
weblogic cannot be resolved to a type
To fix this I had to add
{code:xml}
<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic</artifactId>
<version>10.3</version>
<scope>system</scope>
<systemPath>C:\bea103\wlserver_10.3\server\lib\weblogic.jar</systemPath>
</dependency>
{code}
to the project dependencies (it seems it is not enough to add it to plugin
dependencies).
So for me this bug may be closed simply by updating the documentation on the
site, because I don't think you can do anything to improve the situation
(except point 2 eventually). The main issue is that Weblogic JAR are not easily
distributable.
> weblogic:appc is not working with Weblogic 10.0
> -----------------------------------------------
>
> Key: MOJO-1194
> URL: http://jira.codehaus.org/browse/MOJO-1194
> Project: Mojo
> Issue Type: Bug
> Components: weblogic
> Environment: Windows XP
> JDK 1.5.0
> BEA Weblogic 10.0 MP1
> Reporter: Julien HENRY
> Assignee: Jon Osborn
>
> There are lots of NoClassDefFoundError.
> java.lang.NoClassDefFoundError: weblogic/utils/classloaders/GenericClassLoader
> then I've added wl-api.jar to the plugin calsspath
> then
> java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamException
> then I've added api.jar to the plugin classpath
> then
> java.lang.NoClassDefFoundError: weblogic/descriptor/BeanUpdateListener
> (don't manage to find the dependency)
> FYI:
> http://www.gexperts.com/products/weblogic-appc-plugin/weblogic-appc-plugin.asp
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email