Webprotege 3.0.0 not running

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

Webprotege 3.0.0 not running

Michael Erdmann

Hi,

I checked out WebProtege from github. The latest commit seems to be

    commit 439cbdf17f1d1505296df8ccfb4405f14c9278e9
    Author: Matthew Horridge [hidden email]
    Date:   Thu Aug 31 09:07:03 2017 -0700

I can compile and deploy it semi-successfully to tomcat. When opening the webapp in Firefox I get the error message below. What did I miss, or is the current state of master not actually working?

WebProtege Initialization Error

An error occurred during the initialization of WebProtege which prevented WebProtege from starting.

Error Message

java.lang.RuntimeException: java.lang.NoSuchMethodError: javax.servlet.ServletContext.addServlet(Ljava/lang/String;Ljavax/servlet/Servlet;)Ljavax/servlet/ServletRegistration$Dynamic;
	at edu.stanford.bmir.protege.web.server.filter.WebProtegeWebAppFilter.doFilter(WebProtegeWebAppFilter.java:72)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:299)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.addServlet(Ljava/lang/String;Ljavax/servlet/Servlet;)Ljavax/servlet/ServletRegistration$Dynamic;
	at edu.stanford.bmir.protege.web.server.app.WebProtegeServletContextListener.contextInitialized(WebProtegeServletContextListener.java:34)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4244)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4743)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1345)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
	at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
	... 1 more

Furthermore, the integration tests seem to fail with errormessages like this:
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running edu.stanford.bmir.protege.web.client.primitive.GwtTest_PrimitiveDataSuggestOracle
[INFO] Ignored 220 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO] Starting http://localhost:39549/edu.stanford.bmir.protege.web.WebProtegeJUnit.JUnit/junit.html?gwt.codesvr=localhost:38701 on browser FF38
[INFO] 200 - GET /edu.stanford.bmir.protege.web.WebProtegeJUnit.JUnit/junit.html?gwt.codesvr=localhost:38701 (127.0.0.1)
[INFO] 200 - GET /edu.stanford.bmir.protege.web.WebProtegeJUnit.JUnit/edu.stanford.bmir.protege.web.WebProtegeJUnit.JUnit.nocache.js (127.0.0.1)
[INFO] 200 - GET /edu.stanford.bmir.protege.web.WebProtegeJUnit.JUnit/edu.stanford.bmir.protege.web.WebProtegeJUnit.JUnit.devmode.js (127.0.0.1)
[INFO] 200 - GET /edu.stanford.bmir.protege.web.WebProtegeJUnit.JUnit/codemirror/lib/codemirror.css (127.0.0.1)
[INFO] 200 - GET /edu.stanford.bmir.protege.web.WebProtegeJUnit.JUnit/codemirror/mode/manchestersyntax/manchestersyntax.css (127.0.0.1)
[INFO] 200 - GET /edu.stanford.bmir.protege.web.WebProtegeJUnit.JUnit/codemirror/addon/hint/show-hint.css (127.0.0.1)
[INFO] 200 - GET /edu.stanford.bmir.protege.web.WebProtegeJUnit.JUnit/GwtExt.css (127.0.0.1)
[INFO] Ignored 220 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[WARNING] Forked JVM has been killed on time-out after 60 seconds

Nevertheless, maven reports a successful build and creates the war-file, which tomcat can interprete as an application.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23:48 min
[INFO] Finished at: 2017-10-30T12:10:53Z
[INFO] Final Memory: 80M/480M

Can anyone help me with this?

thx,
    michael

--
Dr. Michael Erdmann    |    [hidden email]    |   +49 151 6140 1790
DIQA Projektmanagement GmbH | Pfinztalstr. 90 | 76227 Karlsruhe, Germany
Handelsregister: Amtsgericht Mannheim HRB 715454 | USt-IdNr: DE283037270
Geschäftsführer: Dr. Michael Erdmann,  Dipl.-Wirtsch.-Inf. Daniel Hansch
This email may contain confidential information. If you are not the intended recipient please notify the sender immediately and delete this email. Any unauthorized copying, disclosure or distribution of this email is strictly forbidden.

_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: Webprotege 3.0.0 not running

Matthew Horridge-2
Administrator
Hi Michael,

