Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  war files and WebSphere [Solved]  (Read 1001 times)
0 Members and 1 Guest are viewing this topic.
Offline Regenuluz
« Posted 2013-06-12 07:40:26 »

Hey guys,

So I'm currently writing a school project that's all about writing a "bank app" on one of IBM mainframes. However, my .class files aren't imported into the WAR file, when I export the project in Eclipse, and when I add the class files manually, then I get funny exceptions.

So does anyone know anything about deploying web apps on WebSphere? (My jsp files run without any trouble. Just the .class files that doesn't work.

The funny exception:
1  
2  
Exception thrown by application class 'com.ibm.ws.webcontainer.servlet.ServletWrapper$1.run():1526' 
  SRVE0202E: Servlet [test.TestMuffin]: test.TestMuffin was found, but is corrupted: SRVE0227E: Check that the class resides in the proper package directory. SRVE0228E: Check that the classname has been defined in the server using the proper case and fully qualified package. SRVE0229E: Check that the class was transferred to the filesystem using a binary transfer mode. SRVE0230E: Check that the class was compiled using the proper case (as defined in the class definition). SRVE0231E: Check that the class file was not renamed after it was compiled.


I have no idea of how it should've gotten corrupted. And for the rest of the "check blabla" it seems to not be the case.
Offline gimbal

JGO Knight


Medals: 25



« Reply #1 - Posted 2013-06-12 09:23:03 »

Well check the server and what is deployed there, especially the servlet class file. Is in the right package inside WEB-INF/classes? What is the filesize? Is it perhaps 0-bytes in size?

Note that I would first try to get your war deployed on simple and reliable Tomcat 7 first for which you can find a giant pile of tutorials and articles. Once you get that working, all you need to do is figure out the Websphere specifics which will generally boil down to setting up a proper datasource and such. That will probably require eating through a boring book and visiting the dodgy IBM forums, you'd have more luck getting online help if you were using Glassfish or JBoss.
Offline Regenuluz
« Reply #2 - Posted 2013-06-12 09:44:39 »

It's working on localhost, through Glassfish. Smiley

And when I extract the war file I've generated, the class file is in the correct path and does have a size that's not 0b. Tongue
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Regenuluz
« Reply #3 - Posted 2013-06-12 10:08:11 »

Problem solved. Turned out that I needed to compile for Java 1.5, instead of Java 1.6 or 1.7.

Thanks for the help though! Smiley
Offline gimbal

JGO Knight


Medals: 25



« Reply #4 - Posted 2013-06-12 14:28:45 »

Problem solved. Turned out that I needed to compile for Java 1.5, instead of Java 1.6 or 1.7.

Thanks for the help though! Smiley

Argh, what an unhelpful error message! At least the standard Java runtime moans about incompatible class versions in stead of spewing a word like "corrupt".
Offline sproingie

JGO Kernel


Medals: 201



« Reply #5 - Posted 2013-06-12 17:48:45 »

Running on the IBM JVM I'm guessing.  Yeah, welcome to IBM software. 

This paragraph intentionally left blank.

At least they have regular error codes though, something Sun never bothered with (Oracle's stuff does, but they're stuck with Sun's legacy).
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

ctomni231 (34 views)
2014-07-18 06:55:21

Zero Volt (30 views)
2014-07-17 23:47:54

danieldean (25 views)
2014-07-17 23:41:23

MustardPeter (27 views)
2014-07-16 23:30:00

Cero (42 views)
2014-07-16 00:42:17

Riven (44 views)
2014-07-14 18:02:53

OpenGLShaders (32 views)
2014-07-14 16:23:47

Riven (34 views)
2014-07-14 11:51:35

quew8 (30 views)
2014-07-13 13:57:52

SHC (66 views)
2014-07-12 17:50:04
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!