You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Jeffrey Porter <PO...@WMGMAIL.wmg.warwick.ac.uk> on 2006/10/24 14:11:42 UTC

NoSuchMethodError when deployed in JBoss EAR

 

I get the following exception when deploying HTTP client in an EAR in
JBoss.

 

Anyone got any suggestions?

 

java.lang.NoSuchMethodError:
org.apache.commons.httpclient.HttpClient.getParams()Lorg/apache/commons/
httpclient/params/HttpClientParams;

        at
com.jeff.ConnectionController.setup(ConnectionController.java:153)

 

 

jeff porter


Re: NoSuchMethodError when deployed in JBoss EAR

Posted by Michael Becke <mb...@gmail.com>.
Very likely you have multiple versions of HttpClient on the classpath.
 I'm guessing one of them pre-3.0.

Mike

On 10/24/06, Jeffrey Porter <PO...@wmgmail.wmg.warwick.ac.uk> wrote:
> I was including all the libaraies for BIRT.
>
> Class-Path: lib/commons-httpclient-3.0.jar lib/axis.jar
> lib/com.ibm.icu_3.4.4.1.jar lib/commons-cli-1.0.jar
> lib/commons-codec-1.3.jar lib/commons-discovery-0.2.jar lib/coreapi.jar
> lib/dataadapterapi.jar lib/dteapi.jar lib/engineapi.jar lib/flute.jar
> lib/jaxrpc.jar lib/js.jar lib/modelapi.jar ETC ETC
>
> I suspect on of them is causing the problem. I've now remove a few that
> I don't think I need. Guess I'll find out later when I come to use them
> though.
>
> Jeff porter
>
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: 24 October 2006 14:13
> To: HttpClient User Discussion
> Subject: Re: NoSuchMethodError when deployed in JBoss EAR
>
> See: http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html
>
> Manifests allow continuation lines.
>
> Values can be up to 65535 bytes long.
>
> S.
> On 24/10/06, Jeffrey Porter <PO...@wmgmail.wmg.warwick.ac.uk> wrote:
> > It seems to be something to do with the MANIFEST.MF file's Class-path
> > being rather long.
> >
> > Guess its time to start compacting a few JAR's together.
> >
> > Jeff porter
> >
> >
> >
> > -----Original Message-----
> > From: Jeffrey Porter [mailto:PORTER_J@wmgmail.wmg.warwick.ac.uk]
> > Sent: 24 October 2006 13:12
> > To: HttpClient User Discussion
> > Subject: NoSuchMethodError when deployed in JBoss EAR
> >
> >
> >
> > I get the following exception when deploying HTTP client in an EAR in
> > JBoss.
> >
> >
> >
> > Anyone got any suggestions?
> >
> >
> >
> > java.lang.NoSuchMethodError:
> >
> org.apache.commons.httpclient.HttpClient.getParams()Lorg/apache/commons/
> > httpclient/params/HttpClientParams;
> >
> >        at
> > com.jeff.ConnectionController.setup(ConnectionController.java:153)
> >
> >
> >
> >
> >
> > jeff porter
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> httpclient-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


RE: NoSuchMethodError when deployed in JBoss EAR

Posted by Jeffrey Porter <PO...@WMGMAIL.wmg.warwick.ac.uk>.
I was including all the libaraies for BIRT.

Class-Path: lib/commons-httpclient-3.0.jar lib/axis.jar
lib/com.ibm.icu_3.4.4.1.jar lib/commons-cli-1.0.jar
lib/commons-codec-1.3.jar lib/commons-discovery-0.2.jar lib/coreapi.jar
lib/dataadapterapi.jar lib/dteapi.jar lib/engineapi.jar lib/flute.jar
lib/jaxrpc.jar lib/js.jar lib/modelapi.jar ETC ETC

I suspect on of them is causing the problem. I've now remove a few that
I don't think I need. Guess I'll find out later when I come to use them
though.

Jeff porter


-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: 24 October 2006 14:13
To: HttpClient User Discussion
Subject: Re: NoSuchMethodError when deployed in JBoss EAR

See: http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html

Manifests allow continuation lines.

Values can be up to 65535 bytes long.

S.
On 24/10/06, Jeffrey Porter <PO...@wmgmail.wmg.warwick.ac.uk> wrote:
> It seems to be something to do with the MANIFEST.MF file's Class-path
> being rather long.
>
> Guess its time to start compacting a few JAR's together.
>
> Jeff porter
>
>
>
> -----Original Message-----
> From: Jeffrey Porter [mailto:PORTER_J@wmgmail.wmg.warwick.ac.uk]
> Sent: 24 October 2006 13:12
> To: HttpClient User Discussion
> Subject: NoSuchMethodError when deployed in JBoss EAR
>
>
>
> I get the following exception when deploying HTTP client in an EAR in
> JBoss.
>
>
>
> Anyone got any suggestions?
>
>
>
> java.lang.NoSuchMethodError:
>
org.apache.commons.httpclient.HttpClient.getParams()Lorg/apache/commons/
> httpclient/params/HttpClientParams;
>
>        at
> com.jeff.ConnectionController.setup(ConnectionController.java:153)
>
>
>
>
>
> jeff porter
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
httpclient-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Re: NoSuchMethodError when deployed in JBoss EAR

Posted by sebb <se...@gmail.com>.
See: http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html

Manifests allow continuation lines.

Values can be up to 65535 bytes long.

S.
On 24/10/06, Jeffrey Porter <PO...@wmgmail.wmg.warwick.ac.uk> wrote:
> It seems to be something to do with the MANIFEST.MF file's Class-path
> being rather long.
>
> Guess its time to start compacting a few JAR's together.
>
> Jeff porter
>
>
>
> -----Original Message-----
> From: Jeffrey Porter [mailto:PORTER_J@wmgmail.wmg.warwick.ac.uk]
> Sent: 24 October 2006 13:12
> To: HttpClient User Discussion
> Subject: NoSuchMethodError when deployed in JBoss EAR
>
>
>
> I get the following exception when deploying HTTP client in an EAR in
> JBoss.
>
>
>
> Anyone got any suggestions?
>
>
>
> java.lang.NoSuchMethodError:
> org.apache.commons.httpclient.HttpClient.getParams()Lorg/apache/commons/
> httpclient/params/HttpClientParams;
>
>        at
> com.jeff.ConnectionController.setup(ConnectionController.java:153)
>
>
>
>
>
> jeff porter
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


RE: NoSuchMethodError when deployed in JBoss EAR

Posted by Jeffrey Porter <PO...@WMGMAIL.wmg.warwick.ac.uk>.
It seems to be something to do with the MANIFEST.MF file's Class-path
being rather long.

Guess its time to start compacting a few JAR's together.

Jeff porter



-----Original Message-----
From: Jeffrey Porter [mailto:PORTER_J@wmgmail.wmg.warwick.ac.uk] 
Sent: 24 October 2006 13:12
To: HttpClient User Discussion
Subject: NoSuchMethodError when deployed in JBoss EAR

 

I get the following exception when deploying HTTP client in an EAR in
JBoss.

 

Anyone got any suggestions?

 

java.lang.NoSuchMethodError:
org.apache.commons.httpclient.HttpClient.getParams()Lorg/apache/commons/
httpclient/params/HttpClientParams;

        at
com.jeff.ConnectionController.setup(ConnectionController.java:153)

 

 

jeff porter


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org