Re: Get "java.lang.NoClassDefFoundError" though the class is in the classpath

2011-09-09 Thread Thomas Chang
ency. Cheers, Steve C On 09/09/2011, at 4:05 PM, Thomas Chang wrote: > But using the option -X doesn't tell me to move the into the > section, right? :-/ > > > > --- Wayne Fay schrieb am Do, 8.9.2011: > > Von: Wayne Fay > Betreff: Re: Get "java.lan

Re: Get "java.lang.NoClassDefFoundError" though the class is in the classpath

2011-09-08 Thread Thomas Chang
But using the option -X doesn't tell me to move the into the section, right? :-/ --- Wayne Fay schrieb am Do, 8.9.2011: Von: Wayne Fay Betreff: Re: Get "java.lang.NoClassDefFoundError" though the class is in the classpath An: "Maven Users List" Datum: Donnerstag, 8. September, 2011 22:49

Re: Get "java.lang.NoClassDefFoundError" though the class is in the classpath

2011-09-08 Thread Thomas Chang
Hi, You are right. After I move the dependency into the plugin section, it works. Many thanks! Thomas --- Wayne Fay schrieb am Mi, 7.9.2011: Von: Wayne Fay Betreff: Re: Get "java.lang.NoClassDefFoundError" though the class is in the classpath An: "Maven Users List" Datum: Mittwoch, 7. Sept

Re: Get "java.lang.NoClassDefFoundError" though the class is in the classpath

