Announcement

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

    errors while starting tomcat in latest 13.1 SDK

    SmartClient Version: SNAPSHOT_v13.1d_2023-10-10/Enterprise Development Only (built 2023-10-10)

    Hello, while starting tomcat in the latest 13.1 SDK, I see two errors in console:

    Code:
    === 2023-10-10 13:45:23,838 [main] ERROR SchemaUpdate - Unsuccessful: alter table city add constraint FK2E996B33533A98 foreign key (countryId) references country
    === 2023-10-10 13:45:23,838 [main] ERROR SchemaUpdate - a FOREIGN KEY constraint already exists on the set of columns: FK2E996B33533A98 in statement [
        alter table city
            add constraint FK2E996B33533A98
            foreign key (countryId)
            references country]
    ott 10, 2023 1:45:24 PM org.springframework.web.context.ContextLoader initWebApplicationContext
    Code:
    === 2023-10-10 13:45:24,090 [main] WARN InterfaceProvider - Configuration error - cannot find provider for interface: IObfuscator java.lang.ClassNotFoundException: com.isomorphic.obfuscation.Obfuscator
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1412)
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1220)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at com.isomorphic.base.Reflection._classForName(Reflection.java:333)
        at com.isomorphic.base.Reflection.classForName(Reflection.java:297)
        at com.isomorphic.interfaces.InterfaceProvider.exists(InterfaceProvider.java:160)
        at com.isomorphic.interfaces.InterfaceProvider.exists(InterfaceProvider.java:138)
        at com.isomorphic.assembly.FileAssembler.<clinit>(FileAssembler.java:92)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:348)
        at com.isomorphic.base.Reflection._classForName(Reflection.java:331)
        at com.isomorphic.base.Reflection.classForName(Reflection.java:297)
        at com.isomorphic.interfaces.InterfaceProvider.exists(InterfaceProvider.java:160)
        at com.isomorphic.interfaces.InterfaceProvider.exists(InterfaceProvider.java:138)
        at com.isomorphic.js.JSSyntaxScannerFilter.init(JSSyntaxScannerFilter.java:148)
        at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:262)
        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:244)
        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:97)
        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4311)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4940)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
        at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:795)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
        at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:249)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
        at org.apache.catalina.core.StandardService.startInternal(StandardService.java:433)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:922)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
        at com.isomorphic.embedded_tomcat.EmbeddedTomcat9.main(EmbeddedTomcat9.java:373)
    Actually I see the latter also when starting tomcat with my application deployed.

    #2
    The former error isn't to do with SmartClient - it looks like some Spring functionality you've set up to automatically update SQL tables. It may be the result of a manual change to SQL tables that wasn't tracked by whatever system is trying to keep them in sync.

    For the latter error, it sounds like you're saying it's not new. What it means is that you've got entries in your .properties files that set up things to do with the FileAssembler system, but you don't have the jar for the FileAssembler deployed. This is harmless, but basically indicates that somehow the .properties files from the SDK version of the server software probably got mixed in with the runtime versions of the server software.

    Comment


      #3
      Hello, I will take a closer look at the error in my project, but the two errors reported above, are logged in the terminal when I start the embedded Tomcat in the SDK (v13.1d_2023-10-10)

      Comment


        #4
        SmartClient Version: SNAPSHOT_v13.1d_2023-10-29/Enterprise Development Only (built 2023-10-29)

        Hello, just to let you know that I still see those errors when starting tomcat in the SDK (using start_embedded_server.sh), this is the complet log:

        Code:
        Using user-defined JAVA_HOME: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/
        
        Setting Tomcat <Connector> property (port 8083): maxThreads=1000
        Setting Tomcat <Connector> property (port 8083): maxHeaderCount=200
        Setting Tomcat <Connector> property (port 8083): maxKeepAliveRequests=1000
        Setting Tomcat <Connector> property (port 8083): maxHttpHeaderSize=1048576
        Setting Tomcat <Connector> property (port 8083): maxPostSize=104857600
        Using configuration in file META-INF/context.xml
        ott 30, 2023 8:26:06 AM org.apache.coyote.AbstractProtocol init
        INFORMAZIONI: Initializing ProtocolHandler ["http-nio-8083"]
        ott 30, 2023 8:26:06 AM org.apache.catalina.core.StandardService startInternal
        INFORMAZIONI: Starting service [Tomcat]
        ott 30, 2023 8:26:06 AM org.apache.catalina.core.StandardEngine startInternal
        INFORMAZIONI: Starting Servlet engine: [Apache Tomcat/9.0.82]
        ISC: Configuring log4j2 from: file:/Users/bosticco/Downloads/SmartClient_SNAPSHOT_v131d_2023-10-29_Enterprise/smartclientSDK/WEB-INF/classes/log4j2.isc.config.xml
        ISC: Using Log4j 2.x logging system.
        === 2023-10-30 08:26:16,223 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework - Initializing
        === 2023-10-30 08:26:16,235 [main] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH
        === 2023-10-30 08:26:16,286 [main] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/Users/bosticco/Downloads/SmartClient_SNAPSHOT_v131d_2023-10-29_Enterprise/smartclientSDK/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties
        === 2023-10-30 08:26:16,287 [main] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH
        === 2023-10-30 08:26:16,288 [main] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH
        === 2023-10-30 08:26:16,291 [main] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/Users/bosticco/Downloads/SmartClient_SNAPSHOT_v131d_2023-10-29_Enterprise/smartclientSDK/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
        === 2023-10-30 08:26:16,291 [main] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH
        === 2023-10-30 08:26:16,294 [main] INFO ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/Users/bosticco/Downloads/SmartClient_SNAPSHOT_v131d_2023-10-29_Enterprise/smartclientSDK/WEB-INF/classes/server.properties
        === 2023-10-30 08:26:16,296 [main] INFO Config - Applying system property webdriver.http.factory: apache
        === 2023-10-30 08:26:16,296 [main] INFO Logger - Logging system started.
        === 2023-10-30 08:26:16,328 [main] INFO ISCInit - Bound DB defaultDatabase via JNDI at: isomorphic/jdbc/defaultDatabase
        === 2023-10-30 08:26:16,329 [main] INFO ISCInit - JMS JNDI publishing is enabled, but configured messaging.jms.vm.factory class org.apache.activemq.ActiveMQConnectionFactory is not present in runtime - proceeding without publishing isomorphic JMS stub to JNDI
        === 2023-10-30 08:26:16,329 [main] INFO ISCInit - No ServletContext available yet - using container IO for now
        === 2023-10-30 08:26:16,333 [main] INFO MessagingWebSocketEndpoint - Registering Realtime Messaging endpoint at: /isomorphic/websocket
        ott 30, 2023 8:26:16 AM org.apache.jasper.servlet.TldScanner scanJars
        INFORMAZIONI: 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.
        ott 30, 2023 8:26:16 AM org.apache.catalina.core.ApplicationContext log
        INFORMAZIONI: No Spring WebApplicationInitializer types detected on classpath
        === 2023-10-30 08:26:16,506 [main] INFO Config - Applying system property webdriver.http.factory: apache
        === 2023-10-30 08:26:16,507 [main] INFO ISCInit - Auto-detected webRoot - using: /Users/bosticco/Downloads/SmartClient_SNAPSHOT_v131d_2023-10-29_Enterprise/smartclientSDK
        === 2023-10-30 08:26:16,507 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework (SNAPSHOT_v13.1d_2023-10-29/Enterprise Deployment 2023-10-29) - Initialization Complete
        === 2023-10-30 08:26:16,507 [main] WARN ISCInit - Potentially insecure settings: Domain synching is enabled and not restricted to any baseDomains. See the "XSS and CSRF Security" overview in the client reference for details to disable this warning
        ott 30, 2023 8:26:16 AM org.apache.catalina.core.ApplicationContext log
        INFORMAZIONI: Initializing Spring root WebApplicationContext
        ott 30, 2023 8:26:16 AM org.springframework.web.context.ContextLoader initWebApplicationContext
        INFORMAZIONI: Root WebApplicationContext: initialization started
        === 2023-10-30 08:26:17,115 [main] WARN DTDEntityResolver - recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
        ott 30, 2023 8:26:17 AM com.isomorphic.springhibernate3.LocalSessionFactoryBean buildSessionFactory
        INFORMAZIONI: Building new Hibernate SessionFactory
        === 2023-10-30 08:26:17,697 [main] INFO PoolManager - SmartClient pooling started for 'simpleTypes' objects
        === 2023-10-30 08:26:18,713 [main] INFO PoolManager - SmartClient pooling started for 'HSQLDB' objects
        === 2023-10-30 08:26:19,286 [main] ERROR SchemaUpdate - Unsuccessful: alter table city add constraint FK2E996B33533A98 foreign key (countryId) references country
        === 2023-10-30 08:26:19,286 [main] ERROR SchemaUpdate - a FOREIGN KEY constraint already exists on the set of columns: FK2E996B33533A98 in statement [
            alter table city
                add constraint FK2E996B33533A98
                foreign key (countryId)
                references country]
        ott 30, 2023 8:26:19 AM org.springframework.web.context.ContextLoader initWebApplicationContext
        INFORMAZIONI: Root WebApplicationContext initialized in 2994 ms
        === 2023-10-30 08:26:19,534 [main] INFO DataTools - While applying to com.isomorphic.datasource.DataSourceAuthenticator, couldn't setProperties:
        {
            cookieDomain:"No accessible field",
            authStateParameter:"No accessible field",
            saltField:"No accessible field",
            sessionTimeout:"No accessible field"
        }
        === 2023-10-30 08:26:19,539 [main] INFO AuthenticationFilter - AuthExampleAuthenticator - URI Cache enabled - max size: 10000 entries
        === 2023-10-30 08:26:19,539 [main] INFO AuthenticationFilter - AuthExampleAuthenticator - Matching current URIs
        === 2023-10-30 08:26:19,546 [main] INFO NoCacheFilter - Matching current URIs
        === 2023-10-30 08:26:19,559 [main] WARN InterfaceProvider - Configuration error - cannot find provider for interface: IObfuscator java.lang.ClassNotFoundException: com.isomorphic.obfuscation.Obfuscator
            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1329)
            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1141)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:264)
            at com.isomorphic.base.Reflection._classForName(Reflection.java:333)
            at com.isomorphic.base.Reflection.classForName(Reflection.java:297)
            at com.isomorphic.interfaces.InterfaceProvider.exists(InterfaceProvider.java:160)
            at com.isomorphic.interfaces.InterfaceProvider.exists(InterfaceProvider.java:138)
            at com.isomorphic.assembly.FileAssembler.<clinit>(FileAssembler.java:92)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:348)
            at com.isomorphic.base.Reflection._classForName(Reflection.java:331)
            at com.isomorphic.base.Reflection.classForName(Reflection.java:297)
            at com.isomorphic.interfaces.InterfaceProvider.exists(InterfaceProvider.java:160)
            at com.isomorphic.interfaces.InterfaceProvider.exists(InterfaceProvider.java:138)
            at com.isomorphic.js.JSSyntaxScannerFilter.init(JSSyntaxScannerFilter.java:148)
            at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:262)
            at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:244)
            at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:97)
            at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4311)
            at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4940)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
            at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)
            at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
            at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
            at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
            at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:794)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
            at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)
            at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
            at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
            at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
            at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:248)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
            at org.apache.catalina.core.StandardService.startInternal(StandardService.java:433)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
            at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:921)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
            at com.isomorphic.embedded_tomcat.EmbeddedTomcat9.main(EmbeddedTomcat9.java:373)
        
        === 2023-10-30 08:26:19,564 [main] INFO JSSyntaxScannerFilter - Couldn't load list of FileAssembler URLs - if the filter intercepts those URLs, they will be scanned.
        === 2023-10-30 08:26:19,567 [main] INFO CacheFilter - CacheFilterMaxExpires - URI Cache enabled - max size: 4096 entries
        === 2023-10-30 08:26:19,567 [main] INFO CacheFilter - CacheFilterMaxExpires - Matching current URIs
        === 2023-10-30 08:26:19,581 [main] INFO PreCache - Isomorphic PreCache servlet loading
        === 2023-10-30 08:26:21,788 [main] INFO PreCache - Isomorphic PreCache complete (2207ms)
        ott 30, 2023 8:26:21 AM org.apache.coyote.AbstractProtocol start
        INFORMAZIONI: Starting ProtocolHandler ["http-nio-8083"]

        Comment


          #5
          You're right, these issues needed to be addressed. The FK-related error was actually caused by our Hibernate configuration, and the interface provider warning was excessive, as not having an interface is part of the normal flow in these circumstances. Both are now fixed and available for download in the latest nightly build.

          Comment

          Working...
          X