"java.lang.VerifyError" for Castor.jar during deployment to JBoss

(Last modified: 07Apr2005)

This document (10097182) is provided subject to the disclaimer at the end of this document.

fact

Novell exteNd Messaging Platform 5.2.1

JBoss-4.0.1 Application Server (SP1)

symptom

Receive an error during the deployment of a new Director project

error: java.lang.VerifyError: (class: org/exolab/castor/mapping/Mapping, method: loadMappingInternal signature: (Lorg/xml/sax/InputSource;)V) Incompatible object argument for function call

cause

The ClassCastExceptions is caused by conflicts between multiple versions of the Castor.jar

fix

To fix this verify that all updates have been preformed as outlined in the Boss Migration Guide. The steps in Chapter 3, "Deploying an exteNd Director Project" outline how to set up the JBOSS_CLASSPATH to include the castor.jar.
Fix for Linux:
For the 'all' configuration only when running on Linux, add an entry for the JBoss Castor.jar to the server's run.sh file.
You'll find the JBoss Castor.jar in jboss/server/all/deploy/snmp-adaptor.sar.
On Linux, add the following right after the line: "JBOSS_ENDORSED_DIRS="$JBOSS_HOME/lib/endorsed"
#####################################
# Novell extend settings for all config #
###########################################
if [ "$*" = "-c all" ]; then
if [ "x$JBOSS_CLASSPATH" = "x" ]; then
JBOSS_CLASSPATH=$JBOSS_HOME/server/all/deploy/snmp-adaptor.sar/castor.jar
else
JBOSS_CLASSPATH=$JBOSS_CLASSPATH:$JBOSS_HOME/server/all/deploy/snmp-adaptor.sar/castor.jar
fi
fi

Fix for Windows:
For the 'all' configuration only when running on Windows, add an entry for the JBoss Castor.jar to the server's run.bat file.
You'll find the JBoss Castor.jar in jboss/server/all/deploy/snmp-adaptor.sar.
On Windows, add the following right after the line: "JBOSS_ENDORSED_DIRS="$JBOSS_HOME/lib/endorsed"
rem########################################
rem#Novell extend settings for all config #
rem#########################################
if "%*" == "-c all" (
if "%JBOSS_CLASSPATH%" == "" (
set JBOSS_CLASSPATH=%JBOSS_HOME%\server\all\deploy\snmp-adaptor.sar\castor.jar
) else (
set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;%JBOSS_HOME%\server\all\deploy\snmp-adaptor.sar\castor.jar
)
)

document

Document Title: "java.lang.VerifyError" for Castor.jar during deployment to JBoss
Document ID: 10097182
Solution ID: NOVL101617
Creation Date: 31Mar2005
Modified Date: 07Apr2005
Novell Product Class:exteNd

disclaimer

The Origin of this information may be internal or external to Novell. Novell makes all reasonable efforts to verify this information. However, the information provided in this document is for your information only. Novell makes no explicit or implied claims to the validity of this information.
Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark information.