You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by lmk <lo...@yahoo.fr> on 2007/06/11 18:57:47 UTC
ClassCastException..probably a classpath pb
Hi!
Im trying to deploy a custom jass login module into tomcat server.this
module need a web service request for authentication.
the same code works fine where it's executed locally on Eclipse, but, when
I deploy a jar on server/lib folder for tomcat. i have the exception :
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.ClassCastException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException
at
org.apache.axis.deployment.wsdd.WSDDTargetedChain.makeNewInstance(WSDDTargetedChain.java:157)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
at
org.apache.axis.deployment.wsdd.WSDDDeployment.getTransport(WSDDDeployment.java:410)
at
org.apache.axis.configuration.FileProvider.getTransport(FileProvider.java:257)
at org.apache.axis.AxisEngine.getTransport(AxisEngine.java:332)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:163)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
--------------
have you any idea?
thanks !
--
View this message in context: http://www.nabble.com/ClassCastException..probably-a-classpath-pb-tf3902685.html#a11064305
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: ClassCastException..probably a classpath pb
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: lmk [mailto:lotfi65@yahoo.fr]
> Subject: Re: ClassCastException..probably a classpath pb
>
> Im using tomcat 5.5.
You most likely need to put your specialized jars in common/lib rather
than server/lib. Those in server/lib are not accessible to webapps.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: ClassCastException..probably a classpath pb
Posted by lmk <lo...@yahoo.fr>.
Im using tomcat 5.5.
message sent to axis users..
http://www.nabble.com/ClassCastException..probably-a-classpath-pb-tf3906084.html
here
best regards!
mgainty wrote:
>
> Please post this question to axis users group
> axis-user@ws.apache.org
>
> Bon Chance/
> Martin--
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed. If you have received this email message in error, please
> notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy. Thank you.
>
> ----- Original Message -----
> From: "lmk"
> To:
> Sent: Monday, June 11, 2007 12:57 PM
> Subject: ClassCastException..probably a classpath pb
>
>
>>
>> Hi!
>>
>> Im trying to deploy a custom jass login module into tomcat server.this
>> module need a web service request for authentication.
>> the same code works fine where it's executed locally on Eclipse, but,
>> when
>> I deploy a jar on server/lib folder for tomcat. i have the exception :
>>
>> AxisFault
>> faultCode:
>> {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>> faultSubcode:
>> faultString: java.lang.ClassCastException
>> faultActor:
>> faultNode:
>> faultDetail:
>> {http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException
>> at
>> org.apache.axis.deployment.wsdd.WSDDTargetedChain.makeNewInstance(WSDDTargetedChain.java:157)
>> at
>> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
>> at
>> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
>> at
>> org.apache.axis.deployment.wsdd.WSDDDeployment.getTransport(WSDDDeployment.java:410)
>> at
>> org.apache.axis.configuration.FileProvider.getTransport(FileProvider.java:257)
>> at org.apache.axis.AxisEngine.getTransport(AxisEngine.java:332)
>> at org.apache.axis.client.AxisClient.invoke(AxisClient.java:163)
>> at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
>> at org.apache.axis.client.Call.invoke(Call.java:2767)
>>
>> --------------
>>
>> have you any idea?
>>
>> thanks !
>>
>> --
>> View this message in context:
>> http://www.nabble.com/ClassCastException..probably-a-classpath-pb-tf3902685.html#a11064305
>> Sent from the Tomcat - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/ClassCastException..probably-a-classpath-pb-tf3902685.html#a11074428
Sent from the Tomcat - User mailing list archive at Nabble.com.
Re: ClassCastException..probably a classpath pb
Posted by Martin Gainty <mg...@hotmail.com>.
Please post this question to axis users group
axis-user@ws.apache.org
Bon Chance/
Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: "lmk" <lo...@yahoo.fr>
To: <us...@tomcat.apache.org>
Sent: Monday, June 11, 2007 12:57 PM
Subject: ClassCastException..probably a classpath pb
>
> Hi!
>
> Im trying to deploy a custom jass login module into tomcat server.this
> module need a web service request for authentication.
> the same code works fine where it's executed locally on Eclipse, but,
> when
> I deploy a jar on server/lib folder for tomcat. i have the exception :
>
> AxisFault
> faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> faultSubcode:
> faultString: java.lang.ClassCastException
> faultActor:
> faultNode:
> faultDetail:
> {http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException
> at
> org.apache.axis.deployment.wsdd.WSDDTargetedChain.makeNewInstance(WSDDTargetedChain.java:157)
> at
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
> at
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
> at
> org.apache.axis.deployment.wsdd.WSDDDeployment.getTransport(WSDDDeployment.java:410)
> at
> org.apache.axis.configuration.FileProvider.getTransport(FileProvider.java:257)
> at org.apache.axis.AxisEngine.getTransport(AxisEngine.java:332)
> at org.apache.axis.client.AxisClient.invoke(AxisClient.java:163)
> at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
> at org.apache.axis.client.Call.invoke(Call.java:2767)
>
> --------------
>
> have you any idea?
>
> thanks !
>
> --
> View this message in context:
> http://www.nabble.com/ClassCastException..probably-a-classpath-pb-tf3902685.html#a11064305
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: ClassCastException..probably a classpath pb
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
lmk,
lmk wrote:
> I put axis jar inside server/lib directory. I tried to set classpath on the
> manifest file but it seems impossible to set axis jars inside the login
> module jar. its the appropriate location?
JAR manifests are ignored when deploying to a server, so any Class-Path
setting you have will not be used.
You still didn't post your Tomcat version. :(
You will probably want to cross-post this message to the AXIS mailing
list, as Martin pointed out.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGbeXl9CaO5/Lv0PARAjiCAJ45VmNiJkj7gUTTI9EwuuaoGyDtQgCglcBN
nXuneEqQKp+Y5x+VmC3Gy50=
=1cQ3
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: ClassCastException..probably a classpath pb
Posted by lmk <lo...@yahoo.fr>.
I put axis jar inside server/lib directory. I tried to set classpath on the
manifest file but it seems impossible to set axis jars inside the login
module jar.
its the appropriate location?
thanks
Christopher Schultz-2 wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> lmk,
>
> lmk wrote:
>> I'm trying to deploy a custom JAAS login module into tomcat server.
>> This module need a web service request for authentication. The same
>> code works fine where it's executed locally on Eclipse, but, when I
>> deploy a jar on server/lib folder for tomcat, i have the exception:
>
> If you are putting your authenticator into server/lib, where are you
> putting the AXIS libraries?
>
> What version of Tomcat are you using?
>
> - -chris
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGbb2c9CaO5/Lv0PARAuZuAKCasFdqu3WknkNZ8YCFSC2cYe5vhQCgt03e
> SEjlRa0SsNPMMlp20Zq4fcQ=
> =w2BW
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/ClassCastException..probably-a-classpath-pb-tf3902685.html#a11069840
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: ClassCastException..probably a classpath pb
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
lmk,
lmk wrote:
> I'm trying to deploy a custom JAAS login module into tomcat server.
> This module need a web service request for authentication. The same
> code works fine where it's executed locally on Eclipse, but, when I
> deploy a jar on server/lib folder for tomcat, i have the exception:
If you are putting your authenticator into server/lib, where are you
putting the AXIS libraries?
What version of Tomcat are you using?
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGbb2c9CaO5/Lv0PARAuZuAKCasFdqu3WknkNZ8YCFSC2cYe5vhQCgt03e
SEjlRa0SsNPMMlp20Zq4fcQ=
=w2BW
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org