Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem of using EJB + spring with Sun App Server

damayanti kulkarni
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to establish an application with stand-alone Client communicating with EJBs deployed on Sun Java System Application Server8.1.However i am using only stateless session bean acting as a Facade whereas actual DB communication is managed by a Hibernate+Spring Layer.

Whenever I am executing the same application with JBoss it works quite well however when i am executing the application with Sun App Server it gives a stack trace saying....

Caused by: java.lang.ExceptionInInitializerError
at net.sf.cglib.core.KeyFactory$Generator.generateClass(
at net.sf.cglib.core.DefaultGeneratorStrategy.generate(
at net.sf.cglib.core.AbstractClassGenerator.create(
at net.sf.cglib.core.KeyFactory$Generator.create(
at net.sf.cglib.core.KeyFactory.create(
at net.sf.cglib.core.KeyFactory.create(
at net.sf.cglib.core.KeyFactory.create(
at net.sf.hibernate.impl.SessionFactoryImpl.<clinit>(
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(
at org.springframework.orm.hibernate.LocalSessionFactoryBean.newSessionFactory(
at org.springframework.orm.hibernate.LocalSessionFactoryBean.afterPropertiesSet(
... 43 more
Caused by: access denied (java.lang.RuntimePermission getProtectionDomain)
at java.lang.SecurityManager.checkPermission(
at java.lang.Class.getProtectionDomain(
at net.sf.cglib.core.ReflectUtils$
at Method)
at net.sf.cglib.core.ReflectUtils.<clinit>(
... 56 more

I do get the following message logged in the file....

Configuring ehcache from ehcache-failsafe.xml found in the classpath:file:/E:/Sun/AppServer/domains/domain1/applications/j2ee-modules/torinoSample/ehcache-failsafe.xml

But I have ehcache.jar file in classpath and it contains the ehcache-failsafe.xml file.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic