Skip to content.

Find topic

Web tools

Help

Tools

       Analysis Tool Bar  +

Scheduler with name 'Cocoon' already exists

This error appears due to a misconfiguration of OJB block in Cocoon. This block expects two properties file OBJ.properties and OJB-logging.properties in the folder from which servlet container hosting Cocoon was started. In case one of those files is missing, the initialization code would throw an exception. Tomcat will attempt to restart Cocoon servlet, and at this time, Cron block will throw an exception.

cocoon-error.PNG

To fix this problem, just make sure that OJB.properties and OJB-logging.properties are available in the directory from which Tomcat is started.

Problems during the build process: APPARENT DEADLOCK message

Apparent deadlock message is shown by C3P0 library. This library is used by the portal for managing database connections (MySQL in default configuration). This condition may take place due to various reasons, but most likely it's caused by misconfiguration of the database. Please make sure that appropriate user name is specified in the portal configuration file ($TAPOR_HOME/build-hibernate.properties). Make sure that you verify this by logging in with this user name and password.

[hibernatetool] (log.MLog                            80  ) MLog clients using log4j logging.
[hibernatetool] (c3p0.C3P0Registry                   204 ) Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
[hibernatetool] (impl.AbstractPoolBackedDataSource   462 ) Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@a21c7469 [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@9d6cd17a [ acquireIncrement -> 5, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, debugUnreturnedConnectionStackTraces -> false, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> z8kfsx7uvv4a3u1a61qw8|1cffeb4, idleConnectionTestPeriod -> 3000, initialPoolSize -> 5, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 3000, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 20, maxStatements -> 100, maxStatementsPerConnection -> 0, minPoolSize -> 5, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@a3e54f6b [ description -> null, driverClass -> null, factoryClassLocation -> null, identityToken -> z8kfsx7uvv4a3u1a61qw8|1a06e38, jdbcUrl -> jdbc:mysql://localhost:3306/TAPoR?useUnicode=true&characterEncoding=UTF-8, properties -> {autoReconnect=true, is-connection-validation-required=true, user=******, password=******, autoReconnectForPools=true} ], preferredTestQuery -> null, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false; userOverrides: {} ], dataSourceName -> null, factoryClassLocation -> null, identityToken -> z8kfsx7uvv4a3u1a61qw8|1b0bdc8, numHelperThreads -> 3 ]
[hibernatetool] (async.ThreadPoolAsynchronousRunner  608 ) com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@c943d1 -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!
[hibernatetool] (async.ThreadPoolAsynchronousRunner  624 ) com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@c943d1 -- APPARENT DEADLOCK!!! Complete Status: 
[hibernatetool]    Managed Threads: 3
[hibernatetool]    Active Threads: 3
[hibernatetool]    Active Tasks: 

....

[hibernatetool] ** BEGIN NESTED EXCEPTION ** 
[hibernatetool] 
[hibernatetool] java.sql.SQLException
[hibernatetool] MESSAGE: Invalid authorization specification,  message from server: "Access denied for user 'taporUser'@'localhost' (using password: YES)"
[hibernatetool] 
[hibernatetool] STACKTRACE:
[hibernatetool] 
[hibernatetool] java.sql.SQLException: Invalid authorization specification,  message from server: "Access denied for user 'taporUser'@'localhost' (using password: YES)"
[hibernatetool]    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1977)
[hibernatetool]    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1900)

Missing hibernate.cfg file

Most likely this condition occurs because of a failure of the servlet container to deploy the TAPoR WAR file. After a successful deployment, the TAPOR web app directory should look similarly to listing below:

 Directory of $TAPoR_HOME
    <DIR>          backup-news
    <DIR>          tool-images
    <DIR>          test-reports
    <DIR>          stylesheets
    <DIR>          RSS
    <DIR>          META-INF
    <DIR>          my-texts
    <DIR>          news
    <DIR>          news-feeds
    <DIR>          resources
    <DIR>          portal
    <DIR>          WEB-INF
            54,736 sitemap.xmap
               481 build-hibernate.properties
               678 build-content.properties
        12,688,422 backup.xml
            11,610 build-hibernate.xml
               914 not-found.xml
               973 welcome.xml
             2,413 welcome.xslt
        8 File(s)     12,760,227 bytes

hibernate.cfg.xml should be present in WEB-INF/classes

 Directory of $TAPoR_HOME\WEB-INF\classes
    <DIR>          ca
    <DIR>          com
    <DIR>          org
    <DIR>          httpunittests
    <DIR>          unittests
             6,751 ehcache.xml
             5,558 oscache.properties
            41,223 repository.dtd
             1,287 repository.xml
             3,835 repository_database.xml
             7,375 repository_internal.xml
             3,970 repository_user.xml
             3,241 hibernate.cfg.xml
         8 File(s)         73,240 bytes
         7 Dir(s)  79,194,288,128 bytes free

In case most of these files are missing or incomplete, please remove the WAR file and try to redeploy it once again. Optionally, please try extracting the content of ROOT.war file into deployment directory of your servlet container (webapps for Tomcat)

I can't create an XTeXT repository

TAPoR portal only provides user interface to the remote SOAP and REST based web services, which are represented as tools in the portal. XTeXT tools are provided as proprietary web services that are only accessible internally on McMaster University servers. Other portal installation are not provided with access to these services. Sorry for any inconvenience.

User Management portlet doesn't work

Portal uses Cocoon's authentication framework. It can be configured with just about any data source possible. At the moment, TAPoR portal comes with two authentication options:

1. Flat file authentication - uses an XML file for keeping user names and passwords. This password file can be found in $TAPOR_HOME\portal\resources\sunrise-user.xml. To add new user accounts, this file may be modified manually. Just add a new set of tags configured with the required user name, password and role:

<user>
   <name></name>
   <full_name></full_name>
   <password></password>
   <role></role>
</user>

Portal role determines layout and the functionality available in the portal (pages and portlets). There are different roles:

  • admin
  • advanced
  • basic
  • toolDeveloper
  • documenter
  • guest

Any of those roles may be specified in the </user> tag.

2. LDAP authentication - this option requires an LDAP enabled server with custom schema deployed. Once configured, all user control features (like registering for a basic account from the front page and user management tools within the portal will work just fine. However, it may take additional effort to install and configure the LDAP server.

Portal hangs on file uploads

TAPoR portal acts as a "broker" which forwards most of the requests to remote tools (SOAP and REST based web services). Portal can be configured to make local calls. However, it will require a local installation of these tools (TAPoRWare). Otherwise most of the tools point to TAPoRware web site at McMaster University. Therefore, despite having a local portal deployment, the portal still calls those remote servers in Hamilton, ON, Canada. TAPoR has been tested to work well with relatively small files (less than 10 MB). For files larger than this limit advanced portal installation with local version of tools must be deployed.

Tomcat will not start

Most likely an instance of Tomcat is already running, listening on the same port. Please use "Task Manager" in Windows or "kill" command in *nix to terminate Tomcat process. In case there are no Tomcat or Java processes ("Task Manager" in Windows/"ps" command in *nix to verify), please check its configuration and try to start it without TAPoR deployed.

10 juin 2008 15:44:50 org.apache.coyote.http11.Http11BaseProtocol init
GRAVE: Erreur à l'initialisation du point de contact
java.net.BindException: Address already in use:8080
    at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:298)
    at org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:139)

-- NickGoupinets - 25 Jun 2008


Use this box to quickly add a comment to the page.

more options...