Note that there are some explanatory texts on larger screens.

plurals
  1. POHaving Issues Uploading WAR File to WebSphere 6.1
    primarykey
    data
    text
    <p>I'm trying to deploy a web service onto WebSphere using a WAR file, which I have been told directly is completely possible and has been done many times before. WebSphere allows me to upload the file, specify the context root, and even start the application. However, when I try to access it by specifying my underlying URIs, WebSphere 404s on me. The relatively useless error message displayed is:</p> <p><code>Error 404: SRVE0202E: Servlet [Jersey REST Service]: com.sun.jersey.spi.container.servlet.ServletContainer was found, but is corrupt: SRVE0227I: 1. Check that the class resides in the proper package directory. SRVE0228I: 2. Check that the classname has been defined in the server using the proper case and fully qualified package. SRVE0229I: 3. Check that the class was transferred to the filesystem using a binary transfer mode. SRVE0230I: 4. Check that the class was compiled using the proper case (as defined in the class definition). SRVE0231E: 5. Check that the class file was not renamed after it was compiled.</code></p> <p>I have checked my naming conventions, modified my web.xml according to <a href="http://dev-answers.blogspot.com/2006/07/cant-deploy-war-on-websphere-6.html" rel="nofollow">this</a> blog post, attempted <a href="http://www.websphere-world.com/modules.php?name=Forums&amp;file=viewtopic&amp;t=401" rel="nofollow">packaging it into an ear file</a> (which threw out its own errors when I tried to upload it), and am trying to figure out what configurations I might have wrong. Any ideas of what I could change to make this work?</p> <p><strong>Edit</strong> </p> <p>Here is the relevant part of my web.xml file:</p> <p><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br> &lt;web-app version="2.4"<br> id="WebAppId"<br> xmlns="http://java.sun.com/xml/ns/j2ee"<br> xsi="http://www.w3.org/2001/XMLSchema-instance"<br> schemalocation="http://java.sun.com/xml/ns/j2ee <a href="http://java.sun.com/xml/ns/j2ee/web-app" rel="nofollow">http://java.sun.com/xml/ns/j2ee/web-app</a>_2_4.xsd"&gt;<br> &lt;display-name&gt;MYPROJECT'SDISPLAYNAME&lt;/display-name&gt;<br> &lt;servlet&gt;<br> &lt;servlet-name&gt;Jersey REST Service&lt;/servlet-name&gt; &lt;servlet-class&gt;com.sun.jersey.spi.container.servlet.ServletContainer&lt;/servlet-class&gt;<br> &lt;init-param&gt;<br> &lt;param-name&gt;com.sun.jersey.config.property.packages&lt;/param-name&gt;<br> &lt;param-value&gt;MYPROJECTNAME&lt;/param-value&gt;<br> &lt;/init-param&gt;<br> &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;<br> &lt;/servlet&gt;<br> &lt;servlet-mapping&gt;<br> &lt;servlet-name&gt;Jersey REST Service&lt;/servlet-name&gt;<br> &lt;url-pattern&gt;/*&lt;/url-pattern&gt;<br> &lt;/servlet-mapping&gt;<br> &lt;/web-app&gt;</code> </p> <p><strong>Another Edit</strong></p> <p>I'm using the newest release of Jersey- is that part of the problem?</p> <p><strong>Yet Another Edit</strong></p> <p>I'm pretty sure that's the entire problem. WebSphere 6.1 runs jdk1.5, and Jersey stopped supporting that after Jersey 1.2...</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload