[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 458
  • Last Modified:

java.util.EmptyStackException

I am trying to make a open source project run using Jbuilder X.
It contains a lot of JSP files. When I try to make the the module containig JSP's it gives me a error

"about.jsp": java.util.EmptyStackException

for every JSP page.
Can someone please tell me what this error means.
I have compiled and run this project using ant build file (that came with the code) but compiling it using Jbuilder X gives this error.
All other beans and EJB's compile fine.


0
thomas908
Asked:
thomas908
  • 11
  • 6
  • 3
2 Solutions
 
bloodredsunCommented:
Can you show the rest of the exception?
0
 
thomas908Author Commented:
thats the only thing I get in JBuilder's message tab.
But this exception is for every JSP page in the module

"searchFileBased.jsp": java.util.EmptyStackException
java.util.EmptyStackException
java.util.EmptyStackException
"searchFullText.jsp": java.util.EmptyStackException
java.util.EmptyStackException
"selectApplication.jsp": java.util.EmptyStackException
"sendOther.jsp": java.util.EmptyStackException
java.util.EmptyStackException
"showUserProfile.jsp": java.util.EmptyStackException
java.util.EmptyStackException
java.util.EmptyStackException
"updateUserProfile.jsp": java.util.EmptyStackException
java.util.EmptyStackException
"upload.jsp": java.util.EmptyStackException
java.util.EmptyStackException
"versions.jsp": java.util.EmptyStackException
"viewCart.jsp": java.util.EmptyStackException
java.util.EmptyStackException

....................
0
 
bloodredsunCommented:
>> When I try to make the the module containig JSP's
Are you trying to get the JSPs to run inside JBuilder (assuming you have more than the Foundation version). If you have the foundation version, this doesn't come with a bundled version of tomcat so you need to have Tomcat  installed on your local machine. Tomcat will then compile the JSPs for you.

0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
bloodredsunCommented:
Which version of JBuilder do you have: Foundation, Developer or Enterprise?
0
 
thomas908Author Commented:
>>Are you trying to get the JSPs to run inside JBuilder (assuming you have more than the Foundation version)
Yes
I have Jbuilder X Enterprise version and I have configured Jbuilder X to work with Jboss3.2.x
I want to use the Tomcat which is cobundled with Jboss.

i have tried a sample "Hello World" Jsp page using Jboss and JBuilderX and it works. So the prob is in this particular module.

 

0
 
TimYatesCommented:
right click on all the jsps and set to "Do not check for errors at compile time"

The compile time JSP checker is rubbish, you're better off using the tomcat exceptions when you actually run the code...

you can set this as a default in your "Default Project Properties", so that it won't check them from now on...

it's slow...and flakey :-(

Tim
0
 
thomas908Author Commented:
I'll get back to this question in a couple of days.
Sorry for the delay
0
 
thomas908Author Commented:
Sorry for the deplayed reply.
I disabled "Do not check for errors at compile time" as suggested by Tim above
Now I am getting the following error

D:/jboss/client/jbossjmx-ant.jar (The system cannot find the file specified)
D:/jboss/client/jbossjmx-ant.jar (The system cannot find the file specified)
D:/jboss/client/jbossjmx-ant.jar (The system cannot find the file specified)
0
 
thomas908Author Commented:
I am using Jboss 3.2.6 and Jbuilder X
0
 
TimYatesCommented:
have you added that library to your "Project Libraries" bit?
0
 
TimYatesCommented:
And does that library exist?
0
 
thomas908Author Commented:
it does not exist in the client folder.
So i copied it from jboss/docs/example/jmx

I dont know why is jbuilder looking for it. It is not needed by the project. Also after coping this file I am getting a new error following error

D:/jboss/client/jbossmqha.jar (The system cannot find the file specified)

This file does not exist anywhere in the jboss directory
0
 
TimYatesCommented:
sounds like you have JBuilder set up to use a "Server" version of JBoss that isn't the version you are using...

Have you set up the "Server"?

(in project/properties)
0
 
thomas908Author Commented:
yes I is pretty much configured
0
 
thomas908Author Commented:
yes it* is pretty much configured
0
 
TimYatesCommented:
What is in your "required libraries" tab?
0
 
thomas908Author Commented:
Jboss 3.x client
Struts
flexdb (contains project specific libraries including oracle driver, jbossall-client.jar, jboss-common-jdbc-wrapper.jar etc)
0
 
thomas908Author Commented:
Jboss 3.x client contains all the jars inside jboss/client and it was there by default
0
 
TimYatesCommented:
strange...
0
 
thomas908Author Commented:
Thanks for helping
The problem is still not solved but I have accepted the answer from Tim as it was definitely useful and solved some other problem.


0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 11
  • 6
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now