JDeveloper EJB Class Editor lock
I created an EJB using JDev and used the EJB class editor to build the fields/methods in the bean.
After working on the EJB for quite a while I reopened the EJB Class editor and found a blue error at the bottom of the window stating :
Editor locked : file is read only.
I have tried almost everything to unlock the editor but I have had no success.None of the files in project is read-only.
If you have experinced this problem please respond!
Regards
LeRoux
Hi,
Go to se38.
In the menubar..
Goto-->attributes.
In that u can see on the bottom of the popup, a check box with editor lock.
U check that box.
Then the program cannot be edited by any other user other than the one who has created.
In this case the username has to be unique.
If one user is used by many number of people, then all the people who are using that user can edit the program.
Reward Points if found helpfull..
Cheers,
Chandra Sekhar.
Similar Messages
-
Problem with Embedded OC4J - Can find EJB class???
I am getting the following error when starting my application within JDeveloper.
05/06/22 16:11:35 Error instantiating application 'current-workspace-app' at file:/C:/developc/developc-oc4j-app.xml: Error initializing ejb-module; Exception Error loading class 'com.syncra.ct.server.AggregatesManagerBean': java.lang.ExceptionInInitializerError: java.lang.NullPointerException
It never reaches breakpoints in the class. So, I assume that it can't find the class in the classpath. But, when I look at the developc-oc4j-app.xml file see the following:
<ejb-module path="file:/C:/developc/Model/classes/"/>
<web-module id="developc-ViewController-webapp" path="C:\developc\ViewController\public_html"/>
and the ejb class is in the correct spot. Any help would be greatly appreciated. I am on JDeveloper 10.1.2.
Thanks.I put a static method in the class to print out when it is loaded. And the class exists in the classpath. It is never making it to the class.
Also, I do have both the JAVA_HOME and ORACLE_HOME environment variables set.
The ejb definitions are:
ejb-jar.xml
<session>
<ejb-name>ct.AggregatesManagerHome</ejb-name>
<home>com.syncra.ct.server.api.AggregatesManagerHome</home>
<remote>com.syncra.ct.server.api.AggregatesManager</remote>
<ejb-class>com.syncra.ct.server.AggregatesManagerBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
orion-ejb-jar.xml
<session-deployment name="ct.AggregatesManagerHome" location="ct.AggregatesManagerHome"/>
Because JDeveloper forces me to split the code into Model and ViewController I am wondering if there is something special that needs to be done for OC4J to see everything. Any ideas?
Nick -
Fundamental question: Integrating non-EJB classes
Hi there,
sorry to ask that, but how can i integrate classes other than EJBs
into my assembled application ? i use sun's deploytool and their ri
application server.
my task is to call a class called J2EEManager at the app server
startup, which has to initialize some server-wide data. but how do
i call and integrate this class at deployment level ? in the deploytool
there isn't such a support. i do also use this class during runtime.
also i do not see how to integrate my helper classes that are needed
by the EJBs i developed. again, in deploytool i just can add my EJB's
but not all the other classes i implemented.
how does this work ? any hints, links, tutorials ? the examples i've
seen in books and articles mostly do not cover these things...
thank you very much. best regards
rivella50When you call the "packager" tool, you can specify any classes you want to include in the package archives. They don't all have to be EJB classes or interfaces. I don't use the deploytool UI, but there should be a way to include extra files into the packages from within the UI mode.
As for performing extra functionality at server startup, I don't know of any way to do this. However you can create a separate (stand-alone) application that is run on the server machine, just after server startup:
j2ee &... wait until server is up and running ...
java J2EEManager <params>Ben -
MBean calling ejb class loading issue
Hi,
I would like to have an mbean call an ejb. I have come against a (predictable!!)
class loading problem. The EJB Home cant be bundled with the mbean because the
mbean class loader would load the interface, preventing ejb reload( Thats what
the error msg indicates) and the ejb doesnt get deployed.
I have moved to an mlet based scheme (beacuse an mlet is a class loader) to
load the mbeans, but now I have the problem that when the mbean looks up the
home in jndi the cast fails ie the jndi object has an interface class loaded by
the ejb class loader but the mlet has its own loaded home interface. These class
loaders appear to be sibblings - but I havnt printed out the trees.
This is WLS 702 which seems to be JMX 1.1. Has anyone got a way around this?
Have I invented a problem that doesnt exist? I cant go to WLS8.
My current way forward is to have the mbean find the class loader that loaded
the interface class (jndi object) and then have the mbean use that class loader
to load its copy of the interface class. Seems a bit complex. Im sure I missed
something obvious.
Thanks
Pete MarshallPete,
could you explain better your thoughts...
I'm interested to hear them.
regards,
Pedro Salazar.
Pete Marshall wrote:
Must think before typing..
If I have the ejb register a listener on the mbean and have the mbean emit an
event the detyped notification from the mbean will break the link between the
mbean class loader and the ejb loader. I think ;-) Ill try it.
Pete
"Pete Marshall" <[email protected]> wrote:
Hi,
I would like to have an mbean call an ejb. I have come against a (predictable!!)
class loading problem. The EJB Home cant be bundled with the mbean because
the
mbean class loader would load the interface, preventing ejb reload( Thats
what
the error msg indicates) and the ejb doesnt get deployed.
I have moved to an mlet based scheme (beacuse an mlet is a class loader)
to
load the mbeans, but now I have the problem that when the mbean looks
up the
home in jndi the cast fails ie the jndi object has an interface class
loaded by
the ejb class loader but the mlet has its own loaded home interface.
These class
loaders appear to be sibblings - but I havnt printed out the trees.
This is WLS 702 which seems to be JMX 1.1. Has anyone got a way around
this?
Have I invented a problem that doesnt exist? I cant go to WLS8.
My current way forward is to have the mbean find the class loader that
loaded
the interface class (jndi object) and then have the mbean use that class
loader
to load its copy of the interface class. Seems a bit complex. Im sure
I missed
something obvious.
Thanks
Pete Marshall -
Can't access non ejb classes from JSP - NoClassDefFound error
Hi,
I have one session ejb which has a method returning a collection of non ejb class objects (say of Class 'Foo').
The method signature is like :
"Collection getFinacialData() throws RemoteException"
It is working fine with normal java clients. Now when I run this from a JSP it gives a "NoClassDefFoundError". I kept class 'Foo' and the remote interface of the session bean in the same package and also in the same ejb jar file. Also I am running JSP and ejb in same WL server(ver 5.1, SP8 on solaris). What I have done is only deployed the bean jar file. Do I need to do anything more?
thanks in advance.
I ran into a similar problem. I solved it by putting the client classes for
accessing my EJB in the WebLogic POST_CLASSPATH in the startWebLogic script
file:
set POST_CLASSPATH=d:\weblogic\myserver\myClient.jar
For more information on class visibility between the JSP and EJB class
loaders, check out
http://www.weblogic.com/docs51/classdocs/API_ejb/EJB_deployover.html#1056256
Rick
"niroja" <[email protected]> wrote in message
news:3a6ed903$[email protected]..
>
> Hi,
>
> I have one session ejb which has a method returning a collection of non
ejb class objects (say of Class 'Foo').
> The method signature is like :
> "Collection getFinacialData() throws RemoteException"
> It is working fine with normal java clients. Now when I run this from a
JSP it gives a "NoClassDefFoundError". I kept class 'Foo' and the remote
interface of the session bean in the same package and also in the same ejb
jar file. Also I am running JSP and ejb in same WL server(ver 5.1, SP8 on
solaris). What I have done is only deployed the bean jar file. Do I need to
do anything more?
>
> thanks in advance.
>
-
Hi all,
I have some JSP that invoke Session Beans. My question is:
what is the right place to put EJB classes in order to be found by JSP ?
I have found the following solutions but they both slow down during development
phase:
1) Build an EAR and let the JSP reference EJB classes via the Class-Path attribute.
This is nice but a bit complex: I'd like to use EAR only for shipment phase and
not for every small change to the Bean.
2) Let WLS see the classes including them in the classpath at startup. But this
has the disadvantage that I have to restart WLS every time because - I suppose-
WLS isn't able to unload classes if I include them in the CLASSPATH
So what do you suggest me for development phase? is there a faster solution?
Thanks a lot
F.MarchioniHi Arjuna,
put it on the weblogic startup classpath.mmmmm well I think the JSP will not reload the EJB classes when I make a change
if they are on the classpath...unless I restart the server....I'll try again...I
hope I'm wrong...
thanks
Francesco
"Arjuna Chala" <[email protected]> wrote:
for testing
- put it on the weblogic startup classpath.
- use the console's hot deploy facility to re-deploy the ejb after changes.
This works well for me (WLS6.1).
Reagrds
Arjuna Chala
"Marchioni F." <[email protected]> wrote in message
news:3c5eae94$[email protected]..
Hi all,
I have some JSP that invoke Session Beans. My question is:
what is the right place to put EJB classes in order to be found byJSP ?
I have found the following solutions but they both slow down duringdevelopment
phase:
1) Build an EAR and let the JSP reference EJB classes via the Class-Pathattribute.
This is nice but a bit complex: I'd like to use EAR only for shipmentphase and
not for every small change to the Bean.
2) Let WLS see the classes including them in the classpath at startup.But
this
has the disadvantage that I have to restart WLS every time because- I
suppose-
WLS isn't able to unload classes if I include them in the CLASSPATH
So what do you suggest me for development phase? is there a fastersolution?
Thanks a lot
F.Marchioni -
How to removed Editor Lock from an ABAP program
Hello, I would like to know how to remove an editor lock from an ABAP program that someone placed? The person who placed the lock is no longer active in the system. When I try to remove the lock, I get the message that the person placed the lock can remove it. Looks like only that person can remove the lock. Is there a way around this? Reactivating his id is not an option, in our case.
Hi,
I'm able to see the program in table TRDIR, but not able to edit it.
I have find one more table where we can edit is "PROGDIR"
Goto table " PROGDIR"
give the program name and execute
select the program and choose edit button
and remove "X" from the field "EDTX" to remove the lock for the program.
Regards,
Vaira. -
Re: MBean calling ejb class loading issue
Must think before typing..
If I have the ejb register a listener on the mbean and have the mbean emit an
event the detyped notification from the mbean will break the link between the
mbean class loader and the ejb loader. I think ;-) Ill try it.
Pete
"Pete Marshall" <[email protected]> wrote:
>
Hi,
I would like to have an mbean call an ejb. I have come against a (predictable!!)
class loading problem. The EJB Home cant be bundled with the mbean because
the
mbean class loader would load the interface, preventing ejb reload( Thats
what
the error msg indicates) and the ejb doesnt get deployed.
I have moved to an mlet based scheme (beacuse an mlet is a class loader)
to
load the mbeans, but now I have the problem that when the mbean looks
up the
home in jndi the cast fails ie the jndi object has an interface class
loaded by
the ejb class loader but the mlet has its own loaded home interface.
These class
loaders appear to be sibblings - but I havnt printed out the trees.
This is WLS 702 which seems to be JMX 1.1. Has anyone got a way around
this?
Have I invented a problem that doesnt exist? I cant go to WLS8.
My current way forward is to have the mbean find the class loader that
loaded
the interface class (jndi object) and then have the mbean use that class
loader
to load its copy of the interface class. Seems a bit complex. Im sure
I missed
something obvious.
Thanks
Pete MarshallPete,
could you explain better your thoughts...
I'm interested to hear them.
regards,
Pedro Salazar.
Pete Marshall wrote:
Must think before typing..
If I have the ejb register a listener on the mbean and have the mbean emit an
event the detyped notification from the mbean will break the link between the
mbean class loader and the ejb loader. I think ;-) Ill try it.
Pete
"Pete Marshall" <[email protected]> wrote:
Hi,
I would like to have an mbean call an ejb. I have come against a (predictable!!)
class loading problem. The EJB Home cant be bundled with the mbean because
the
mbean class loader would load the interface, preventing ejb reload( Thats
what
the error msg indicates) and the ejb doesnt get deployed.
I have moved to an mlet based scheme (beacuse an mlet is a class loader)
to
load the mbeans, but now I have the problem that when the mbean looks
up the
home in jndi the cast fails ie the jndi object has an interface class
loaded by
the ejb class loader but the mlet has its own loaded home interface.
These class
loaders appear to be sibblings - but I havnt printed out the trees.
This is WLS 702 which seems to be JMX 1.1. Has anyone got a way around
this?
Have I invented a problem that doesnt exist? I cant go to WLS8.
My current way forward is to have the mbean find the class loader that
loaded
the interface class (jndi object) and then have the mbean use that class
loader
to load its copy of the interface class. Seems a bit complex. Im sure
I missed
something obvious.
Thanks
Pete Marshall -
Feature Request: Class Editor - Allow method code.
Hi jDev team, and keep up the wonderful work.
It seems to me that with a minor enhancement (in terms of technical complexity) to the class editor, a major functional achievement can be accomplished.
Within the class editor give us the ability to actually code/edit/maintain the methods. This, would not only enhance the useability of the class editor, but would also open the absolute possibility of custom coding a complete java file without the use of the editor. This coding style (simply maintaining methods) blends very nicely with oop methodology. With the ability to also maintain javadoc details on our classes and methods from within the class editor, why ever use ancient code editors?
I think, marketing would like the idea as well.
Please let me know what you think. Thanks.
-NatCorrect.
Preferably, while 'walking the list' of method names, the contents (between the braces) of that method should be viewable/editable in another open panel.
While at it, please supply the same support of inner classes as well, and voila, you almost don't need the editor!
Thanks
-Nat -
How to unlock the Editor Lock?
Hi All,
Can anyone tell how to unlock Editor Lock?
Thanks in advance.
Regards
Mohammad.Hi Mohammad,
Please check this sample program.
REPORT ZEDITOR.
TABLES: TRDIR. "System table TRDIR
PARAMETERS: PROGRAM LIKE TRDIR-NAME.
PARAMETERS: EDITOR LIKE TRDIR-EDTX.
SELECT SINGLE * FROM TRDIR WHERE NAME = PROGRAM.
TRDIR-EDTX = EDITOR.
MODIFY TRDIR.
IF SY-SUBRC EQ 0.
WRITE: / 'Editor Lock update Successful ', TRDIR-NAME.
IF TRDIR-EDTX = 'X'.
WRITE: ' Lock'.
ELSE.
WRITE: ' UnLock'.
ENDIF.
ELSE.
WRITE: / 'Editor Lock update Unsuccessful ', TRDIR-NAME.
ENDIF.
Hope this will help.
Regards,
Ferry Lianto
Please reward points if helpful. -
I am trying to create a class diagram with jdeveloper but class is grey out
i am trying to create a class diagram with jdeveloper but class is greyed out even though I downloaded the J2EE version
I went through the following steps :
Click the project in which you want to create a new diagram, choose File New from JDeveloper's menu, then select General Diagrams in the left pane of the New dialog.
I have downloaded J2EE Edition Version 10.1.3.1.0.3984When the class diagram is disabled - does the wizard for creating a new class in the new->General also disabled?
If it is then you are not placing your cursor on the project before you choose file->new
(you are probably on the workspace that contains the project). -
Deployement of ejb class in xi server
hi all
i have to deploy my ejb class on xi server.can anybody tell me what will be the proceduretry this
/people/alessandro.guarneri/blog/2006/10/13/get-rid-of-recordset-node
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bc7f08e1-0901-0010-b1bd-80966009d8f0
http://help.sap.com/saphelp_nw2004s/helpdata/en/40/00be09879f114aa1ec46c2afa4445b/frameset.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9221b490-0201-0010-0e90-8cc75cde876c
http://help.sap.com/saphelp_webas630/helpdata/en/cb/f4bc3d42f46c33e10000000a11405a/content.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/eaeb475d-0c01-0010-f5a4-d7a8eb185793
Thanks -
Unlock program which locked by Editor lock
Hi, Experts,
I need a small favour from you. There is a program created by a user and locked using editor lock in se38 attribute. Now that user is not active in system. How can I unlock that program using another user.
Regards
Rajiv singh.hi rajiv,
Go to SM12 and execute
select the lock entry and UInlock the entry(delete lock entry for that).
if helpful reward some points.
with regards,
suresh babu aluri. -
Lock objects,Editor lock difference ?
What is the difference between lock object and editor lock
Hi,
Editor Lock : This is to lock a program created by User 1 from editing by any other User. Say for eg. User "XYZ" has created a program and he doesnt want anyone else to edit/modify that program, then he can put Editor Lock so that no one else other than "XYZ" user would be able to edit/modify it.
Lock Object : Consider an example, where two Users say User 1 and User 2 wants to book railway ticket. Only 1 seat is remaining. The ticket information is updated in table ZTICKETS. This table can have tickets only from 1 to 10.
Now User 1 and User 2 approaches two different reservations counters and ask for the same train ticket. Now the table is Locked for User 1 and the ticket information is updated in ZTICKETS table so that the other User should not get the ticket. Otherwise two persons would be alloted the same ticket. So the table locking from simulatneous updates can be achieved through Lock Objects.
Best regards,
Prashant -
How to find the history from last 6 months for Editor lock flag in program?
Hi,
Whenever in a program if you set Editor lock flag or unset it will store in TRDIR table whether it is set or unset.
I wanted to know the history for this flag from last 6 months when it was set and when it was unset.
<removed by moderator>
Thanks
Edited by: Thomas Zloch on Dec 18, 2010 8:58 PM - priority loweredhello,
I do not think it's possible to know, becasue SAP does not keep history of this kind of data...
Thanks
Maybe you are looking for
-
System Error in Comm channel monitoring of RWB
Dear all, I have a Proxy to webservice scenario (HCM-PI-SuccessFactors). At receiver side i am using SOAP AXIS adapter. In RWB, the status of the channel is green and running. But when i ping the channel, it shows System Error. I have made changes in
-
How do I import address book from time machine backup
My address book was populated on an imac running Lion and I used time machine to back up to an external hard drive. The imac crashed and I've purchased another one running Mavericks. How do I import the contents of my address book from the backup on
-
I've pasted my config below,but cannot get the ASA onto the internet. *** NEW *** 7pm EST 6.6 Ok; I've been following your setup, but something is still amiss.... i.e. please see the running config below.. Please note that I have the 'modem/T1' into
-
How do I edit in Camera Raw?
The only option for editing a file is in Photoshop CS4, but I want to edit in Camera RAW. How do I set this up?
-
how do I delete photo albums from my phone and how do I delete pictures from library on my phone