Home » Eclipse Projects » Equinox » Exception during processing of http post
Exception during processing of http post [message #87945] |
Fri, 11 May 2007 06:49 |
Eclipse User |
|
|
|
Originally posted by: fireresq.embarqmail.com
I have an equinox 33M7 server running and everything is fine on Windows.
However when I run on Linux I get the following errors:
Exception in thread "SocketListener0-0" java.lang.NoClassDefFoundError:
javax/net/ssl/SSLSocket
at org.mortbay.http.HttpConnection.close(HttpConnection.java:26 9)
at org.mortbay.http.HttpConnection.destroy(HttpConnection.java: 1148)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 43)
at
org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
What confuses me is I am not even using SSL so why am I getting this error?
Most of the time I get this error some times the request goes through.
I am running CentOS for my Linux
Thanks in advance for any help!
Mark
|
|
| |
Re: Exception during processing of http post [message #88005 is a reply to message #87962] |
Fri, 11 May 2007 17:37 |
Eclipse User |
|
|
|
Originally posted by: fireresq.embarqmail.com
VM sun standard edition build 1.5.0_11-b03
I did a search for the class in eclipse and the only place I can find
the SSLSocket is in the JRESystemLibrary only I don't include it anywhere
Simon Kaegi wrote:
> Jetty has code in HttpConnection.close() that checks whether the underlying
> socket is an instance of SSLSocket.
> Unfortunately since this check is done in the HttpConnection superclass this
> dependency is brought in even if you're not using SSL.
>
> That said, I'm curious how the bundle is resolving because javax.net.ssl is
> a dependency.
> Do you know what VM and version is being used?
> Are you embedding the JSSE classes in a bundle somewhere?
>
> -Simon
>
> "Mark Russell" <fireresq@embarqmail.com> wrote in message
> news:f213mf$fgl$1@build.eclipse.org...
>> I have an equinox 33M7 server running and everything is fine on Windows.
>> However when I run on Linux I get the following errors:
>> Exception in thread "SocketListener0-0" java.lang.NoClassDefFoundError:
>> javax/net/ssl/SSLSocket
>> at org.mortbay.http.HttpConnection.close(HttpConnection.java:26 9)
>> at
>> org.mortbay.http.HttpConnection.destroy(HttpConnection.java: 1148)
>> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 43)
>> at
>> org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
>> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
>> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
>>
>> What confuses me is I am not even using SSL so why am I getting this
>> error?
>>
>> Most of the time I get this error some times the request goes through.
>>
>> I am running CentOS for my Linux
>>
>> Thanks in advance for any help!
>> Mark
>
>
|
|
| |
Re: Exception during processing of http post [message #89268 is a reply to message #88020] |
Fri, 01 June 2007 13:18 |
Eclipse User |
|
|
|
Originally posted by: fireresq.embarqmail.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I finally go back to this and tried what you asked.
the jsse.jar is on the boot classpath
I added the code to my start method of the activator class in the
application bundle like you asked and it could load the SSLSocket with
no problem but I still get the same exception.
Any more ideas?
here is what my ss looks like:
Framework is launched.
id State Bundle
0 ACTIVE org.eclipse.osgi_3.3.0.v20070430
1 ACTIVE org.eclipse.equinox.common_3.3.0.v20070426
2 ACTIVE org.eclipse.update.configurator_3.2.100.v20070430
3 ACTIVE org.eclipse.osgi.services_3.1.100.v20060918
4 ACTIVE javax.servlet_2.4.0.v200704241052
5 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.v20070402
6 ACTIVE org.apache.commons.logging_1.0.4.v200701082340
7 ACTIVE org.mortbay.jetty_5.1.11.v200701082340
8 ACTIVE org.eclipse.equinox.http.jetty_1.0.0.v20070427
9 ACTIVE org.eclipse.equinox.registry_3.3.0.v20070416
10 ACTIVE org.eclipse.equinox.http.registry_1.0.0.v20070326
11 ACTIVE com.google.gwt_0.6.0
12 ACTIVE com.instantiations.gwt.sample.client_0.6.0
Simon Kaegi wrote:
> Strange. It almost like jsse.jar isn't on your boot class path.
> It probably is but try "getprop sun.boot.class.path" ??
>
> You might also create a dummy bundle that tries something like
> context.getBundle().loadClass("javax.net.ssl.SSLSocket") as a sanity check
> and if it fails walk the class loader to try and figure out what's going on.
>
> -Simon
>
> "Mark Russell" <fireresq@embarqmail.com> wrote in message
> news:f229ki$j3e$1@build.eclipse.org...
>> VM sun standard edition build 1.5.0_11-b03
>> I did a search for the class in eclipse and the only place I can find
>> the SSLSocket is in the JRESystemLibrary only I don't include it anywhere
>>
>> Simon Kaegi wrote:
>>> Jetty has code in HttpConnection.close() that checks whether the
>>> underlying
>>> socket is an instance of SSLSocket.
>>> Unfortunately since this check is done in the HttpConnection superclass
>>> this
>>> dependency is brought in even if you're not using SSL.
>>>
>>> That said, I'm curious how the bundle is resolving because javax.net.ssl
>>> is
>>> a dependency.
>>> Do you know what VM and version is being used?
>>> Are you embedding the JSSE classes in a bundle somewhere?
>>>
>>> -Simon
>>>
>>> "Mark Russell" <fireresq@embarqmail.com> wrote in message
>>> news:f213mf$fgl$1@build.eclipse.org...
>>>> I have an equinox 33M7 server running and everything is fine on Windows.
>>>> However when I run on Linux I get the following errors:
>>>> Exception in thread "SocketListener0-0" java.lang.NoClassDefFoundError:
>>>> javax/net/ssl/SSLSocket
>>>> at org.mortbay.http.HttpConnection.close(HttpConnection.java:26 9)
>>>> at
>>>> org.mortbay.http.HttpConnection.destroy(HttpConnection.java: 1148)
>>>> at
>>>> org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 43)
>>>> at
>>>> org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
>>>> at
>>>> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
>>>> at
>>>> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
>>>>
>>>> What confuses me is I am not even using SSL so why am I getting this
>>>> error?
>>>>
>>>> Most of the time I get this error some times the request goes through.
>>>>
>>>> I am running CentOS for my Linux
>>>>
>>>> Thanks in advance for any help!
>>>> Mark
>>>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGYByfyHA2ZZVyicQRAmtAAJ9ZFAxCCK6l/jdLOpdw/fRsvursLgCb BNkv
jn8bOnRJ+K7SB68fUUWM0zg=
=Ywwc
-----END PGP SIGNATURE-----
|
|
| |
Re: Exception during processing of http post [message #89298 is a reply to message #89283] |
Fri, 01 June 2007 14:05 |
Eclipse User |
|
|
|
Originally posted by: fireresq.embarqmail.com
This is a multi-part message in MIME format.
--------------090809000203020109070803
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
here it is
Simon Kaegi wrote:
> Very strange.
> Can you attach the contents of a "getprop"
>
> "Mark Russell" <fireresq@embarqmail.com> wrote in message
> news:f3p685$iub$1@build.eclipse.org...
> I finally go back to this and tried what you asked.
>
> the jsse.jar is on the boot classpath
>
> I added the code to my start method of the activator class in the
> application bundle like you asked and it could load the SSLSocket with
> no problem but I still get the same exception.
>
> Any more ideas?
>
> here is what my ss looks like:
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE org.eclipse.osgi_3.3.0.v20070430
> 1 ACTIVE org.eclipse.equinox.common_3.3.0.v20070426
> 2 ACTIVE org.eclipse.update.configurator_3.2.100.v20070430
> 3 ACTIVE org.eclipse.osgi.services_3.1.100.v20060918
> 4 ACTIVE javax.servlet_2.4.0.v200704241052
> 5 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.v20070402
> 6 ACTIVE org.apache.commons.logging_1.0.4.v200701082340
> 7 ACTIVE org.mortbay.jetty_5.1.11.v200701082340
> 8 ACTIVE org.eclipse.equinox.http.jetty_1.0.0.v20070427
> 9 ACTIVE org.eclipse.equinox.registry_3.3.0.v20070416
> 10 ACTIVE org.eclipse.equinox.http.registry_1.0.0.v20070326
> 11 ACTIVE com.google.gwt_0.6.0
> 12 ACTIVE com.instantiations.gwt.sample.client_0.6.0
>
> Simon Kaegi wrote:
>>>> Strange. It almost like jsse.jar isn't on your boot class path.
>>>> It probably is but try "getprop sun.boot.class.path" ??
>>>>
>>>> You might also create a dummy bundle that tries something like
>>>> context.getBundle().loadClass("javax.net.ssl.SSLSocket") as a sanity
>>>> check
>>>> and if it fails walk the class loader to try and figure out what's going
>>>> on.
>>>>
>>>> -Simon
>>>>
>>>> "Mark Russell" <fireresq@embarqmail.com> wrote in message
>>>> news:f229ki$j3e$1@build.eclipse.org...
>>>>> VM sun standard edition build 1.5.0_11-b03
>>>>> I did a search for the class in eclipse and the only place I can find
>>>>> the SSLSocket is in the JRESystemLibrary only I don't include it
>>>>> anywhere
>>>>>
>>>>> Simon Kaegi wrote:
>>>>>> Jetty has code in HttpConnection.close() that checks whether the
>>>>>> underlying
>>>>>> socket is an instance of SSLSocket.
>>>>>> Unfortunately since this check is done in the HttpConnection superclass
>>>>>> this
>>>>>> dependency is brought in even if you're not using SSL.
>>>>>>
>>>>>> That said, I'm curious how the bundle is resolving because
>>>>>> javax.net.ssl
>>>>>> is
>>>>>> a dependency.
>>>>>> Do you know what VM and version is being used?
>>>>>> Are you embedding the JSSE classes in a bundle somewhere?
>>>>>>
>>>>>> -Simon
>>>>>>
>>>>>> "Mark Russell" <fireresq@embarqmail.com> wrote in message
>>>>>> news:f213mf$fgl$1@build.eclipse.org...
>>>>>>> I have an equinox 33M7 server running and everything is fine on
>>>>>>> Windows.
>>>>>>> However when I run on Linux I get the following errors:
>>>>>>> Exception in thread "SocketListener0-0"
>>>>>>> java.lang.NoClassDefFoundError:
>>>>>>> javax/net/ssl/SSLSocket
>>>>>>> at
>>>>>>> org.mortbay.http.HttpConnection.close(HttpConnection.java:26 9)
>>>>>>> at
>>>>>>> org.mortbay.http.HttpConnection.destroy(HttpConnection.java: 1148)
>>>>>>> at
>>>>>>> org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 43)
>>>>>>> at
>>>>>>> org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
>>>>>>> at
>>>>>>> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
>>>>>>> at
>>>>>>> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
>>>>>>>
>>>>>>> What confuses me is I am not even using SSL so why am I getting this
>>>>>>> error?
>>>>>>>
>>>>>>> Most of the time I get this error some times the request goes through.
>>>>>>>
>>>>>>> I am running CentOS for my Linux
>>>>>>>
>>>>>>> Thanks in advance for any help!
>>>>>>> Mark
>>>>
--------------090809000203020109070803
Content-Type: text/plain;
name="telnet.log"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="telnet.log"
osgi> getprop
java.vendor=Sun Microsystems Inc.
org.mortbay.log.LogFactory.noDiscovery=true
org.osgi.service.http.port=8080
sun.java.launcher=SUN_STANDARD
org.osgi.supports.framework.extension=true
sun.management.compiler=HotSpot Client Compiler
osgi.framework.beginningstartlevel=1
os.name=Linux
sun.boot.class.path=/opt/jdk1.5.0_11/jre/lib/rt.jar:/opt/jdk 1.5.0_11/jre/lib/i18n.jar:/opt/jdk1.5.0_11/jre/lib/sunrsasig n.jar:/opt/jdk1.5.0_
11/jre/lib/jsse.jar:/opt/jdk1.5.0_11/jre/lib/jce.jar:/opt/jd k1.5.0_11/jre/lib/charsets.jar:/opt/jdk1.5.0_11/jre/classes
osgi.ws=motif
java.vm.specification.vendor=Sun Microsystems Inc.
java.runtime.version=1.5.0_11-b03
osgi.noShutdown=true
user.name=markr
org.osgi.framework.system.packages=javax.accessibility,javax .activity,javax.crypto,javax.crypto.interfaces,javax.crypto. spec,javax.imageio,j
avax.imageio.event,javax.imageio.metadata,javax.imageio.plug ins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.i mageio.stream,javax.
management,javax.management.loading,javax.management.modelmb ean,javax.management.monitor,javax.management.openmbean,java x.management.relatio
n,javax.management.remote,javax.management.remote.rmi,javax. management.timer,javax.naming,javax.naming.directory,javax.n aming.event,javax.na
ming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.pri nt,javax.print.attribute,javax.print.attribute.standard,java x.print.event,javax.
rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.security.auth,javax. security.auth.callback,javax.security.auth.kerberos,javax.se curity.auth.login,ja
vax.security.auth.spi,javax.security.auth.x500,javax.securit y.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi .spi,javax.sound.sam
pled,javax.sound.sampled.spi,javax.sql,javax.sql.rowset,java x.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.s wing.border,javax.sw
ing.colorchooser,javax.swing.event,javax.swing.filechooser,j avax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.meta l,javax.swing.plaf.m
ulti,javax.swing.plaf.synth,javax.swing.table,javax.swing.te xt,javax.swing.text.html,javax.swing.text.html.parser,javax. swing.text.rtf,javax
..swing.tree,javax.swing.undo,javax.transaction,javax.transa ction.xa,javax.xml,javax.xml.datatype,javax.xml.namespace,ja vax.xml.parsers,javax
..xml.transform,javax.xml.transform.dom,javax.xml.transform. sax,javax.xml.transform.stream,javax.xml.validation,javax.xm l.xpath,org.ietf.jgss
,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable, org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg .CORBA.portable,org.
omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNamin g.NamingContextExtPackage,org.omg.CosNaming.NamingContextPac kage,org.omg.Dynamic
,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage, org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.Cod ecFactoryPackage,org
..omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInt erceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org. omg.PortableServer,or
g.omg.PortableServer.CurrentPackage,org.omg.PortableServer.P OAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.P ortableServer.portab
le,org.omg.PortableServer.ServantLocatorPackage,org.omg.Send ingContext,org.omg.stub.java.rmi,org.w3c.dom,org.w3c.dom.boo tstrap,org.w3c.dom.e
vents,org.w3c.dom.ls,org.xml.sax,org.xml.sax.ext,org.xml.sax .helpers
org.osgi.framework.language=en
user.language=en
org.osgi.framework.processor=i386
osgi.syspath=/opt/OSGi/eclipse/plugins
sun.boot.library.path=/opt/jdk1.5.0_11/jre/lib/i386
osgi.manifest.cache=/opt/OSGi/eclipse/configuration/org.ecli pse.osgi/manifests
osgi.compatibility.bootdelegation=false
eof=eof
java.version=1.5.0_11
org.osgi.framework.os.name=Linux
user.timezone=America/New_York
sun.arch.data.model=32
osgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.update.configurator@3:start, org.eclipse.osgi.services@start, javax.servlet@sta
rt, org.eclipse.equinox.http.servlet@start, org.apache.commons.logging@start, org.mortbay.jetty@start, org.eclipse.equinox.http.jetty@start,
org.eclipse.equinox.registry@start, org.eclipse.equinox.http.registry@start, org.eclipse.equinox.http.servlet@start, com.google.gwt@start,
com.instantiations.gwt.sample.client@start
java.endorsed.dirs=/opt/jdk1.5.0_11/jre/lib/endorsed
sun.cpu.isalist=
sun.jnu.encoding=UTF-8
file.encoding.pkg=sun.io
org.osgi.framework.vendor=Eclipse
file.separator=/
java.specification.name=Java Platform API Specification
java.class.version=49.0
user.country=US
java.home=/opt/jdk1.5.0_11/jre
osgi.os=linux
java.vm.info=mixed mode, sharing
os.version=2.6.9-42.0.10.EL
osgi.arch=x86
path.separator=:
java.vm.version=1.5.0_11-b03
org.osgi.supports.framework.fragment=true
osgi.console=8580
java.awt.printerjob=sun.print.PSPrinterJob
sun.io.unicode.encoding=UnicodeLittle
org.osgi.framework.version=1.4.0
osgi.install.area=file:/opt/OSGi/eclipse/plugins/
osgi.framework=file:/opt/OSGi/eclipse/plugins/org.eclipse.os gi_3.3.0.v20070430.jar
user.home=/home/markr
osgi.bundlestore=/opt/OSGi/eclipse/configuration/org.eclipse .osgi/bundles
java.specification.vendor=Sun Microsystems Inc.
osgi.nl=en_US
java.library.path=/opt/jdk1.5.0_11/jre/lib/i386/client:/opt/ jdk1.5.0_11/jre/lib/i386:/opt/jdk1.5.0_11/jre/../lib/i386
java.vendor.url=http://java.sun.com/
org.osgi.framework.os.version=2.6.9-42.0.10.EL
eclipse.startTime=1180706471416
java.vm.vendor=Sun Microsystems Inc.
eclipse.ignoreApp=true
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.class.path=plugins/org.eclipse.osgi_3.3.0.v20070430.jar
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.version=1.0
sun.cpu.endian=little
sun.os.patch.level=unknown
java.io.tmpdir=/tmp
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
os.arch=i386
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.ext.dirs=/opt/jdk1.5.0_11/jre/lib/ext
user.dir=/opt/OSGi/eclipse
org.osgi.supports.framework.requirebundle=true
osgi.clean=true
line.separator=
java.vm.name=Java HotSpot(TM) Client VM
eclipse.ee.install.verify=false
file.encoding=UTF-8
osgi.framework.version=3.3.0.v20070430
java.specification.version=1.5
org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSG i/Minimum-1.1,JRE-1.1,J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5
osgi.logfile=/opt/OSGi/eclipse/configuration/1180706471647.l og
osgi.configuration.area=file:/opt/OSGi/eclipse/configuration /
osgi> close
--------------090809000203020109070803--
|
|
|
Re: Exception during processing of http post [message #89358 is a reply to message #89298] |
Fri, 01 June 2007 14:32 |
Simon Kaegi Messages: 381 Registered: July 2009 |
Senior Member |
|
|
Ah...
I see the problem.
You're using an old version of the org.mortbay.jetty bundle.
Specifically that version lacks the imports for javax.net.ssl and a few
other packages.
Try updating to the latest version of that bundle from orbit [
http://download.eclipse.org/tools/orbit/downloads/ ]or get it from RC2.
-Simon
"Mark Russell" <fireresq@embarqmail.com> wrote in message
news:f3p901$1an$1@build.eclipse.org...
> here it is
>
> Simon Kaegi wrote:
>> Very strange.
>> Can you attach the contents of a "getprop"
>>
>> "Mark Russell" <fireresq@embarqmail.com> wrote in message
>> news:f3p685$iub$1@build.eclipse.org...
>> I finally go back to this and tried what you asked.
>>
>> the jsse.jar is on the boot classpath
>>
>> I added the code to my start method of the activator class in the
>> application bundle like you asked and it could load the SSLSocket with
>> no problem but I still get the same exception.
>>
>> Any more ideas?
>>
>> here is what my ss looks like:
>> Framework is launched.
>>
>> id State Bundle
>> 0 ACTIVE org.eclipse.osgi_3.3.0.v20070430
>> 1 ACTIVE org.eclipse.equinox.common_3.3.0.v20070426
>> 2 ACTIVE org.eclipse.update.configurator_3.2.100.v20070430
>> 3 ACTIVE org.eclipse.osgi.services_3.1.100.v20060918
>> 4 ACTIVE javax.servlet_2.4.0.v200704241052
>> 5 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.v20070402
>> 6 ACTIVE org.apache.commons.logging_1.0.4.v200701082340
>> 7 ACTIVE org.mortbay.jetty_5.1.11.v200701082340
>> 8 ACTIVE org.eclipse.equinox.http.jetty_1.0.0.v20070427
>> 9 ACTIVE org.eclipse.equinox.registry_3.3.0.v20070416
>> 10 ACTIVE org.eclipse.equinox.http.registry_1.0.0.v20070326
>> 11 ACTIVE com.google.gwt_0.6.0
>> 12 ACTIVE com.instantiations.gwt.sample.client_0.6.0
>>
>> Simon Kaegi wrote:
>>>>> Strange. It almost like jsse.jar isn't on your boot class path.
>>>>> It probably is but try "getprop sun.boot.class.path" ??
>>>>>
>>>>> You might also create a dummy bundle that tries something like
>>>>> context.getBundle().loadClass("javax.net.ssl.SSLSocket") as a sanity
>>>>> check
>>>>> and if it fails walk the class loader to try and figure out what's
>>>>> going
>>>>> on.
>>>>>
>>>>> -Simon
>>>>>
>>>>> "Mark Russell" <fireresq@embarqmail.com> wrote in message
>>>>> news:f229ki$j3e$1@build.eclipse.org...
>>>>>> VM sun standard edition build 1.5.0_11-b03
>>>>>> I did a search for the class in eclipse and the only place I can find
>>>>>> the SSLSocket is in the JRESystemLibrary only I don't include it
>>>>>> anywhere
>>>>>>
>>>>>> Simon Kaegi wrote:
>>>>>>> Jetty has code in HttpConnection.close() that checks whether the
>>>>>>> underlying
>>>>>>> socket is an instance of SSLSocket.
>>>>>>> Unfortunately since this check is done in the HttpConnection
>>>>>>> superclass
>>>>>>> this
>>>>>>> dependency is brought in even if you're not using SSL.
>>>>>>>
>>>>>>> That said, I'm curious how the bundle is resolving because
>>>>>>> javax.net.ssl
>>>>>>> is
>>>>>>> a dependency.
>>>>>>> Do you know what VM and version is being used?
>>>>>>> Are you embedding the JSSE classes in a bundle somewhere?
>>>>>>>
>>>>>>> -Simon
>>>>>>>
>>>>>>> "Mark Russell" <fireresq@embarqmail.com> wrote in message
>>>>>>> news:f213mf$fgl$1@build.eclipse.org...
>>>>>>>> I have an equinox 33M7 server running and everything is fine on
>>>>>>>> Windows.
>>>>>>>> However when I run on Linux I get the following errors:
>>>>>>>> Exception in thread "SocketListener0-0"
>>>>>>>> java.lang.NoClassDefFoundError:
>>>>>>>> javax/net/ssl/SSLSocket
>>>>>>>> at
>>>>>>>> org.mortbay.http.HttpConnection.close(HttpConnection.java:26 9)
>>>>>>>> at
>>>>>>>> org.mortbay.http.HttpConnection.destroy(HttpConnection.java: 1148)
>>>>>>>> at
>>>>>>>> org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 43)
>>>>>>>> at
>>>>>>>> org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
>>>>>>>> at
>>>>>>>> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
>>>>>>>> at
>>>>>>>> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
>>>>>>>>
>>>>>>>> What confuses me is I am not even using SSL so why am I getting
>>>>>>>> this
>>>>>>>> error?
>>>>>>>>
>>>>>>>> Most of the time I get this error some times the request goes
>>>>>>>> through.
>>>>>>>>
>>>>>>>> I am running CentOS for my Linux
>>>>>>>>
>>>>>>>> Thanks in advance for any help!
>>>>>>>> Mark
>>>>>
>
------------------------------------------------------------ --------------------
> osgi> getprop
> java.vendor=Sun Microsystems Inc.
> org.mortbay.log.LogFactory.noDiscovery=true
> org.osgi.service.http.port=8080
> sun.java.launcher=SUN_STANDARD
> org.osgi.supports.framework.extension=true
> sun.management.compiler=HotSpot Client Compiler
> osgi.framework.beginningstartlevel=1
> os.name=Linux
> sun.boot.class.path=/opt/jdk1.5.0_11/jre/lib/rt.jar:/opt/jdk 1.5.0_11/jre/lib/i18n.jar:/opt/jdk1.5.0_11/jre/lib/sunrsasig n.jar:/opt/jdk1.5.0_
> 11/jre/lib/jsse.jar:/opt/jdk1.5.0_11/jre/lib/jce.jar:/opt/jd k1.5.0_11/jre/lib/charsets.jar:/opt/jdk1.5.0_11/jre/classes
> osgi.ws=motif
> java.vm.specification.vendor=Sun Microsystems Inc.
> java.runtime.version=1.5.0_11-b03
> osgi.noShutdown=true
> user.name=markr
> org.osgi.framework.system.packages=javax.accessibility,javax .activity,javax.crypto,javax.crypto.interfaces,javax.crypto. spec,javax.imageio,j
> avax.imageio.event,javax.imageio.metadata,javax.imageio.plug ins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.i mageio.stream,javax.
> management,javax.management.loading,javax.management.modelmb ean,javax.management.monitor,javax.management.openmbean,java x.management.relatio
> n,javax.management.remote,javax.management.remote.rmi,javax. management.timer,javax.naming,javax.naming.directory,javax.n aming.event,javax.na
> ming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.pri nt,javax.print.attribute,javax.print.attribute.standard,java x.print.event,javax.
> rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.security.auth,javax. security.auth.callback,javax.security.auth.kerberos,javax.se curity.auth.login,ja
> vax.security.auth.spi,javax.security.auth.x500,javax.securit y.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi .spi,javax.sound.sam
> pled,javax.sound.sampled.spi,javax.sql,javax.sql.rowset,java x.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.s wing.border,javax.sw
> ing.colorchooser,javax.swing.event,javax.swing.filechooser,j avax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.meta l,javax.swing.plaf.m
> ulti,javax.swing.plaf.synth,javax.swing.table,javax.swing.te xt,javax.swing.text.html,javax.swing.text.html.parser,javax. swing.text.rtf,javax
> .swing.tree,javax.swing.undo,javax.transaction,javax.transac tion.xa,javax.xml,javax.xml.datatype,javax.xml.namespace,jav ax.xml.parsers,javax
> .xml.transform,javax.xml.transform.dom,javax.xml.transform.s ax,javax.xml.transform.stream,javax.xml.validation,javax.xml .xpath,org.ietf.jgss
> ,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable, org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg .CORBA.portable,org.
> omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNamin g.NamingContextExtPackage,org.omg.CosNaming.NamingContextPac kage,org.omg.Dynamic
> ,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage, org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.Cod ecFactoryPackage,org
> .omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInte rceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.o mg.PortableServer,or
> g.omg.PortableServer.CurrentPackage,org.omg.PortableServer.P OAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.P ortableServer.portab
> le,org.omg.PortableServer.ServantLocatorPackage,org.omg.Send ingContext,org.omg.stub.java.rmi,org.w3c.dom,org.w3c.dom.boo tstrap,org.w3c.dom.e
> vents,org.w3c.dom.ls,org.xml.sax,org.xml.sax.ext,org.xml.sax .helpers
> org.osgi.framework.language=en
> user.language=en
> org.osgi.framework.processor=i386
> osgi.syspath=/opt/OSGi/eclipse/plugins
> sun.boot.library.path=/opt/jdk1.5.0_11/jre/lib/i386
> osgi.manifest.cache=/opt/OSGi/eclipse/configuration/org.ecli pse.osgi/manifests
> osgi.compatibility.bootdelegation=false
> eof=eof
> java.version=1.5.0_11
> org.osgi.framework.os.name=Linux
> user.timezone=America/New_York
> sun.arch.data.model=32
> osgi.bundles=org.eclipse.equinox.common@2:start,
> org.eclipse.update.configurator@3:start, org.eclipse.osgi.services@start,
> javax.servlet@sta
> rt, org.eclipse.equinox.http.servlet@start,
> org.apache.commons.logging@start, org.mortbay.jetty@start,
> org.eclipse.equinox.http.jetty@start,
> org.eclipse.equinox.registry@start,
> org.eclipse.equinox.http.registry@start,
> org.eclipse.equinox.http.servlet@start, com.google.gwt@start,
> com.instantiations.gwt.sample.client@start
> java.endorsed.dirs=/opt/jdk1.5.0_11/jre/lib/endorsed
> sun.cpu.isalist=
> sun.jnu.encoding=UTF-8
> file.encoding.pkg=sun.io
> org.osgi.framework.vendor=Eclipse
> file.separator=/
> java.specification.name=Java Platform API Specification
> java.class.version=49.0
> user.country=US
> java.home=/opt/jdk1.5.0_11/jre
> osgi.os=linux
> java.vm.info=mixed mode, sharing
> os.version=2.6.9-42.0.10.EL
> osgi.arch=x86
> path.separator=:
> java.vm.version=1.5.0_11-b03
> org.osgi.supports.framework.fragment=true
> osgi.console=8580
> java.awt.printerjob=sun.print.PSPrinterJob
> sun.io.unicode.encoding=UnicodeLittle
> org.osgi.framework.version=1.4.0
> osgi.install.area=file:/opt/OSGi/eclipse/plugins/
> osgi.framework=file:/opt/OSGi/eclipse/plugins/org.eclipse.os gi_3.3.0.v20070430.jar
> user.home=/home/markr
> osgi.bundlestore=/opt/OSGi/eclipse/configuration/org.eclipse .osgi/bundles
> java.specification.vendor=Sun Microsystems Inc.
> osgi.nl=en_US
> java.library.path=/opt/jdk1.5.0_11/jre/lib/i386/client:/opt/ jdk1.5.0_11/jre/lib/i386:/opt/jdk1.5.0_11/jre/../lib/i386
> java.vendor.url=http://java.sun.com/
> org.osgi.framework.os.version=2.6.9-42.0.10.EL
> eclipse.startTime=1180706471416
> java.vm.vendor=Sun Microsystems Inc.
> eclipse.ignoreApp=true
> java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
> java.class.path=plugins/org.eclipse.osgi_3.3.0.v20070430.jar
> java.vm.specification.name=Java Virtual Machine Specification
> java.vm.specification.version=1.0
> sun.cpu.endian=little
> sun.os.patch.level=unknown
> java.io.tmpdir=/tmp
> java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
> os.arch=i386
> java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
> java.ext.dirs=/opt/jdk1.5.0_11/jre/lib/ext
> user.dir=/opt/OSGi/eclipse
> org.osgi.supports.framework.requirebundle=true
> osgi.clean=true
> line.separator=
> java.vm.name=Java HotSpot(TM) Client VM
> eclipse.ee.install.verify=false
> file.encoding=UTF-8
> osgi.framework.version=3.3.0.v20070430
> java.specification.version=1.5
> org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSG i/Minimum-1.1,JRE-1.1,J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5
> osgi.logfile=/opt/OSGi/eclipse/configuration/1180706471647.l og
> osgi.configuration.area=file:/opt/OSGi/eclipse/configuration /
> osgi> close
>
|
|
|
Re: Exception during processing of http post [message #89385 is a reply to message #89358] |
Fri, 01 June 2007 14:48 |
Eclipse User |
|
|
|
Originally posted by: fireresq.embarqmail.com
Thank you for your help and persistence on this issue.
I'll do that and let you know the results.
Simon Kaegi wrote:
> Ah...
> I see the problem.
> You're using an old version of the org.mortbay.jetty bundle.
> Specifically that version lacks the imports for javax.net.ssl and a few
> other packages.
>
> Try updating to the latest version of that bundle from orbit [
> http://download.eclipse.org/tools/orbit/downloads/ ]or get it from RC2.
>
> -Simon
>
> "Mark Russell" <fireresq@embarqmail.com> wrote in message
> news:f3p901$1an$1@build.eclipse.org...
>> here it is
>>
>> Simon Kaegi wrote:
>>> Very strange.
>>> Can you attach the contents of a "getprop"
>>>
>>> "Mark Russell" <fireresq@embarqmail.com> wrote in message
>>> news:f3p685$iub$1@build.eclipse.org...
>>> I finally go back to this and tried what you asked.
>>>
>>> the jsse.jar is on the boot classpath
>>>
>>> I added the code to my start method of the activator class in the
>>> application bundle like you asked and it could load the SSLSocket with
>>> no problem but I still get the same exception.
>>>
>>> Any more ideas?
>>>
>>> here is what my ss looks like:
>>> Framework is launched.
>>>
>>> id State Bundle
>>> 0 ACTIVE org.eclipse.osgi_3.3.0.v20070430
>>> 1 ACTIVE org.eclipse.equinox.common_3.3.0.v20070426
>>> 2 ACTIVE org.eclipse.update.configurator_3.2.100.v20070430
>>> 3 ACTIVE org.eclipse.osgi.services_3.1.100.v20060918
>>> 4 ACTIVE javax.servlet_2.4.0.v200704241052
>>> 5 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.v20070402
>>> 6 ACTIVE org.apache.commons.logging_1.0.4.v200701082340
>>> 7 ACTIVE org.mortbay.jetty_5.1.11.v200701082340
>>> 8 ACTIVE org.eclipse.equinox.http.jetty_1.0.0.v20070427
>>> 9 ACTIVE org.eclipse.equinox.registry_3.3.0.v20070416
>>> 10 ACTIVE org.eclipse.equinox.http.registry_1.0.0.v20070326
>>> 11 ACTIVE com.google.gwt_0.6.0
>>> 12 ACTIVE com.instantiations.gwt.sample.client_0.6.0
>>>
>>> Simon Kaegi wrote:
>>>>>> Strange. It almost like jsse.jar isn't on your boot class path.
>>>>>> It probably is but try "getprop sun.boot.class.path" ??
>>>>>>
>>>>>> You might also create a dummy bundle that tries something like
>>>>>> context.getBundle().loadClass("javax.net.ssl.SSLSocket") as a sanity
>>>>>> check
>>>>>> and if it fails walk the class loader to try and figure out what's
>>>>>> going
>>>>>> on.
>>>>>>
>>>>>> -Simon
>>>>>>
>>>>>> "Mark Russell" <fireresq@embarqmail.com> wrote in message
>>>>>> news:f229ki$j3e$1@build.eclipse.org...
>>>>>>> VM sun standard edition build 1.5.0_11-b03
>>>>>>> I did a search for the class in eclipse and the only place I can find
>>>>>>> the SSLSocket is in the JRESystemLibrary only I don't include it
>>>>>>> anywhere
>>>>>>>
>>>>>>> Simon Kaegi wrote:
>>>>>>>> Jetty has code in HttpConnection.close() that checks whether the
>>>>>>>> underlying
>>>>>>>> socket is an instance of SSLSocket.
>>>>>>>> Unfortunately since this check is done in the HttpConnection
>>>>>>>> superclass
>>>>>>>> this
>>>>>>>> dependency is brought in even if you're not using SSL.
>>>>>>>>
>>>>>>>> That said, I'm curious how the bundle is resolving because
>>>>>>>> javax.net.ssl
>>>>>>>> is
>>>>>>>> a dependency.
>>>>>>>> Do you know what VM and version is being used?
>>>>>>>> Are you embedding the JSSE classes in a bundle somewhere?
>>>>>>>>
>>>>>>>> -Simon
>>>>>>>>
>>>>>>>> "Mark Russell" <fireresq@embarqmail.com> wrote in message
>>>>>>>> news:f213mf$fgl$1@build.eclipse.org...
>>>>>>>>> I have an equinox 33M7 server running and everything is fine on
>>>>>>>>> Windows.
>>>>>>>>> However when I run on Linux I get the following errors:
>>>>>>>>> Exception in thread "SocketListener0-0"
>>>>>>>>> java.lang.NoClassDefFoundError:
>>>>>>>>> javax/net/ssl/SSLSocket
>>>>>>>>> at
>>>>>>>>> org.mortbay.http.HttpConnection.close(HttpConnection.java:26 9)
>>>>>>>>> at
>>>>>>>>> org.mortbay.http.HttpConnection.destroy(HttpConnection.java: 1148)
>>>>>>>>> at
>>>>>>>>> org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 43)
>>>>>>>>> at
>>>>>>>>> org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
>>>>>>>>> at
>>>>>>>>> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
>>>>>>>>> at
>>>>>>>>> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
>>>>>>>>>
>>>>>>>>> What confuses me is I am not even using SSL so why am I getting
>>>>>>>>> this
>>>>>>>>> error?
>>>>>>>>>
>>>>>>>>> Most of the time I get this error some times the request goes
>>>>>>>>> through.
>>>>>>>>>
>>>>>>>>> I am running CentOS for my Linux
>>>>>>>>>
>>>>>>>>> Thanks in advance for any help!
>>>>>>>>> Mark
>
>
> ------------------------------------------------------------ --------------------
>
>
>> osgi> getprop
>> java.vendor=Sun Microsystems Inc.
>> org.mortbay.log.LogFactory.noDiscovery=true
>> org.osgi.service.http.port=8080
>> sun.java.launcher=SUN_STANDARD
>> org.osgi.supports.framework.extension=true
>> sun.management.compiler=HotSpot Client Compiler
>> osgi.framework.beginningstartlevel=1
>> os.name=Linux
>> sun.boot.class.path=/opt/jdk1.5.0_11/jre/lib/rt.jar:/opt/jdk 1.5.0_11/jre/lib/i18n.jar:/opt/jdk1.5.0_11/jre/lib/sunrsasig n.jar:/opt/jdk1.5.0_
>> 11/jre/lib/jsse.jar:/opt/jdk1.5.0_11/jre/lib/jce.jar:/opt/jd k1.5.0_11/jre/lib/charsets.jar:/opt/jdk1.5.0_11/jre/classes
>> osgi.ws=motif
>> java.vm.specification.vendor=Sun Microsystems Inc.
>> java.runtime.version=1.5.0_11-b03
>> osgi.noShutdown=true
>> user.name=markr
>> org.osgi.framework.system.packages=javax.accessibility,javax .activity,javax.crypto,javax.crypto.interfaces,javax.crypto. spec,javax.imageio,j
>> avax.imageio.event,javax.imageio.metadata,javax.imageio.plug ins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.i mageio.stream,javax.
>> management,javax.management.loading,javax.management.modelmb ean,javax.management.monitor,javax.management.openmbean,java x.management.relatio
>> n,javax.management.remote,javax.management.remote.rmi,javax. management.timer,javax.naming,javax.naming.directory,javax.n aming.event,javax.na
>> ming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.pri nt,javax.print.attribute,javax.print.attribute.standard,java x.print.event,javax.
>> rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.security.auth,javax. security.auth.callback,javax.security.auth.kerberos,javax.se curity.auth.login,ja
>> vax.security.auth.spi,javax.security.auth.x500,javax.securit y.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi .spi,javax.sound.sam
>> pled,javax.sound.sampled.spi,javax.sql,javax.sql.rowset,java x.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.s wing.border,javax.sw
>> ing.colorchooser,javax.swing.event,javax.swing.filechooser,j avax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.meta l,javax.swing.plaf.m
>> ulti,javax.swing.plaf.synth,javax.swing.table,javax.swing.te xt,javax.swing.text.html,javax.swing.text.html.parser,javax. swing.text.rtf,javax
>> .swing.tree,javax.swing.undo,javax.transaction,javax.transac tion.xa,javax.xml,javax.xml.datatype,javax.xml.namespace,jav ax.xml.parsers,javax
>> .xml.transform,javax.xml.transform.dom,javax.xml.transform.s ax,javax.xml.transform.stream,javax.xml.validation,javax.xml .xpath,org.ietf.jgss
>> ,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable, org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg .CORBA.portable,org.
>> omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNamin g.NamingContextExtPackage,org.omg.CosNaming.NamingContextPac kage,org.omg.Dynamic
>> ,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage, org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.Cod ecFactoryPackage,org
>> .omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInte rceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.o mg.PortableServer,or
>> g.omg.PortableServer.CurrentPackage,org.omg.PortableServer.P OAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.P ortableServer.portab
>> le,org.omg.PortableServer.ServantLocatorPackage,org.omg.Send ingContext,org.omg.stub.java.rmi,org.w3c.dom,org.w3c.dom.boo tstrap,org.w3c.dom.e
>> vents,org.w3c.dom.ls,org.xml.sax,org.xml.sax.ext,org.xml.sax .helpers
>> org.osgi.framework.language=en
>> user.language=en
>> org.osgi.framework.processor=i386
>> osgi.syspath=/opt/OSGi/eclipse/plugins
>> sun.boot.library.path=/opt/jdk1.5.0_11/jre/lib/i386
>> osgi.manifest.cache=/opt/OSGi/eclipse/configuration/org.ecli pse.osgi/manifests
>> osgi.compatibility.bootdelegation=false
>> eof=eof
>> java.version=1.5.0_11
>> org.osgi.framework.os.name=Linux
>> user.timezone=America/New_York
>> sun.arch.data.model=32
>> osgi.bundles=org.eclipse.equinox.common@2:start,
>> org.eclipse.update.configurator@3:start, org.eclipse.osgi.services@start,
>> javax.servlet@sta
>> rt, org.eclipse.equinox.http.servlet@start,
>> org.apache.commons.logging@start, org.mortbay.jetty@start,
>> org.eclipse.equinox.http.jetty@start,
>> org.eclipse.equinox.registry@start,
>> org.eclipse.equinox.http.registry@start,
>> org.eclipse.equinox.http.servlet@start, com.google.gwt@start,
>> com.instantiations.gwt.sample.client@start
>> java.endorsed.dirs=/opt/jdk1.5.0_11/jre/lib/endorsed
>> sun.cpu.isalist=
>> sun.jnu.encoding=UTF-8
>> file.encoding.pkg=sun.io
>> org.osgi.framework.vendor=Eclipse
>> file.separator=/
>> java.specification.name=Java Platform API Specification
>> java.class.version=49.0
>> user.country=US
>> java.home=/opt/jdk1.5.0_11/jre
>> osgi.os=linux
>> java.vm.info=mixed mode, sharing
>> os.version=2.6.9-42.0.10.EL
>> osgi.arch=x86
>> path.separator=:
>> java.vm.version=1.5.0_11-b03
>> org.osgi.supports.framework.fragment=true
>> osgi.console=8580
>> java.awt.printerjob=sun.print.PSPrinterJob
>> sun.io.unicode.encoding=UnicodeLittle
>> org.osgi.framework.version=1.4.0
>> osgi.install.area=file:/opt/OSGi/eclipse/plugins/
>> osgi.framework=file:/opt/OSGi/eclipse/plugins/org.eclipse.os gi_3.3.0.v20070430.jar
>> user.home=/home/markr
>> osgi.bundlestore=/opt/OSGi/eclipse/configuration/org.eclipse .osgi/bundles
>> java.specification.vendor=Sun Microsystems Inc.
>> osgi.nl=en_US
>> java.library.path=/opt/jdk1.5.0_11/jre/lib/i386/client:/opt/ jdk1.5.0_11/jre/lib/i386:/opt/jdk1.5.0_11/jre/../lib/i386
>> java.vendor.url=http://java.sun.com/
>> org.osgi.framework.os.version=2.6.9-42.0.10.EL
>> eclipse.startTime=1180706471416
>> java.vm.vendor=Sun Microsystems Inc.
>> eclipse.ignoreApp=true
>> java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
>> java.class.path=plugins/org.eclipse.osgi_3.3.0.v20070430.jar
>> java.vm.specification.name=Java Virtual Machine Specification
>> java.vm.specification.version=1.0
>> sun.cpu.endian=little
>> sun.os.patch.level=unknown
>> java.io.tmpdir=/tmp
>> java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
>> os.arch=i386
>> java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
>> java.ext.dirs=/opt/jdk1.5.0_11/jre/lib/ext
>> user.dir=/opt/OSGi/eclipse
>> org.osgi.supports.framework.requirebundle=true
>> osgi.clean=true
>> line.separator=
>> java.vm.name=Java HotSpot(TM) Client VM
>> eclipse.ee.install.verify=false
>> file.encoding=UTF-8
>> osgi.framework.version=3.3.0.v20070430
>> java.specification.version=1.5
>> org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSG i/Minimum-1.1,JRE-1.1,J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5
>> osgi.logfile=/opt/OSGi/eclipse/configuration/1180706471647.l og
>> osgi.configuration.area=file:/opt/OSGi/eclipse/configuration /
>> osgi> close
>>
>
>
|
|
|
Re: Exception during processing of http post [message #89431 is a reply to message #89358] |
Fri, 01 June 2007 15:11 |
Eclipse User |
|
|
|
Originally posted by: fireresq.embarqmail.com
Thank you very much. That worked. Sorry for not trying the latest
version before asking for help.
Simon Kaegi wrote:
> Ah...
> I see the problem.
> You're using an old version of the org.mortbay.jetty bundle.
> Specifically that version lacks the imports for javax.net.ssl and a few
> other packages.
>
> Try updating to the latest version of that bundle from orbit [
> http://download.eclipse.org/tools/orbit/downloads/ ]or get it from RC2.
>
> -Simon
>
> "Mark Russell" <fireresq@embarqmail.com> wrote in message
> news:f3p901$1an$1@build.eclipse.org...
>> here it is
>>
>> Simon Kaegi wrote:
>>> Very strange.
>>> Can you attach the contents of a "getprop"
>>>
>>> "Mark Russell" <fireresq@embarqmail.com> wrote in message
>>> news:f3p685$iub$1@build.eclipse.org...
>>> I finally go back to this and tried what you asked.
>>>
>>> the jsse.jar is on the boot classpath
>>>
>>> I added the code to my start method of the activator class in the
>>> application bundle like you asked and it could load the SSLSocket with
>>> no problem but I still get the same exception.
>>>
>>> Any more ideas?
>>>
>>> here is what my ss looks like:
>>> Framework is launched.
>>>
>>> id State Bundle
>>> 0 ACTIVE org.eclipse.osgi_3.3.0.v20070430
>>> 1 ACTIVE org.eclipse.equinox.common_3.3.0.v20070426
>>> 2 ACTIVE org.eclipse.update.configurator_3.2.100.v20070430
>>> 3 ACTIVE org.eclipse.osgi.services_3.1.100.v20060918
>>> 4 ACTIVE javax.servlet_2.4.0.v200704241052
>>> 5 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.v20070402
>>> 6 ACTIVE org.apache.commons.logging_1.0.4.v200701082340
>>> 7 ACTIVE org.mortbay.jetty_5.1.11.v200701082340
>>> 8 ACTIVE org.eclipse.equinox.http.jetty_1.0.0.v20070427
>>> 9 ACTIVE org.eclipse.equinox.registry_3.3.0.v20070416
>>> 10 ACTIVE org.eclipse.equinox.http.registry_1.0.0.v20070326
>>> 11 ACTIVE com.google.gwt_0.6.0
>>> 12 ACTIVE com.instantiations.gwt.sample.client_0.6.0
>>>
>>> Simon Kaegi wrote:
>>>>>> Strange. It almost like jsse.jar isn't on your boot class path.
>>>>>> It probably is but try "getprop sun.boot.class.path" ??
>>>>>>
>>>>>> You might also create a dummy bundle that tries something like
>>>>>> context.getBundle().loadClass("javax.net.ssl.SSLSocket") as a sanity
>>>>>> check
>>>>>> and if it fails walk the class loader to try and figure out what's
>>>>>> going
>>>>>> on.
>>>>>>
>>>>>> -Simon
>>>>>>
>>>>>> "Mark Russell" <fireresq@embarqmail.com> wrote in message
>>>>>> news:f229ki$j3e$1@build.eclipse.org...
>>>>>>> VM sun standard edition build 1.5.0_11-b03
>>>>>>> I did a search for the class in eclipse and the only place I can find
>>>>>>> the SSLSocket is in the JRESystemLibrary only I don't include it
>>>>>>> anywhere
>>>>>>>
>>>>>>> Simon Kaegi wrote:
>>>>>>>> Jetty has code in HttpConnection.close() that checks whether the
>>>>>>>> underlying
>>>>>>>> socket is an instance of SSLSocket.
>>>>>>>> Unfortunately since this check is done in the HttpConnection
>>>>>>>> superclass
>>>>>>>> this
>>>>>>>> dependency is brought in even if you're not using SSL.
>>>>>>>>
>>>>>>>> That said, I'm curious how the bundle is resolving because
>>>>>>>> javax.net.ssl
>>>>>>>> is
>>>>>>>> a dependency.
>>>>>>>> Do you know what VM and version is being used?
>>>>>>>> Are you embedding the JSSE classes in a bundle somewhere?
>>>>>>>>
>>>>>>>> -Simon
>>>>>>>>
>>>>>>>> "Mark Russell" <fireresq@embarqmail.com> wrote in message
>>>>>>>> news:f213mf$fgl$1@build.eclipse.org...
>>>>>>>>> I have an equinox 33M7 server running and everything is fine on
>>>>>>>>> Windows.
>>>>>>>>> However when I run on Linux I get the following errors:
>>>>>>>>> Exception in thread "SocketListener0-0"
>>>>>>>>> java.lang.NoClassDefFoundError:
>>>>>>>>> javax/net/ssl/SSLSocket
>>>>>>>>> at
>>>>>>>>> org.mortbay.http.HttpConnection.close(HttpConnection.java:26 9)
>>>>>>>>> at
>>>>>>>>> org.mortbay.http.HttpConnection.destroy(HttpConnection.java: 1148)
>>>>>>>>> at
>>>>>>>>> org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 43)
>>>>>>>>> at
>>>>>>>>> org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
>>>>>>>>> at
>>>>>>>>> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
>>>>>>>>> at
>>>>>>>>> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
>>>>>>>>>
>>>>>>>>> What confuses me is I am not even using SSL so why am I getting
>>>>>>>>> this
>>>>>>>>> error?
>>>>>>>>>
>>>>>>>>> Most of the time I get this error some times the request goes
>>>>>>>>> through.
>>>>>>>>>
>>>>>>>>> I am running CentOS for my Linux
>>>>>>>>>
>>>>>>>>> Thanks in advance for any help!
>>>>>>>>> Mark
>
>
> ------------------------------------------------------------ --------------------
>
>
>> osgi> getprop
>> java.vendor=Sun Microsystems Inc.
>> org.mortbay.log.LogFactory.noDiscovery=true
>> org.osgi.service.http.port=8080
>> sun.java.launcher=SUN_STANDARD
>> org.osgi.supports.framework.extension=true
>> sun.management.compiler=HotSpot Client Compiler
>> osgi.framework.beginningstartlevel=1
>> os.name=Linux
>> sun.boot.class.path=/opt/jdk1.5.0_11/jre/lib/rt.jar:/opt/jdk 1.5.0_11/jre/lib/i18n.jar:/opt/jdk1.5.0_11/jre/lib/sunrsasig n.jar:/opt/jdk1.5.0_
>> 11/jre/lib/jsse.jar:/opt/jdk1.5.0_11/jre/lib/jce.jar:/opt/jd k1.5.0_11/jre/lib/charsets.jar:/opt/jdk1.5.0_11/jre/classes
>> osgi.ws=motif
>> java.vm.specification.vendor=Sun Microsystems Inc.
>> java.runtime.version=1.5.0_11-b03
>> osgi.noShutdown=true
>> user.name=markr
>> org.osgi.framework.system.packages=javax.accessibility,javax .activity,javax.crypto,javax.crypto.interfaces,javax.crypto. spec,javax.imageio,j
>> avax.imageio.event,javax.imageio.metadata,javax.imageio.plug ins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.i mageio.stream,javax.
>> management,javax.management.loading,javax.management.modelmb ean,javax.management.monitor,javax.management.openmbean,java x.management.relatio
>> n,javax.management.remote,javax.management.remote.rmi,javax. management.timer,javax.naming,javax.naming.directory,javax.n aming.event,javax.na
>> ming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.pri nt,javax.print.attribute,javax.print.attribute.standard,java x.print.event,javax.
>> rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.security.auth,javax. security.auth.callback,javax.security.auth.kerberos,javax.se curity.auth.login,ja
>> vax.security.auth.spi,javax.security.auth.x500,javax.securit y.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi .spi,javax.sound.sam
>> pled,javax.sound.sampled.spi,javax.sql,javax.sql.rowset,java x.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.s wing.border,javax.sw
>> ing.colorchooser,javax.swing.event,javax.swing.filechooser,j avax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.meta l,javax.swing.plaf.m
>> ulti,javax.swing.plaf.synth,javax.swing.table,javax.swing.te xt,javax.swing.text.html,javax.swing.text.html.parser,javax. swing.text.rtf,javax
>> .swing.tree,javax.swing.undo,javax.transaction,javax.transac tion.xa,javax.xml,javax.xml.datatype,javax.xml.namespace,jav ax.xml.parsers,javax
>> .xml.transform,javax.xml.transform.dom,javax.xml.transform.s ax,javax.xml.transform.stream,javax.xml.validation,javax.xml .xpath,org.ietf.jgss
>> ,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable, org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg .CORBA.portable,org.
>> omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNamin g.NamingContextExtPackage,org.omg.CosNaming.NamingContextPac kage,org.omg.Dynamic
>> ,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage, org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.Cod ecFactoryPackage,org
>> .omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInte rceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.o mg.PortableServer,or
>> g.omg.PortableServer.CurrentPackage,org.omg.PortableServer.P OAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.P ortableServer.portab
>> le,org.omg.PortableServer.ServantLocatorPackage,org.omg.Send ingContext,org.omg.stub.java.rmi,org.w3c.dom,org.w3c.dom.boo tstrap,org.w3c.dom.e
>> vents,org.w3c.dom.ls,org.xml.sax,org.xml.sax.ext,org.xml.sax .helpers
>> org.osgi.framework.language=en
>> user.language=en
>> org.osgi.framework.processor=i386
>> osgi.syspath=/opt/OSGi/eclipse/plugins
>> sun.boot.library.path=/opt/jdk1.5.0_11/jre/lib/i386
>> osgi.manifest.cache=/opt/OSGi/eclipse/configuration/org.ecli pse.osgi/manifests
>> osgi.compatibility.bootdelegation=false
>> eof=eof
>> java.version=1.5.0_11
>> org.osgi.framework.os.name=Linux
>> user.timezone=America/New_York
>> sun.arch.data.model=32
>> osgi.bundles=org.eclipse.equinox.common@2:start,
>> org.eclipse.update.configurator@3:start, org.eclipse.osgi.services@start,
>> javax.servlet@sta
>> rt, org.eclipse.equinox.http.servlet@start,
>> org.apache.commons.logging@start, org.mortbay.jetty@start,
>> org.eclipse.equinox.http.jetty@start,
>> org.eclipse.equinox.registry@start,
>> org.eclipse.equinox.http.registry@start,
>> org.eclipse.equinox.http.servlet@start, com.google.gwt@start,
>> com.instantiations.gwt.sample.client@start
>> java.endorsed.dirs=/opt/jdk1.5.0_11/jre/lib/endorsed
>> sun.cpu.isalist=
>> sun.jnu.encoding=UTF-8
>> file.encoding.pkg=sun.io
>> org.osgi.framework.vendor=Eclipse
>> file.separator=/
>> java.specification.name=Java Platform API Specification
>> java.class.version=49.0
>> user.country=US
>> java.home=/opt/jdk1.5.0_11/jre
>> osgi.os=linux
>> java.vm.info=mixed mode, sharing
>> os.version=2.6.9-42.0.10.EL
>> osgi.arch=x86
>> path.separator=:
>> java.vm.version=1.5.0_11-b03
>> org.osgi.supports.framework.fragment=true
>> osgi.console=8580
>> java.awt.printerjob=sun.print.PSPrinterJob
>> sun.io.unicode.encoding=UnicodeLittle
>> org.osgi.framework.version=1.4.0
>> osgi.install.area=file:/opt/OSGi/eclipse/plugins/
>> osgi.framework=file:/opt/OSGi/eclipse/plugins/org.eclipse.os gi_3.3.0.v20070430.jar
>> user.home=/home/markr
>> osgi.bundlestore=/opt/OSGi/eclipse/configuration/org.eclipse .osgi/bundles
>> java.specification.vendor=Sun Microsystems Inc.
>> osgi.nl=en_US
>> java.library.path=/opt/jdk1.5.0_11/jre/lib/i386/client:/opt/ jdk1.5.0_11/jre/lib/i386:/opt/jdk1.5.0_11/jre/../lib/i386
>> java.vendor.url=http://java.sun.com/
>> org.osgi.framework.os.version=2.6.9-42.0.10.EL
>> eclipse.startTime=1180706471416
>> java.vm.vendor=Sun Microsystems Inc.
>> eclipse.ignoreApp=true
>> java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
>> java.class.path=plugins/org.eclipse.osgi_3.3.0.v20070430.jar
>> java.vm.specification.name=Java Virtual Machine Specification
>> java.vm.specification.version=1.0
>> sun.cpu.endian=little
>> sun.os.patch.level=unknown
>> java.io.tmpdir=/tmp
>> java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
>> os.arch=i386
>> java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
>> java.ext.dirs=/opt/jdk1.5.0_11/jre/lib/ext
>> user.dir=/opt/OSGi/eclipse
>> org.osgi.supports.framework.requirebundle=true
>> osgi.clean=true
>> line.separator=
>> java.vm.name=Java HotSpot(TM) Client VM
>> eclipse.ee.install.verify=false
>> file.encoding=UTF-8
>> osgi.framework.version=3.3.0.v20070430
>> java.specification.version=1.5
>> org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSG i/Minimum-1.1,JRE-1.1,J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5
>> osgi.logfile=/opt/OSGi/eclipse/configuration/1180706471647.l og
>> osgi.configuration.area=file:/opt/OSGi/eclipse/configuration /
>> osgi> close
>>
>
>
|
|
|
Goto Forum:
Current Time: Wed Apr 24 18:00:05 GMT 2024
Powered by FUDForum. Page generated in 0.04851 seconds
|