2 Replies Latest reply on Feb 7, 2013 2:31 PM by rsearls

    Deploying weblogic 8.1 application to Jboss 7.1

    sunildshpnd

      hi all,

       

      I am new to jboss application  servers. i have a requirement to migrate weblogic 8.1 application to jboss 7.1. I am trying to deploy the war and facing below. can someone help me on this.

       

       

      16:23:12,131 INFO  [org.acegisecurity.intercept.AbstractSecurityInterceptor] (MSC service thread 1-2) Validated configuration attributes
      16:23:12,147 INFO  [org.springframework.web.context.ContextLoader] (MSC service thread 1-2) Root WebApplicationContext: initialization completed in 390 ms
      16:23:12,162 INFO  [stdout] (MSC service thread 1-2) ERROR: APPLICATION REGISTRY.  NO CONFIGURATION FILE SPECIFIED

      16:23:12,162 INFO  [stdout] (MSC service thread 1-2) ApplicationRegistry configuration complete.

      16:23:12,334 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-2) Hibernate 3.2.3
      16:23:12,334 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-2) hibernate.properties not found
      16:23:12,334 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-2) Bytecode provider name : cglib
      16:23:12,334 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-2) using JDK 1.4 java.sql.Timestamp handling
      16:23:12,365 INFO  [org.hibernate.cfg.Configuration] (MSC service thread 1-2) configuring from file: hibernate.cfg.xml
      16:23:12,365 ERROR [com.fareis.wingspan.claims.hibernate.utils.HibernateUtil] (MSC service thread 1-2) Building SessionFactory failed.: org.hibernate.HibernateException: could not find file: null\hibernate.cfg.xml
      at org.hibernate.cfg.Configuration.configure(Configuration.java:1465) [hibernate-3.2.3.ga.jar:]
      at com.fareis.wingspan.claims.hibernate.utils.HibernateUtil.<clinit>(HibernateUtil.java:33) [wingspan.jar:]
      at com.fareis.wingspan.claims.dao.hibernate.HibernateDAOFactory.getCurrentSession(HibernateDAOFactory.java:58) [wingspan.jar:]
      at com.fareis.wingspan.claims.dao.hibernate.HibernateDAOFactory.getLookupDAO(HibernateDAOFactory.java:42) [wingspan.jar:]
      at com.fareis.wingspan.claims.dao.LookupData.loadLookupData(LookupData.java:53) [wingspan.jar:]
      at com.fareis.wingspan.claims.dao.LookupData.<init>(LookupData.java:49) [wingspan.jar:]
      at com.fareis.wingspan.claims.dao.LookupData.<clinit>(LookupData.java:42) [wingspan.jar:]
      at com.fareis.wingspan.control.LookupDataCacheServlet.init(LookupDataCacheServlet.java:17) [wingspanActions.jar:]
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.13.Final.jar:]
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:]
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]
      at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_24]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_24]
      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]
      Caused by: java.io.FileNotFoundException: null\hibernate.cfg.xml (The system cannot find the path specified)
      at java.io.FileInputStream.open(Native Method) [rt.jar:1.6.0_24]
      at java.io.FileInputStream.<init>(FileInputStream.java:106) [rt.jar:1.6.0_24]
      at org.hibernate.cfg.Configuration.configure(Configuration.java:1462) [hibernate-3.2.3.ga.jar:]
      ... 17 more

      16:23:12,459 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/wingspan]] (MSC service thread 1-2) StandardWrapper.Throwable: java.lang.ExceptionInInitializerError
      at com.fareis.wingspan.claims.hibernate.utils.HibernateUtil.<clinit>(HibernateUtil.java:42) [wingspan.jar:]
      at com.fareis.wingspan.claims.dao.hibernate.HibernateDAOFactory.getCurrentSession(HibernateDAOFactory.java:58) [wingspan.jar:]
      at com.fareis.wingspan.claims.dao.hibernate.HibernateDAOFactory.getLookupDAO(HibernateDAOFactory.java:42) [wingspan.jar:]
      at com.fareis.wingspan.claims.dao.LookupData.loadLookupData(LookupData.java:53) [wingspan.jar:]
      at com.fareis.wingspan.claims.dao.LookupData.<init>(LookupData.java:49) [wingspan.jar:]
      at com.fareis.wingspan.claims.dao.LookupData.<clinit>(LookupData.java:42) [wingspan.jar:]
      at com.fareis.wingspan.control.LookupDataCacheServlet.init(LookupDataCacheServlet.java:17) [wingspanActions.jar:]
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.13.Final.jar:]
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:]
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]
      at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_24]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_24]
      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]
      Caused by: org.hibernate.HibernateException: could not find file: null\hibernate.cfg.xml
      at org.hibernate.cfg.Configuration.configure(Configuration.java:1465) [hibernate-3.2.3.ga.jar:]
      at com.fareis.wingspan.claims.hibernate.utils.HibernateUtil.<clinit>(HibernateUtil.java:33) [wingspan.jar:]
      ... 16 more
      Caused by: java.io.FileNotFoundException: null\hibernate.cfg.xml (The system cannot find the path specified)
      at java.io.FileInputStream.open(Native Method) [rt.jar:1.6.0_24]
      at java.io.FileInputStream.<init>(FileInputStream.java:106) [rt.jar:1.6.0_24]
      at org.hibernate.cfg.Configuration.configure(Configuration.java:1462) [hibernate-3.2.3.ga.jar:]
      ... 17 more

      16:23:12,552 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/wingspan]] (MSC service thread 1-2) Servlet /wingspan threw load() exception: java.io.FileNotFoundException: null\hibernate.cfg.xml (The system cannot find the path specified)
      at java.io.FileInputStream.open(Native Method) [rt.jar:1.6.0_24]
      at java.io.FileInputStream.<init>(FileInputStream.java:106) [rt.jar:1.6.0_24]
      at org.hibernate.cfg.Configuration.configure(Configuration.java:1462) [hibernate-3.2.3.ga.jar:]
      at com.fareis.wingspan.claims.hibernate.utils.HibernateUtil.<clinit>(HibernateUtil.java:33) [wingspan.jar:]
      at com.fareis.wingspan.claims.dao.hibernate.HibernateDAOFactory.getCurrentSession(HibernateDAOFactory.java:58) [wingspan.jar:]
      at com.fareis.wingspan.claims.dao.hibernate.HibernateDAOFactory.getLookupDAO(HibernateDAOFactory.java:42) [wingspan.jar:]
      at com.fareis.wingspan.claims.dao.LookupData.loadLookupData(LookupData.java:53) [wingspan.jar:]
      at com.fareis.wingspan.claims.dao.LookupData.<init>(LookupData.java:49) [wingspan.jar:]
      at com.fareis.wingspan.claims.dao.LookupData.<clinit>(LookupData.java:42) [wingspan.jar:]
      at com.fareis.wingspan.control.LookupDataCacheServlet.init(LookupDataCacheServlet.java:17) [wingspanActions.jar:]
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.13.Final.jar:]
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:]
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]
      at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_24]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_24]
      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

       

      Hoe to test the application after deploymnet.