facebook

XFire 1.2 Core Libraries becomes empty after upgrade to 5.1

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #262921 Reply

    schiang1
    Member

    After upgrading my MyEclipse from 5.0.1 GA to 5.1.0 GA, I created a J2EE web service project and select to add “XFire 1.2 Core Libraries” in the Project Libraries Configuration page of the wizard. “XFire 1.2 Core Libraries” appears in the package explorer for the created project but it is empty. There are no jar files associated with it. I did not run into this problem when using MyEclipse 5.0.1 GA. I upgrade MyEclipse by uninstalling the old version and then installing the new version. Is this a known problem? Are there any way to resolve it?

    – System Setup ——————————-
    Operating System and version: Microsoft Windows 2000 [Version 5.00.2195]
    Eclipse version: 3.2.1
    Eclipse build id:
    Fresh Eclipse install (y/n): n
    If not, was it upgraded to its current version using the update manager? no
    Other installed external plugins: None
    Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*:
    MyEclipse version: 5.1.0 GA
    Eclipse JDK version: Sun SDK 5.0.1
    Application Server JDK version:
    Are there any exceptions in the Eclipse log file? Yes,

    #262963 Reply

    Brian Fernandes
    Moderator

    schiang,

    This could happen if you customized your XFire 1.1 libraries. Could you try going to Window > Preferences > MyEclipse > Project Capabilities > Web Services – XFire and hit Restore Defaults?
    Unfortunately, any customizations made to your previous XFire libraries will be lost. The developers are working on improving library upgrades and this should not be a problem in future releases

    Do let us know if it works or if you require further assistance.

    #262970 Reply

    schiang1
    Member

    Brian,

    It solves my problem. Thank you very much for the quick response. I like MyElipse very much so far.

    #262981 Reply

    schiang1
    Member

    Although the above suggestion solves my problem during build, I got the following error in consoles when starting Tomcat after deployment:

    Dec 4, 2006 12:12:11 PM org.apache.catalina.core.ApplicationContext log
    SEVERE: Error loading WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ———-> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@1b5c22f
    org.codehaus.xfire.transport.http.XFireConfigurableServlet
    java.lang.ClassNotFoundException: org.codehaus.xfire.transport.http.XFireConfigurableServlet
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1355)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1034)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
    at org.apache.catalina.core.StandardService.start(StandardService.java:450)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
    Dec 4, 2006 12:12:11 PM org.apache.catalina.core.StandardContext loadOnStartup
    SEVERE: Servlet /Banking threw load() exception
    java.lang.ClassNotFoundException: org.codehaus.xfire.transport.http.XFireConfigurableServlet
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1355)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1034)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
    at org.apache.catalina.core.StandardService.start(StandardService.java:450)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
    Dec 4, 2006 12:12:12 PM org.springframework.context.support.AbstractApplicationContext refresh
    INFO: No beans defined in application context [org.codehaus.xfire.transport.http.XFireConfigurableServlet$GenericWebApplicationContextX;hashCode=26798260]
    Dec 4, 2006 12:12:12 PM org.springframework.core.CollectionFactory <clinit>
    INFO: JDK 1.4+ collections available

    It seems that the runtime classpath is still not correct. Is there anyway to correct this problem?

    #262995 Reply

    Brian Fernandes
    Moderator

    Schiang,

    1) What XFire libraries did you add to your project?
    You can add more using Project > Properties > Java Build Path > Libraries and then choose Add Library > MyEclipse Libraries – the XFire 1.2 Core Libraries must be added to your project.
    2) Can you check your server’s deployment location to see if these JAR files have been copied to that location correctly?
    3) Go to Window > Preferences > MyEclipse > J2EE Project > Web Project and check the Build Path and Deployment tabs, make sure the “Library Deployment Policies” are all checked.

    Let us know how it goes.

    #263060 Reply

    schiang1
    Member

    Brian,

    Thanks for helping.

    1) the XFire 1.2 Core Libraries is already added to the Java Build Path of the project.

    2) The project is deployed to Tomcat. Under my <tomcat-root>\webapps\<project-name>\WEB-INF\lib, there are the jar files contained in the XFire 1.2 Core Libraries, such as xfire-spring-1.2.2.jar which contains the missing class org.codehaus.xfire.transport.http.XFireConfigurableServlet

    3) For Build Path page, Automatically add WEB-INF/lib/[*.jar|*.zip] to Web Project build-path? “Yes” is checked.
    For Deployment page, Library Deployment Policies are all checked.

    Thanks,

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: XFire 1.2 Core Libraries becomes empty after upgrade to 5.1

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