Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    showcase.war doesnot work on fresh tomcat 8

    Hi *,

    deployed showcase.war from smartgwt ee on tomcat 8. Will not start. Any help appreciated.

    Deployment on a tomcat 7 32 bit works.

    Thx in adv,
    Roland.

    catalina.out:
    14-Oct-2015 19:46:21.251 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.24
    14-Oct-2015 19:46:21.256 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jul 1 2015 20:19:55 UTC
    14-Oct-2015 19:46:21.256 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.24.0
    14-Oct-2015 19:46:21.257 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 7
    14-Oct-2015 19:46:21.257 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 6.1
    14-Oct-2015 19:46:21.258 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
    14-Oct-2015 19:46:21.258 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:\Program Files\Java\jdk1.8.0_51\jre
    14-Oct-2015 19:46:21.258 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_51-b16
    14-Oct-2015 19:46:21.259 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
    14-Oct-2015 19:46:21.259 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Program Files\Apache Software Foundation\Tomcat 8.0
    14-Oct-2015 19:46:21.259 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 8.0
    14-Oct-2015 19:46:21.260 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 8.0
    14-Oct-2015 19:46:21.261 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 8.0
    14-Oct-2015 19:46:21.261 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 8.0\endorsed
    14-Oct-2015 19:46:21.261 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 8.0\temp
    14-Oct-2015 19:46:21.262 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
    14-Oct-2015 19:46:21.262 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 8.0\conf\logging.properties
    14-Oct-2015 19:46:21.263 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: exit
    14-Oct-2015 19:46:21.263 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms128m
    14-Oct-2015 19:46:21.263 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx1024m
    14-Oct-2015 19:46:21.264 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library 1.1.33 using APR version 1.5.1.
    14-Oct-2015 19:46:21.264 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
    14-Oct-2015 19:46:22.672 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.1m 19 Mar 2015)
    14-Oct-2015 19:46:24.006 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-8080"]
    14-Oct-2015 19:46:24.058 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-apr-8009"]
    14-Oct-2015 19:46:24.063 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 6186 ms
    14-Oct-2015 19:46:24.240 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
    14-Oct-2015 19:46:24.240 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.24
    14-Oct-2015 19:46:24.387 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps\showcase.war
    14-Oct-2015 19:47:06.881 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
    14-Oct-2015 19:47:19.817 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
    14-Oct-2015 19:47:19.821 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/showcase] startup failed due to previous errors
    14-Oct-2015 19:47:20.927 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [showcase] registered the JDBC driver [org.hsqldb.jdbc.JDBCDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
    14-Oct-2015 19:47:20.947 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps\showcase.war has finished in 56,558 ms
    14-Oct-2015 19:47:20.949 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps\docs
    14-Oct-2015 19:47:21.134 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps\docs has finished in 185 ms
    14-Oct-2015 19:47:21.136 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps\examples
    14-Oct-2015 19:47:23.176 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps\examples has finished in 2,040 ms
    14-Oct-2015 19:47:23.177 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps\host-manager
    14-Oct-2015 19:47:23.265 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps\host-manager has finished in 87 ms
    14-Oct-2015 19:47:23.266 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps\manager
    14-Oct-2015 19:47:23.345 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps\manager has finished in 80 ms
    14-Oct-2015 19:47:23.345 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps\ROOT
    14-Oct-2015 19:47:23.403 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps\ROOT has finished in 58 ms
    14-Oct-2015 19:47:23.419 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-8080"]
    14-Oct-2015 19:47:23.501 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-apr-8009"]
    14-Oct-2015 19:47:23.504 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 59443 ms






    localhost.log

    14-Oct-2015 19:47:07.082 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class com.smartgwt.sample.showcase.server.listener.HSQLServletContextListener
    java.lang.NullPointerException
    at java.util.Hashtable.put(Hashtable.java:459)
    at org.hsqldb.persist.HsqlProperties.setProperty(Unknown Source)
    at org.hsqldb.persist.HsqlProperties.argArrayToProps(Unknown Source)
    at org.hsqldb.server.Server.main(Unknown Source)
    at com.smartgwt.sample.showcase.server.listener.HSQLServletContextListener.contextInitialized(HSQLServletContextListener.java:69)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4729)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

    14-Oct-2015 19:47:07.241 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContext
    14-Oct-2015 19:47:19.876 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Closing Spring root WebApplicationContext
    14-Oct-2015 19:47:20.907 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStop Exception sending context destroyed event to listener instance of class com.smartgwt.sample.showcase.server.listener.HSQLServletContextListener
    java.lang.RuntimeException: java.sql.SQLTransientConnectionException: java.net.ConnectException: Connection refused: connect
    at com.smartgwt.sample.showcase.server.listener.HSQLServletContextListener.contextDestroyed(HSQLServletContextListener.java:98)
    at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4776)
    at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5390)
    at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: java.sql.SQLTransientConnectionException: java.net.ConnectException: Connection refused: connect
    at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
    at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
    at org.hsqldb.jdbc.JDBCConnection.<init>(Unknown Source)
    at org.hsqldb.jdbc.JDBCDriver.getConnection(Unknown Source)
    at org.hsqldb.jdbc.JDBCDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(DriverManager.java:664)
    at java.sql.DriverManager.getConnection(DriverManager.java:247)
    at com.smartgwt.sample.showcase.server.listener.HSQLServletContextListener.contextDestroyed(HSQLServletContextListener.java:87)
    ... 14 more
    Caused by: org.hsqldb.HsqlException: java.net.ConnectException: Connection refused: connect
    at org.hsqldb.ClientConnection.openConnection(Unknown Source)
    at org.hsqldb.ClientConnection.initConnection(Unknown Source)
    at org.hsqldb.ClientConnection.<init>(Unknown Source)
    ... 20 more
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at java.net.Socket.connect(Socket.java:538)
    at java.net.Socket.<init>(Socket.java:434)
    at java.net.Socket.<init>(Socket.java:211)
    at org.hsqldb.server.HsqlSocketFactory.createSocket(Unknown Source)
    ... 23 more

    14-Oct-2015 19:47:23.148 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log ContextListener: contextInitialized()
    14-Oct-2015 19:47:23.148 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log SessionListener: contextInitialized()


    #2
    These warnings look like problems with the HSQLDB - are you sure the appropriate jars are present, plus config file?
    What happens when you attempt to hit the deployment with a browser - does the app load, but fail to contact the database? Server error page? Something else?


    Comment


      #3
      Rolandr, did you manage to solve this issue? If you did, could you please share your solution? I'm having the same problem and have been stuck for the past week trying to figure it out...
      Thanks

      Comment


        #4
        Try looking at the possibilities Isomorphic already mentioned above. In particular, this would result from hsqlserver.properties not being in the classpath.

        Comment


          #5
          Copy the servlet-api.jar from the Tomcat 8 lib folder into your smartclient war lib folder (overwriting the existing one). It is an incompatibility between 2.5 and 3.1

          Comment

          Working...
          X