• Index
  •  » Talend Open Studio for Data Quality and Talend Enterprise Data Quality » Configuration, usage and feedback
  •  » Data Quality Portal 5.0.2: java.lang.NoClassDefFoundError when Login

#1 2012-03-28 17:33:04

frank_sch
New member
Registered: 2010-12-01
Posts: 3

Data Quality Portal 5.0.2: java.lang.NoClassDefFoundError when Login

Hi all,
we installed the Data Quality Portal 5.0.2 in a Tomcat 7 on WinX64. All components startup (SpagoBI, tdqportal et al.) nicely, but if we attempt to login on the TDQ start page (http://<host>:8080/tdqportal/servlet/AdapterHTTP?PAGE=LoginPage&NEW_SESSION=TRUE) we get following text:

An error has occurred. Retry later.
If the problems persists, contact the system administrator.

in the web browser and this Tomcat server log output below.

Is there anybody who has an idea?
-Thanks in advance!!
Frank

INFO  28-03 17:19:03,269 (NilAuthenticator.java:authenticate:51)         All users are guests.
javax.servlet.ServletException: Servlet execution threw an exception
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:327)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at it.eng.spagobi.commons.filters.ProfileFilter.doFilter(ProfileFilter.java:117)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at it.eng.spagobi.commons.filters.SpagoBICoreCheckSessionFilter.doFilter(SpagoBICoreCheckSessionFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis.components.logger.LogFactory
        at org.apache.axis.description.TypeDesc.<clinit>(TypeDesc.java:61)
        at it.eng.spagobi.services.security.bo.SpagoBIUserProfile.<clinit>(SpagoBIUserProfile.java:241)
        at it.eng.spagobi.security.InternalSecurityServiceSupplierImpl.checkAuthentication(InternalSecurityServiceSupplierImpl.java:73)
        at it.eng.spagobi.commons.services.LoginModule.service(LoginModule.java:219)
        at it.eng.spago.dispatching.module.DefaultPage.invokeServiceBusiness(DefaultPage.java:352)
        at it.eng.spago.dispatching.module.DefaultPage.nextStep(DefaultPage.java:302)
        at it.eng.spago.dispatching.module.DefaultPage.service(DefaultPage.java:202)
        at it.eng.spago.dispatching.module.ModuleCoordinator.service(ModuleCoordinator.java:102)
        at it.eng.spago.dispatching.httpchannel.AdapterHTTP.service(AdapterHTTP.java:433)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
        ... 21 more
javax.servlet.ServletException: Servlet execution threw an exception
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:327)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at it.eng.spagobi.commons.filters.ProfileFilter.doFilter(ProfileFilter.java:117)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at it.eng.spagobi.commons.filters.SpagoBICoreCheckSessionFilter.doFilter(SpagoBICoreCheckSessionFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis.components.logger.LogFactory
        at org.apache.axis.description.TypeDesc.<clinit>(TypeDesc.java:61)
        at it.eng.spagobi.services.security.bo.SpagoBIUserProfile.<clinit>(SpagoBIUserProfile.java:241)
        at it.eng.spagobi.security.InternalSecurityServiceSupplierImpl.checkAuthentication(InternalSecurityServiceSupplierImpl.java:73)
        at it.eng.spagobi.commons.services.LoginModule.service(LoginModule.java:219)
        at it.eng.spago.dispatching.module.DefaultPage.invokeServiceBusiness(DefaultPage.java:352)
        at it.eng.spago.dispatching.module.DefaultPage.nextStep(DefaultPage.java:302)
        at it.eng.spago.dispatching.module.DefaultPage.service(DefaultPage.java:202)
        at it.eng.spago.dispatching.module.ModuleCoordinator.service(ModuleCoordinator.java:102)
        at it.eng.spago.dispatching.httpchannel.AdapterHTTP.service(AdapterHTTP.java:433)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
        ... 21 more

Offline

#2 2012-04-05 01:05:10

tmaurin
Member
Company: Cosmos Consulting
Registered: 2011-05-17
Posts: 30
Website

Re: Data Quality Portal 5.0.2: java.lang.NoClassDefFoundError when Login

I have the same problem, any idea ?

I Think I have a problem in server.xml but I don't found it.

Thank's








<?xml version='1.0' encoding='utf-8'?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!-- Note:  A "Server" is not itself a "Container", so you may not
     define subcomponents such as "Valves" at this level.
     Documentation at /docs/config/server.html
-->
<Server port="8005" shutdown="SHUTDOWN">

  <!--APR library loader. Documentation at /docs/apr.html -->
  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
  <Listener className="org.apache.catalina.core.JasperListener" />
  <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  <!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />


  <!-- Global JNDI resources
       Documentation at /docs/jndi-resources-howto.html
  -->
  <GlobalNamingResources>
    <!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users
    -->
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />

  <!--  tdq_portal addon    -->
    <Environment name="spagobi_resource_path" type="java.lang.String" value="C:/Program Files/Apache Software Foundation/Tomcat 6.0/resources"/>
    <Environment name="spagobi_sso_class" type="java.lang.String" value="it.eng.spagobi.services.common.FakeSsoService"/>
    <Environment name="spagobi_service_url" type="java.lang.String" value="http://192.168.1.104:8080/tdqportal"/>   
    <Environment name="spagobi_host_url" type="java.lang.String" value="http://192.168.1.104:8080"/>
    <Environment name="talend_logo_path" type="java.lang.String" value="http://192.168.1.104:8080/tdqportal/docs/tdq_images"/>


    <Resource auth="Container" factory="de.myfoo.commonj.work.FooWorkManagerFactory"
          maxThreads="5" name="wm/SpagoWorkManager"
          type="commonj.work.WorkManager"/>
         
    <Resource name="jdbc/spagobi"
        auth="Container"
        type="javax.sql.DataSource"
        driverClassName="com.mysql.jdbc.Driver"
        url="jdbc:mysql://192.168.1.15:3306/tdqportal?characterEncoding=UTF8"
        username="tdqportal"
        password="tdqportal"
        maxActive="20"
        maxIdle="10"
           maxWait="-1"
           validationQuery ="SELECT 1"
        testOnBorrow ="true"
        testWhileIdle="true"
        timeBetweenEvictionRunsMillis="60000"
        minEvictableIdleTimeMillis="600000"
        numTestsPerEvictionRun="5"/>

    <Resource name="jdbc/tdq_utf8"
        auth="Container"
        type="javax.sql.DataSource"
        driverClassName="com.mysql.jdbc.Driver"
        url="jdbc:mysql://192.168.1.15:3306/talend_dq?characterEncoding=UTF8"
        username="talend_dq"
        password="talend_dq"
        maxActive="20"
        maxIdle="10"
        maxWait="-1"/>

  </GlobalNamingResources>

  <!-- A "Service" is a collection of one or more "Connectors" that share
       a single "Container" Note:  A "Service" is not itself a "Container",
       so you may not define subcomponents such as "Valves" at this level.
       Documentation at /docs/config/service.html
   -->
  <Service name="Catalina">
 
    <!--The connectors can use a shared executor, you can define one or more named thread pools-->
    <!--
    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
        maxThreads="150" minSpareThreads="4"/>
    -->
   
   
    <!-- A "Connector" represents an endpoint by which requests are received
         and responses are returned. Documentation at :
         Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
         Java AJP  Connector: /docs/config/ajp.html
         APR (HTTP/AJP) Connector: /docs/apr.html
         Define a non-SSL HTTP/1.1 Connector on port 8080
    -->
    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    -->           
    <!-- Define a SSL HTTP/1.1 Connector on port 8443
         This connector uses the JSSE configuration, when using APR, the
         connector should be using the OpenSSL style configuration
         described in the APR documentation -->
    <!--
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />
    -->

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />


    <!-- An Engine represents the entry point (within Catalina) that processes
         every request.  The Engine implementation for Tomcat stand alone
         analyzes the HTTP headers included with the request, and passes them
         on to the appropriate Host (virtual host).
         Documentation at /docs/config/engine.html -->

    <!-- You should set jvmRoute to support load-balancing via AJP ie :
    <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">         
    -->
    <Engine name="Catalina" defaultHost="localhost">

      <!--For clustering, please take a look at documentation at:
          /docs/cluster-howto.html  (simple how to)
          /docs/config/cluster.html (reference documentation) -->
      <!--
      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
      -->       

      <!-- The request dumper valve dumps useful debugging information about
           the request and response data received and sent by Tomcat.
           Documentation at: /docs/config/valve.html -->
      <!--
      <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
      -->

      <!-- This Realm uses the UserDatabase configured in the global JNDI
           resources under the key "UserDatabase".  Any edits
           that are performed against this UserDatabase are immediately
           available for use by the Realm.  -->
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>

      <!-- Define the default virtual host
           Note: XML Schema validation will not work with Xerces 2.2.
       -->
      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" 
               prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
        -->

      </Host>
    </Engine>
  </Service>
</Server>


Thomas Maurin
Chef de projet décisionnel
Cosmos Consulting
http://www.cosmos-consulting.fr

Offline

#3 2012-05-29 09:05:09

mzhao
Talend team
Registered: 2008-12-18
Posts: 43

Re: Data Quality Portal 5.0.2: java.lang.NoClassDefFoundError when Login

When DQPortal installed together with TAC, a jar "pax-url-mvn-1.2.8.jar" under "endorsed" folder located under tomcat installation root directory will be created.
This can prevent DQPortal from running correctly.


mzhao

Offline

#4 2012-05-29 09:56:39

mzhao
Talend team
Registered: 2008-12-18
Posts: 43

Re: Data Quality Portal 5.0.2: java.lang.NoClassDefFoundError when Login

related to this JIRS issue: bug:TDQ-5290


mzhao

Offline

#5 2012-06-06 19:50:14

geralds
New member
Registered: 2011-02-11
Posts: 1

Re: Data Quality Portal 5.0.2: java.lang.NoClassDefFoundError when Login

Due to related JIRS issue: bug:TDQ-5290 that mzhao mentioned, you need to install tdq portal separately.

If tdqportal was deployed with TAC you need to remove it:

1) Stop tomcat server
2) Remove all the folder and war files related to dq from <Tomcat_HOME>/webapps
SpagoBICommonJEngine
SpagoBIConsoleEngine
SpagoBIJasperReportEngine
SpagoBIJPivotEngine
SpagoBIQbeEngine
tdqportal

3) Delete the folder "Catalina" from <Tomcat_HOME>/conf and <Tomcat_HOME>/work
4) Restart tomcat

Make sure your TAC webapp is still working.

Now you have to install TDQ Portal, by using custom installation if you're using the installer or follow the IG for manually installing TDQ Portal.
If you're using the installer, make sure to select option which will install dqportal on another Tomcat server (embedded tomcat that you have in Talend Installer), leave the default port or enter an unused port of your choice.

Shutdown tomcat and modify server.xml as per IG.

start the dedicated Tomcat, with the starting script that you will have in the folder tdqp.
..\5.0.2\tdqp\apache-tomcat\bin>startup.bat


If you want to install tdq portal tomcat as a service let me know.

hope this helps.

Last edited by geralds (2012-06-06 19:51:52)

Offline

#6 2012-09-04 22:02:18

dwayland
Member
Registered: 2010-08-26
Posts: 21

Re: Data Quality Portal 5.0.2: java.lang.NoClassDefFoundError when Login

Also - this is a workaround if you are installing tdqportal using MySQL on windows:

Workaround: Set max_allowed_packet = 64M (or another value greater than 16M) in mysql.ini (of the user's
MySQL) and restart MySQL. Reinstall the tdqportal using the installer. It should work.

Offline

  • Index
  •  » Talend Open Studio for Data Quality and Talend Enterprise Data Quality » Configuration, usage and feedback
  •  » Data Quality Portal 5.0.2: java.lang.NoClassDefFoundError when Login

Board footer

Powered by FluxBB