What version of tomcat are you using?

Cheers,

Matthew


On 30 Oct 2017, at 06:28, Michael Erdmann <[hidden email]> wrote:

Hi,

I checked out WebProtege from github. The latest commit seems to be

    commit 439cbdf17f1d1505296df8ccfb4405f14c9278e9
    Author: Matthew Horridge [hidden email]
    Date:   Thu Aug 31 09:07:03 2017 -0700

I can compile and deploy it semi-successfully to tomcat. When opening the webapp in Firefox I get the error message below. What did I miss, or is the current state of master not actually working?

WebProtege Initialization Error

An error occurred during the initialization of WebProtege which prevented WebProtege from starting.

Error Message

java.lang.RuntimeException: java.lang.NoSuchMethodError: javax.servlet.ServletContext.addServlet(Ljava/lang/String;Ljavax/servlet/Servlet;)Ljavax/servlet/ServletRegistration$Dynamic;
	at edu.stanford.bmir.protege.web.server.filter.WebProtegeWebAppFilter.doFilter(WebProtegeWebAppFilter.java:72)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:299)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.addServlet(Ljava/lang/String;Ljavax/servlet/Servlet;)Ljavax/servlet/ServletRegistration$Dynamic;
	at edu.stanford.bmir.protege.web.server.app.WebProtegeServletContextListener.contextInitialized(WebProtegeServletContextListener.java:34)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4244)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4743)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1345)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
	at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
	... 1 more

Furthermore, the integration tests seem to fail with errormessages like this:
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running edu.stanford.bmir.protege.web.client.primitive.GwtTest_PrimitiveDataSuggestOracle
[INFO] Ignored 220 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO] Starting http://localhost:39549/edu.stanford.bmir.protege.web.WebProtegeJUnit.JUnit/junit.html?gwt.codesvr=localhost:38701 on browser FF38
[INFO] 200 - GET /edu.stanford.bmir.protege.web.WebProtegeJUnit.JUnit/junit.html?gwt.codesvr=localhost:38701 (127.0.0.1)
[INFO] 200 - GET /edu.stanford.bmir.protege.web.WebProtegeJUnit.JUnit/edu.stanford.bmir.protege.web.WebProtegeJUnit.JUnit.nocache.js (127.0.0.1)
[INFO] 200 - GET /edu.stanford.bmir.protege.web.WebProtegeJUnit.JUnit/edu.stanford.bmir.protege.web.WebProtegeJUnit.JUnit.devmode.js (127.0.0.1)
[INFO] 200 - GET /edu.stanford.bmir.protege.web.WebProtegeJUnit.JUnit/codemirror/lib/codemirror.css (127.0.0.1)
[INFO] 200 - GET /edu.stanford.bmir.protege.web.WebProtegeJUnit.JUnit/codemirror/mode/manchestersyntax/manchestersyntax.css (127.0.0.1)
[INFO] 200 - GET /edu.stanford.bmir.protege.web.WebProtegeJUnit.JUnit/codemirror/addon/hint/show-hint.css (127.0.0.1)
[INFO] 200 - GET /edu.stanford.bmir.protege.web.WebProtegeJUnit.JUnit/GwtExt.css (127.0.0.1)
[INFO] Ignored 220 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[WARNING] Forked JVM has been killed on time-out after 60 seconds

Nevertheless, maven reports a successful build and creates the war-file, which tomcat can interprete as an application.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23:48 min
[INFO] Finished at: 2017-10-30T12:10:53Z
[INFO] Final Memory: 80M/480M

Can anyone help me with this?

thx,
    michael


--
Dr. Michael Erdmann    |    [hidden email]    |   +49 151 6140 1790
DIQA Projektmanagement GmbH | Pfinztalstr. 90 | 76227 Karlsruhe, Germany
Handelsregister: Amtsgericht Mannheim HRB 715454 | USt-IdNr: DE283037270
Geschäftsführer: Dr. Michael Erdmann,  Dipl.-Wirtsch.-Inf. Daniel Hansch
This email may contain confidential information. If you are not the intended recipient please notify the sender immediately and delete this email. Any unauthorized copying, disclosure or distribution of this email is strictly forbidden.
_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev