Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Author Message
jaynbe
Post subject: Myeclipse weblogic server integration problem  PostPosted: Oct 21, 2010 - 05:05 PM



Joined: Oct 21, 2010
Posts: 2

Hi Myeclipse support,

I have a support subscription for MyEclipse and urgently need resolution of the following problem.

When I autodeploy my application to weblogic from Myeclipse using an Ant script and start the server, it gives me the deployment error below (quoted). The essence of the message is "class path resource [folder/filename] cannot be opened because it does not exist"


If I start the application from outside of Myeclipse using the command prompt, (startWebLogic.cmd from the execution domain root, C:\bea\user_projects\domains\mydomain folder) the deployment goes through and the app runs properly, however I cannot debug my app nor do anything that myeclipse has to offer.

If I run the same application from within Eclipse Galileo 3.5.2 (with the same workspace), it runs perfectly.

Details of my environment are provided after the quoted error message.

Quote:
<User defined listener org.springframework.web.context.ContextLoaderListener failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'listingService' defined in ServletContext resource [/WEB-INF/applicationContext-service.xml]: Cannot resolve reference to bean 'listingEmailService' while setting bean property 'listingEmailService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'listingEmailService' defined in ServletContext resource [/WEB-INF/applicationContext-service.xml]: Cannot create inner bean 'util:properties#6abd0b' of type [org.springframework.beans.factory.config.PropertiesFactoryBean] while setting bean property 'props'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'util:properties#6abd0b': Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [appliclib/email.properties] cannot be opened because it does not exist.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'listingService' defined in ServletContext resource [/WEB-INF/applicationContext-service.xml]: Cannot resolve reference to bean 'listingEmailService' while setting bean property 'listingEmailService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'listingEmailService' defined in ServletContext resource [/WEB-INF/applicationContext-service.xml]: Cannot create inner bean 'util:properties#6abd0b' of type [org.springframework.beans.factory.config.PropertiesFactoryBean] while setting bean property 'props'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'util:properties#6abd0b': Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [appliclib/email.properties] cannot be opened because it does not exist
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1099)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
Truncated. see log file for complete stacktrace


Here are some details about my app and its environment:

1. My Eclipse version : 8.6.

2. The application is a web application using struts, spring and hibernate but is configured as a java project within MyEclipse (i.e. it is not a myeclipse web project).

The spring application context has the following entry that is causing the problem:
- <property name="props">
<util:properties location="classpath:./appliclib/email.properties" />
</property>
Note that the file is being searched for in the currrent directory which should be the execution domain root.

It looks like myeclipse is not firing the startweblogic command from the execution domain root.

3. Myeclipse connector for weblogic is configured as follows:

Bea home directory : C:\bea
Weblogic installation directory : C:\bea\weblogic92
Administration user name : weblogic
Administration password : ...............
Execution domain root : C:\bea\user_projects\domains\mydomain
Execution server name : AdminServer
Security Policy File : C:\bea\weblogic92\server\lib\weblogic.policy

4. Weblogic version 9.2
 
 View user's profile Send private message  
Reply with quote Back to top
support-shalini
Post subject: RE: Myeclipse weblogic server integration problem  PostPosted: Oct 22, 2010 - 11:29 AM
Registered Member
Registered Member


Joined: May 18, 2009
Posts: 1532


_________________
Shalini
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits