configure - Tomcat 6 to 7 Migration Realm error overrides final method init.()V -
i'm trying migrate application apache tomcat 5.5 version 7. migrated application tomcat 5.5.25 tomcat 6.0.41. migrating application version 6.0.41 version 7.0.28 , ran issue. when start tomcat 7 server receive following error in catalina.out
log:
jul 1, 2015 2:15:31 pm org.apache.catalina.startup.hostconfig deploydescriptor info: deploying configuration descriptor /usr/local/opt/ldtools/share/java/apache-tomcat-7.0.28/conf/catalina/localhost/ttste st.xml jul 1, 2015 2:15:31 pm org.apache.tomcat.util.digester.digester startelement severe: begin event threw error java.lang.verifyerror: class com.att.csp.sca.tomcat.csprealm overrides final method init.()v @ java.lang.classloader.defineclass1(native method) @ java.lang.classloader.defineclass(classloader.java:616) @ java.security.secureclassloader.defineclass(secureclassloader.java:124) @ java.net.urlclassloader.defineclass(urlclassloader.java:260) @ java.net.urlclassloader.access$000(urlclassloader.java:56) @ java.net.urlclassloader$1.run(urlclassloader.java:195) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(urlclassloader.java:188) @ java.lang.classloader.loadclass(classloader.java:303) @ java.lang.classloader.loadclass(classloader.java:248) @ org.apache.tomcat.util.digester.objectcreaterule.begin(objectcreaterule.java:144) @ org.apache.tomcat.util.digester.digester.startelement(digester.java:1276) @ com.sun.org.apache.xerces.internal.parsers.abstractsaxparser.startelement(abstractsaxparser.java:501) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl.scanstartelement(xmldocumentfragmentscannerimpl.java:1359) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl$fragmentcontentdriver.next(xmldocumentfragmentscannerimpl.java:2747) @ com.sun.org.apache.xerces.internal.impl.xmldocumentscannerimpl.next(xmldocumentscannerimpl.java:648) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl.scandocument(xmldocumentfragmentscannerimpl.java:510) @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(xml11configuration.java:807) @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(xml11configuration.java:737) @ com.sun.org.apache.xerces.internal.parsers.xmlparser.parse(xmlparser.java:107) @ com.sun.org.apache.xerces.internal.parsers.abstractsaxparser.parse(abstractsaxparser.java:1205) @ com.sun.org.apache.xerces.internal.jaxp.saxparserimpl$jaxpsaxparser.parse(saxparserimpl.java:522) @ org.apache.tomcat.util.digester.digester.parse(digester.java:1537) @ org.apache.catalina.startup.contextconfig.processcontextconfig(contextconfig.java:612) @ org.apache.catalina.startup.contextconfig.contextconfig(contextconfig.java:576) @ org.apache.catalina.startup.contextconfig.init(contextconfig.java:814) @ org.apache.catalina.startup.contextconfig.lifecycleevent(contextconfig.java:364) @ org.apache.catalina.util.lifecyclesupport.firelifecycleevent(lifecyclesupport.java:119) @ org.apache.catalina.util.lifecyclebase.firelifecycleevent(lifecyclebase.java:90) @ org.apache.catalina.util.lifecyclebase.setstateinternal(lifecyclebase.java:401) @ org.apache.catalina.util.lifecyclebase.init(lifecyclebase.java:110) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:139) @ org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:899) @ org.apache.catalina.core.containerbase.addchild(containerbase.java:875) @ org.apache.catalina.core.standardhost.addchild(standardhost.java:618) @ org.apache.catalina.startup.hostconfig.deploydescriptor(hostconfig.java:650) @ org.apache.catalina.startup.hostconfig$deploydescriptor.run(hostconfig.java:1582) @ java.util.concurrent.executors$runnableadapter.call(executors.java:441) @ java.util.concurrent.futuretask$sync.innerrun(futuretask.java:303) @ java.util.concurrent.futuretask.run(futuretask.java:138) @ java.util.concurrent.threadpoolexecutor$worker.runtask(threadpoolexecutor.java:886) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:908) @ java.lang.thread.run(thread.java:619)
i looked @ realm-howto.html page seem apply because when read in quick start section:
you need care if using web application includes 1 or more elements, ,
<login-config>
element defining how users required authenticate themselves. if not utilizing these features, can safely skip document.
the application not use <login-config>
because commented out in web.xml. here realm section in $catalina_home/conf/catalina/localhost/ttstest.xml
file looks like:
<code> <realm classname="com.att.csp.sca.tomcat.csprealm"> <authenticator sysname="ld" validationenv="prod" loginurl="https://www.eaccess.xyz.com/empsvc/hrmgt/paglogin" logouturl="https://www.eaccess.xyz.com/empsvc/hrmgt/paglogout" errorpage="authfailure.jsp"> <resource name="jdbc_tts"> <value type="oracle.jdbc.pool.oracledatasource" debug="0" url="jdbc:oracle:thin:@devsrvr.pedc.xyz.com:1521:ttsdev" connectioncachingenabled="true" connectioncachename="my boring connection cache" user="test" password="test" connectioncacheproperties="{minlimit=0, maxlimit=2, initiallimit=0}" /> </resource> <eventlogger type="com.att.csp.sca.log.dbeventlogger" datasourcename="jdbc_tts" securityeventtablename="security_log" maxrequesturisize="255" /> <roleprovider type="com.att.csp.sca.dbroleprovider" datasourcename="jdbc_tts" userroletablename="user_role_matrix" userfieldname="user_id" rolefieldname="role" allowcaching="true" /> <userprofilepersistor type="com.att.csp.sca.dbuserprofilepersistor" datasourcename="jdbc_tts" usertablename="users" userfieldname="id" lastactivefieldname="last_active" lastipaddrfieldname="last_ip_addr" /> </authenticator> </realm>
the jar files work parameters in csprealm located in $catalina_home/lib
directory tomcat 6 migration.
Comments
Post a Comment