[
http://jira.codehaus.org/browse/MANTRUN-131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=216041#action_216041
]
polireddy commented on MANTRUN-131:
-----------------------------------
Have resolved the issue by modifying mvn.bat like below:
:runm2
%MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath
C:\bea\jdk150_04\lib\jdk\tools.jar;C:\bea\weblogic92\server\lib\weblogic.jar;C:\bea\weblogic92\workshop\lib\wls.jar;%CLASSWORLDS_JAR%
"-Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%"
org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS%
if ERRORLEVEL 1 goto error
goto end
Here directly adding the tools.jar, weblogic.jar and wls.jar to Maven
classpath.
now ejbgen task is running successfully in Maven.
> maven-antrun-plugin with the ejbgen ant task
> ---------------------------------------------
>
> Key: MANTRUN-131
> URL: http://jira.codehaus.org/browse/MANTRUN-131
> Project: Maven 2.x Antrun Plugin
> Issue Type: Bug
> Affects Versions: 1.3
> Environment: Maven version: 2.0.10
> Java version: 1.5.0_14
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
> Reporter: polireddy
> Attachments: ejbgen-build-maven.xml, pom.xml
>
>
> When i am calling ant build.xml from maven to run ejbgen task, getting the
> following issue.
> [null] Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/j
> avadoc/Type
> [null] at com.bea.util.jam.provider.JamServiceFactoryImpl.createSourceB
> uilder(JamServiceFactoryImpl.java:205)
> [null] at com.bea.util.jam.provider.JamServiceFactoryImpl.createBuilder
> (JamServiceFactoryImpl.java:158)
> [null] at com.bea.util.jam.provider.JamServiceFactoryImpl.createClassLo
> ader(JamServiceFactoryImpl.java:137)
> [null] at com.bea.util.jam.provider.JamServiceFactoryImpl.createService
> (JamServiceFactoryImpl.java:78)
> [null] at com.bea.sgen.loader.JClassLoaderImpl.load(JClassLoaderImpl.ja
> va:107)
> [null] at com.bea.sgen.SGen.run(SGen.java:190)
> [null] at com.bea.wls.ejbgen.EJBGen.main(EJBGen.java:212)
> [null] at com.bea.wls.ejbgen.EJBGen.main(EJBGen.java:238)
> [ejbgen] Java returned: 1
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] An Ant BuildException has occured: The following error occurred while
> exe
> cuting this line:
> C:\apps-maven\sasejb\sasejb-ear\ejbgen-build-maven.xml:32: Java returned: 1
> If i run ant build.xml from command prompt, not getting any issue. it's
> working fine.
> Issue is comming if i do from Maven.
> Would you please me to fix this issue. it's very urgent for me
--
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