2011-09-08 Thread Thomas Chang
Hi, How do you mean "Move the dependency there"? I run the mvn -X and get followings: ... [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 0.12

Get "java.lang.NoClassDefFoundError" though the class is in the classpath

2011-09-07 Thread Thomas Chang
Hi all, As I run mvn clean install I got exception as follow: ... [INFO] BUILD FAILURE [INFO] [INFO] Total time: 0.937s [INFO] Finished at: Wed Sep 07 15:35:37 CEST 2011 [INFO] Final Memory: 8M/20M [INFO] ---

Cannot create class by using plugin 'wsimport'

2011-09-05 Thread Thomas Chang
Hi all, Formerly I use maven 2.8 and can create the stub class by using the plugin wsimport. Now I change to maven 3.0.3 but no stub class is create after I run mvn package. The plugin in my pom.xml looks as follow: ...                             org.eclipse.m2e                 lifecycle-map

RE: Error: Unable to read the metadata file for artifact 'net.java.dev.jets3t:jets3t:jar' ...

2008-08-23 Thread Thomas Chang
The method you told doesn't work. But I solved the problem in a different way as follow: I did as follow: 1. Goto http://s3browse.com/explore/maven.springframework.org/external/net/java/dev/jets3t/jets3t/0.5.1-20080115/ 2. Download the jets3t-0.5.1-20080115.jar and the .pom to my local repo.

Error: Unable to read the metadata file for artifact 'net.java.dev.jets3t:jets3t:jar' ...

2008-08-23 Thread Thomas Chang
Hi all, My pom.xml looks as follow: [code] http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>     4.0.0     TestSpringWS2     TestSpringWS2     Test Spr

Re: How to include the dependencies in the built jar?

2008-01-26 Thread Thomas Chang
Thanks! ** Wendy Smoak wrote: > On Jan 25, 2008 10:48 PM, Thomas Chang <[EMAIL PROTECTED]> wrote: > >> assumed we have a project with packaging jar. When we build the project with "mvn package", a jar is build. But the

Re: How to include the dependencies in the built jar?

2008-01-26 Thread Thomas Chang
such convention for a .jar file. If you use a maven package type of "war" or "ear" in the pom, then a .war or .ear does get created, and the dependencies are present. Regards, Simon On Sat, 2008-01-26 at 06:48 +0100, Thomas Chang wrote: > Hi all, > > assu

Re: A question about log4j and the location of "log4j.properties"

2008-01-26 Thread Thomas Chang
Hi Simon, thanks for the answer. And sorry, I will put my question by the mailinglist by logger. Regards Thomas Hi Thomas, On Sat, 2008-01-26 at 09:12 +0100, Thomas Chang wrote: > 1. > Where should I save the "log4j.propertie

A question about log4j and the location of "log4j.properties"

2008-01-26 Thread Thomas Chang
Hi all, 1. Where should I save the "log4j.properties"? I think it should be under /webapp//WEB-INF? 2. How can the program find this file (I mean how to write in the java)? Regards Thomas - Ihre erste Baustelle? Wissenswertes für

How to include the dependencies in the built jar?

2008-01-25 Thread Thomas Chang
Hi all, assumed we have a project with packaging jar. When we build the project with "mvn package", a jar is build. But the dependencies in the project are not included in the built jar. Is it possible to include the dependencies in the built jar? Regards Thomas --

Re: Again problem by using "mvn package..."

2008-01-17 Thread Thomas Chang
move the META-INF anywhere and move it back and run "mvn package", the META-INF is now in the classpath. You should look into target/youpomid directory: it is there. Jeff On Jan 17, 2008 2:38 PM, Thomas Chang <[EMAIL PROTECTED]> wrote: > Hi

Again problem by using "mvn package..."

2008-01-17 Thread Thomas Chang
Hi all, As I use the "mvn package" to build the war file, I find the directory of "META-INF" is not contained in the /classes. But when I simple use "Export.." in Eclipse, it is OK. Can someone tell me why? Maybe should set another options in the "pom.xml" Regards Thomas

Problem by deploying WAR to Tomcat by using "mvn deploy:deploy-file..."

2008-01-17 Thread Thomas Chang
Hi all, I have a WAR and I have no problem to deploy it to Tomcat manually. Then I try using "mvn tomcat:stop -Dmaven.tomcat.url=http://localhost:8585/manager"; to deploy it. Normally the WAR and all the directories and files will be copied to the webapps. But it's by me not the case. I ca

Re: Error by running "mvn package"

2008-01-17 Thread Thomas Chang
have a parent and child pom, you should have this in BOTH places. Regards, Mark Thomas Chang wrote: > Hi all, > > I use Eclipse Europa and I set both the JRE and compiler to JDK 1.5. But as I run "mvn oackage" I got error as follow: > > E:\Projekte\TestSpri

Error by running "mvn package"

2008-01-16 Thread Thomas Chang
Hi all, I use Eclipse Europa and I set both the JRE and compiler to JDK 1.5. But as I run "mvn oackage" I got error as follow: E:\Projekte\TestSpringToplinkFaceletsTomahawk\src\main\java\wei\spring\jsf\test\ DeleteDataFromTable.java:[18,20] generics are not supported in -source 1.3 (t

Where to find mirros for spring2?

2008-01-12 Thread Thomas Chang
HI all, I am looking for the mirrors for spring2. I've looked into several central mirrors but htey just have spring1. Somebody knows? Regards Thomas - Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker.

Where to find the mirror for spring*. jars?

2008-01-12 Thread Thomas Chang
Hi all, I use spring in my project. And I use maven2. In the "pom.xml" I have to set the version of the dependencies. I wonder where can I the mirror site which suply the spring*.jar with version number. I go to the spring homepage and there are different version of spring package. But eac

Re: How to deploy a non-maven-built WAR to Tomcat with MAVEN2?

2008-01-11 Thread Thomas Chang
th configuration to your other war and follow > these instructions: > http://mojo.codehaus.org/tomcat-maven-plugin/deployment.html#Deploying%20a%20WAR%20file > > Jeff > > > On Jan 11, 2008 3:43 PM, Thomas Chang wrote: > > > Hi all, > > > > We know we can deplo

Re: Error: Cannot invoke Tomcat manager by running tomcat:deploy

2008-01-11 Thread Thomas Chang
http://localhost:8080/manager/html and not *http://localhost:8080/manager* Jeff On Jan 11, 2008 3:04 PM, Thomas Chang wrote: > You are right. I change the "tomcat-users.xml" as you wrote, it runs. > Thank! > > But, if I open the Tomcat and go into the Manager page. When I

How to deploy a non-maven-built WAR to Tomcat with MAVEN2?

2008-01-11 Thread Thomas Chang
Hi all, We know we can deploy a maven-built war to Tomcat using "mvn tomcat:deploy". Now I have a WAR which is not built with maven2. That means it has no pom.xml. Can I even thoug use maven2 to deploy it to Tomcat? Regards Thomas - Heute schon einen

Re: Error: Cannot invoke Tomcat manager by running tomcat:deploy

2008-01-11 Thread Thomas Chang
TECTED]> schrieb: By default, the tomcat plugin uses admin as a user name and no password. If you don't specify them in your POM, your use modify your tomcat-users.xmlfile as follows: ** Jeff On Jan 11, 2008 2:36 PM, Thomas Chang wrote: > Now I change the &qu

Re: Error: Cannot invoke Tomcat manager by running tomcat:deploy

2008-01-11 Thread Thomas Chang
Now I change the "tomcat-users.xml" as follow, but it's the same. Jeff MAURY <[EMAIL PROTECTED]> schrieb: You must have the manager role so supply tomcat as user and password. Regards Jeff On Jan 11, 2008 2:03 PM, Thomas Chang wrote

Re: Error: Cannot invoke Tomcat manager by running tomcat:deploy

2008-01-11 Thread Thomas Chang
Sure. My "tomcat-users.xml" looks as follow. Is it OK? Jeff MAURY <[EMAIL PROTECTED]> schrieb: You must specify user and password because the manager application is protected by default. Jeff On Jan 11, 2008 1:27 PM, Thomas Chang wrote: > H

Error: Cannot invoke Tomcat manager by running tomcat:deploy

2008-01-11 Thread Thomas Chang
Hi all, I try to deploy a WAR to Tomcat using " mvn tomcat:deploy -Dmaven.tomcat.url=http://localhost:8585/manager";. But I got error as follow. What's wrong? [ERROR] BUILD ERROR [INFO] [INFO] Cannot invoke Tomcat manager

How to deploy WAR to Tomcat with MAVEN2?

2008-01-11 Thread Thomas Chang
Hi all, I use maven2. I wonder if there is a mvn-command which can deploy/reploy/delete the war to/from Tomcat? Regards - Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern.

A question about using BATCH to run mvn-commands

2008-01-10 Thread Thomas Chang
Hi all, My question seems has not so much to do with mvn. I want to deploy many jars onto the remote repository. I use the mvn-command as follow: deploy:deploy-file -Dfile=mytest-1.0.jar -DgroupId=mytest -DartifactId=mytest -Dversion=1.0 -Dpackaging=jar -Durl="file:sap-dev

Re: Error by running "Create a project" in "Maven in 5 Minutes"

2008-01-09 Thread Thomas Chang
You are right. :-) Wayne Fay <[EMAIL PROTECTED]> schrieb: Show us the command line you typed. It seems you might have mistyped something. Wayne On 1/9/08, Thomas Chang wrote: > Hi all, > > I try to create a project according to the "Maven in 5 Minutes" under

