- 
        15. Re: How do I disable the container's JAX-RS and JAX-WS in a war? - need to deploy legacy JAX-WS/RS application.aherrao.sachin Jan 10, 2013 5:06 AM (in response to nickarls)Hi Nichlas Thankx again. I have downloaded the zip file for source of JBOSS 7.1.2. Also I have exploaded the jar file and got the source. But I dont know how to build from source. I am new to this thing. Can you please help me in that regard? I suppose after I build from source the folder structure will be same as that of community release JBOSS 7.1.0 final. Am I right? 
- 
        16. Re: How do I disable the container's JAX-RS and JAX-WS in a war? - need to deploy legacy JAX-WS/RS application.nickarls Jan 10, 2013 5:17 AM (in response to aherrao.sachin)Just run "build" in the root. The product will appear under build/target/jboss-as-7.1.2 and will have about the same dir structure as 7.1.0. It will also download the internet for you (~200Mb jars in the maven repo) 
- 
        17. Re: How do I disable the container's JAX-RS and JAX-WS in a war? - need to deploy legacy JAX-WS/RS application.aherrao.sachin Jan 10, 2013 5:24 AM (in response to nickarls)Hi I tried the above thing as told by you. I am on Windows 7 OS. I got the following error. Can you tell me what went wrong? D:\App Servers\jboss-as-7.1.2.Final\jboss-as-7.1.2.Final>build.bat Calling .\tools\maven\bin\mvn.bat [INFO] Scanning for projects... Downloading: http://repository.jboss.org/nexus/content/groups/public/org/jboss/jboss-parent/9/jboss-parent-9.pom Downloaded: http://repository.jboss.org/nexus/content/groups/public/org/jboss/jboss-parent/9/jboss-parent-9.pom (28 KB at 8.6 KB/sec) [ERROR] Java heap space -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError Press any key to continue . . . 
- 
        18. Re: How do I disable the container's JAX-RS and JAX-WS in a war? - need to deploy legacy JAX-WS/RS application.ctomc Jan 10, 2013 5:37 AM (in response to aherrao.sachin)build ran out of memmory try seting maven opts first set MAVEN_OPTS=-Xms256m -Xmx512m -XX:MaxPermSize=128M build.bat -DskipTests it should complete without any problems 
- 
        19. Re: How do I disable the container's JAX-RS and JAX-WS in a war? - need to deploy legacy JAX-WS/RS application.nickarls Jan 10, 2013 5:37 AM (in response to aherrao.sachin)set MAVEN_OPTS="-Xmx512m"
- 
        20. Re: How do I disable the container's JAX-RS and JAX-WS in a war? - need to deploy legacy JAX-WS/RS application.aherrao.sachin Jan 10, 2013 5:58 AM (in response to nickarls)Now I am getting following error. Dont know what is wrong? [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2:38.683s [INFO] Finished at: Thu Jan 10 16:20:48 IST 2013 [INFO] Final Memory: 69M/254M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce (enforce-java-version) on project jboss-as-build-config: Some Enforcer rules have failed. Look above for speci fic messages explaining why the rule failed. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Press any key to continue . . . 
- 
        21. Re: How do I disable the container's JAX-RS and JAX-WS in a war? - need to deploy legacy JAX-WS/RS application.nickarls Jan 10, 2013 6:03 AM (in response to aherrao.sachin)You must have JDK 6 or higher installed, I think. 
- 
        22. Re: How do I disable the container's JAX-RS and JAX-WS in a war? - need to deploy legacy JAX-WS/RS application.ctomc Jan 10, 2013 6:13 AM (in response to nickarls)oracle's jdk6 update 20 and up. jdk7 should work, but you might get some test failures. 
- 
        23. Re: How do I disable the container's JAX-RS and JAX-WS in a war? - need to deploy legacy JAX-WS/RS application.nickarls Jan 10, 2013 6:23 AM (in response to ctomc)I recall the first JDK7 versions also having problems even when skipping tests. 
- 
        24. Re: How do I disable the container's JAX-RS and JAX-WS in a war? - need to deploy legacy JAX-WS/RS application.aherrao.sachin Jan 10, 2013 8:08 AM (in response to nickarls)Hi, now I am getting following error. Can anybody tell me where I am wrong? My build command is as follows D:\App Servers\jboss-as-7.1.2.Final\jboss-as-7.1.2.Final>build.bat -DskipTests [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.977s [INFO] Finished at: Thu Jan 10 18:31:50 IST 2013 [INFO] Final Memory: 68M/254M [INFO] ------------------------------------------------------------------------ [ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version> ]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test- sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, ins tall, deploy, pre-site, site, post-site, site-deploy, pre-clean, clean, post-clean. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException Press any key to continue . . . Thank you. 
- 
        25. Re: How do I disable the container's JAX-RS and JAX-WS in a war? - need to deploy legacy JAX-WS/RS application.nickarls Jan 10, 2013 8:26 AM (in response to aherrao.sachin)build clean install -DskipTests 
- 
        26. Re: How do I disable the container's JAX-RS and JAX-WS in a war? - need to deploy legacy JAX-WS/RS application.aherrao.sachin Jan 10, 2013 9:18 AM (in response to nickarls)Hi Nicklas, Seems that I have hard time today. I tried by the above command given by you. Build was running 42 minutes and then it got failed. With following error [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 42:51.254s [INFO] Finished at: Thu Jan 10 19:45:15 IST 2013 [INFO] Final Memory: 152M/494M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project jboss-as-arquillian-protocol-jmx: Compilation failure [ERROR] \App Servers\jboss-as-7.1.2.Final\jboss-as-7.1.2.Final\arquillian\protocol-jmx\src\main\java\org\jboss\as\arquillian\protocol\jmx\ArquillianServiceDeployer.java:[60,79] inconvertible types [ERROR] found : org.jboss.shrinkwrap.api.Archive<capture#802 of ?> [ERROR] required: org.jboss.shrinkwrap.api.spec.JavaArchive [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :jboss-as-arquillian-protocol-jmx Press any key to continue . . . 
- 
        27. Re: How do I disable the container's JAX-RS and JAX-WS in a war? - need to deploy legacy JAX-WS/RS application.ctomc Jan 10, 2013 11:47 AM (in response to aherrao.sachin)what is the exact version of JDK you are using? 
- 
        28. Re: How do I disable the container's JAX-RS and JAX-WS in a war? - need to deploy legacy JAX-WS/RS application.nickarls Jan 10, 2013 11:54 AM (in response to aherrao.sachin)do a java -version. What do you see? What does your JAVA_HOME point to? 
- 
        29. Re: How do I disable the container's JAX-RS and JAX-WS in a war? - need to deploy legacy JAX-WS/RS application.aherrao.sachin Jan 11, 2013 12:25 AM (in response to nickarls)Hi Tomaz and Nicklas My Java version is 1.6.0_04 Also JAVA_HOME points to the same. Please let me know what to do next? Is it the right version for this task? Thankx again. 
 
     
    