facebook

Myeclipse weblogic server integration problem

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #312177 Reply

    jaynbe
    Member

    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.

    <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

    #312202 Reply
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Myeclipse weblogic server integration problem

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

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