facebook

Urgent – Application won’t deploy on weblogic9.2

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #296199 Reply

    I am using myeclipse 7.0 to hot deploy on weblogic 9.2
    – Created an EAR test-ear with a web module test-web. Is dependent on a core java utility project test-core. Created the dependency, using Preferences in the Workbench to create the dependent jar files.
    – Added a deployment for weblogic for this ear in Myeclipse. I can see the test-ear folder under the autodeploy folder for weblogic.
    – But when I run the server from myeclipse I get the following error in the Web browser
    ERROR 404 — Not Found
    for the following http://localhost:7061/testapp/my.jsf

    I launch the application http://localhost:7061/testapp/welcome.jsp
    I have an welcome.jsp that redirects to my.jsf. Application context is testapp.

    There are no error logs generated atleast not on weblogic, Any help is very much appreciated

    Second issue, I have the project structure as below

    test-ear
    |___test-framework
    |___test-web

    test-framework is a java utility project. How do I create an EAR project in myeclipse with the web module and the framework module and keep the structure as is ?

    thanks

    #296268

    support-joy
    Member

    Hi,

    Can you download TraderX application from http://www.myeclipseide.com/documentation/quickstarts/earprojects/ (Look for traderx_src.zip) and deploy in weblogic 9.2.
    Also, try to run your application directly in weblogic 9.2, outside of MyEclipse. Let me know your findings.

    #296280

    There was some progress, found myeclipse had generated a web.xml for the web module which overwrote my web.xml. After reverting this, it fails to deploy in myeclipse. But if I start weblogic outside myeclipse it deploys the application that myeclipse put in autodeploy without any errors and I am able to access all pages of my application. Don’t know if it is a classpath issue. But if I start the server from within myeclipse it fails with following stack trace

    <Mar 18, 2009 8:58:07 AM EDT> <Warning> <HTTP> <BEA-101162> <User defined listener org.mytest.MyServletContextListener failed: org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [spring.utils.spring.bean.factory], from group with resource name [classpath*:spring.factory.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘spring.factory’ defined in URL [file:/C:/bea/user_projects/domains/test_misc/autodeploy/test-ear/test-web/WEB-INF/classes/spring.factory.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.test.MyController’ defined in class path resource [org/test/test_spring_config.xml]: Cannot resolve reference to bean ‘hibernateSessionFactory’ while setting bean property ‘sessionFactory’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘hibernateSessionFactory’ defined in class path resource [spring.hibernate3.xml]: Cannot resolve reference to bean ‘dataSource’ while setting bean property ‘dataSource’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’ defined in class path resource [spring.datasource.jndi.xml]: Error setting property values; nested exception is PropertyAccessExceptionsException (1 errors).
    org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [spring.utils.spring.bean.factory], from group with resource name [classpath*:spring.factory.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘spring.factory’ defined in URL [file:/C:/bea/user_projects/domains/test_misc/autodeploy/test-ear/test-web/WEB-INF/classes/spring.factory.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]:

    #296310

    Loyal Water
    Member

    Be sure you have the connector configured to launch WebLogic with the JDK installed under the WebLogic install dir and not some other JDK you have set.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Urgent – Application won’t deploy on weblogic9.2

You must be logged in to post in the forum log in