Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sun's Implementation of a J2EE Server

Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is anyone aware of a bug in the default App Server supplied with the J2SDKEE1.2.1.

I am trying to make an application that contains a JAR with two beans, and a WAR that contains two servlets.

The two beans are no problem. And one servlet in a WAR is no problem. But when I attempt to add a second servlet to the WAR something very odd happens.

In the wizard, it asks "What type of Web Component is this?" and I select 'servlet'. It then asks you to select the servlet class. Since there is only one, I select the single servlet class. Cut to the end.... the deployment descriptor it shows clearly has my servlet class in between the <servlet-class> tags, but after clicking Finish, the servlet class disappears.

If I click on the servlet that was already in the WAR, I see two choices under the General tab for "Servlet Class:" (the servlet already there, and the one I just added.) But in the servlet I just added, under the General Tab, the "Servlet Class:" dropdown is empty, and the deployment descriptor now shows nothing between the <servlet-class> tags for this new servlet.

What the ()@#$&%@#($% is going on?

The servlet compiles, and I believe I have made appropriate alias and ejb Reference entries.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic