[ 
https://issues.apache.org/jira/browse/CASSANDRA-5739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13718282#comment-13718282
 ] 

Vivek Mishra commented on CASSANDRA-5739:
-----------------------------------------

as per error:

org.apache.cassandra.exceptions.ConfigurationException: Cannot locate 
cassandra.yaml
        at 
org.apache.cassandra.config.DatabaseDescriptor.getStorageConfigURL(DatabaseDescriptor.java:114)
 [cassandra-all-1.2.4.jar:1.2.4]
        at 
org.apache.cassandra.config.DatabaseDescriptor.loadYaml(DatabaseDescriptor.java:131)
 [cassandra-all-1.2.4.jar:1.2.4]
        at 
org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:123)
 [cassandra-all-1.2.4.jar:1.2.4]
        at 
org.apache.cassandra.service.StorageService.getPartitioner(StorageService.java:140)
 [cassandra-all-1.2.4.jar:1.2.4]
        at 
org.apache.cassandra.service.StorageService.<init>(StorageService.java:132) 
[cassandra-all-1.2.4.jar:1.2.4]
        at 
org.apache.cassandra.service.StorageService.<clinit>(StorageService.java:134) 
[cassandra-all-1.2.4.jar:1.2.4]
        at org.apache.cassandra.db.Table.<clinit>(Table.java:67) 
[cassandra-all-1.2.4.jar:1.2.4]
        at sun.misc.Unsafe.ensureClassInitialized(Native Method) [na:1.7.0_21]

It happens as StorageService initialization happens, when you undeploy(when 
tries to clear held references). 

Error is caused by:

public VersionedValue.VersionedValueFactory valueFactory = new 
VersionedValue.VersionedValueFactory(getPartitioner());

I may be wrong but, shouldn't StorageService handle such and keep it 
uninitialized, rather than static loading.


Now, Kundera(Cassandra ORM solution) needs to load cassandra packages such as 
org.apache.cassandra.locator, org.apache.cassandra.db.marshal for processing 
POJOs.

AFAIK these are available with:

<dependency>
   <groupId>org.apache.cassandra</groupId>
   <artifactId>cassandra-all</artifactId>
   <version>${cassandra.version}</version>
</dependency>

Which in turns bring in StorageService as well. Is there any other alternative 
dependency for this?

-Vivek
                
> Class unloading triggers container crash
> ----------------------------------------
>
>                 Key: CASSANDRA-5739
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5739
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Drivers
>    Affects Versions: 1.2.4
>            Reporter: Paulo Pires
>
> While undeploying a Java webapp on a Glassfish cluster, I get a exception and 
> consequently Glassfish crashes. The log can be seen at 
> http://pastebin.com/CG6LKPEv
> After some research, WebappClassLoader tries to clear references on each 
> loaded class, triggering the call to static StorageService.getPartitioner() 
> which then tries to load the cassandra.yaml file.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to