Monday, August 3, 2009

Problem running Jersey on the Integrated Server in JDeveloper on windows

Prior to the latest 1.1.2EA builds you will find that if you deploy Jersey to the integrated weblogic server in JDeveloper on window that you might see a deployment issue due to the fact that the weblogic domain will have a space in its filename. (Think c:\Document and Settings\%USER_NAME%\Application Data\)

This is logged as oracle bug 8752995, this is fixed in the latest builds but there is a workaround and that is to edit ..jdevevloper/jdev/bin/jdev.boot and change the following entry to a path without spaces in it.

ide.user.dir = D:/MyJdev/LocalSettings

Note without the NLS fix in the previous blog entry deployment will fail with a stack trace that looks like this:

com.sun.jersey.api.container.ContainerException: [failed to localize]
        at com.sun.jersey.server.impl.application.WebApplicationImpl.processRootResources(
        at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(
        at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(
        at com.sun.jersey.spi.container.servlet.ServletContainer.initiate(
        at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(

No comments: