Cargo

Maven 1 plugin jar missing plugin.jelly file

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 0.7
  • Fix Version/s: 0.7
  • Component/s: Maven1
  • Labels:
    None
  • Environment:
    maven 1, jboss 3.2.7, cargo 0.7,
  • Tested on JDKs:
    1.4.2_08
  • Number of attachments :
    1

Description

I am unable to start the jboss container. Could someone please help.

I had added following to the project.properties file
cargo.containers=jboss
cargo.container.jboss.containerId=jboss3x
cargo.container.jboss.home=c:/MIDCJ2EEDS/jboss
cargo.container.jboss.config.type=standalone
cargo.container.jboss.config.dir=c:/MIDCJ2EEDS/jboss/server/default/conf
cargo.container.jboss.config.standalone.servlet.port=8080
cargo.container.jboss.config.standalone.logging=high

the error log is -
C:\MIDCJ2EEDS\workspace\BankApplication>maven -e cargo:start
__ __

\/ __ Apache_ ___
  \/ / ` \ V / -) ' \ ~ intelligent projects ~
_   _,_ _/___ _ _ v. 1.0.2

Plugin cache will be regenerated
org.apache.maven.MavenException: Error reading plugin script
at org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.j
ava:181)
at org.apache.maven.plugin.PluginManager.loadUncachedPlugins(PluginManag
er.java:239)
at org.apache.maven.plugin.PluginManager.initialize(PluginManager.java:3
04)
at org.apache.maven.MavenSession.initializePluginManager(MavenSession.ja
va:204)
at org.apache.maven.MavenSession.initialize(MavenSession.java:171)
at org.apache.maven.cli.App.doMain(App.java:475)
at org.apache.maven.cli.App.main(App.java:1239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
— Nested Exception —
java.io.FileNotFoundException: C:\Documents and Settings\pmishra\.maven\cache\ca
rgo-maven-plugin-0.7\plugin.jelly (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.j
ava:177)
at org.apache.maven.plugin.PluginManager.loadUncachedPlugins(PluginManag
er.java:239)
at org.apache.maven.plugin.PluginManager.initialize(PluginManager.java:3
04)
at org.apache.maven.MavenSession.initializePluginManager(MavenSession.ja
va:204)
at org.apache.maven.MavenSession.initialize(MavenSession.java:171)
at org.apache.maven.cli.App.doMain(App.java:475)
at org.apache.maven.cli.App.main(App.java:1239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)

If you require additional info, please advice.

Activity

Hide
Vincent Massol added a comment -

Hi Kumar,

This is strange. It looks as if the plugin is not correctly installed:

> java.io.FileNotFoundException: C:\Documents and Settings\pmishra\.maven\cache\cargo-maven-plugin-0.7\plugin.jelly (The system cannot find the file specified)

This seems to indicate that the plugin.jelly files cannot be found. Could you check it's there.

Also could you run with the debug flag (-X ) and attach the result?

Thanks

PS: I think using the cargo mailing list would be better to discuss this. This is not yet a confirmed bug. it could simply be an error on your setup

Show
Vincent Massol added a comment - Hi Kumar, This is strange. It looks as if the plugin is not correctly installed: > java.io.FileNotFoundException: C:\Documents and Settings\pmishra\.maven\cache\cargo-maven-plugin-0.7\plugin.jelly (The system cannot find the file specified) This seems to indicate that the plugin.jelly files cannot be found. Could you check it's there. Also could you run with the debug flag (-X ) and attach the result? Thanks PS: I think using the cargo mailing list would be better to discuss this. This is not yet a confirmed bug. it could simply be an error on your setup
Hide
Kumar Gopalani added a comment -

hi there,

thanks for your suggestion. I will post this issue with the user group as-well.

Meanwhile, I am copying below the contents with debug flag. You are right - it does not find the plugin.jelly file. Even if I manually download the plugin and install it, it does not hv the plugin.jelly file. I am using 0.7 version.
this seems vague to me. I must be missing something basic.

thanks -Kumar

Show
Kumar Gopalani added a comment - hi there, thanks for your suggestion. I will post this issue with the user group as-well. Meanwhile, I am copying below the contents with debug flag. You are right - it does not find the plugin.jelly file. Even if I manually download the plugin and install it, it does not hv the plugin.jelly file. I am using 0.7 version. this seems vague to me. I must be missing something basic. thanks -Kumar
Hide
Kumar Gopalani added a comment -

hi there,

thanks for your suggestion. I will post this issue with the user group as-well.

Meanwhile, I am attaching a file to this issue showing the contents with debug flag. You are right - it does not find the plugin.jelly file. Even if I manually download the plugin and install it, it does not hv the plugin.jelly file. I am using 0.7 version.
this seems vague to me. I must be missing something basic.

thanks -Kumar

Show
Kumar Gopalani added a comment - hi there, thanks for your suggestion. I will post this issue with the user group as-well. Meanwhile, I am attaching a file to this issue showing the contents with debug flag. You are right - it does not find the plugin.jelly file. Even if I manually download the plugin and install it, it does not hv the plugin.jelly file. I am using 0.7 version. this seems vague to me. I must be missing something basic. thanks -Kumar
Hide
Vincent Massol added a comment -

Hi Kumar,

I've confirmed this is real bug. Apparently we've had an issue when creating the plugin package as it's missing plugin.jelly...

I'll redo the packging and re-release v0.7 of the plugin. Sorry for the trouble. I'll let you know once it's there.

Thanks

Show
Vincent Massol added a comment - Hi Kumar, I've confirmed this is real bug. Apparently we've had an issue when creating the plugin package as it's missing plugin.jelly... I'll redo the packging and re-release v0.7 of the plugin. Sorry for the trouble. I'll let you know once it's there. Thanks
Hide
Vincent Massol added a comment -

Fixed. I've redeployed the plugin on http://cargo.codehaus.org/dist2/org/codehaus/cargo/cargo-maven-plugin/0.7/cargo-maven-plugin-0.7.jar (clear your browser cache before downloading it again). The plugin will be on ibiblio in a few hours.

Thanks and sorry for the trouble.

Show
Vincent Massol added a comment - Fixed. I've redeployed the plugin on http://cargo.codehaus.org/dist2/org/codehaus/cargo/cargo-maven-plugin/0.7/cargo-maven-plugin-0.7.jar (clear your browser cache before downloading it again). The plugin will be on ibiblio in a few hours. Thanks and sorry for the trouble.
Hide
Vincent Massol added a comment -

Reopen to change summary to better reflect the issue

Show
Vincent Massol added a comment - Reopen to change summary to better reflect the issue
Hide
Vincent Massol added a comment -

Changed summary to better reflect the issue

Show
Vincent Massol added a comment - Changed summary to better reflect the issue
Hide
Kumar Gopalani added a comment -

thanks Vincent. This seems to be working....however inspite of a successful build message, I do not get anything on the browser on http://localhost:8080/

the properties that I use are -
cargo.containers=jboss
cargo.container.jboss.containerId=jboss3x
cargo.container.jboss.home=c:/MIDCJ2EEDS/jboss
cargo.container.jboss.config.type=standalone
cargo.container.jboss.config.dir=${maven.build.dir}/myTomcat/config
cargo.container.jboss.config.standalone.servlet.port=8280
cargo.container.jboss.config.standalone.logging=high

the log generated is -
C:\MIDCJ2EEDS\workspace\BankApplication>maven cargo:start
__ __

\/ __ Apache_ ___
  \/ / ` \ V / -) ' \ ~ intelligent projects ~
_   _,_ _/___ _ _ v. 1.0.2

build:start:

cargo:start:
[echo] ========
[echo] == Cargo initialization ...
[echo] == done.
[echo] ========
[echo] ========
[echo] == Loading configuration for container "jboss"...
[echo] == Container Type : jboss3x
[echo] == Configuration Type : standalone
[echo] == Configuration for container "jboss" loaded.
[echo] ========
[echo] == Starting container "jboss"...
[echo] == Container "jboss" started.
BUILD SUCCESSFUL
Total time: 29 seconds
Finished at: Wed Jan 18 17:38:10 GMT+05:30 2006

Show
Kumar Gopalani added a comment - thanks Vincent. This seems to be working....however inspite of a successful build message, I do not get anything on the browser on http://localhost:8080/ the properties that I use are - cargo.containers=jboss cargo.container.jboss.containerId=jboss3x cargo.container.jboss.home=c:/MIDCJ2EEDS/jboss cargo.container.jboss.config.type=standalone cargo.container.jboss.config.dir=${maven.build.dir}/myTomcat/config cargo.container.jboss.config.standalone.servlet.port=8280 cargo.container.jboss.config.standalone.logging=high the log generated is - C:\MIDCJ2EEDS\workspace\BankApplication>maven cargo:start __ __
\/ __ Apache_ ___
  \/ / ` \ V / -) ' \ ~ intelligent projects ~
_   _,_ _/___ _ _ v. 1.0.2
build:start: cargo:start: [echo] ======== [echo] == Cargo initialization ... [echo] == done. [echo] ======== [echo] ======== [echo] == Loading configuration for container "jboss"... [echo] == Container Type : jboss3x [echo] == Configuration Type : standalone [echo] == Configuration for container "jboss" loaded. [echo] ======== [echo] == Starting container "jboss"... [echo] == Container "jboss" started. BUILD SUCCESSFUL Total time: 29 seconds Finished at: Wed Jan 18 17:38:10 GMT+05:30 2006
Hide
Arnaud Heritier added a comment -

This is not related to this problem.
you must use the goal cargo:startAndWait
Please open a new issue if you have another problem.

Show
Arnaud Heritier added a comment - This is not related to this problem. you must use the goal cargo:startAndWait Please open a new issue if you have another problem.
Hide
Vincent Massol added a comment -

No please don't open any new issue!

As I've told you if you have questions please use the mailing list.

Thanks

Show
Vincent Massol added a comment - No please don't open any new issue! As I've told you if you have questions please use the mailing list. Thanks

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: