You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by youhaodeyi <yo...@gmail.com> on 2010/03/08 06:08:30 UTC
Maven doesn't include
com.sun.xml.internal.messaging.saaj.client.p2p package?
I use Maven to compile my project but it shows an error the this package
"com.sun.xml.internal.messaging.saaj.client.p2p" cannot found.
I have searched that this package is in JDK and why maven can't find this
package?
thanks
--
View this message in context: http://old.nabble.com/Maven-doesn%27t-include-com.sun.xml.internal.messaging.saaj.client.p2p-package--tp27817140p27817140.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven doesn't include
com.sun.xml.internal.messaging.saaj.client.p2p package?
Posted by youhaodeyi <yo...@gmail.com>.
Yes I used "com.sun.xml.internal.messaging.saaj.client.p2p" package.
hgomez wrote:
>
> Did you use/reference com.sun.xml.internal.* classes from your application
> ?
>
> 2010/3/8 youhaodeyi <yo...@gmail.com>:
>>
>> Hi,
>>
>> I have tried to use system dependency but it doesn't work this time. The
>> pom.xml is shown below:
>>
>> <dependency>
>> <groupId>jdk</groupId>
>> <artifactId>jdk</artifactId>
>> <version>1.6.0</version>
>> <scope>system</scope>
>> <systemPath>${java.home}/lib/rt.jar</systemPath>
>> </dependency>
>>
>> I got the same error:
>> package com.sun.xml.internal.messaging.saaj.client.p2p doesn't exist
>>
>> thanks
>>
>>
>>
>>
>>
>> Wayne Fay wrote:
>>>
>>> On Sun, Mar 7, 2010 at 11:08 PM, youhaodeyi wrote:
>>>> I use Maven to compile my project but it shows an error the this
>>>> package
>>>> "com.sun.xml.internal.messaging.saaj.client.p2p" cannot found.
>>>
>>> You asked a nearly identical question almost 2 years ago. The answer
>>> today is no different from what you heard then (just stop using those
>>> internal jdk classes).
>>>
>>> Subject: Why can't Maven find
>>> com.sun.xml.internal.messaging.saaj.util.ByteOutputStream class?
>>> From: youhaodeyi
>>> Date: May 26, 2008 1:06:12 am
>>> List: org.apache.maven.users
>>>
>>> Wayne
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Maven-doesn%27t-include-com.sun.xml.internal.messaging.saaj.client.p2p-package--tp27817140p27818505.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/Maven-doesn%27t-include-com.sun.xml.internal.messaging.saaj.client.p2p-package--tp27817140p27830153.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven doesn't include com.sun.xml.internal.messaging.saaj.client.p2p
package?
Posted by Henri Gomez <he...@gmail.com>.
Did you use/reference com.sun.xml.internal.* classes from your application ?
2010/3/8 youhaodeyi <yo...@gmail.com>:
>
> Hi,
>
> I have tried to use system dependency but it doesn't work this time. The
> pom.xml is shown below:
>
> <dependency>
> <groupId>jdk</groupId>
> <artifactId>jdk</artifactId>
> <version>1.6.0</version>
> <scope>system</scope>
> <systemPath>${java.home}/lib/rt.jar</systemPath>
> </dependency>
>
> I got the same error:
> package com.sun.xml.internal.messaging.saaj.client.p2p doesn't exist
>
> thanks
>
>
>
>
>
> Wayne Fay wrote:
>>
>> On Sun, Mar 7, 2010 at 11:08 PM, youhaodeyi wrote:
>>> I use Maven to compile my project but it shows an error the this package
>>> "com.sun.xml.internal.messaging.saaj.client.p2p" cannot found.
>>
>> You asked a nearly identical question almost 2 years ago. The answer
>> today is no different from what you heard then (just stop using those
>> internal jdk classes).
>>
>> Subject: Why can't Maven find
>> com.sun.xml.internal.messaging.saaj.util.ByteOutputStream class?
>> From: youhaodeyi
>> Date: May 26, 2008 1:06:12 am
>> List: org.apache.maven.users
>>
>> Wayne
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
> --
> View this message in context: http://old.nabble.com/Maven-doesn%27t-include-com.sun.xml.internal.messaging.saaj.client.p2p-package--tp27817140p27818505.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven doesn't include com.sun.xml.internal.messaging.saaj.client.p2p
package?
Posted by Wayne Fay <wa...@gmail.com>.
> I have tried to use system dependency but it doesn't work this time. The
> pom.xml is shown below:
>
> I got the same error:
> package com.sun.xml.internal.messaging.saaj.client.p2p doesn't exist
And this is why you should not be using classes marked INTERNAL. Sun
makes NO guarantee about these classes/packages continuing to exist in
future JDK/JVM versions [1]. It is possible that this package was in
1.4/1.5 and was removed in 1.6 (or whatever JDK your java.home is
actually pointing to, impossible to tell).
Also, you need to stop using system-scoped dependencies. This is a bad
practice for a number of reasons.
Find another implementation of these classes you're using and add it
with a proper "compile" dependency.
[1] http://java.sun.com/products/jdk/faq/faq-sun-packages.html
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven doesn't include
com.sun.xml.internal.messaging.saaj.client.p2p package?
Posted by youhaodeyi <yo...@gmail.com>.
Hi,
I have tried to use system dependency but it doesn't work this time. The
pom.xml is shown below:
<dependency>
<groupId>jdk</groupId>
<artifactId>jdk</artifactId>
<version>1.6.0</version>
<scope>system</scope>
<systemPath>${java.home}/lib/rt.jar</systemPath>
</dependency>
I got the same error:
package com.sun.xml.internal.messaging.saaj.client.p2p doesn't exist
thanks
Wayne Fay wrote:
>
> On Sun, Mar 7, 2010 at 11:08 PM, youhaodeyi wrote:
>> I use Maven to compile my project but it shows an error the this package
>> "com.sun.xml.internal.messaging.saaj.client.p2p" cannot found.
>
> You asked a nearly identical question almost 2 years ago. The answer
> today is no different from what you heard then (just stop using those
> internal jdk classes).
>
> Subject: Why can't Maven find
> com.sun.xml.internal.messaging.saaj.util.ByteOutputStream class?
> From: youhaodeyi
> Date: May 26, 2008 1:06:12 am
> List: org.apache.maven.users
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/Maven-doesn%27t-include-com.sun.xml.internal.messaging.saaj.client.p2p-package--tp27817140p27818505.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven doesn't include com.sun.xml.internal.messaging.saaj.client.p2p
package?
Posted by Wayne Fay <wa...@gmail.com>.
On Sun, Mar 7, 2010 at 11:08 PM, youhaodeyi wrote:
> I use Maven to compile my project but it shows an error the this package
> "com.sun.xml.internal.messaging.saaj.client.p2p" cannot found.
You asked a nearly identical question almost 2 years ago. The answer
today is no different from what you heard then (just stop using those
internal jdk classes).
Subject: Why can't Maven find
com.sun.xml.internal.messaging.saaj.util.ByteOutputStream class?
From: youhaodeyi
Date: May 26, 2008 1:06:12 am
List: org.apache.maven.users
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org