Hi,
Thanks for the response
>
> I'm trying to understand the project setting for the code you use to test
> the JMX integration. Do you have your own maven module or do you reuse an
> existing sample module?
>
> Are you trying to run
> samples/running-tuscany/jse/src/main/java/launcher/LaunchCalculatorContributionto
> see if the JMX is activated?
>
Yes I'm using
samples/running-tuscany/jse/src/main/java/launcher/LaunchCalculatorContribution
to test JMX integration.
>
> If so, that pom has the following dependency:
>
> <dependency>
> <groupId>org.apache.tuscany.sca</groupId>
> <artifactId>tuscany-base-runtime</artifactId>
> <version>2.0-SNAPSHOT</version>
> </dependency>
>
> If you have the jmx modules added to the base-runtime pom, they should be
> picked up. You can run "mvn dependency:tree" under samples/running-tuscany/jse
> to confirm.
>
I added the tuscany-base-runtime dependency to
samples/running-tuscany/pom.xml. Built the project (but stopped half way
through due to the permgen error)
Then executed mvn dependency:tree, and this is the result I get
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ jse ---
[INFO] org.apache.tuscany.sca.samples:jse:jar:2.0-SNAPSHOT
[INFO] +-
org.apache.tuscany.sca:tuscany-base-runtime:jar:2.0-SNAPSHOT:compile
[INFO] | +- cglib:cglib:jar:2.2:compile
[INFO] | +- org.apache.ws.commons.schema:XmlSchema:jar:1.4.3:compile
[INFO] | +- asm:asm:jar:3.1:compile
[INFO] | \- wsdl4j:wsdl4j:jar:1.6.2:compile
[INFO] \- junit:junit:jar:4.8.1:test
seems like the two jmx modules are not picked up. (I have added the two jmx
modules to the modules/base-runtime/pom.xml)
>
> Back to the build issue, can you do the following:
>
> 1) Send us the error message
> 2) Use "mvn clean install -fae -Dmaven.test.skip=true" for the purpose of
> compilation and archive.
>
> I still get the permgen error even if I ignore errors using mvn clean
install -fae. Following is end of the log.
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Tuscany SCA iTest WS Contribution WSDL First
2.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4:clean (default-clean) @
itest-ws-contribution-wsdl-first ---
[INFO] Deleting
/home/amindri/tuscany/trunk/testing/itest/ws/contribution-wsdl-first/target
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-plugin-versions) @
itest-ws-contribution-wsdl-first ---
[INFO] The requirePluginVersions rule is currently not compatible with
Maven3.
[INFO]
[INFO] --- build-helper-maven-plugin:1.0:add-test-source (add-source) @
itest-ws-contribution-wsdl-first ---
[INFO] Test Source directory:
/home/amindri/tuscany/trunk/testing/itest/ws/contribution-wsdl-first/target/jaxws-source
added.
[INFO]
[INFO] --- maven-remote-resources-plugin:1.1:process (default) @
itest-ws-contribution-wsdl-first ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.2:resources (default-resources) @
itest-ws-contribution-wsdl-first ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 7 resources
[INFO] Copying 0 resource
[INFO] Copying 3 resources
[INFO]
[INFO] --- jaxws-maven-plugin:1.10:wsimport (wsimport2) @
itest-ws-contribution-wsdl-first ---
[INFO] Processing:
/home/amindri/tuscany/trunk/testing/itest/ws/contribution-wsdl-first/target/classes/helloworld-external-service.wsdl
[INFO] jaxws:wsimport args: [-s,
/home/amindri/tuscany/trunk/testing/itest/ws/contribution-wsdl-first/target/jaxws-source,
-d,
/home/amindri/tuscany/trunk/testing/itest/ws/contribution-wsdl-first/target/classes,
-verbose, -p,
org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface, -target,
2.1, -Xnocompile,
/home/amindri/tuscany/trunk/testing/itest/ws/contribution-wsdl-first/target/classes/helloworld-external-service.wsdl]
---------------------------------------------------
constituent[0]: file:/opt/maven/lib/sisu-inject-plexus-1.4.3.1.jar
constituent[1]: file:/opt/maven/lib/wagon-http-shared-1.0-beta-7.jar
constituent[2]: file:/opt/maven/lib/maven-artifact-3.0.2.jar
constituent[3]: file:/opt/maven/lib/plexus-utils-2.0.4.jar
constituent[4]: file:/opt/maven/lib/maven-repository-metadata-3.0.2.jar
constituent[5]: file:/opt/maven/lib/maven-plugin-api-3.0.2.jar
constituent[6]: file:/opt/maven/lib/plexus-cipher-1.4.jar
constituent[7]: file:/opt/maven/lib/maven-settings-builder-3.0.2.jar
constituent[8]: file:/opt/maven/lib/commons-cli-1.2.jar
constituent[9]: file:/opt/maven/lib/aether-connector-wagon-1.9.jar
constituent[10]: file:/opt/maven/lib/aether-api-1.9.jar
constituent[11]: file:/opt/maven/lib/plexus-component-annotations-1.5.5.jar
constituent[12]: file:/opt/maven/lib/nekohtml-1.9.6.2.jar
constituent[13]: file:/opt/maven/lib/sisu-inject-bean-1.4.3.1.jar
constituent[14]: file:/opt/maven/lib/wagon-file-1.0-beta-7.jar
constituent[15]: file:/opt/maven/lib/plexus-sec-dispatcher-1.3.jar
constituent[16]: file:/opt/maven/lib/wagon-http-lightweight-1.0-beta-7.jar
constituent[17]: file:/opt/maven/lib/maven-compat-3.0.2.jar
constituent[18]: file:/opt/maven/lib/xercesMinimal-1.9.6.2.jar
constituent[19]: file:/opt/maven/lib/maven-aether-provider-3.0.2.jar
constituent[20]: file:/opt/maven/lib/aether-impl-1.9.jar
constituent[21]: file:/opt/maven/lib/maven-embedder-3.0.2.jar
constituent[22]: file:/opt/maven/lib/aether-spi-1.9.jar
constituent[23]: file:/opt/maven/lib/maven-model-builder-3.0.2.jar
constituent[24]: file:/opt/maven/lib/maven-model-3.0.2.jar
constituent[25]: file:/opt/maven/lib/aether-util-1.9.jar
constituent[26]: file:/opt/maven/lib/wagon-provider-api-1.0-beta-7.jar
constituent[27]: file:/opt/maven/lib/maven-core-3.0.2.jar
constituent[28]: file:/opt/maven/lib/sisu-guice-2.9.1-noaop.jar
constituent[29]: file:/opt/maven/lib/maven-settings-3.0.2.jar
constituent[30]: file:/opt/maven/lib/plexus-interpolation-1.14.jar
---------------------------------------------------
Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:386)
at
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:542)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
2011-08-03 22:47:39.074:INFO::Shutdown hook executing
2011-08-03 22:47:39.074:INFO::Shutdown hook complete
--
Thanks
Amindri Udugala
University of Colombo School of Computing,
Sri Lanka.