cancel
Showing results for 
Search instead for 
Did you mean: 

Can't import: "javax.management.*"

Former Member
0 Kudos

Hi,

I want to import "javax.management.*" within my jsp-file.

The project deploys fine, but throws this runtime error:

"Application error occurred during the request procession."

The error occurs as soon as I add the following line to my jsp:

<%@ page import="javax.management.*"%>

Info: My server is running on 1.4.2_06.

Best regards,

Holger Kölln

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Holger,

I don't think 1.4.2 includes the javax.management package. You need 1.5.

regards,

Dion

Former Member
0 Kudos

Hi,

javax.management is also available on <a href="http://java.sun.com/j2ee/1.4/docs/api/overview-summary.html">J2EE 1.4</a>. You have to define a reference in application-j2ee-engine.xml for this service in your J2EE Application.

try something like this:


<reference reference-type="weak">
	<reference provider-name="sap.com" strength="weak" type="library">tc/jmx</reference>
</reference>

Regards

Sebastian

Former Member
0 Kudos

Hi Dion,

you are right. I took a look into the 1.4.2 API. There is no javax.management package available.

Somehow the RWB is able to access this package even though my server is not running on 1.5...

For example:

j2ee\cluster\server0\apps\sap.com\com.sap.xi.rwb\servlet_jsp\message_monitoring.jsp

This file includes the javax.management.

How is this possible?

Regards,

Holger

Former Member
0 Kudos

The javax.management APIs are only available in J2EE not J2SE. Thats the reason you cannot find it in the docs of J2SE 1.4. Take a look at the link I provided in my first post.

Regards

Sebastian

Former Member
0 Kudos

Looks like SAP added to XI. I found the javax.management within this jar:

j2ee\cluster\server0\bin\ext\tc~jmx\com_sap_pj_jmx.jar

Thx for your help!

Best regards,

Holger

SRudra
Contributor
0 Kudos

All,

I found the following URL providing some a good length of info on the javax.managemnt package

http://java.sun.com/j2se/1.5.0/docs/api/javax/management/package-summary.html

Is this the same package beign refereed in the XI?

Cheers!!!!

Sukanta Rudra

Answers (0)