jdk 1.5 and jetty startup issues

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

jdk 1.5 and jetty startup issues

nimret
I seem to be getting an error while trying to startup jetty-all v 5.1.3 using
jdk 1.5 and the demo-jmx.xml config file. interestingly enough jetty.xml
seems to startup fine. anyone else experiencing this problem? thx!

[nimret@hansolo]$java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)


[nimret@hansolo]$java -Dmain.class=org.mortbay.xml.XmlConfiguration -jar
start.jar etc/jetty-jmx.xml
21:52:58.865 INFO   [main] org.mortbay.log.LogImpl.add(LogImpl.java:109) >15>
added org.mortbay.log.OutputStreamLogSink@ef22f8
21:52:58.819 INFO   [main]
org.mortbay.util.FileResource.<clinit>(FileResource.java:60) >10> Checking
Resource aliases
21:52:59.915 WARN!! [main]
org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:879) >08>
EXCEPTION
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.mortbay.xml.XmlConfiguration.call(XmlConfiguration.java:535)
        at
org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:235)

--
http://www.nimret.com


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss
Reply | Threaded
Open this post in threaded view
|

Re: jdk 1.5 and jetty startup issues

Greg Wilkins-5

This is probably due to the clash between mx4j and the jmx impl in jvm 1.5

Jan posted the following to the support list recently:

Jan Bartel wrote:

> Peter,
>
> Try (all on one line):
>
> java
> -Djavax.management.builder.initial=mx4j.server.MX4JMBeanServerBuilder
> -Dmain.class=org.mortbay.xml.XmlConfiguration -jar start.jar
> etc/demo-jmx.xml
>
> I'll look at adding something to the start.jar config to do this
> automatically for the next release.
>



nimret wrote:

> I seem to be getting an error while trying to startup jetty-all v 5.1.3 using
> jdk 1.5 and the demo-jmx.xml config file. interestingly enough jetty.xml
> seems to startup fine. anyone else experiencing this problem? thx!
>
> [nimret@hansolo]$java -version
> java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
> Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
>
>
> [nimret@hansolo]$java -Dmain.class=org.mortbay.xml.XmlConfiguration -jar
> start.jar etc/jetty-jmx.xml
> 21:52:58.865 INFO   [main] org.mortbay.log.LogImpl.add(LogImpl.java:109) >15>
> added org.mortbay.log.OutputStreamLogSink@ef22f8
> 21:52:58.819 INFO   [main]
> org.mortbay.util.FileResource.<clinit>(FileResource.java:60) >10> Checking
> Resource aliases
> 21:52:59.915 WARN!! [main]
> org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:879) >08>
> EXCEPTION
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.mortbay.xml.XmlConfiguration.call(XmlConfiguration.java:535)
>         at
> org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:235)
>



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss
Reply | Threaded
Open this post in threaded view
|

Re: Re: jdk 1.5 and jetty startup issues

nimret
thanks! I tried searching the mail archives but couldn't find it. may I
suggest adding it to the faq pages?

regs ~
nimret

On Sunday 22 May 2005 11:48 pm, Greg Wilkins wrote:

> This is probably due to the clash between mx4j and the jmx impl in jvm 1.5
>
> Jan posted the following to the support list recently:
>
> Jan Bartel wrote:
> > Peter,
> >
> > Try (all on one line):
> >
> > java
> > -Djavax.management.builder.initial=mx4j.server.MX4JMBeanServerBuilder
> > -Dmain.class=org.mortbay.xml.XmlConfiguration -jar start.jar
> > etc/demo-jmx.xml
> >
> > I'll look at adding something to the start.jar config to do this
> > automatically for the next release.
>
> nimret wrote:
> > I seem to be getting an error while trying to startup jetty-all v 5.1.3
> > using jdk 1.5 and the demo-jmx.xml config file. interestingly enough
> > jetty.xml seems to startup fine. anyone else experiencing this problem?
> > thx!
> >
> > [nimret@hansolo]$java -version
> > java version "1.5.0"
> > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
> > Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
> >
> >
> > [nimret@hansolo]$java -Dmain.class=org.mortbay.xml.XmlConfiguration -jar
> > start.jar etc/jetty-jmx.xml
> > 21:52:58.865 INFO   [main] org.mortbay.log.LogImpl.add(LogImpl.java:109)
> > >15> added org.mortbay.log.OutputStreamLogSink@ef22f8
> > 21:52:58.819 INFO   [main]
> > org.mortbay.util.FileResource.<clinit>(FileResource.java:60) >10>
> > Checking Resource aliases
> > 21:52:59.915 WARN!! [main]
> > org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:879) >08>
> > EXCEPTION
> > java.lang.reflect.InvocationTargetException
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> >:39) at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
> >mpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585)
> >         at
> > org.mortbay.xml.XmlConfiguration.call(XmlConfiguration.java:535) at
> > org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:235)
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
> _______________________________________________
> jetty-discuss mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/jetty-discuss

--
http://www.nimret.com


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss