I think your problem is in the configuration of the WSDL2Java, not the
missing Jars.

"unknown protocol: c" is why the plugin is failing to execute. We need
to solve that problem.

Perhaps show us your pom file, specifically the section where you are
configuring WSDL2Java.

Wayne

On 5/31/07, xiaojie han <[EMAIL PROTECTED]> wrote:
I removed the folder .m2\repository\javax, add the dependency to
pom.xml.
here is what I got after run mvn install

**************************
C:\maven-2.0.5\sample code\Code_Ch04\daytrader>mvn install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   DayTrader :: Performance Benchmark Sample
[INFO]   DayTrader :: WS Application Client
[INFO]   DayTrader :: EJBs
[INFO]   DayTrader :: Web Application
[INFO]   DayTrader :: Quote Streamer
[INFO]   DayTrader :: Enterprise Application
[INFO] ----------------------------------------------------------------
[INFO] Building DayTrader :: Performance Benchmark Sample
[INFO]    task-segment: [install]
[INFO] ----------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing C:\maven-2.0.5\sample
code\Code_Ch04\daytrader\pom.xml to C:\Documents and Settings\Xiaojie
Han\.m2\repository\org\apache\geronimo\samples\daytrader\daytrader\1.0\daytrader-1.0.pom
[INFO] ----------------------------------------------------------------
[INFO] Building DayTrader :: WS Application Client
[INFO]    task-segment: [install]
[INFO] ----------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/javax/mail/mail/1.4/
mail-1.4.pom
993b downloaded
Downloading:
http://repo1.maven.org/maven2/javax/activation/activation/1.1/
activation-1.1.pom
1K downloaded
Downloading:
http://repo1.maven.org/maven2/javax/activation/activation/1.1/
activation-1.1.jar
61K downloaded
Downloading: http://repo1.maven.org/maven2/javax/mail/mail/1.4/
mail-1.4.jar
379K downloaded
[INFO] [axistools:wsdl2java {execution: default}]
[INFO] about to add compile source root
[INFO] processing wsdl: C:\maven-2.0.5\sample
code\Code_Ch04\daytrader\wsappclient\src\main\resources\META-INF\wsdl\
TradeServices.wsdl
May 31, 2007 8:23:14 AM org.apache.axis.utils.JavaUtils
isAttachmentSupported
WARNING: Unable to find required classes
(javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment support is disabled.
[INFO] ----------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ----------------------------------------------------------------
[INFO] error executing plugin

Embedded error: WSDL2Java execution failed
unknown protocol: c
[INFO] ----------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ----------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Thu May 31 08:23:14 CDT 2007
[INFO] Final Memory: 8M/15M
[INFO] ----------------------------------------------------------------

C:\maven-2.0.5\sample code\Code_Ch04\daytrader>

***************************

Basically, the error message stayed the same. Did I miss something
again?

thanks.

--- Thorsten Heit <[EMAIL PROTECTED]> wrote:

> Hi,
>
> > as I said, .m2\repository\javax exists or not will make no effect
> on
> > the mvn install.
> > 1. if no such directory, mvn install dailed.
> > 2. install those directory by hand, mvn install still failed.
> > 3. install those directory using mvn install:install-file ....,
> still
> > no luck.
>
> Can you try to remove the folder .m2/repository/javax, add the
> following dependency to your pom.xml and then try again?
>
> <dependency>
>    <groupId>javax.mail</groupId>
>    <artifactId>mail</artifactId>
>    <version>1.4</version>
> </dependency>
>
> <dependency>
>    <groupId>javax.activation</groupId>
>    <artifactId>activation</artifactId>
>    <version>1.1</version>
> </dependency>
>
> If you want to use other, older versions of javax.mail and
> javax.activation, then you should read the document "Coping with SUN
>
> JARs" ([1]) on the Maven website.
>
>
> [1]
> http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html
>
>
> HTH
>
> Thorsten
>




____________________________________________________________________________________
Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to