HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Java error
Operating System - HP-UX
1832682
Members
2707
Online
110043
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 03:09 AM
12-19-2002 03:09 AM
Java error
guo zhitao
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 03:44 AM
12-19-2002 03:44 AM
Re: Java error
Hi:
If I understand you, you are trying to generate a report using a servlet, and instead of displaying your report, you get the error trace. Looks like you have a servlet throwing an exception. Does the servlet produce any other output to the screen, log or error files? I use application specific log files to trace activity in my servlets. Using log files, I can write labels or variable values to the file to verify and trace. Some integrated development environments (IDEs) have debugging tools that allow you to step through servlet code and inspect variables. However, the server where the debugger runs needs to have the same servlet engine and configuration as your web server.
I can't tell where your servlet might be failing. You need to do some digging to see how far the servlet runs and determine where it fails.
Do any servlets run on your web server? You may want to start with hello world.
Tom
If I understand you, you are trying to generate a report using a servlet, and instead of displaying your report, you get the error trace. Looks like you have a servlet throwing an exception. Does the servlet produce any other output to the screen, log or error files? I use application specific log files to trace activity in my servlets. Using log files, I can write labels or variable values to the file to verify and trace. Some integrated development environments (IDEs) have debugging tools that allow you to step through servlet code and inspect variables. However, the server where the debugger runs needs to have the same servlet engine and configuration as your web server.
I can't tell where your servlet might be failing. You need to do some digging to see how far the servlet runs and determine where it fails.
Do any servlets run on your web server? You may want to start with hello world.
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2002 09:09 AM
12-20-2002 09:09 AM
Re: Java error
It looks like you are one step short of reaching this problem-
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x466ec1c4ceddd61190050090279cd0f9,00.html
You need to have an X server to render a chart. You can set the DISPLAY to an xvfb X server as described in that thread.
The exception thrown in your servlet seems like it might be a problem with finding the sun.awt.X11GraphicsEnvironment class-
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
I don't know what would cause that. The class should right there in /opt/java1.3/jre/lib/librt.jar.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x466ec1c4ceddd61190050090279cd0f9,00.html
You need to have an X server to render a chart. You can set the DISPLAY to an xvfb X server as described in that thread.
The exception thrown in your servlet seems like it might be a problem with finding the sun.awt.X11GraphicsEnvironment class-
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
I don't know what would cause that. The class should right there in /opt/java1.3/jre/lib/librt.jar.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP