Results 1 to 7 of 7

Thread: Deploy the sample app JPetStore to Macromedia JRun4 Problem

  1. #1
    Join Date
    Aug 2004
    Posts
    15

    Default Deploy the sample app JPetStore to Macromedia JRun4 Problem

    When I deploy the sample app JPetStore to Macromedia JRun4 , I got the following error. but work fine in Jakarta Tomcat 4.1.30
    can anyone tell me what's wrong with it. and How can I solve it? thanks.

    Code:
    08/23 14:52:49 info [axis] Initializing servlet 'remoting'
    08/23 14:52:49 info [axis] Framework servlet 'remoting' init
    08/23 14:52:49 user Initializing WebApplicationContext for servlet 'remoting'
    08/23 14:52:49 error [axis] Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMap' defined in resource [/WEB-INF/dataAccessContext-local.xml] of ServletContext: Initialization of bean failed; nested exception is java.lang.VerifyError: (class: com/ibatis/db/sqlmap/XmlSqlMapBuilder, method: buildFragmentList signature: (Lorg/jdom/Element;)Ljava/util/List;) Incompatible object argument for function call
    java.lang.VerifyError: (class: com/ibatis/db/sqlmap/XmlSqlMapBuilder, method: buildFragmentList signature: (Lorg/jdom/Element;)Ljava/util/List;) Incompatible object argument for function call
    	at org.springframework.orm.ibatis.SqlMapFactoryBean.afterPropertiesSet(SqlMapFactoryBean.java:75)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:987)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:284)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:204)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:135)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:217)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:284)
    	at org.springframework.web.context.support.XmlWebApplicationContext.refresh(XmlWebApplicationContext.java:131)
    	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:156)
    	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:97)
    	at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:80)
    	at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    	at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
    	at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
    	at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
    	at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
    	at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
    	at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
    	at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
    	at jrun.deployment.DeployerService.run(DeployerService.java:891)
    	at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
    	at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
    	at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
    	at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
    	at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

  2. #2
    Join Date
    Aug 2004
    Location
    Denver
    Posts
    249

    Default

    It looks to me like JRun has a version of JDOM that conflicts with Spring. Maybe you can replace it with the one that Spring uses?

  3. #3
    Join Date
    Aug 2004
    Posts
    15

    Default

    It is located in jrun.jar,It is so funny that JRun4 include jdom in it's jar.
    then how can I separate it? thanks.

    Code:
    jrun.jar
        ├─allaire
        ├─com
        ├─images
        ├─javax
        ├─jrun
        ├─jrunx
        ├─META-INF
        ├─net
        └─org
            ├─apache
            ├─jdom
            ├─mozilla
            ├─omg
            ├─w3c
            └─xml

  4. #4
    Join Date
    Aug 2004
    Location
    Toronto, Canada
    Posts
    736

    Default

    That's a pretty nasty thing for them to do.

    Assuming JRun does have the ability to load classes it needs from something like a lib dir, what's stopping you from just editing the jar file (with a zip archive maniulator) and removing the files, then dropping in an up to date JDOM?

    Regards,
    Colin Sampaleanu
    SpringSource - http://www.springsource.com

  5. #5
    Join Date
    Aug 2004
    Posts
    15

    Default

    Looks like it is the only way I can do that.
    ok. thanks.

  6. #6
    Join Date
    Aug 2004
    Location
    Linz, Austria
    Posts
    391

    Default

    Quote Originally Posted by mraible
    It looks to me like JRun has a version of JDOM that conflicts with Spring. Maybe you can replace it with the one that Spring uses?
    Actually, it's iBATIS SQL Maps 1.3.1 that requires JDOM, not Spring itself. Note that SQL Maps 2.0 doesn't require JDOM anymore.

    Velocity depends on JDOM too, if I recall correctly. In any case, JRun really shouldn't bundle JDOM in its server jar...

    Juergen

  7. #7
    Join Date
    Aug 2004
    Location
    Toronto, Canada
    Posts
    736

    Default

    FWIW, the upgrade form iBatis SQL Maps 1.0 to 2.0, which would also get rid of this issue, is very simple and mechanical, although relatively tedious if you have a lot of mapping files and code, since most maps and code will be touched unless you run in the compatibility mode. But the process is straightforward, and not-error prone since since everything in 1.0 has an equivalent in 2.0.

    Regards,
    Colin Sampaleanu
    SpringSource - http://www.springsource.com

Similar Threads

  1. Replies: 2
    Last Post: Sep 28th, 2005, 11:12 PM
  2. Replies: 1
    Last Post: Jun 30th, 2005, 12:56 AM
  3. Replies: 1
    Last Post: Jun 21st, 2005, 01:05 AM
  4. Replies: 2
    Last Post: Jan 6th, 2005, 02:49 AM
  5. Replies: 1
    Last Post: Sep 8th, 2004, 02:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •