Error crux.war with Tomcat 7

7 views
Skip to first unread message

mohandes....@gmail.com

unread,
Feb 5, 2013, 6:39:09 AM2/5/13
to crux...@googlegroups.com
HI,
I downloaded Crux 2.0 alpha release with aggregation functions for cdh4.The problem is that when I put the war file in the apache-tomcat-7.0.22/webapps/, it dosn't start up again, and when I check the log file,it doesn't show any special error just the Web Ui indicates : Error,HTTP status 500
I think the war file has some problem maybe with it's libraries .

Does anyone know what the problem is ?

Farrokh

Sonal Goyal

unread,
Feb 5, 2013, 7:51:23 AM2/5/13
to crux...@googlegroups.com
Hi,

Could you just git clone and build with mvn -Dcdh4 package?  The target folder then contains the right war and jar which you can use. Let me know if your problem persists after that. 

--
You received this message because you are subscribed to the Google Groups "cruxUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cruxUsers+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Farrokh Shahriari

unread,
Feb 6, 2013, 2:21:19 AM2/6/13
to crux...@googlegroups.com
Tnx Sonal,
I got the git clone files,but when I've run the mvn command, got this error:
Error resolving version for plugin 'org.codehaus.mojo:build-helper-maven-plugin' from the repositories [local (/root/.m2/repository), central (http://repo.maven.apache.org/maven2)]: Plugin not found in any plugin repository -> [Help 1]

what's that & how can I fix it ?

Farrokh

Sonal Goyal

unread,
Feb 6, 2013, 2:51:10 AM2/6/13
to crux...@googlegroups.com
Which version of maven are you on?

Farrokh Shahriari

unread,
Feb 6, 2013, 2:58:18 AM2/6/13
to crux...@googlegroups.com
Apache Maven 3.0.4

Sonal Goyal

unread,
Feb 6, 2013, 3:13:07 AM2/6/13
to crux...@googlegroups.com
Could you please try adding <version>1.7</version> at line 570, after the plugin is defined and run again? 

Farrokh Shahriari

unread,
Feb 6, 2013, 3:20:49 AM2/6/13
to crux...@googlegroups.com
You mean that I should modify maven's setting.xml file ?
In other words,where should I change it ?

Sonal Goyal

unread,
Feb 6, 2013, 3:43:41 AM2/6/13
to crux...@googlegroups.com
crux/pom.xml

Farrokh Shahriari

unread,
Feb 6, 2013, 3:47:20 AM2/6/13
to crux...@googlegroups.com
Yeah, I added it and run this command :
mvn install:install-file -DgroupId=com.google.code -DartifactId=struts2-fullhibernatecore-plugin -Dversion=2.2.2-GA -Dpackaging=jar -Dfile=/etc/crux/crux/struts2-fullhibernatecore-plugin-2.2.2-GA.jar

and then got this messages :

[WARNING] Some problems were encountered while building the effective model for co.nubetech.crux:crux:war:2.0-alpha
[WARNING] The expression ${name} is deprecated. Please use ${project.name} instead.
[WARNING] The expression ${name} is deprecated. Please use ${project.name} instead.
[WARNING] 'dependencies.dependency.scope' for mysql:mysql-connector-java:jar must be one of [provided, compile, runtime, test, system] but is 'runtime,test'. @ line 353, column 11
[WARNING] 'dependencies.dependency.scope' for org.hibernate:hibernate-c3p0:jar must be one of [provided, compile, runtime, test, system] but is 'runtime,test'. @ line 359, column 11
[WARNING] 'dependencies.dependency.scope' for org.hibernate:hibernate-validator:jar must be one of [provided, compile, runtime, test, system] but is 'runtime,test'. @ line 371, column 11
[WARNING] 'dependencies.dependency.scope' for org.hibernate:hibernate-commons-annotations:jar must be one of [provided, compile, runtime, test, system] but is 'runtime,test'. @ line 377, column 11
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plugin-2.3.2.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-compiler-plugin:2.3.2: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2
Downloading: http://repo.maven.apache.org/maven2/org/mortbay/jetty/jetty-maven-plugin/8.0.1.v20110908/jetty-maven-plugin-8.0.1.v20110908.pom
[WARNING] Failed to retrieve plugin descriptor for org.mortbay.jetty:jetty-maven-plugin:8.0.1.v20110908: Plugin org.mortbay.jetty:jetty-maven-plugin:8.0.1.v20110908 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.mortbay.jetty:jetty-maven-plugin:jar:8.0.1.v20110908
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/sql-maven-plugin/1.5/sql-maven-plugin-1.5.pom
[WARNING] Failed to retrieve plugin descriptor for org.codehaus.mojo:sql-maven-plugin:1.5: Plugin org.codehaus.mojo:sql-maven-plugin:1.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:sql-maven-plugin:jar:1.5
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/cobertura-maven-plugin/2.5.1/cobertura-maven-plugin-2.5.1.pom
[WARNING] Failed to retrieve plugin descriptor for org.codehaus.mojo:cobertura-maven-plugin:2.5.1: Plugin org.codehaus.mojo:cobertura-maven-plugin:2.5.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:cobertura-maven-plugin:jar:2.5.1
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-2.3.2.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-jar-plugin:2.3.2: Plugin org.apache.maven.plugins:maven-jar-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-jar-plugin:jar:2.3.2
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-plugin-2.5.pom
... ... ...
[ERROR] No plugin found for prefix 'install' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/root/.m2/repository), central (http://repo.maven.apache.org/maven2)] -> [Help 1]



What do you think about it ?

Farrokh Shahriari

unread,
Feb 6, 2013, 3:50:06 AM2/6/13
to crux...@googlegroups.com
and also for running this command " mvn -Dcdh4 install" ,still got this error :


[WARNING] Some problems were encountered while building the effective model for co.nubetech.crux:crux:war:2.0-alpha
[WARNING] The expression ${name} is deprecated. Please use ${project.name} instead.
[WARNING] The expression ${name} is deprecated. Please use ${project.name} instead.
[WARNING] 'dependencies.dependency.scope' for mysql:mysql-connector-java:jar must be one of [provided, compile, runtime, test, system] but is 'runtime,test'. @ line 353, column 11
[WARNING] 'dependencies.dependency.scope' for org.hibernate:hibernate-c3p0:jar must be one of [provided, compile, runtime, test, system] but is 'runtime,test'. @ line 359, column 11
[WARNING] 'dependencies.dependency.scope' for org.hibernate:hibernate-validator:jar must be one of [provided, compile, runtime, test, system] but is 'runtime,test'. @ line 371, column 11
[WARNING] 'dependencies.dependency.scope' for org.hibernate:hibernate-commons-annotations:jar must be one of [provided, compile, runtime, test, system] but is 'runtime,test'. @ line 377, column 11
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building crux 2.0-alpha
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/cobertura-maven-plugin/2.5.1/cobertura-maven-plugin-2.5.1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.519s
[INFO] Finished at: Wed Feb 06 12:28:23 IRST 2013
[INFO] Final Memory: 4M/237M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.codehaus.mojo:cobertura-maven-plugin:2.5.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:cobertura-maven-plugin:jar:2.5.1: Could not transfer artifact org.codehaus.mojo:cobertura-maven-plugin:pom:2.5.1 from/to central (http://repo.maven.apache.org/maven2): Connection to http://repo.maven.apache.org refused: Connection refused -> [Help 1]

Sonal Goyal

unread,
Feb 6, 2013, 4:30:38 AM2/6/13
to crux...@googlegroups.com

Farrokh Shahriari

unread,
Feb 6, 2013, 4:48:47 AM2/6/13
to crux...@googlegroups.com
You are right,now my internet connection has problem.Whenever it has been fixed,I'll check that again and let you know.Thanks for giving your time to me.

Farrokh

Farrokh Shahriari

unread,
Feb 6, 2013, 5:43:26 AM2/6/13
to crux...@googlegroups.com
After that my internet connection is fixed,still got the same error :

[ERROR] Plugin org.apache.maven.plugins:maven-install-plugin:2.3.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-install-plugin:jar:2.3.1: Failure to find org.apache.maven.plugins:maven-install-plugin:pom:2.3.1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

I can ping 2 websites without http:// .

Farrokh Shahriari

unread,
Feb 6, 2013, 7:20:22 AM2/6/13
to crux...@googlegroups.com
I can fi xthat problem & download from maven repos.
I ran mvn -Dcdh4 install
& after downloading for a while ( about 30 mins),I got this message: I'm getting confused,what is the problem ?

[ERROR] Failed to execute goal on project crux: Could not resolve dependencies for
 project co.nubetech.crux:crux:war:2.0-alpha: Could not transfer artifact org.apache.hadoop:hadoop-hdfs:jar:2.0.0-cdh4.0.1 from/to Cloudera
(https://repository.cloudera.com/artifactory/cloudera-repos/): GET request of: org/apache/hadoop/hadoop-hdfs/2.0.0-cdh4.0.1/hadoop-hdfs-2.0.0-cdh4.0.1.jar
from Cloudera failed: Premature end of Content-Length delimited message body (expected: 3902272; received: 2998272 -> [Help 1]

Sonal Goyal

unread,
Feb 6, 2013, 11:24:41 AM2/6/13
to crux...@googlegroups.com
Can you try to add the artifact manually to your local maven repo? I think you are seeing some intermittent issues with the network and unable to download the dependencies. I am also attaching the crux.jar, you already downloaded the war from github. So maybe you can use these and skip the build.  
crux.jar
Reply all
Reply to author
Forward
0 new messages