Ok. I added a <type>remote</type> tag and I started trying to deploy but itkeeps trying to deploy my ejb jar instead of my ear. <deployables> <deployable> <groupId>com baselogic yoursos</groupId> <artifactId>ear</artifactId> <type>ear</type> <location>ear/target/ear-1.0-SNAPSHOT ear</location> <pingURL>http://localhost:8080/yoursos/index html</pingURL> </deployable> </deployables>[INFO] [cargo:deploy][INFO]------------------------------------------------------------------------[ERROR] FATAL ERROR[INFO]------------------------------------------------------------------------[INFO] Failed to deploy to [http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss system:service%3DMainDeployer&methodName=deploy&argType=java net. URL&arg0=file:C%3A%5Ctemp%5Cbaselogic%5Cyoursos%5Cyoursos-ejb%5Ctarget%5Cyoursos-ejb-1.0-SNAPSHOT jar]Server returned HTTP response code: 500 for URL:http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss system:service%3DMainDeployer&methodName=deploy&argType=java net. URL&arg0=file:C%3A%5Ctemp%5Cbaselogic%5Cyoursos%5Cyoursos-ejb%5Ctarget%5Cyoursos-ejb-1.0-SNAPSHOT jar[INFO]------------------------------------------------------------------------[INFO] Traceorg codehaus cargo container. ContainerException: Failed to deploy to [http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss system:service%3DMainDeployer&methodName=deploy&argType=java net. URL&arg0=file:C%3A%5Ctemp%5Cbaselogic%5Cyoursos%5Cyoursos-ejb%5Ctarget%5Cyoursos-ejb-1.0-SNAPSHOT jar] atorg codehaus cargo container jboss internal. JdkHttpURLConnection connect(JdkHttpURLConnection java:58) at org codehaus cargo container jboss. JBossRemoteDeployer invokeURL(JBossRemoteDeployer java:179) at org codehaus cargo container jboss. JBossRemoteDeployer deploy(JBossRemoteDeployer java:136) atorg codehaus cargo maven2. DeployerDeployMojo performDeployerActionOnSingleDeployable(DeployerDeployMojo java:79) atorg codehaus cargo maven2. AbstractDeployerMojo performDeployerActionOnAllDeployables(AbstractDeployerMojo java:118) at org codehaus cargo maven2. AbstractDeployerMojo doExecute(AbstractDeployerMojo java:47) at org codehaus cargo maven2. AbstractCargoMojo execute(AbstractCargoMojo java:243) at org apache maven plugin. DefaultPluginManager executeMojo(DefaultPluginManager java:443) at org apache maven lifecycle. DefaultLifecycleExecutor executeGoals(DefaultLifecycleExecutor java:539) atorg apache maven lifecycle. DefaultLifecycleExecutor executeStandaloneGoal(DefaultLifecycleExecutor java:493) at org apache maven lifecycle. DefaultLifecycleExecutor executeGoal(DefaultLifecycleExecutor java:463) atorg apache maven lifecycle. DefaultLifecycleExecutor executeGoalAndHandleFailures(DefaultLifecycleExecutor java:311) atorg apache maven lifecycle. DefaultLifecycleExecutor executeTaskSegments(DefaultLifecycleExecutor java:278) at org apache maven lifecycle. DefaultLifecycleExecutor execute(DefaultLifecycleExecutor java:143) at org apache maven. DefaultMaven doExecute(DefaultMaven java:334) at org apache maven. DefaultMaven execute(DefaultMaven java:125) at org apache maven cli. MavenCli main(MavenCli java:280) 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:585) at org codehaus classworlds. Launcher launchEnhanced(Launcher java:315) at org codehaus classworlds. Launcher launch(Launcher java:255) at org codehaus classworlds. Launcher mainWithExitCode(Launcher java:430) at org codehaus classworlds. Launcher main(Launcher java:375)Caused by: java io. IOException: Server returned HTTP response code: 500 forURL:http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss system:service%3DMainDeployer&methodName=deploy&argType=java net. URL&arg0=file:C%3A%5Ctemp%5Cbaselogic%5Cyoursos%5Cyoursos-ejb%5Ctarget%5Cyoursos-ejb-1.0-SNAPSHOT jar at sun net www protocol http. HttpURLConnection getInputStream(HttpURLConnection java:1153) atorg codehaus cargo container jboss internal. JdkHttpURLConnection connect(JdkHttpURLConnection java:51) ... 24 morejava io. IOException: Server returned HTTP response code: 500 for URL:http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss system:service%3DMainDeployer&methodName=deploy&argType=java net. URL&arg0=file:C%3A%5Ctemp%5Cbaselogic%5Cyoursos%5Cyoursos-ejb%5Ctarget%5Cyoursos-ejb-1.0-SNAPSHOT jar at sun net www protocol http. HttpURLConnection getInputStream(HttpURLConnection java:1153) atorg codehaus cargo container jboss internal. JdkHttpURLConnection connect(JdkHttpURLConnection java:51) at org codehaus cargo container jboss. JBossRemoteDeployer invokeURL(JBossRemoteDeployer java:179) at org codehaus cargo container jboss. JBossRemoteDeployer deploy(JBossRemoteDeployer java:136) atorg codehaus cargo maven2. DeployerDeployMojo performDeployerActionOnSingleDeployable(DeployerDeployMojo java:79) atorg codehaus cargo maven2. AbstractDeployerMojo performDeployerActionOnAllDeployables(AbstractDeployerMojo java:118) at org codehaus cargo maven2. AbstractDeployerMojo doExecute(AbstractDeployerMojo java:47) at org codehaus cargo maven2. AbstractCargoMojo execute(AbstractCargoMojo java:243) at org apache maven plugin. DefaultPluginManager executeMojo(DefaultPluginManager java:443) at org apache maven lifecycle. DefaultLifecycleExecutor executeGoals(DefaultLifecycleExecutor java:539) atorg apache maven lifecycle. DefaultLifecycleExecutor executeStandaloneGoal(DefaultLifecycleExecutor java:493) at org apache maven lifecycle. DefaultLifecycleExecutor executeGoal(DefaultLifecycleExecutor java:463) atorg apache maven lifecycle. DefaultLifecycleExecutor executeGoalAndHandleFailures(DefaultLifecycleExecutor java:311) atorg apache maven lifecycle. DefaultLifecycleExecutor executeTaskSegments(DefaultLifecycleExecutor java:278) at org apache maven lifecycle. DefaultLifecycleExecutor execute(DefaultLifecycleExecutor java:143) at org apache maven. DefaultMaven doExecute(DefaultMaven java:334) at org apache maven. DefaultMaven execute(DefaultMaven java:125) at org apache maven cli. MavenCli main(MavenCli java:280) 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:585) at org codehaus classworlds. Launcher launchEnhanced(Launcher java:315) at org codehaus classworlds. Launcher launch(Launcher java:255) at org codehaus classworlds. Launcher mainWithExitCode(Launcher java:430) at org codehaus classworlds. Launcher main(Launcher java:375)On 10/31/07. Mick Knutson <mickknutson@gmail com> wrote:>> OK here is my plugin now:>> <plugin>> <groupId>org codehaus cargo</groupId>> <artifactId>cargo-maven2-plugin</artifactId>> <version> 0.3-SNAPSHOT</version>>> <configuration>>> <!-- Container configuration -->> <container>> <containerId>jboss4x</containerId>> <home>C:/jboss-4.2.1. GA</home>> </container>>> <deployables>> <deployable>>> <!--<location>${yoursosRoot}ear/target/ear-1.0-SNAPSHOT ear</location>-->> <location>$\{project build directory\}/$\{> project build finalName\ }.$\{project packaging\}</location>> <pingURL>> http://localhost:8080/yoursos/index html</pingURL>> </deployable>> </deployables>> </configuration>> </plugin>>>>> THen when I run mvn cargo:deploy -e>> I get this but nothing actually deployed:>> [INFO] Searching repository for plugin with prefix: 'cargo'.> [INFO]> ----------------------------------------------------------------------------> [INFO] Building yoursos> [INFO] task-segment: [cargo:deploy]> [INFO]> ----------------------------------------------------------------------------> [INFO] [cargo:deploy]> [INFO] [talledLocalContainer] Parsed JBoss version = [4.2.1]> [INFO]> ---------------------------------------------------------------------------->> [INFO] Building Utilities Common (Module Group)> [INFO] task-segment: [cargo:deploy]> [INFO]> ----------------------------------------------------------------------------> [INFO] [cargo:deploy]> [INFO] [talledLocalContainer] Parsed JBoss version = [ 4.2.1]> [INFO]> ----------------------------------------------------------------------------> [INFO] Building Common-Exception> [INFO] task-segment: [cargo:deploy]> [INFO]> ---------------------------------------------------------------------------->> [INFO] [cargo:deploy]> [INFO] [talledLocalContainer] Parsed JBoss version = [4.2.1]> [INFO]> ----------------------------------------------------------------------------> [INFO] Building Common-Jar> [INFO] task-segment: [cargo:deploy]> [INFO]> ----------------------------------------------------------------------------> [INFO] [cargo:deploy]> [INFO] [talledLocalContainer] Parsed JBoss version = [4.2.1]> [INFO]> ---------------------------------------------------------------------------->> [INFO] Building YourSOS EJB3> [INFO] task-segment: [cargo:deploy]> [INFO]> ----------------------------------------------------------------------------> [INFO] [cargo:deploy]> [INFO] [talledLocalContainer] Parsed JBoss version = [ 4.2.1]> [INFO] [stalledLocalDeployer] Deploying> [C:\temp\baselogic\yoursos\yoursos-ejb\target\yoursos-ejb-1.0-SNAPSHOT jar]> to [C:\temp\baselogic\yoursos\yoursos-e> jb\target\jboss4x/deploy]...> [INFO]> ---------------------------------------------------------------------------->> [INFO] Building YourSOS - war> [INFO] task-segment: [cargo:deploy]> [INFO]> ----------------------------------------------------------------------------> [INFO] [cargo:deploy]> [INFO] [talledLocalContainer] Parsed JBoss version = [ 4.2.1]> [INFO] [stalledLocalDeployer] Deploying> [C:\temp\baselogic\yoursos\yoursos-war\target\yoursos-war war] to> [C:\temp\baselogic\yoursos\yoursos-war\target\jbo> ss4x/deploy]...> [INFO]> ---------------------------------------------------------------------------->> [INFO] Building YourSOS EAR> [INFO] task-segment: [cargo:deploy]> [INFO]> ----------------------------------------------------------------------------> [INFO] [cargo:deploy]> [INFO] [talledLocalContainer] Parsed JBoss version = [ 4.2.1]> [INFO] [stalledLocalDeployer] Deploying> [C:\temp\baselogic\yoursos\ear\target\ear-1.0-SNAPSHOT ear] to> [C:\temp\baselogic\yoursos\ear\target\jboss4x/deploy> ]...> [INFO]> [INFO]>>>> On 10/29/07. Daniele De Francesco <ddefrancesco@gmail com> wrote:> >> > Hi,> >> > all seems ok...> >> > 1) please give the console error...> >> > 2) did u try to uncomment> >> > <location>$\{project build directory\> > }/$\{project build finalName\}.$\{project packaging\}</location>> >> > specifying the parameters needed?> >> > Regards> > Daniele> >> > On 10/25/07. Mick Knutson <mickknutson@gmail com> wrote:> > >> > > Well this seems harder than I thought.> > > I have a dev machine with JBoss 4.2.1. GA installed and configured> > already> > > at> > > c:/jboss-4.2.1. GA/ and I use this plugin:> > >> > > <plugin>> > > <groupId>org codehaus cargo</groupId>> > > <artifactId>cargo-maven2-plugin</artifactId>> > > <version>0.3-SNAPSHOT</version>> > >> > > <configuration>> > >> > > <!-- Container configuration -->> > > <container>> > > <containerId>jboss4x</containerId>> > > <home>C:/jboss-4.2.1. GA</home>> > > <output>${project build directory> > > }/cargo/output log</output>> > > <append>false</append>> > > <log>${project build directory> > > }/cargo/server log</log>> > > </container>> > >> > > <deployables>> > > <deployable>> > > <groupId>com baselogic yoursos> > </groupId>> > > <artifactId>ear</artifactId>> > > <!--<location>$\{> > project build directory\> > > }/$\{project build finalName\}.$\{project packaging\}</location>-->> > > <pingURL>> > > http://localhost:8080/yoursos/index html</pingURL>> > > </deployable>> > > </deployables>> > >> > > </configuration>> > >> > >> > >> > > But cargo can't start up the container is the error I get and it> > keeps> > > trying to create "C:\temp\baselogic\yoursos\target\jboss4x\**" in what> >> > > looks> > > like the exact DIR structure that my installed server has.> > >> > > Can you shed some light as to how to hook into an existing local> > > installation of JBoss 4x just to deploy my ear? I think I have gone> > > through> > > all the docs on the cargo site with no luck so far.> > >> > >> > > On 10/25/07. Daniele De Francesco <ddefrancesco@gmail com> wrote:> > > >> > > > Hi,> > > >> > > > I'm sorry for replying so shortly but you could see i e.> > > >> > > >> > > >> > >> > http://www nabble com/JBoss-Remote-Deployment-workaround-for-HTTP-500-error-t3607694 html> > > >> > > > just for the pom....> > > >> > > > Besides of course you could refer to> > > >> > > > http://cargo codehaus org/JBoss+4 x> > > >> > > >> > > > Just google a little... ;-)> > > >> > > > Regards> > > >> > > > Daniele> > > >> > > > On 10/25/07. Catalin Croitoru <catalin croitoru@gmail com> wrote:> > > > >> > > > > Hi,> > > > >> > > > > do you have a pom example for starting an existing jboss 4.2.0with> > > > cargo?> > > > >> > > > > Thanks,> > > > >> > > > > Catalin> > > > >> > > > > On 10/25/07. Daniele De Francesco < ddefrancesco@gmail com>wrote:> > > > > >> > > > > > Hi,> > > > > > try using maven cargo plugin instead of the> > maven-jboss-plugin....> > > > > >> > > > > > * http://cargo* codehaus org/*Maven*2+*plugin*> > > > > >> > > > > > and for a necessary download and overview about what cargo is...> > > > > surprise> > > > > > surprise :)> > > > > >> > > > > > *http://cargo* codehaus org> > > > > >> > > > > > let me know...> > > > > >> > > > > > Daniele> > > > > >> > > > > > On 10/23/07. Mick Knutson <mickknutson@gmail com> wrote:> > > > > > >> > > > > > > btw if I start jboss manually then run the build the> > > application> > > > > gets> > > > > > > deployed fine.> > > > > > >> > > > > > > On 10/23/07. Mick Knutson <mickknutson@gmail com >wrote:> > > > > > > >> > > > > > > > I have the following declaration for jboss:> > > > > > > >> > > > > > > > <plugin>> > > > > > > > <groupId>org codehaus mojo</groupId>> > > > > > > > <artifactId>jboss-maven-plugin</artifactId>> > > > > > > > <configuration>> > > > > > > > <jbossHome>${env. JBOSS_HOME}</jbossHome>> > > > > > > > <port>8080</port>> > > > > > > > </configuration>> > > > > > > > <executions>> > > > > > > > <execution>> > > > > > > > <id>start-server</id>> > > > > > > > <phase>compile</phase>> > > > > > > > <goals>> > > > > > > > <goal>start</goal>> > > > > > > > </goals>> > > > > > > > </execution>> > > > > > > > <execution>> > > > > > > > <id>deploy-to-server</id>> > > > > > > > <phase>package</phase>> > > > > > > > <goals>> > > > > > > > <goal>deploy</goal>> > > > > > > > </goals>> > > > > > > > </execution>> > > > > > > > </executions>> > > > > > > > </plugin>> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > > I seem to get a note saying it is starting:> > > > > > > >> > > > > > > > [INFO] [jboss:start {execution: start-server}]> > > > > > > > [INFO] Starting JBoss...> > > > > > > > [INFO] [ear:ear]> > > > > > > >> > > > > > > >> > > > > > > > but when I go to deploy after packaging. I still geta> > > connection> > > > > > > refused:> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > > [INFO] Building jar:> > C:\opt\baselogic\yoursos\ear\target\ear-> > > > > > > > 1.0-SNAPSHOT ear> > > > > > > > [INFO] [jboss:deploy {execution: deploy-to-server}]> > > > > > > > [INFO] Deploying C:\opt\baselogic\yoursos\ear\target/ear-> > > > > > > 1.0-SNAPSHOT earto JBoss.> > > > > > > > [INFO] No server specified for authentication - using> > defaults> > > > > > > > [INFO]> > > > > > > >> > > > > >> > > >> > ------------------------------------------------------------------------> > > > > > > > [ERROR] BUILD ERROR> > > > > > > > [INFO]> > > > > > > >> > > > > >> > > >> > ------------------------------------------------------------------------> > > > > > > > [INFO] Mojo error occurred: Server returned HTTP response> > code:> > > > 500> > > > > > for> > > > > > > > URL:> > > > > > >> > > > > >> > > > >> > > >> > >> > http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> > jboss system:service%3DMainDeployer&methodName=deploy&argType=java net. URL&arg0=file:C:\opt\baselogic\yoursos\ear\target/ear-1.0-SNAPSHOT ear> > > > > > > >> > > > > > > > [INFO]> > > > > > > >> > > > > >> > > >> > ------------------------------------------------------------------------> > > > > > > > [INFO] Trace> > > > > > > > org apache maven lifecycle. LifecycleExecutionException:Mojo> > > error> > > > > > > > occurred: Server returned HTTP response code: 500for URL:> > > > > > > > http://localhost:8080/jm> > > > > > > > x-console/HtmlAdaptor?action=invokeOpByName&name=> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> > jboss system:service%3DMainDeployer&methodName=deploy&argType=java net. URL&arg0=file:C:\opt\baselogic> > > > > > > > \yoursos\ear\target/ear-1.0-SNAPSHOT ear> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > > is there something I am missing?> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > > --> > > > > > > >> > > > > > > > Thanks,> > > > > > > > Mick Knutson> > > > > > > >> > > > > > > > http://www baselogic com> > > > > > > > http://www blincmagazine com> > > > > > > > http://www djmick com> > > > > > > > http://www myspace com/mickknutson> > > > > > > > http://www myspace com/djmick_dot_com> > > > > > > > http://www myspace com/sexybeotches> > > > > > > > http://www thumpradio com> > > > > > > > ---> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > > --> > > > > > >> > > > > > > Thanks,> > > > > > > Mick Knutson> > > > > > >> > > > > > > http://www baselogic com> > > > > > > http://www blincmagazine com> > > > > > > http://www djmick com> > > > > > > http://www myspace com/mickknutson> > > > > > > http://www myspace com/djmick_dot_com> > > > > > > http://www myspace com/sexybeotches> > > > > > > http://www thumpradio com> > > > > > > ---> > > > > > >> > > > > >> > > > >> > > >> > >> > >> > >> > > --> > >> > > Thanks,> > > Mick Knutson> > >> > > http://www baselogic com> > > http://www blincmagazine com> > > http://www djmick com> > > http://www myspace com/mickknutson> > > http://www myspace com/djmick_dot_com> > > http://www myspace com/sexybeotches> > > http://www thumpradio com> > > ---> > >> >>>>> -->> Thanks,> Mick Knutson>> http://www baselogic com> http://www blincmagazine com> http://www djmick com> http://www myspace com/mickknutson> http://www myspace com/djmick_dot_com> http://www myspace com/sexybeotches> http://www thumpradio com> --->-- Thanks,Mick Knutsonhttp://www baselogic comhttp://www blincmagazine comhttp://www djmick comhttp://www myspace com/mickknutsonhttp://www myspace com/djmick_dot_comhttp://www myspace com/sexybeotcheshttp://www thumpradio com---
Forex Groups - Tips on Trading
Related article:
http://mail-archives.apache.org/mod_mbox/maven-users/200710.mbox/%3C4c30ee7d0710311549wf7a7961h6d38c8fe8f4f587f@mail.gmail.com%3E
comments | Add comment | Report as Spam
|