This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

debugger

 
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I tried to run my application in WSAD 5.0 in debug mode I am getting this error
com.ibm.ws.webcontainer.servlet.strictservletinstance could not be found.
I have rt.jar at WebSphere Studio/eclipse/lib.
What am I missing?

Thanks,
Vasu
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How did you launch your application? Did you select "Debug on Server"? Describe the setup of your project to us -- is it a standard Dynamic Web Project in WSAD? What EAR is associated with it?
Kyle
 
vasu maj
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Kyle Brown:
How did you launch your application? Did you select "Debug on Server"? Describe the setup of your project to us -- is it a standard Dynamic Web Project in WSAD? What EAR is associated with it?
Kyle


I have a ear which has a war file which has the web.xml and all the class files and jsps. I selected debug on server.
Thanks,
Vasu
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But the question is, are these each WSAD projects? Or did you just import them into WSAD as one project -- you see, when you create a WAR project and an EAR project in WSAD it sets up the classpath to contain everything you need to run it. That's the odd thing...
Kyle
 
vasu maj
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have imported the ear to WSAD.
I am a bit unclear about WSAD and WAS so I may be asking you basic questions. Please don't take anything granted from me.
Thnaks,
vasu
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's ok. We'll walk through this slowly. If you did a "File->Import" and chose "EAR File" as the file type, then WSAD would know to create the right projects. There should be at least two -- an EAR project and a WAR project. If you did some other import then it won't do that and things may be messed up.
Now, do the following. Create a "resoruce" perspective, by clicking on the "open a perspective" button at the upper left hand corner of your screen (it has a little cross on it). Select "Resource" from the list when it appears.
Find your WAR project in the Resource perspective. Find the file called ".classpath". Then post its contents here. It should look roughly like the following:
< ?xml version="1.0" encoding="UTF-8"?>
< classpath>
< classpathentry kind="src" path="JavaSource"/>
< classpathentry kind="var"<br /> path="SERVERJDK_50_PLUGINDIR/jre/lib/rt.jar"<br /> rootpath="SERVERJDK_SRCROOT" sourcepath="SERVERJDK_50_PLUGINDIR/src.jar"/>
< classpathentry kind="var" path="WAS_50_PLUGINDIR/lib/j2ee.jar"/>
< classpathentry kind="var" path="WAS_50_PLUGINDIR/lib/servletevent.jar"/>
< classpathentry kind="var" path="WAS_50_PLUGINDIR/lib/ivjejb35.jar"/>
< classpathentry kind="var" path="WAS_50_PLUGINDIR/lib/runtime.jar"/>
< classpathentry kind="output" path="WebContent/WEB-INF/classes"/>
< /classpath>

Kyle
 
vasu maj
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did a File Import and chose a ear file. It has a war file in it.


I opened the resource perspective and here is the classpath entry in the war file.



Thanks,

Vasu
[ May 13, 2004: Message edited by: vasu maj ]
 
    Bookmark Topic Watch Topic
  • New Topic