jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tharshan Sundaramoorthy" <tsund...@toronto.ca>
Subject ClassCastException JR 1.6 - WebSphere Oracle JNDI
Date Tue, 09 Mar 2010 22:49:22 GMT
Hello All, 

Can anyone please advise when using the following File System entry in repository.xml: 

<FileSystem class="org.apache.jackrabbit.core.fs.db.OracleFileSystem"> 
  <param name="driver" value="javax.naming.InitialContext" /> 
  <param name="url" value="jdbc/csis" /> 
  <param name="schemaObjectPrefix" value="J_FS_"/> 
</FileSystem> 

Encountering a ClassCastException below. 

I have looked at http://wiki.apache.org/jackrabbit/JNDI but the wiki indicates it has been
fixed since JackRabbit 1.4? 

Is the fix for JNDI for Oracle still required? 


[3/9/10 17:42:47:937 EST] 00000034 SystemOut     O [400773] DEBUG - org.apache.jackrabbit.core.RepositoryImpl
-  failed to persist repository properties 
[3/9/10 17:42:47:937 EST] 00000034 SystemOut     O [400773] DEBUG - org.apache.jackrabbit.core.RepositoryImpl
- failed to persist repository properties 
[3/9/10 17:42:47:938 EST] 00000034 SystemOut     O [400773] DEBUG - org.apache.jackrabbit.core.RepositoryImpl
-  failed to load repository properties 
[3/9/10 17:42:47:938 EST] 00000034 SystemOut     O [400773] DEBUG - org.apache.jackrabbit.core.RepositoryImpl
- failed to load repository properties 
[3/9/10 17:42:47:942 EST] 00000034 SystemOut     O [400774] ERROR - org.apache.jackrabbit.core.RepositoryImpl
- failed to start Repository: failed to load repository properties: failed to persist repository
properties: null 
javax.jcr.RepositoryException: failed to load repository properties: failed to persist repository
properties: null: failed to persist repository properties: null: null 
at org.apache.jackrabbit.core.RepositoryImpl.loadRepProps(RepositoryImpl.java:1276) 
at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:285) 
at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:627) 
at org.apache.jackrabbit.jca.JCARepositoryManager$Reference.create(JCARepositoryManager.java:178)

at org.apache.jackrabbit.jca.JCARepositoryManager.createRepository(JCARepositoryManager.java:76)

at org.apache.jackrabbit.jca.JCAManagedConnectionFactory.createRepository(JCAManagedConnectionFactory.java:289)

at org.apache.jackrabbit.jca.JCAManagedConnectionFactory.createConnectionFactory(JCAManagedConnectionFactory.java:124)

at com.ibm.ejs.j2c.ConnectionFactoryBuilderServerImpl.processObjectInstance(ConnectionFactoryBuilderServerImpl.java:1045)

at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getObjectInstance(ConnectionFactoryBuilderImpl.java:596)

at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:314) 
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:894) 
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:701) 
at com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:1937)

at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1792) 
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1707) 
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1412) 
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1290) 
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:145) 
at javax.naming.InitialContext.lookup(InitialContext.java:361) 
at ca.toronto.csd.csis.web.AttendanceAction.execute(AttendanceAction.java:78) 
at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:110)

at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)

at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) 
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) 
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) 
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572) 
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1521) 
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:136) 
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:359)

at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)

at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)

at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)

at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)

at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)

at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)

at ca.toronto.csd.csis.security.CSRFFilter.doFilterHttp(CSRFFilter.java:52) 
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)

at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)

at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:271)

at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)

at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)

at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)

at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)

at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)

at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)

at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)

at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)

at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:174)

at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)

at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)

at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)

at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121) 
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82) 
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:759) 
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3071) 
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:236) 
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210) 
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1958) 
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:89) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)

at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)

at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:101)

at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)

at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619) 
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952) 
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039) 
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471) 
Caused by: javax.jcr.RepositoryException: failed to persist repository properties: null: null

at org.apache.jackrabbit.core.RepositoryImpl.storeRepProps(RepositoryImpl.java:1299) 
at org.apache.jackrabbit.core.RepositoryImpl.loadRepProps(RepositoryImpl.java:1269) 
... 68 more 
Caused by: java.io.IOException 
at org.apache.jackrabbit.core.fs.db.OracleFileSystem$1.close(OracleFileSystem.java:406) 
at org.apache.jackrabbit.core.RepositoryImpl.storeRepProps(RepositoryImpl.java:1294) 
... 69 more 
Caused by: java.lang.reflect.InvocationTargetException 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled
Code)) 
at java.lang.reflect.Method.invoke(Method.java(Compiled Code)) 
at org.apache.jackrabbit.core.fs.db.OracleFileSystem.createTemporaryBlob(OracleFileSystem.java:571)

at org.apache.jackrabbit.core.fs.db.OracleFileSystem$1.close(OracleFileSystem.java:394) 
... 70 more 
Caused by: java.lang.ClassCastException: com.ibm.ws.rsadapter.jdbc.WSJdbcConnection 
at oracle.jdbc.driver.OracleConnection.physicalConnectionWithin(OracleConnection.java:5198)

at oracle.sql.BLOB.createTemporary(BLOB.java:776) 
... 77 more 

Thank you 
Tharshan 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message