You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by 9-...@faa.gov on 2011/01/06 19:54:35 UTC

No Content-type in the header

I'm not sure this is a Tomcat issue but I'll explain why I'm posting it 
here shortly.

When I execute a very simple Java console web service client I get the 
following:

Exception in thread "main" javax.xml.ws.WebServiceException: No 
Content-type in the header!

The web service is deployed to Tomcat 6.0.

The reason I'm asking this here is because I've seen many posts on the net 
for this same problem when the web service is deployed to JBoss.  The 
solution to this problem is the following:

.....the following libraries (found in JBOSS_HOME/common/lib) had to be 
moved to the endorsed folder (JBOSS_HOME/lib/endorsed).

jbossws-native-jaxrpc.jar
jbossws-native-jaxws.jar
jbossws-native-jaxws-ext.jar
jbossws-native-saaj.jar

I was wondering if there is a similar problem for Tomcat.  I have found 
nothing specific on the net for this particular problem on Tomcat.

Thanks

RE: No Content-type in the header

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Christopher Schultz [mailto:chris@christopherschultz.net] 
> Subject: Re: No Content-type in the header

> 9-ACT-SWIM-SIF-LAB,
>
> (Ever have trouble when filling-out forms?)
>
> On 1/6/2011 1:54 PM, 9-ACT-SWIM-SIF-LAB@faa.gov wrote:

Speaking as a licensed pilot, I can state unequivocally that the FAA has no problem in *creating* forms...

 - 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.


Re: No Content-type in the header

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

To whom it may concern,

On 1/7/2011 11:37 AM, 9-ACT-SWIM-SIF-LAB@faa.gov wrote:
> Don't understand the forms question.  Can you be more specific?

I was joking that you didn't identify yourself in any way other than
your email address, which is pretty generic.

> Tomcat Version: 6.0.29
> JVM Version: 1.6.0_22

Ok, thanks.

> C:\>java -jar TomcatClient.jar
> Exception in thread "main" javax.xml.ws.WebServiceException: No 
> Content-type in the header!
> at 
> com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(Unknown 
> Source)
> at 
> com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(Unknown 
> Source)
> at 
> com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(Unknown 
> Source)
> at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Unknown Source)
> at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Unknown Source)
> at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Unknown Source)
> at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Unknown Source)
> at com.sun.xml.internal.ws.client.Stub.process(Unknown Source)
> at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(Unknown Source)
> at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown 
> Source)
> at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown 
> Source)
> at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(Unknown Source)
> at $Proxy28.sayHello(Unknown Source)
> at gov.faa.soa.testing.Client.main(Client.java:8)

So, the server isn't returning a Content-Type. What do you have running
on the server? Is it your own web service?

>> "Did you try it? It's 
>> pretty trivial to download Tomcat and deploy a web app onto it."
> 
> Did I try what, downloading Tomcat and deploying the web service?

Yes.

> If so the answer is yes, we are using the version of Tomcat I provided 
> above.  We deploy the web service directly from Eclipse when we build a 
> .war file from our project.  I have the export .war wizard write the file 
> directly to the Tomcat webapps folder.  We then startup Tomcat and then 
> run the client as an executable .jar.

Great. Does it run? I can't tell if this is an error report, or just
letting us know that under JBoss things don't work. Can you be explicit?
Does this work under Tomcat or not?

If it's not working, you should check a couple of things. First, use a
protocol sniffer to capture the HTTP conversation between client and
server, and post the conversation back to the list with an update.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0rWWIACgkQ9CaO5/Lv0PAEKACfdycQ9gl9M5aOIOhEug1CkeMA
HCsAn0p8Ci7vooZ9I6dJocuUKsV+vU1D
=VBu+
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: No Content-type in the header

Posted by 9-...@faa.gov.
Don't understand the forms question.  Can you be more specific?

Tomcat Version: 6.0.29
JVM Version: 1.6.0_22
Stack Trace:
C:\>java -jar TomcatClient.jar
Exception in thread "main" javax.xml.ws.WebServiceException: No 
Content-type in the header!
at 
com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(Unknown 
Source)
at 
com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(Unknown 
Source)
at 
com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(Unknown 
Source)
at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Unknown Source)
at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Unknown Source)
at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Unknown Source)
at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Unknown Source)
at com.sun.xml.internal.ws.client.Stub.process(Unknown Source)
at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(Unknown Source)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown 
Source)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown 
Source)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(Unknown Source)
at $Proxy28.sayHello(Unknown Source)
at gov.faa.soa.testing.Client.main(Client.java:8)

Don't understand this question either, sorry?  "Did you try it? It's 
pretty trivial to download Tomcat and deploy a web app onto it."

Did I try what, downloading Tomcat and deploying the web service?

If so the answer is yes, we are using the version of Tomcat I provided 
above.  We deploy the web service directly from Eclipse when we build a 
.war file from our project.  I have the export .war wizard write the file 
directly to the Tomcat webapps folder.  We then startup Tomcat and then 
run the client as an executable .jar.

If you were referring to something else, please let me know.

Thanks for your help.


From:
Christopher Schultz <ch...@christopherschultz.net>

To:
Tomcat Users List <us...@tomcat.apache.org>
Date:
01/07/2011 10:25 AM
Subject:
Re: No Content-type in the header



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

9-ACT-SWIM-SIF-LAB,

(Ever have trouble when filling-out forms?)

On 1/6/2011 1:54 PM, 9-ACT-SWIM-SIF-LAB@faa.gov wrote:
> When I execute a very simple Java console web service client I get the 
> following:
> 
> Exception in thread "main" javax.xml.ws.WebServiceException: No 
> Content-type in the header!

Please provide:
* complete Tomcat version (6.0 is not a valid version number)
* JVM version (JAVA-WS version if they are separate)
* full stack trace for your exception

> The solution to this problem is the following:
> 
> ...the following libraries (found in JBOSS_HOME/common/lib) had to be 
> moved to the endorsed folder (JBOSS_HOME/lib/endorsed).
> 
> jbossws-native-jaxrpc.jar
> jbossws-native-jaxws.jar
> jbossws-native-jaxws-ext.jar
> jbossws-native-saaj.jar
> 
> I was wondering if there is a similar problem for Tomcat.  I have found 
> nothing specific on the net for this particular problem on Tomcat.

Did you try it? It's pretty trivial to download Tomcat and deploy a web
app onto it.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0nMFoACgkQ9CaO5/Lv0PBeXgCfdVbPUX7glCqBu6iTWttKp4Lc
dPwAoI5GsSyzHjAXK9VHbb+JSgrXYwZF
=cDuS
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org




Re: No Content-type in the header

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

9-ACT-SWIM-SIF-LAB,

(Ever have trouble when filling-out forms?)

On 1/6/2011 1:54 PM, 9-ACT-SWIM-SIF-LAB@faa.gov wrote:
> When I execute a very simple Java console web service client I get the 
> following:
> 
> Exception in thread "main" javax.xml.ws.WebServiceException: No 
> Content-type in the header!

Please provide:
* complete Tomcat version (6.0 is not a valid version number)
* JVM version (JAVA-WS version if they are separate)
* full stack trace for your exception

> The solution to this problem is the following:
> 
> ...the following libraries (found in JBOSS_HOME/common/lib) had to be 
> moved to the endorsed folder (JBOSS_HOME/lib/endorsed).
> 
> jbossws-native-jaxrpc.jar
> jbossws-native-jaxws.jar
> jbossws-native-jaxws-ext.jar
> jbossws-native-saaj.jar
> 
> I was wondering if there is a similar problem for Tomcat.  I have found 
> nothing specific on the net for this particular problem on Tomcat.

Did you try it? It's pretty trivial to download Tomcat and deploy a web
app onto it.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0nMFoACgkQ9CaO5/Lv0PBeXgCfdVbPUX7glCqBu6iTWttKp4Lc
dPwAoI5GsSyzHjAXK9VHbb+JSgrXYwZF
=cDuS
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org