- This topic has 3 replies, 3 voices, and was last updated 16 years, 4 months ago by
Loyal Water.
-
AuthorPosts
-
myeclipsedeployMemberI 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.jsfI 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-webtest-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
March 18, 2009 at 5:15 am #296268
support-joyMemberHi,
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.March 18, 2009 at 8:03 am #296280
myeclipsedeployMemberThere 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]:March 18, 2009 at 4:38 pm #296310
Loyal WaterMemberBe 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.
-
AuthorPosts