Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.servlet.ServletException: non-HTTP request or response

 
Ankit Varshney
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends

I am using J BOSS 5.0.0 GA for deploying my ear file.Its deployed successfully but while running the project its shown the exception.
The server log is shown below..




Please help me out.How to solve it
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It was bug which got fixed in JBossAS-5.0.1 GA. I would recommend that you upgrade to the latest 5.1.0 GA version of JBoss AS since it has many bug fixes. Here are the details about this specific issue:

Forum thread 1

Related thread

JBAS-6478

 
Ankit Varshney
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello Sir,

I also have tried in jboss-5.1.0.GA but its giving same error..

What should i do???

Its very urgent for me

 
Bill Burke Jboss
Greenhorn
Posts: 1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had the same problem. Fixed it by removing servlet-api jar from my WAR file.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Bill Burke Jboss"

Please click the "My Private Messages" link (at the top of this page) for a message from JavaRanch.
 
narayanarao gare
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i too faced the same issue. i tried even removing the servlet-api jar but no luck........ can any one help me out on this?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
narayanarao, welcome to Java Ranch!

Please ShowSomeEffort. Saying "me too" on someone else's post is usually is not sufficient. You should open a new post and TellTheDetails. For example, are you deploying an EAR? Are you using JBoss AS 5.0.0.GA? What are the contents of your EAR?
 
Janmajay Vishnu
Greenhorn
Posts: 1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Explaination:
Normally all these kind of problems are cause dues to multiple version of same packages.

For example, In my eclipse environment, I have jsp-api and servlet-api of some version (lower then 2.5 and 2.0, respectively).

At runtime jboss compiles the jsp page and tries to invoke methods from newer version (Don't ask me which, since I have not dug in that line).



Solution:
Remove servlet-api.jar and jsp-api.jar

TIP
Whenever I run into these kind of issues, I rip apart the project by striping off all the jars. Then add them (in groups like spring, velocity, commons, etc.) one by one based on Class not found exception. Once my project runs, I know the offenders and I blacklist them by putting them in exclude tag in ivy or removing them from web-inf/lib, etc.
Its worth the time because its something I don't do everyday and keeps my project.
 
Yedder Isran Nallamilli
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, this runtime exception is absolutely due to conflicts in jar files.
I had servlet jar in my WEB-INF lib directory, which is added to build path to let the class visible to compile the dependecy files and another in my JBoss [Trinity] 4.2.1.GA server lib directory. When I ran the ear the application was running fine but when I ran the application on the my production server JBoss_5_1_0_GA it beautifully kissed that exception.
There can be two possibilties of error,
1) The jboss
2) The differences version of servlet jar files in EAR file and one in server directory.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic