Erro ao colocar projeto em produção com maker 3.8 no tomcat



  • Bom dia amigos, temos um sistema ERP que sempre rodou tranquilamente nos clientes com a versão 3.7, ao gerar o arquivo .war para colocar no tomcat, quando vamos acessar o sistema apresenta um erro, que parece ser a falta de alguma função ou .jar, porém todo os arquivos necessários estão no contexto da maquina que estamos gerando a versão e utilizamos essa maquina em desenvolvimento tranquilamente, sem nenhum erro apresentado. Alguém ja possou por isso ou podem nos dar uma luz sobre os procedimentos a serem adotados para resolução do problema?


    Segue o log gerado no momento do erro:

    Exceção Gerada:
    java.lang.reflect.InvocationTargetException at
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at
    java.lang.reflect.Constructor.newInstance(Unknown Source) at
    wfr.com.WFRSystem.getInstance(WFRSystem.java:286) at
    wfr.com.WFRSystem.getInstance(WFRSystem.java:266) at
    wfr.sys.WFR.(WFR.java:23) at
    wfr.sys.WFRLoader.createSystem(WFRLoader.java:166) at
    wfr.sys.WFRLoader.getWFR(WFRLoader.java:155) at
    wfr.sys.HTMLInterface.HTMLInterface.getInstance(HTMLInterface.java:151) at
    wfr.sys.HTMLInterface.HTMLInterface.getInstance(HTMLInterface.java:137) at
    wfr.sys.HTMLInterface.HTMLInterface.getInstance(HTMLInterface.java:133) at
    wfr.web.Action.(Action.java:88) at
    wfr.web.Action.(Action.java:68) at
    wfr.web.actions.OpenAction.(OpenAction.java:30) at
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at
    java.lang.reflect.Constructor.newInstance(Unknown Source) at
    wfr.web.ActionFactory.getAction(ActionFactory.java:72) at
    wfr.web.Controller.process(Controller.java:129) at
    wfr.web.Controller.doGet(Controller.java:60) at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:624) at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at
    wfr.web.ContextFilter.doFilter(ContextFilter.java:87) at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436) at
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078) at
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) at
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318) at
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at
    org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at
    java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NoClassDefFoundError: wfr/com/systems/system_erp/rules/WebrunFunctions at
    java.lang.ClassLoader.defineClass1(Native Method) at
    java.lang.ClassLoader.defineClassCond(Unknown Source) at
    java.lang.ClassLoader.defineClass(Unknown Source) at
    java.security.SecureClassLoader.defineClass(Unknown Source) at
    org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3118) at
    org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1340) at
    org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1827) at
    org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701) at
    java.lang.Class.forName0(Native Method) at
    java.lang.Class.forName(Unknown Source) at
    wfr.util.WebrunClassLoader.forName(WebrunClassLoader.java:54) at
    wfr.rules.WFRRuleManager.getRuleInstance(WFRRuleManager.java:482) at
    wfr.rules.WFRRuleManager.getRuleClass(WFRRuleManager.java:125) at
    wfr.rules.WebServiceExporter.export(WebServiceExporter.java:42) at
    wfr.com.WFRSystem.create(WFRSystem.java:896) at wfr.com.WFRSystem.create(WFRSystem.java:726) at
    wfr.com.WFRSystem.(WFRSystem.java:329) at
    wfr.com.systems.system_erp.ERPSystem.(ERPSystem.java:746) ...
    44 more Caused by: java.lang.ClassNotFoundException: wfr.com.systems.system_erp.rules.WebrunFunctions at
    org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1858) at
    org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701) ... 62


  • Conseguiu resolver?

Log in to reply