Controlling Access to Classes
Hi,
I know that you can use the keywords private and protected for methods and variables, but can you also use these keywords at the class level? I understand that the public modifier enables a class to be accessed outside of its package, and that if no modifier is used, then the class can be accessed by any class within the same package. But what would the private and protected keywords mean at the class level?
Thx.
I know that you can use the keywords private and
protected for methods and variables, but can you also
use these keywords at the class level? I understand
that the public modifier enables a class to be
accessed outside of its package, and that if no
modifier is used, then the class can be accessed by
any class within the same package. But what would the
private and protected keywords mean at the class
level?They cause a compile-time error.
It's can be explained.
private modifer forbid(? a don't know how to translate :) ) access to class, why you must need class that you can't access?
protected modifer used when you inheritr something/ but tou newer inherite class. You inherit it'as member.
It was simple question :)
Similar Messages
-
Controlling Access to Class Members
1- can a constructor be private ? In what cases?
2-Imagine a method of a super class#1 in package#1 is private ,can sub classes of super class#1 in package#2 have access to that method?If not , then what about Inheritance ? If yes , then what about being private ?Z.S.Tehrani wrote:
1- can a constructor be private ? In what cases?Did you try it? What happened? If I give a different answer to your compiler, who will you believe?
2-Imagine a method of a super class#1 in package#1 is private ,can sub classes of super class#1 in package#2 have access to that method?If not , then what about Inheritance ? If yes , then what about being private ?Did you try it? What happened? If I give a different answer to your compiler, who will you believe? -
Class not Found when accessing Proxy class from backing bean in VC.
Hi All,
I'm attempting to access a class of a webservice(generated as a proxy) within my ADF application and invoke the method within a backing bean of the View Controller(bean scope : backing bean). The proxy has generated an ObjectFactory class among other classes. When I access this Object factory class from within the backing bean, the application throws a Class not found error.
I don't know where the error lies since I've declared the View Controller of the ADF application dependent on the Proxy and I've imported the class and accessing it within a backing bean. How would you suggest I approach resolveing this.
JDev : 1.1.1.4
Thank you.
Regards
PP.Hello Arun,
Thank you for suggesting a Data control, but my requirement isn't to drag and drop the method as a button. It's more of a behind the scnes updating data via a database adapter requirement.
I've resolved the issue. turns out, my deployment archive didn't include the proxy.jpr. Once included it works likea charm.
Thanks
PP. -
Accessing Java Classes from Forms
Is is possible to access a Java class from Forms? I have been
creating an Active X control that returns a Java object, and from
that I can call methods on that object, but I would really like
to do that without having and Active X control in the mix. Any
suggestions?
nullOracle Developer Team wrote:
: Robert Nocera (guest) wrote:
: : Oracle Developer Team wrote:
: : : hey robert -
: : : Developer 6.0 provides this ability for web deployment.
You
: : can
: : : insert your own custom Java components into your
application
: : and
: : : they will appear in the application when it is run via the
: web.
: : : If you look at the documentation for 6.0, there are a few
: : : section son Pluggable Java Components and JavaBeans that
: : : describes what is provided and how you use the interfaces
: and
: : : classes we provide.
: : : A whitepaper on this topic will be posted to the OTN
: shortly,
: : as
: : : well as some samples that illustrate how to go about doing
: it.
: : : cheers!
: : : -Oracle Developer Team-
: : Thanks for the quick response. Is there any way to access
: those
: : classes without being in a web deployment. That's probably
: not
: : totally out of the question, but what we had in mind was
: adding
: : some Java Functionality (actually connectictivity to some
EJBs
: : that we have) to existing forms. Currently there forms are
: not
: : deployed in a "web" environment and are just run from the
: forms
: : runtime engine.
: : -Rob
: hey again robert -
: there's no easy way (yet!) to call out from forms runtime
: process to a Java application.
: We've played around some with creating an ORA_FFI interface to
: JNI and then wrappering this with PL/SQL code. We've been able
: to make calling into an EJB running in 8i from a forms runtime
: work using this approach.
: Let me know if this is of interest to you and I can post the
: stuff we've currently got. It's no more than a simple demo and
: is not complete. It requires quite a bit of manual coding on
: the PL/SQL side since the interface emulates JNI (FindClass,
: GetMethodID, CallMethodID, etc.).
: cheers!
: -the Oracle Developer Team-
I'd be interested in this ORA_FFI doc you've been playing with.
Would you please email it to me or post it.
null -
Problem with Dynamically accessing EJB Class objects in WL 7.0 SP1
I am trying to build a component which has the ability to instantiate and execute
an known EJB method on the fly.
I have managed to build the component but when I try and execute it I get a ClassNotFoundException.
I know that the EJB I am trying to invoke is deployed and available on the server,
as I can see it in the console, I also seen to have been able to get the remote
interface of the object, my problem occurs when I try and access the class object
so I can perform a create on the object and then execute my method
The code I have written is below:
private Object getRemoteObject(Context pCtx, String pJNDIName, String pHomeBean)
throws Exception {
String homeCreate = "create";
Class []homeCreateParam = { };
Object []homeCreateParamValues = {};
try {
//This call seems to work and doesn't throw an exception
Object home = pCtx.lookup(pJNDIName);
//However this call throws a java.lang.ClassNotFoundException
Class homeBean = Class.forName(pHomeBean);
Method homeCreateMethod = homeBean.getMethod(homeCreate,homeCreateParam);
return homeCreateMethod.invoke(home, homeCreateParamValues);
} catch (NamingException ne) {
logStandardErrorMessage("The client was unable to lookup the EJBHome.
Please make sure ");
logStandardErrorMessage("that you have deployed the ejb with the JNDI
name "+pJNDIName+" on the WebLogic server ");
throw ne;
} catch (Exception e) {
logStandardErrorMessage(e.toString());
throw e;
Any advice would be really appreciated, I'm fast running out of ideas, I suspect
it has something to do with the class loader but I'm not sure how to resolve it
Regards
Jo CorlessHello Joanne,
Congratulations! I'm very happy that you've managed to fix your problem. It's
always essential to understand how to package applications when deploying on BEA
WebLogic. Usually, by throwing everything into an EAR file solves just about all
the class loader problems. :-) Let us know if you have any further problems that
we can assist you with.
Best regards,
Ryan LeCompte
[email protected]
http://www.louisiana.edu/~rml7669
"Joanne Corless" <[email protected]> wrote:
>
>
I've fixed it!!!!!!!!
Thanks to everyone who gave me help!!!!
The class loader was the culprit which is what I suspected all along.
As soon
as I put the 2 jar files I was using into an EAR file the problem went
away!!!!!
Thanks again
Jo Corless
"Ryan LeCompte" <[email protected]> wrote:
Hello Joanne,
As Mr. Woollen mentioned, I also believe it's a problem with the class
loader.
You need to be careful how you arrange your EJBs, because WebLogic has
a specific
method in which it loads classes in an EAR, JAR, and WAR file(s). Please
refer
to http://dev2dev.bea.com/articles/musser.jsp for more information about
BEA WebLogic
class loading mechanisms and caveats. Also, try printing out the various
methods
that are available on the object that was returned to you via reflection.
For
example, use the getMethods() method, which returns an array of Method
objects
that you can subsequently cycle through and print out the various method
names.
This way you can discover if the class found/returned to you is indeed
the one
you intend to locate.
Hope this helps,
Ryan LeCompte
[email protected]
http://www.louisiana.edu/~rml7669
Rob Woollen <[email protected]> wrote:
I believe the issue is the home interface class for this EJB is not
available in the class loader which is doing the reflection.
If you do:
getClass().getClassLoader().loadClass(homeInterfaceClassName)
I suspect it will fail. Reflection still requires that the class be
loadable.
-- Rob
Joanne Corless wrote:
Hi Slava,
If I make my code look like you describe below I get a compliationerror telling
me that
home.getMethod() is not recognised (no such method)
If I change it slightly and use
Method homeCreateMethod =
home.getClass().getMethod(homeCreate,homeCreateParam);
The code will compile OK but when executed it still throws a NoSuchMethodException
Any ideas ?
Thanks for your help so far
Regards
Jo Corless
Your code should look like
Object home = pCtx.lookup(pJNDIName);
Method homeCreateMethod =
home.getMethod(homeCreate,homeCreateParam);
return homeCreateMethod.invoke(home, homeCreateParamValues);
Regards,
Slava Imeshev
"Joanne Corless" <[email protected]> wrote in message
news:[email protected]...
Hi Ryan,
I also wanted to mention that if you do a "header search" in this
particular
newsgroup
with the search query as "reflection", you will see many previousmessages
regarding
reflection and EJBs. I believe you could learn a lot from thedifficulties
that
others have faced and solved.I tried that and although there was a number of similar cases noneof them
actually
seem to fix my issue. Thanks for the suggestion though
Are the EJBs that you are trying to access accessible via your
system
classpath?
Try to avoid having them accessible via the main system classpath,and
only bundle
them in your appropriate EJB jar files (contained in an EAR file,for
example).Maybe I should have laid the problem out a little clearer.
I have a number of EJB's bundled up in a JAR file which is hot deployedto
the
server. Within this first JAR file is an EJB (SSB) component that
needs
to
be
able to invoke a known method on another EJB. This second EJB may
or
may
not be
within the first JAR file but it also will be hot deployed.
The component trying to invoke the method on the 2nd EJB has to
be
able to
create
an instance of the 2nd EJB without actually knowing anything bar
a
JNDI
Name which
is passed in at runtime.
I can get as far as doing the
Object home = pCtx.lookup(pJNDIName);
This returned a class with the name
"com.csc.edc.projects.allders.httppostoffice.postman.PostmanBean_mp8qy2_Home
Impl_WLStub"
My problem seems to occur when I try and invoke the create method
Method homeCreate = home.getClass().getMethod("create", new Class[0]);
My code throws a java.lang.NoSuchMethodException at this point so
I
am
unable
to progress to the next step of :
Object bean = homeCreate.invoke(home, null);
So I can return the instantiated bean back to the calling client.
Why am I getting the NoSuchMethodException, is is because I am gettinga
stub
back rather than the home interface and if so how do I get the truehome
interface
from the bean
Thanks in advance
Jo Corless -
How to access a class file outside the package?
created a two java files Counter.java and TestCounter.java as shown below:
public class Counter
public void print()
System.out.println("counter");
package foo;
public class TestCounter
public static void main(String args[])
Counter c = new Counter();
c.print();
Both these files are stored under "D:\Test". I first compiled Counter.java and got Counter.class which resides in folder "D:\Test"
when i compile TestCounter.java i got the following error message:
D:\Test>javac -classpath "d:\Test" -d "d:\Test" TestCounter.java
TestCounter.java:6: cannot find symbol
symbol : class Counter
location: class foo.TestCounter
Counter c = new Counter();
^
TestCounter.java:6: cannot find symbol
symbol : class Counter
location: class foo.TestCounter
Counter c = new Counter();
^
2 errors
what could be the problem. Is it possible to access a class file outside the package?ya that's fine..if we have two java files where both resides in the same package works fine or two java files which donot have a package statement also works fine. But my doubt is, i have a Counter.class which does not reside in a package and i have a TestCounter.class which resides in a package "foo", in such a scenario, how do i tell to the compiler that "Counter.class resides in such a path, please look at that and give me TestCounter.class". i cannot use import statement to import Counter.class in TestCounter.java because i donot have a package for Counter.java.
-
How can I access another class in a MembershipRule's Expression
Hello,
I want to create an InstanceGroup using Module Microsoft.SystemCenter.GroupPopulator.
I need to collect all Logical Disks which contain an MS SQL DB Log File.
I would start as follows:
<DataSource ID="DS" TypeID="SC!Microsoft.SystemCenter.GroupPopulator">
<RuleId>$MPElement$</RuleId>
<GroupInstanceId>$Target/Id$</GroupInstanceId>
<MembershipRules>
<MembershipRule>
<MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.LogicalDisk"]$</MonitoringClass>
<RelationshipClass>$MPElement[Name="MSIL!Microsoft.SystemCenter.InstanceGroupContainsEntities"]$</RelationshipClass>
<Expression>
<And>
<!--
First Expression
-->
<Expression>
<SimpleExpression>
<ValueExpression>
<Property>$MPElement[Name="Windows!Microsoft.Windows.LogicalDevice"]/Name$</Property>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<!--
How can I access another class's properties ?
-->
<GenericProperty>$MPElement[Name="SQL!Microsoft.SQLServer.2008.DBLogFile"]/Drive$</GenericProperty>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<HostProperty>
<MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.Computer"]</MonitoringClass>
<Property>PrincipalName</Property>
</HostProperty>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<GenericProperty>$MPElement[Name="SQL!Microsoft.SQLServer.2008.DBLogFile"]/Drive$</GenericProperty>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</MembershipRule>
</MembershipRules>
</DataSource>
In the first expression you "see" my question:
I want to compare the LogicalDisk's Name Property with the DB Log File's Drive property.
But how can I access the DB Log File's Drive property in this MembershipRule ?
Furthermore LogicalDisk and DB Log File must be hosted on the same Windows Computer.
Would be great if somebody could help.
Thanks
SebastianHi Niki,
thanks for the idea, but that will not work. $Target/Id$ refers always to the group to be discovered.
On last week end I was given following idea, hope it will work:
Step 1
Collect all the DB SQL Logfile Objects and write computername (PrincipalName?) and Driveletter into a textfile, line by line. Shouldn't be a problem, PowerShell is your friend.
Step 2
Read the file from Step 1, build discovery data for each disk drive as object of class "Logical Disk (Server)",
and then discover the containment-relationships from those Logical Drive(Server) Objects to the InstanceGroup.
Perhaps I must do it for the OS-Version related Disks, because I need the target classes of the Logical Disk Freespace monitors. Some more work. "Risks": I donot know the discovery algorithm for the Logical Disk(Server) Objects, but a "deep
dive" into the MPs should help.
Thanks to all, who have read.
I will inform you about progress and success
sebastian -
cannot provisioning a SharePoint 2013 site with full control access, I get the page with the "Sorry, you don’t have access to this page”. Any help will be greatly appreciated.
Hi,
Which template did you use for the parent site?
Please check whether the site collection administrator could create a subsite.
Please grant permissions on the Device Channels list
http://sitecollection_URL/DeviceChannels/AllItems.aspx -> List -> List Settings -> Permissions for this list -> granted Read rights for the Everyone group, compare the result as
it.
Please navigated to the hidden list "TaxonomyHiddenList" on the site collection i.e.
http://somdnetsp/lists/TaxonomyHiddenList/AllItems.aspx and check permissions on this list. Check whether the list has unique permissions and there were no users added to the list. If yes,
add "authenticated users" in the list permissions.
Then, try to create sub site, compare the result.
If this issue still exists, please check the log file to find whether there are some message about this issue.
Best Regards,
Wendy
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback
for TechNet Subscriber Support, contact [email protected]
Wendy Li
TechNet Community Support -
Load Jar and access a class in jar at run time
I need help from you.
How to load a Jar and access a class in the jar at run time?
When i try the following code it works fine while running in Java (Jdk1.5).If iam running the same code in servlet,ClassCastException occurs.
Error Message : ClassCastExcption : jartest1 cannot be cast to Thing
test.jar contains jartest.class and Thing.class
jartest1.java
try{
File file =new File("test.jar");
String lcStr ="jartest";
URL jfile = new URL("jar", "", "file:" + file.getAbsolutePath() +"!/");
URLClassLoader cl = URLClassLoader.newInstance(new URL[] { jfile });
Class loadedClass = cl.loadClass(lcStr);
Thing t=(Thing)loadedClass.newInstance();
t.execute();
catch(Exception e)
System.err.println(e);
Thing.java
public interface Thing
void execute();
jartest.java
public class jartest implements Thing
public void exceute()
System.out.println("Welcome");
Thanks and Regards
V.Senthil Kumar
Edited by: senthilv_sun on Dec 16, 2008 8:30 PMsenthilv_sun wrote:
I need help from you.
How to load a Jar and access a class in the jar at run time?
When i try the following code it works fine while running in Java (Jdk1.5).If iam running the same code in servlet,ClassCastException occurs.
Error Message : ClassCastExcption : jartest1 cannot be cast to ThingPresumably we can only hope that that is a transciption error. It always helps to use copy and past actual errors and code rather than manually typing them.
test.jar contains jartest.class and Thing.classWrong.
The interface class and plugable class must not be in the same jar.
A plugable interface requires two components
- Interface (generic sense)
- Functional components.
The Interface must be independant (own jar) so that it is available to the framework (user of plugin) and to the functional components. And the plugable component must not be on the java class path.
This also means that we know for certain that the plugable component is also on the system class path. That is a bad idea as well.
Given that it is pretty pointless to even speculate as to why this error is showing up. Create the correct jar layout. Test using the command line. Then test using servlets. Insure that the plugable jar is NOT on the java classpath for both tests. -
Control Access in Message Monitoring
Can I control access to payload within PI-Message-Monitoring? The topic has been discussed already: How to Control Access To Payload
By using the "S_XMB_MONI-authorization-object" I can protect access to payload for certain messages, regardless of viewing it with Transcation "SXMB_MONI" or with "RuntimeWorkbench";
For me it is not clear, whether the "S_XMB_MONI-authorization-object" does only affect messages within the Integration-Server, or does it also work for messages in adapter-engine-message-monitoring? I mean, when using "Runtime-Workbench --> Message-Monitoring --> AdapterEngine..."?
Regards, JosefHi,
It works only for SXMB_MONI (ABAP stack), user on adapter engine can still see payload.
One hint I can give you to explore further, authorization on RWB are controlled by Visual Admin, you can explore something there to block user to view payload on RWB.
I am exploring it and will update you.
Regards,
Gourav
reward points if it helps you -
Accessing Java Classes from Webservice Stubs
So far I have been able to call a web service and copy the appropriate directories and files to the designated class path. I can also successfully access a class file like this:
MyObject = CreateObject("java", "ca.x.y.z.TestCollection.TestItem");
However, whenever I try to do something with that variable, I get a white screen. Any text that should have appeared before the command, will appear, but nothing appears afterwards, not even debugging info. Here are a couple of commands that will cause this to happen.
<cfdump var = "#MyObject#">
MyObject = CreateObject("java", "ca.x.y.z.TestCollection.TestItem").init();
x = MyObject.init();
Anybody have any ideas?Ah, nothing like a fresh set of eyes to remind of the fundamentals. Thank you for that.
I actually could create a normal error by calling a method incorrectly. I would see the grey box and my debgging info would appear. However, if I did something I expected to succeed, it would seem to stop. Any text above that command would appear. No error message, no de-bugging.
But I didn't think to look in our error log. I see things like:
Could not initialize class com.microsoft.schemas._2003._10.Serialization.Arrays.ArrayOfstring
or
org.apache.axis.description.TypeDesc.(Ljava/lang/Class;Z)V
At least it's not a mystery anymore. Thanks again for suggesting the error log. -
Accessing java classes from javascript
Hi,
I have the following javascript function
function testjava {
var myString = new java.lang.String("Hello world"); // line 1
alert("len:"+myString.length()); // line 2
}It gives me a error at line 1 saying "'java' is undefined" in IE browser 5.5 sp2. But, both the lines execute correctly in netscape 6.
Can someone please help..
Thanks,
Vijay.It seems that IE 5.5 doesn't support accessing java classes in JavaScript, so try to install IE 6 to see if it works or maybe, you doesn't have installed propertly support for JVM in IE.
-
Accessing utility classes from ebj
I have a session bean trying to access a utility class in the lib directory (same
directory as weblogic.jar). I have packaged it into a jar file and set the classpath
pointing to the file in the startWeblogic.cmd file. I compiled and depolyed the session
bean and it runs fine until it starts to access the class. I got NoClassFoundException.
I have tried to shut down and restart the server without any success. Anyone can
help me this this?
I know I can package the utility into the same jar as my ejb. But I don't want to
do it because it is going to be everywhere. What is the right way of doing it?
Thanks in advance.
L.W.XuRob,
You are right.
Thanks a lot.
L.W.X.
Rob Woollen <[email protected]> wrote:
>
>
If it's in the server classpath, the ejb will have no problem finding it.
Either you have a typo and the class is not in the classpath. You can prove
this by running
javap on the class using the same classpath as your startWebLogic script.
Or, as I suggested in the last response, it's not really standalone. The
jar probably has a
dependence on some classes in the ejb.jar.
-- Rob
"L. W. Xu" wrote:
Rob,
It is a standalone generic jar which has some classes in it. The ejb justcan't find
it.
I have a simple java program which uses it and it runs fine.
Thanks.
L. W. Xu
Rob Woollen <[email protected]> wrote:
If your utility.jar is standalone, then your approach is fine. However,
it sounds like it
is referencing a class that's only
available in your ejb.jar. That won't work.
-- Rob
"L. W. Xu" wrote:
I have a session bean trying to access a utility class in the lib directory(same
directory as weblogic.jar). I have packaged it into a jar file and
set
the classpath
pointing to the file in the startWeblogic.cmd file. I compiled and
depolyed
the session
bean and it runs fine until it starts to access the class. I got NoClassFoundException.
I have tried to shut down and restart the server without any success.Anyone can
help me this this?
I know I can package the utility into the same jar as my ejb. But I
don't
want to
do it because it is going to be everywhere. What is the right way of
doing
it?
Thanks in advance.
L.W.Xu--
AVAILABLE NOW!: Building J2EE Applications & BEA WebLogic Server
by Michael Girdley, Rob Woollen, and Sandra Emerson
http://learnWebLogic.com
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
If your utility.jar is standalone, then your approach is fine. However,
it sounds like it is referencing a class that's only
<br>available in your ejb.jar. That won't work.
<p>-- Rob
<p>"L. W. Xu" wrote:
<blockquote TYPE=CITE>I have a session bean trying to access a utility
class in the lib directory (same
<br>directory as weblogic.jar). I have packaged it into a jar file and
set the classpath
<br>pointing to the file in the startWeblogic.cmd file. I compiled and
depolyed the session
<br>bean and it runs fine until it starts to access the class. I gotNoClassFoundException.
<br>I have tried to shut down and restart the server without any success.
Anyone can
<br>help me this this?
<p>I know I can package the utility into the same jar as my ejb. ButI
don't want to
<br>do it because it is going to be everywhere. What is the right wayof
doing it?
<p>Thanks in advance.
<p>L.W.Xu</blockquote>
<pre>--
AVAILABLE NOW!: Building J2EE Applications & BEA WebLogic Server
by Michael Girdley, Rob Woollen, and Sandra Emerson
http://learnWebLogic.com</pre>
</html>
AVAILABLE NOW!: Building J2EE Applications & BEA WebLogic Server
by Michael Girdley, Rob Woollen, and Sandra Emerson
http://learnWebLogic.com
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
If it's in the server classpath, the ejb will have no problem finding it.
<p>Either you have a typo and the class is not in the classpath.
You can prove this by running javap on the class using the same classpath
as your startWebLogic script.
<p>Or, as I suggested in the last response, it's not really standalone.
The jar probably has a dependence on some classes in the ejb.jar.
<p>-- Rob
<br>
<p>"L. W. Xu" wrote:
<blockquote TYPE=CITE>Rob,
<p>It is a standalone generic jar which has some classes in it. The ejb
just can't find
<br>it.
<p>I have a simple java program which uses it and it runs fine.
<p>Thanks.
<p>L. W. Xu
<p>Rob Woollen <[email protected]> wrote:
<br>>
<br>>
<br>>If your utility.jar is standalone, then your approach is fine.
However,
<br>>it sounds like it
<br>>is referencing a class that's only
<br>>available in your ejb.jar. That won't work.
<br>>
<br>>-- Rob
<br>>
<br>>"L. W. Xu" wrote:
<br>>
<br>>> I have a session bean trying to access a utility class in the lib
directory
<br>>(same
<br>>> directory as weblogic.jar). I have packaged it into a jar file and
set
<br>>the classpath
<br>>> pointing to the file in the startWeblogic.cmd file. I compiled and
depolyed
<br>>the session
<br>>> bean and it runs fine until it starts to access the class. I got
NoClassFoundException.
<br>>> I have tried to shut down and restart the server without any success.
<br>>Anyone can
<br>>> help me this this?
<br>>>
<br>>> I know I can package the utility into the same jar as my ejb. But
I don't
<br>>want to
<br>>> do it because it is going to be everywhere. What is the right way
of doing
<br>>it?
<br>>>
<br>>> Thanks in advance.
<br>>>
<br>>> L.W.Xu
<br>>
<br>>--
<br>>
<br>>----------------------------------------------------------------------
<br>>
<br>>AVAILABLE NOW!: Building J2EE Applications & BEA WebLogic Server
<br>>
<br>>by Michael Girdley, Rob Woollen, and Sandra Emerson
<br>>
<br>>http://learnWebLogic.com
<br>>
<br>>
<br>>
<br>>
<br>><!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<br>><html>
<br>>If your utility.jar is standalone, then your approach is fine.
However,
<br>>it sounds like it is referencing a class that's only
<br>><br>available in your ejb.jar. That won't work.
<br>><p>-- Rob
<br>><p>"L. W. Xu" wrote:
<br>><blockquote TYPE=CITE>I have a session bean trying to access a
utility
<br>>class in the lib directory (same
<br>><br>directory as weblogic.jar). I have packaged it into a jar file
and
<br>>set the classpath
<br>><br>pointing to the file in the startWeblogic.cmd file. I compiled
and
<br>>depolyed the session
<br>><br>bean and it runs fine until it starts to access the class.
I got NoClassFoundException.
<br>><br>I have tried to shut down and restart the server without any
success.
<br>>Anyone can
<br>><br>help me this this?
<br>><p>I know I can package the utility into the same jar as my ejb.
But I
<br>>don't want to
<br>><br>do it because it is going to be everywhere. What is the right
way of
<br>>doing it?
<br>><p>Thanks in advance.
<br>><p>L.W.Xu</blockquote>
<br>>
<br>><pre>--
<br>>
<br>>----------------------------------------------------------------------
<br>>
<br>>AVAILABLE NOW!: Building J2EE Applications & BEA WebLogic Server
<br>>
<br>>by Michael Girdley, Rob Woollen, and Sandra Emerson
<br>>
<br>>http://learnWebLogic.com"><a
href="http://learnWebLogic.com">http://learnWebLogic.com</a></A></pre>
<br>> </html>
<br>>
<br>></blockquote>
<pre>--
AVAILABLE NOW!: Building J2EE Applications & BEA WebLogic Server
by Michael Girdley, Rob Woollen, and Sandra Emerson
<A HREF="http://learnWebLogic.com">http://learnWebLogic.com</A></pre>
</html> -
Accessing IFS classes from Weblogic
Can I access the classes of IFS from within Weblogic by adding the IFS jars to the Classpath of Weblogic?
Also how does EJBs work with IFS?
Kaustuva MukherjeeI'm doing exactly the same thing that you are asking. first install ifs client on weblogic server, so that all ifs jar files are on weblogic. then do this in the weblogic class path file:
REM ------------------ IFS CLASSPATH ------------------------
SET IFS_CLASSPATH=d:\Oracle\Ora81\ifs1.1\lib\adk.jar;d:\Oracle\Ora81\ifs1.1\lib\clientlib.jar;d:\Oracle\Ora81\ifs1.1\lib\cmdlineutils.jar;d:\Oracle\Ora81\ifs1.1\lib\cup.jar;d:\Oracle\O ra81\ifs1.1\lib\http.jar;d:\Oracle\Ora81\ifs1.1\lib\oemadmin.jar;d:\Oracle\Ora81\ifs1.1\lib\release.jar;d:\Oracle\Ora81\ifs1.1\lib\repos.jar;d:\Oracle\Ora81\ifs1.1\lib\utils.jar;d: \Oracle\Ora81\ifs1.1\lib\webui.jar;d:\Oracle\Ora81\ifs1.1\settings
and include IFS_CLASSPATH in your weblogic path.
restart weblogic and u'll have all ifs classes for your use.
null -
I need to emulate several ActiveX functions in my client's web application. I have located several Mozilla web pages that describe how to do the things I need, and I have attempted to implement those instructions. However, I can't seem to get past the first line of code. In my web page, I am calling a JavaScript function using the onLoad attribute of the <body> tag. I am using the Navigator object to determine that the browser is Firefox. I then attempt to access the extension classes using the following code on lines 51 and 52 of the Download.js file:
var C = Components;
var CC = C.classes;
The Web Console gives me these two messages:
[13:51:55.621] The Components object is deprecated. It will soon be removed. @ http://distribution:781/NewDDI/DownLoad.js:51
[13:51:55.621] Error: Permission denied to access property 'classes' @ http://distribution:781/NewDDI/DownLoad.js:52
How do I enable adequate permission to be able to access the Components classes?I think Components is available only in extensions (or otherwise privileged code) and not in ordinary web pages.
Maybe you are looking for
-
When firefox crashes, or if it hangs and I have to kill it, then when I go to restart it, it tries to re-open all pages that were open at the time it crashed or was killed. This is incredibly annoying, especially if one of the visited pages caused th
-
Problem with BPM loop end condition
Hi, I'm working with PI 7.1 in a BPM process which have a loop. I cant stop this loop in anyway, even, I have put a COUNTER != COUNTER as condition. Can someone help me with this issue? Regards, Alberto Pla.
-
Error in product costing (sales order)
Our products are configurable and the procurement type change with a particular value of configuration .My solution was that a dependence change the requirement type in sales order (modify VCSD_UPDATE). If an user generate a position in sales order,
-
Data loss in Manage data in HFM 11.1.2. Advice needed
Dear All, Yesterday while using the Manage data function in HFM we encountered a large amount of data loss. Let me explain. Our goal was to copy Non Financial accounts Entity Currency data from one budget scenario to another budget scenario. See the
-
I am trying to get the connection set up with facebook and have allowed lightroom to publish there. Back in lightroom the publishing manager is then telling me it is authorizing and that is were it stays and hangs fore ever. In my face book app accou