Skip to main content

Basic JSP can not use GF Orb classes

1 reply [Last post]
Anonymous

Hi,

I'm using GF 3.1 and i want to use a small jsp in a war that display information from ORB.

I wrote this piece of code :

<%
Object orb = org.omg.CORBA.ORB.init();
System.out.println(orb);
com.sun.corba.ee.impl.orb.ORBSingleton sunorb = (com.sun.corba.ee.impl.orb.ORBSingleton) orb;
%>

but jsp compilation failed with the following error :

PWC6197: An error occurred at line: 10 in the jsp file: /orb.jsp
PWC6199: Generated servlet error:
string:///orb_jsp.java:56: package com.sun.corba.ee.impl.orb does not exist

Why this GF class (existing in modules/glassfish-corba-orb.jar) can not be used by my JSP ?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kchung
Offline
Joined: 2004-05-06
Points: 0

For performance, the JSP compilations do not include all the system jars.

To include glassfish-corba-orb.jar, you'll need to edit /default-web.xml to add this jar to the param-value for the init-parm "system-jar-includes" of the jsp servlet.