AW: AW: AW: Cocoon 2.1.2: Jetty does not start

"Skladovs, Victor" <[email protected]>
Newsgroups gmane.text.xml.cocoon.user
Message-ID <8A5030B9DFE1DF44ABD7011931B4D1EA23348025@tcexmbxnode02.trustedcloud.it>
Ø  Could you please file an issue on JIRA [1] for this?

Yes, I'try. I have one more serious, in my opinion, issue to report.

Cocoon (incl. the new one 2.1.12 - just tested) does not get compiled on Ubuntu 12.04 with openjdk-7 without adding com.sun package (which is not generally recommended to use) and a method to DataSourceWrapper.java (see https://issues.apache.org/jira/browse/JCR-3167)

Regards,
Viktor

HIS Hochschul-Informations-System GmbH
Goseriede 9 | 30159 Hannover | www.his.de<http://www.his.de/>

Viktor Skladovs
HIS-Institut für Hochschulforschung
Methoden und Befragungsservices
Telefon +49 (0)511 1220-129 | Fax +49 (0)511 1220-250
E-Mail [email protected]<mailto:[email protected]>
Registergericht: Amtsgericht Hannover, HRB 6489
Geschäftsführer: Dipl.-Phys. Wolfgang Körner
Vorsitzender des Aufsichtsrats: Prof. Dr. Andreas Geiger
Umsatzsteuer-Identifikationsnummer: DE115665155

Von: Francesco Chicchiriccò [mailto:[email protected]]
Gesendet: Dienstag, 26. März 2013 13:36
An: [email protected]
Betreff: Re: AW: AW: Cocoon 2.1.2: Jetty does not start

On 26/03/2013 13:31, Skladovs, Victor wrote:

Ø  Looks you do not have the servlet-api.jar in your classpath

Yes, that was the reason!

I've added the following to the :doServlet section in cocoon.bat

"-Dloader.class.path=lib\core\servlet-2.3.jar"

And Jetty has started!

Nice to know :-)

Could you please file an issue on JIRA [1] for this? We'll fix it for 2.1.13, expected for... 2018! :-O

Regards.

[1] https://issues.apache.org/jira/browse/COCOON



Von: Thorsten Scherler [mailto:[email protected]]
Gesendet: Dienstag, 26. März 2013 12:44
An: [email protected]<mailto:[email protected]>
Betreff: Re: AW: Cocoon 2.1.2: Jetty does not start

On 03/26/2013 12:20 PM, Skladovs, Victor wrote:
D:\Downloads\cocoon\cocoon-2.1.12>cocoon
cocoon.bat: using .\build\webapp as the webapp directory
D:\Downloads\cocoon\cocoon-2.1.12>-------------------- Loading -----------------
---
Processing repository: .\tools\jetty\lib
Adding jar: .\tools\jetty\lib\jetty-4.2.23.jar
Processing repository: .\lib\endorsed
Adding jar: .\lib\endorsed\jakarta-bcel-20040329.jar
Adding jar: .\lib\endorsed\jakarta-regexp-1.5.jar
Adding jar: .\lib\endorsed\xalan-2.7.1.jar
Adding jar: .\lib\endorsed\xercesImpl-2.11.0.jar
Adding jar: .\lib\endorsed\xml-apis-1.4.01.jar
Adding jar: .\lib\endorsed\xml-apis-ext-1.4.01.jar
-------------------- Executing -----------------
Main Class: org.mortbay.jetty.Server
12:19:58.735 EVENT  Checking Resource aliases
12:19:58.844 WARN!!
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.mortbay.xml.XmlConfiguration.call(XmlConfiguration.java:518)
        at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:231)

        at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:163)

        at org.mortbay.jetty.Server.<init>(Server.java:89)
        at org.mortbay.jetty.Server.<init>(Server.java:63)
        at org.mortbay.jetty.Server.main(Server.java:428)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at Loader.invokeMain(Unknown Source)
        at Loader.run(Unknown Source)
        at Loader.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: javax/servlet/UnavailableException
        at org.mortbay.jetty.Server.newWebApplicationContext(Server.java:185)
        at org.mortbay.jetty.Server.addWebApplication(Server.java:217)
        at org.mortbay.jetty.Server.addWebApplication(Server.java:200)
        ... 17 more
Caused by: java.lang.ClassNotFoundException: javax.servlet.UnavailableException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        ... 20 more
getTargetException():
java.lang.NoClassDefFoundError: javax/servlet/UnavailableException
        at org.mortbay.jetty.Server.newWebApplicationContext(Server.java:185)
        at org.mortbay.jetty.Server.addWebApplication(Server.java:217)
        at org.mortbay.jetty.Server.addWebApplication(Server.java:200)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.mortbay.xml.XmlConfiguration.call(XmlConfiguration.java:518)
        at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:231)

        at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:163)

        at org.mortbay.jetty.Server.<init>(Server.java:89)
        at org.mortbay.jetty.Server.<init>(Server.java:63)
        at org.mortbay.jetty.Server.main(Server.java:428)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at Loader.invokeMain(Unknown Source)
        at Loader.run(Unknown Source)
        at Loader.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.servlet.UnavailableException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        ... 20 more

12:19:58.844 WARN!!
java.io.IOException: Jetty configuration problem: java.lang.reflect.InvocationTa
rgetException
        at org.mortbay.jetty.Server.<init>(Server.java:98)
        at org.mortbay.jetty.Server.<init>(Server.java:63)
        at org.mortbay.jetty.Server.main(Server.java:428)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at Loader.invokeMain(Unknown Source)
        at Loader.run(Unknown Source)
        at Loader.main(Unknown Source)

12:19:58.859 EVENT  Shutdown hook executing



Looks you do not have the servlet-api.jar in your classpath. However that UnavailableException should be as well in avalon-framework-api.jar

Not sure why on windows is not working and I do not recall somebody testing it on that plattform.

salu2




HIS Hochschul-Informations-System GmbH
Goseriede 9 | 30159 Hannover | www.his.de<http://www.his.de/>

Viktor Skladovs
HIS-Institut für Hochschulforschung
Methoden und Befragungsservices
Telefon +49 (0)511 1220-129 | Fax +49 (0)511 1220-250
E-Mail [email protected]<mailto:[email protected]>
Registergericht: Amtsgericht Hannover, HRB 6489
Geschäftsführer: Dipl.-Phys. Wolfgang Körner
Vorsitzender des Aufsichtsrats: Prof. Dr. Andreas Geiger
Umsatzsteuer-Identifikationsnummer: DE115665155

Von: Francesco Chicchiriccò [mailto:[email protected]]
Gesendet: Dienstag, 26. März 2013 11:46
An: [email protected]<mailto:[email protected]>
Betreff: Re: Cocoon 2.1.2: Jetty does not start

On 26/03/2013 11:42, Skladovs, Victor wrote:
Hallo!

I downloaded today a new long-awaited cocoon 2.1.12 (and the corresponding "deps" libraries) and successfully compiled it (Win 7 with jdk1.6.0_24).
But the Jetty container does not start with a message:
"Jetty configuration problem: java.lang.reflect.InvocationTargetException
At org.mortbay.jetty.Server.<init><Server.java:98>"

Hi,
could you please report the full stacktrace?

Regards.

--

Francesco Chicchiriccò



ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member

http://people.apache.org/~ilgrosso/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.