Error by running "Create a project" in "Maven in 5 Minutes"

2008-01-09 Thread Thomas Chang
Hi all, I try to create a project according to the "Maven in 5 Minutes" under http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html. The mirror in my "setting.xml" is the remote repository in the server machine. I got error as follow. But when I run using the central mirror,

RE: A question about using Mirrors for Repositories

2008-01-09 Thread Thomas Chang
y. It is much easier in use then a remote "local repository". Hth, Nick Stolwijk -Original Message- From: Thomas Chang [mailto:[EMAIL PROTECTED] Sent: Fri 1/4/2008 2:50 PM To: users@maven.apache.org Subject: Re: A question about using Mirrors for Repositories The mirror i

RE: A question about using Mirrors for Repositories

2008-01-09 Thread Thomas Chang
pository. It is much easier in use then a remote "local repository". Hth, Nick Stolwijk -Original Message- From: Thomas Chang [mailto:[EMAIL PROTECTED] Sent: Fri 1/4/2008 2:50 PM To: users@maven.apache.org Subject: Re: A question about using Mirrors for Repositories The mi

RE: A question about

2008-01-08 Thread Thomas Chang
stall-plugin/install-file-mojo.html [2] http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html -Original Message- From: Thomas Chang [mailto:[EMAIL PROTECTED] Sent: Tue 1/8/2008 9:37 AM To: users@maven.apache.org Subject: A question about Hi all, Formerly I u

A question about

2008-01-08 Thread Thomas Chang
Hi all, Formerly I use the maven1 and in the "project.xml" I have the as follow: jsf-facelets jsf-facelets 1.1.12 jar And in the repository the dir-structure looks as follow: /repo /jsf-facelets /jars --jsf-facelets-1.1.12.jar If I hav

Re: A question about setting in the POM.xml

2008-01-07 Thread Thomas Chang
Thanks! > Hi all, > > Formerly I used maven1 and I can use the in the project.xml as follow: > ... > > commons-logging > commons-logging > 1.0.4 > jar > > true > > > ... > > Now I use maven2. And I try to do the same in the POM.xml. B

Re: A question about setting in the POM.xml

2008-01-07 Thread Thomas Chang
What should I do now? Is there any replacement for ? properties aren't allowed in the section: http://maven.apache.org/pom.html http://maven.apache.org/maven-v4_0_0.xsd (schema) HTH > Hi all, > > Formerly I used maven1 and I can use the

A question about setting in the POM.xml

2008-01-07 Thread Thomas Chang
Hi all, Formerly I used maven1 and I can use the in the project.xml as follow: ... commons-logging commons-logging 1.0.4 jar true ... Now I use maven2. And I try to do the same in the POM.xml. But as I run mvn-command I get error as follow. If I take out the

RE: A question about using Mirrors for Repositories

2008-01-05 Thread Thomas Chang
a. But the archiva 1.0 needs jdk 1.5. That means I have to set the JAVA_HOME to point to the jdk 1.5. But many of my programms use jdk 1.4 and I can't change the JAVA_HOME to point to the jdk 1.4 Any sujestion? * -Original Message----- From: Thoma

RE: A question about using Mirrors for Repositories

2008-01-04 Thread Thomas Chang
hings like this. (Also not updating of snapshots on your own local repository). Please take a look at archiva or artifactory for your remote repository. It is much easier in use then a remote "local repository". Hth, Nick Stolwijk -Original Message- From: Thomas Chang [mai

Re: A question about using Mirrors for Repositories

2008-01-04 Thread Thomas Chang
The mirror is the repository on the remote server machine. What metadata files should I use? From this mirror I can download all the jars except those of "org\apache\maven\plugins". Looks like you are missing some metadata files in the mirro

A question about using Mirrors for Repositories

2008-01-04 Thread Thomas Chang
Hi all, I have a mirror in my "settings.xml" as follow: ... MyMirrorId * Dependencies for DKV Projects file:sap-dev/CVSREPO/CvsMaven ... I do so because I want to download the dependencies from the repository on the server machine. And this runs in most case OK. But in so

Re: Problem by Using Mirrors for Repositories

2008-01-03 Thread Thomas Chang
aus/plexus/plexus-interactiv ity-jline/1.0-alpha-5/plexus-interactivity-jline-1.0-alpha-5.pom 772b downloaded Wendy Smoak <[EMAIL PROTECTED]> schrieb: On Jan 3, 2008 11:07 AM, Thomas Chang wrote: > I set in my "settings.xml" my mirrors as follow: > ... > > But as I r

Problem by Using Mirrors for Repositories

2008-01-03 Thread Thomas Chang
Hi all, I set in my "settings.xml" my mirrors as follow: ... MyRepo * My repository on remote server file:sap-dev/CVSREPOS/CvsMaven ... But as I run maven command such as mvn clean, it download the dependencies not from my mirror but from central. The

RE: How do I deploy my jar in my remote repository?

2008-01-03 Thread Thomas Chang
Sorry, I find the mvn command: mvn deploy But I got error as I run it: E:\Projekte\TestMavenConfig>mvn deploy [INFO] Scanning for projects... [INFO] - --- [INFO] Building Test Maven COnfig using Injecting POM Prop

How do I deploy my jar in my remote repository?

2008-01-03 Thread Thomas Chang
Hi all, I try to deploy my jar in remote server according to http://maven.apache.org/guides/getting-started/index.html#How_do_I_deploy_my_jar_in_my_remote_repository. But I couldn't find the mvn command to do this. Someone knows? Thomas -

Re: How to take out the profiles out of "settings.xml"?

2008-01-03 Thread Thomas Chang
s With Maven ebook, section 3.8 "Using Profiles". + And many other places. Wayne On 1/2/08, Jeff MAURY <[EMAIL PROTECTED]> wrote: > You can leave the profiles in settings.xml and activate them with the -P > option of the maven command line. > > Jeff > > > On J

Re: How to configure the location of "settings.xml"?

2008-01-02 Thread Thomas Chang
ttings.xml file etc. Wayne On 1/2/08, Erez Nahir <[EMAIL PROTECTED]> wrote: > you can use mvn -s < Alternate path for the user settings file > > > Erez. > > On Jan 2, 2008 5:05 PM, Thomas Chang <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > N

How to take out the profiles out of "settings.xml"?

2008-01-02 Thread Thomas Chang
Hi all, Notmally the "settings.xml" has the element of and . Now I want to take these out of the "settings.xml" and put them into another file. How to do so? Regards Thomas - Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie

Re: How to configure the location of "settings.xml"?

2008-01-02 Thread Thomas Chang
Thanks for the reply. But I think this way is a little bit complecated since everytime you run mvn you have to type the alternate path. ** you can use mvn -s < Alternate path for the user settings file > Erez. On Jan 2, 2008 5:05 PM, Thomas Chang &

How to configure the location of "settings.xml"?

2008-01-02 Thread Thomas Chang
Hi all, Normally the "settings.xml" is located under /m2_home/conf. Is it possible to move this file anywhere for example /myproject/conf? If yes, how? Regards Thomas - Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Si

Problem by injecting POM Properties via Settings.xml

2008-01-02 Thread Thomas Chang
Hi all, According to the link http://maven.apache.org/examples/injecting-properties-via-settings.html I do in my "pom.xml" and "settings.xml" followings: in the "pom.xml": = ... junit junit ${myversion} ... in the "settings.xml": ===

Re: A question about in in pom.xml

2008-01-02 Thread Thomas Chang
po1.maven.org/maven2) [INFO] My fault: the tag must be inside a profile and not at the level. Jeff On Jan 2, 2008 11:41 AM, Thomas Chang <[EMAIL PROTECTED]> wrote: > I think you mean: > > > > > Right? > > I put this at the end of &qu

Re: A question about in in pom.xml

2008-01-02 Thread Thomas Chang
\n\t... @240:14) Line: 240 Column: 14 E:\Projekte\TestXml> ** In your settings.xml files, insert the following code under the settings element: Jeff On Jan 2, 2008 11:12 AM, Thomas Chang <[EMAIL PROTECTED]> wrote: > Th

Re: A question about in in pom.xml

2008-01-02 Thread Thomas Chang
Thanks for the answer. Could you give an example how to set these properties in the settings.xml? :-/ *** Maven will do it automatically if you defines theses properties in your setting.xml files. Jeff On Jan 2, 2008 10:53 AM, Thomas Chang <[EM

A question about in in pom.xml

2008-01-02 Thread Thomas Chang
Hi all, Normally the in in pom.xml look as follow: junit junit 3.8.1 Now I want to do as follow: {my.junit.group} {my.junit.artifactId} {my.junit.version} The values of {my.junit.group} etc. will be defined in an other file. Now my question: How can I co

How to use the ?

2007-12-28 Thread Thomas Chang
Hi all, Normally the in the "pom.xml" looks as follow: ... junit junit 3.8.1 ... Now what I want to do is: I don't want to set the dependency version here but from a property file on the server maschine. And the "pom.xml" by local should look as follow: ... ...

Re: Problem by Using Mirrors for Repositories

2007-12-28 Thread Thomas Chang
You are right. Thanks! > Hi all, > > I set my "settings.xml" so it will download the dependencies not from the central (i.g. http://repo1.maven.org/maven2) but from my repository on the server maschine. > > The setting in my "settings.xml" looks as follow. > > Does someone kno

Problem by Using Mirrors for Repositories

2007-12-28 Thread Thomas Chang
Hi all, I set my "settings.xml" so it will download the dependencies not from the central (i.g. http://repo1.maven.org/maven2) but from my repository on the server maschine. The setting in my "settings.xml" looks as follow. Does someone know what's wrong? Regards Th

How to turn off the downloading of "http://repo1.maven.org/maven2..."?

2007-12-27 Thread Thomas Chang
Hi all, every time if I run mvn commands such as mvn eclipse:eclipse, it will download from the mirror site http://repo1.maven.org/maven2 How can I tuern off this so that it just looks for dependencies from my mirror site on the server maschine? Regards Thomas

Re: How to download dependencies just from the server repository?

2007-12-27 Thread Thomas Chang
quire dependencies. Wayne On 12/26/07, Thomas Chang <[EMAIL PROTECTED]> wrote: > Hi all, > Normally if I run the mvn eclipse:eclipse, it will download the dependencies from " http://repo1.maven.org/maven2/...";. Now, what I want to do is: if I run mvn command such as eclipse:ecl

How to download dependencies just from the server repository?

2007-12-26 Thread Thomas Chang
Hi all, Normally if I run the mvn eclipse:eclipse, it will download the dependencies from " http://repo1.maven.org/maven2/...";. Now, what I want to do is: if I run mvn command such as eclipse:eclipse, it will download the dependencies from repository on the server maschine. The advantage doin

A simple question

2007-10-11 Thread Thomas Chang
Dear all, I use maven2 with eclipse3.3. Now I want to run an application (or a class with main-function) which needs a file as input. This file "deploy.wsdd" locateds in package com.mytest. I configure the the run in eclipse by entering "${basedir}/src/main/java/com/mytest/deploy.wsdd". But as