"error obtaining the list of methods" from Sun deploytool, "security" pane

I'm trying to apply security features to a web application in a .ear file. Following the J2EE tutorial I try to play with the Security tabbed pane in deploytool. Well, all the time I do get
Error obtaining the list of methods on MyService
java.lang.RuntimeException: my.package.MyService
The thing is, I could sucessfully deploy and use my web service ...
Maybe someone @sun.com could have a look at this stacktrace I got from deploytool (-verbose switch)
Jan 27, 2005 1:36:27 PM com.sun.enterprise.deployment.EjbDescriptor getMethodDescriptors
SEVERE: "DPL8008: method/class loading failure : method/class name - (EjbDescrip
tor.getMethods())"
---------------- Exception -----------------------------------------------------
[EjbComponentSecurityInspector.refresh:595]
Getting method descriptors
java.lang.RuntimeException: de.rochade.srap.ws.RoSrapScriptExecService
java.lang.RuntimeException: de.rochade.srap.ws.RoSrapScriptExecService
at com.sun.enterprise.deployment.EjbDescriptor.getMethodDescriptors(EjbD
escriptor.java:1318)
at com.sun.enterprise.tools.deployment.ui.ejb.EjbComponentSecurityInspec
tor.refresh(EjbComponentSecurityInspector.java:593)
at com.sun.enterprise.tools.deployment.ui.utils.InspectorPane.privateRef
resh(InspectorPane.java:880)
at com.sun.enterprise.tools.deployment.ui.utils.InspectorPane._refresh(I
nspectorPane.java:1012)
at com.sun.enterprise.tools.deployment.ui.utils.InspectorPane.access$100
(InspectorPane.java:38)
at com.sun.enterprise.tools.deployment.ui.utils.InspectorPane$DeferredRe
fresh.run(InspectorPane.java:864)
at com.sun.enterprise.tools.deployment.ui.utils.UIInvocationEvent.dispat
ch(UIInvocationEvent.java:53)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at com.sun.enterprise.tools.deployment.ui.utils.UIEventQueue.dispatchEve
nt(UIEventQueue.java:168)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Any known bug in deploytool or so?
Asked this first at
http://forum.java.sun.com/thread.jspa?threadID=590706&tstart=0
there are some more problems mentioned ...
Thanx!
Merten

Hi Merten,
I'm not sure if the Security tab will add the basic
auth that you mentioned in your email. You might
have a look at the Login Config on the Endpoint tab
and see if that gives you what you want.
http://docs.sun.com/source/819-0079/dgdesc.html#wp1366
64
JHi J,
I tried this Login Config stuff, but it worked for me only in the servlet (JAX-RPC) world, not for my EJB web service. In the J2EE tutorial I found the steps described for servlet based web services (this security-contraints stuff), I could protect my HTTP POST method successfully. But for an EJB web service, what are the required steps to add HTTP Basic auth? It seems to be way different, is it supported in deploytool the same way as for servlets?
I'll send another copy of my .ear to you ([email protected]). Sorry, I know this is not an dt (deploytool) related issue, but perhaps you can help me anyway. :-) I think I did the right stuff in my deployment descriptors, but it's not working. And I saw a NPE in my server's log file (will send you the stack trace too).
cu
Merten

Similar Messages

  • Error when setting up gateway on local system: "Unable to obtain the anti-forgery token from Host Service"

    I have created an account in Office 365 to try Power BI, and have set up the Power BI site so far.
    Now i want to add few data sources, for which i guess i would need to do the following:
    1) Create a gateway (i have done this)
    2) Download and Install the gateway on my local machine (Installed on my 64bit windows 8.1 laptop)
    3) Run Data Management Gateway configuration manager wizard to setup up the gateway. 
    At this step, when i enter the Gateway Key (copied from the Power BI Site), i am getting error  "unable to obtain the anti-forgery token from Host Service".
    Where should i head next? 
    Vishal Soni

    Hey Hubery,
    Its working now. Thanks for the tips.
    Few things that i learnt here:
    1) You'll need to turn the firewalls off for the local system. (I am not sure if this is required, but i just did this and it started working for me).
    2) When you are creating the gateway on Power BI site, you click on Create new gateway, and it shows you the security key. Previously i just copied and saved this key and click Finish at this step (which i guess should not be done). What we need to do is
    to keep this screen ON, download and run the Gateway setup wizard and complete the setup, while keeping the page open in power BI site.
     I am getting the Gateway up and running now.
    Vishal Soni

  • How to obtain the list of procedures and functions

    hi,
    how can I obtain the list of all the stored procedure & functions in the database?

    SELECT * FROM DBA_OBJECTS WHERE OBJECT_TYPE IN ('FUNCTION','PROCEDURE')
    Cheers

  • How to get the list of materials from Sap r/3

    Hi Experts,
    I have one doubt, here iam implementing
    HTTP TO RFC scenario.
    My doubts are------
    1. Should we create DT MT MI and all (OR) not
    2.In Request DT how the message structure wil be to get the list of materials from sap r/3 system as Response(Ex: Fields in the source structure).
    3.Or the second thing is how to get the list of materials start with some alphabate.
    Please reply me for each and every questions mentioned above. Please clarify me.
    Helpful answers wil be rewarded.
    Reagards
    khanna

    Hi Khanna,
    <i> 1. Should we create DT MT MI and all (OR) not</i>
        Yes U need to create for HTTP site...for RFC U need to import..
    <i>2.In Request DT how the message structure wil be to get the list of materials from sap r/3 system as Response(Ex: Fields in the source structure).</i>
        You create your own structres for Request and respoce.. and Map it with RFC..
    <i>3.Or the second thing is how to get the list of materials start with some alphabate.</i>
        I think it will come with acending order....
      for more help go through this link
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC
    regards,
    Ansar.

  • How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?

    How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?
    I currently run OS X 10.10.1
    Now i have been trying to work on this for a while now and what i want to do should be simple but its apparently not.
    Here is an example of what i want to happen.
    I will have 2 tabs: Contact | Sales
    Now Contacts will have the list of names and various information about a customer, While Sales will have one drop-down box for each Cell Row that will show the names of the person in tab contacts
    for what i am wanting to do i cant use the data format pop-up menu because the list is edited everyday several times a day.
    Now how do i do this, Excel can do this so how can numbers do it?

    Hi Shegra,
    Paste this into a applescript editor window and run it from there. In the script you may need to adjust the four properties to agree with your spreadsheet. Let me know if you have any questions.
    quinn
    Script starts:
    -- This script converts column A in one table into an alphabetized list of popups. It copies the last cell in that column. Then reverts the column to text. It then refreshes popups in column A of a data table starting with a user defined row.
    property DataEntrySheet : "Sheet 1" --name of sheet with popups to be refreshed
    property DataEntryTable : "Sales" --name of table with popups to be refreshed
    set copyRange to {}
    property PopValueSheet : "Sheet 1" --name of sheet with popup values table
    property PopValueTable : "Contacts" --name of table with popup values
    set PopStartRow to {}
    tell application "Numbers"
      set d to front document
      set ps to d's sheet PopValueSheet
      set pt to ps's table PopValueTable
      set s to d's sheet DataEntrySheet
      set t to s's table DataEntryTable
      set tf to t's filtered --this records filter setting on data Entry Table
      display dialog "Start from row #..." default answer "" with icon 1 -- with icon file "Path:to:my.icon.icns" --a Week # row
      set PopStartRow to {text returned of result}
      tell pt --convert list to alphabetized popups
      set ptRows to count rows
      set copyRange to ("A2:" & name of cell ptRows of column "A")
      set selection range to range copyRange
      set selection range's format to text
      sort by column 1 direction ascending
      set selection range's format to pop up menu
      -- popupsmade
      set selection range to cell ptRows of column 1 of pt
      set v to value of cell ptRows of pt
      end tell
      activate application "Numbers"
      tell application "System Events" to keystroke "c" using command down
      tell pt
      set selection range to range copyRange
      set selection range's format to text
      end tell
      tell t
      set filtered to false
      set tRows to count rows
      set pasteRange to ((name of cell PopStartRow of column "A") & ":" & (name of cell tRows of column "A"))
      set selection range to range pasteRange
      tell application "System Events" to keystroke "v" using command down
      set filtered to tf
      end tell
    end tell

  • Error in the macro 'rp-provide-from-last'

    Hi, experts!
    Can anyone please help me address an error regarding the macro rp-provide-from last? During activation, this error is returned: "Unable to interpret SPACE. Possible causes: Incorrect spelling or comma error".  The line in question is this: rp-provide-from-last p0000 SPACE pn-begda pn-endda This is the only error standing between me and activation. Please help
    Thanks in advance.
    Regards,
    brent

    HI Brent,
    Use this sample example :
    REPORT  ZTEST_94TEST.
    TABLES :pernr.
    INFOTYPES :0000.
    GET PERNR.
    rp-provide-from-last p0000 SPACE pn-begda pn-endda.
    No syntax errors and activated. hope it will be helpful.

  • Hi am having issues with getting the list of users from the Active Director

    Hi am having issues with getting the list of users from the Active Directory, can anyone help me with this!

    Hi Jason,
    Try this:
    1.  In Ultiboard select Tools>>Netlist Editor>>Pins, press the Delete button
    2.  Select all nets in the Select the Net to Delete dialog and then press the Delete button.  This will clear all nets in the layout, don't worry all traces, parts are still on the design.
    3.  Go to Multisim and select Transfer>>Forward annotate to Ultiboard.    This will add all nets that you removed back and it should fix the pin problem
    Tien P.
    National Instruments

  • How do you print the list of songs from a songlist in I-Tunes that you burn to a blank CD for the cover of a CD case?

    How do you print the list of songs from a songlist in I-Tunes that you burn to a blank CD for the cover of a CD case?

    Click the playlist in iTunes.  Then go to File > Print ...
    One of the options you will see to print is "CD Jewel Case Insert".  That's just what you want!

  • How can I prevent the MediaTracker waitForID method from blocking?

    Hi everyone:
    I am writing an application that deals with various image file formats with the help of the JIMI package (available at http://java.sun.com/products/jimi/). Everything works fine except for the Targa format. When I generate an Image object as follows (url is a valid URL object):
    Image image = Jimi.getImage(url);
    ImageIcon icon = new ImageIcon(image);the program execution blocks at the second line above. I searched the ImageIcon source code for some clues, which led me to the following ImageIcon method (tracker is a MediaTracker object, a static property of ImageIcon):
    (01) protected void loadImage(Image image) {
    (02)   synchronized(tracker) {
    (03)     tracker.addImage(image, 0);
    (04)     try {
    (05)       tracker.waitForID(0, 0);
    (06)     } catch (InterruptedException e) {
    (07)       System.out.println("INTERRUPTED while loading Image");
    (08)     }
    (09)     loadStatus = tracker.statusID(0, false);
    (10)     tracker.removeImage(image, 0);
    (11)
    (12)     width = image.getWidth(imageObserver);
    (13)     height = image.getHeight(imageObserver);
    (14)   }
    (15) }The program blocks at line (05) above. I peeked into the MediaTracker class source code, which brought me to determine that the image loading process never finishes. The symptoms are as follows:
    (1) When I perform a c.checkImage(image, null) where c is some Component, I always get a result of 7, which translates to the following combination of ImageObserver constants:
    WIDTH | HEIGHT | PROPERTIESAs matter of fact, the dimensions are indeed determined correctly. However, when the loading process terminates, the checkImage result includes ALLBITS or FRAMEBITS in case of success, ABORT or ERROR in case of failure. None of these bits is ever turned on whenever I try to load a Targa image.
    (2) When I get to the MediaTracker source code, I see that when none of the four bytes above is set, the internal MediaTracker status has the MediaTracker.LOADING bit turned on (nothing abnormal here). And the waitForID method terminates precisely only when this bit is turned off!
    Logically, if the loading process fails for some reason, I should expect to get an error response so that I can go further in code execution. However, since the loading process never terminates, everything stays blocked at the waitForID method invocation.
    Is there an efficient way to detect such a hidden loading error without letting my program go into the waitForID endless loop? In other words, going back to the first two lines of code of this message, how could I detect that an Image loading process will not terminate before calling the ImageIcon constructor?
    Thanks in advance for any useful help...
    Jean-Fran�ois Morin

    Hi:
    I tried precisely your suggestion before posting my message to the forum yesterday. I just forgot to mention it... Maybe I was afraid of increasing my message length more and more...
    I already know that this solution prevents the MediaTracker from blocking. However...
    (1) If they reach a troublesome image (like a Targa), the users of my application might not be pleased by its freezing for 10 seconds. Actually, this image loading module is part of an architecture for database applications from which my development team and I produce applications for various customers. Images are used, in particular, in Oracle BLOB support.
    (2) If I use a smaller timeout delay, I have no guarantee that any image, whatever its length, will load properly (Targa excluded, of course). According to tests I performed yesterday, I am virtually sure that the 10-second delay will be busted very easily by pictures larger than 1 Mb. I cannot overlook this potential problem: an Oracle BLOB can contain up to 2 terabytes of data!
    On the other side, I don't want to focus too much the attention on the JIMI Targa import filter because I know that a revised version of the JIMI and JAI packages will be part of JDK 1.4. This is why I am trying to figure out what is happening in the MediaTracker and Toolkit classes, which are much more fundamental than the Jimi ones...
    Thanks anyway...
    Best regards,
    Jean-Fran�ois Morin

  • Getting error while calling ejb business methods from servlet

    Hi
    Iam getting error when i try to call a ejb method from servlet.Error is
    "com.netscape.server.eb.UncheckedException: unchecked exception nested exception is:java.lang.NullPointerException".
    I build the application and deployed it successfully.Iam using IAS 6.O with windows NT 4.0.
    This is just a method which takes values from database and return as an array of bean to servlet.
    Any help on this.Thanks Shank

    Hi
    I was using the session bean.Your suggestion helped me a lot.Perfect.
    I debug my program and found that from ejbCreate()exception is getting.
    I was getting the datasource object thro ejb create() initialisation.
    Somehow the look up jndi which i mentioned was not interpretting from ejb-jar.xml ias-ejb-jar.xml and datasource ref .Due to this iam getting jndi Namenotfound exception which in turns to null pointer as datasource is getting null.
    when i hardcoded in the ejb the the jndi name for datasource it is working fine.Bit worried all the existing ejbs working with the xml referenced datasource and jndi,but when i added a new ejb with same properties it is failing to get the jndi name.
    Piece of code from ias-ejb-jar.xml
    <resource-ref>
              <res-ref-name>myDataSource</res-ref-name>
              <jndi-name>jdbc/nb/myData</jndi-name>
    </resource-ref>
    Piece of code from ejb-jar.xml
    <resource-ref>
              <res-ref-name>myDataSource</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
    </resource-ref>
    Thanks a lot meka

  • How to obtain the pricing condition data from sales data?

    Hi all!  I have googled many times and read through many sites to understand how I can obtain the pricing condition data that's specific to a specific sales line.  However, the answer I got usually are as follow:
    Tables to be used:
    KONV
    KONH
    KONP
    VBRK
    VBRP
    And the thing is to obtain KNUMH data from VBRP and link it to KONP which will get the exact pricing condition data that's relating to the specific transaction.
    However, my challenge is that the field KNUMH in either VBRP or VBAP, it is empty.  Therefore, how can I have a report with my sales data as the primary file, and appending the pricing condition data so that I can analyze the different kinds of pricing condition types that the company is using.  The only field that I can use is KNUMV which does not give me the pricing condition that was used in this particular invoice line.
    I also know that there is the A*** tables, which contains the KNUMH file.  However, this file is split into many different tables.  Thus, is there a more efficient method to download all the data?  In any case, I still do not know how to link to my sales data.
    FYI, I only have SE16N and VK13's access.
    I hope that someone can help me, please!
    Thank you!

    Hi,
    Data flow :
    BW :
    When u right click on the Master Data Info object -> Select Data flow.Then  it will  show u the details like DS name,IS (If 3.x)
    Once u know the DS then you need to find out the source tables for the R/3 DS.This information will get using ROOSOURCE or ROOSFIELD tables  or help.sap.com.
    My suggestion better to search in Help site for DS source tables.
    DS Tables :
    The following link will provide you the source tables for some of the LO DS.
    https://wiki.sdn.sap.com/wiki/display/BI/BWSDMMFIDATASOURCES
    Regards
    Ram.
    Edited by: Ramakanth Deepak Gandepalli on Dec 22, 2009 9:29 AM

  • How to give the list.tablename in from clause

    Hi,
    I am getting error invalid table name when I give list_item.tablename in from clause
    ex :
    q1:= 'select * from &p1_list.tablename';
    return q1;
    here p1_list is the list of schema values.
    It worked fine when I give the type SQL Query. If I give the same thing in
    SQL Query(PL/SQL function body returning SQL QUERY I am getting above error
    Please help me.
    Thanks,
    Rekha

    I have a LOV defined in a page which lists the schema names. My report query should use the selected schema , i.e. say the LOV item is named P5_ENVID, and the table name is emp then my sql query should be of the form,
    select * from <P5_ENVID>.emp ;
    Questions:
    1. for Type "SQL Query", is it possible to use variables in the FROM clause?
    2. I have tried :P5_ENVID.. , &P5_ENVID and v('P5_ENVID') , but they all return a parse error.
    3. Do I have to use type PL/SQL funtion body returning sql query ?
    4. if I have to do 3, then could you pls point me to appropriate documentation with the usage of it
    Thanks

  • Obtaining the original JDBC exception from an EJBException?

    Hello All,
    I am using EJB3 on Glassfish using the default TopLink persistence manager. Within a Session Bean, when the persistence manager catches a DB exception, it marks the transaction to be rolled back, and throws an EJBException, in turn wrapping a RollbackException. Now I was expecting to be able to get the original jdbc exception out of the caused by exception of one of these exceptions, but it is not.
    It is important that I do retrieve the original exception, as I need to report back to the users what the problem is, and to do this I need to analyse the SQL error codes.
    Note that these are the DB exceptions caught by toplink during managed transactions (e.g. an EJB persist or merge), not exceptions thrown by our code.
    Does anyone know if it is possible to get this information from Toplink?
    Edited by: user11973327 on Oct 4, 2009 7:19 AM

    It is odd that Glassfish would throw an exception on marking the transaction for rollback, and ignore the thrown error. You might wish to check with Glassfish on this. What version of TopLink are you using? A similar issue on WLS was fixed in EclipseLink, you may wish to try the latest EclipseLink release.
    You could also call flush() in your SessionBean to obtain the real database exception.
    James : http://www.eclipselink.org : http://en.wikibooks.org/wiki/Java_Persistence

  • How can I obtain the coefficients m, b from MAX scale?

    I use CWAI ActiveX for acquire data. Also, I use MAX to set the virtual channels for CWAI. When I try to use scale option of MAX (for exemple y = 0.5x + 3 to transforn volts in my phisics values) I obtain true data from ScaledData (phisics values), but I can't obtain true data from (BinaryCodes x GetScaleMultiplyer) + GetScaleOffset. How can I obtain true value from binarycodes?
    How can I obtain m and b from ActiveX?

    drg,
    The GetScaleOffset & GetScaleMultiplier refer to the hardware factors used by the driver to transform the binary values produced by the ADC converter to actual Voltage values (not physical units of the Virtual Channel).
    The documentation (NI-DAQ 6.9.3) for the ScaleMultiplier property mentions this:
    "Returns the slope in the linear scaling formula for converting the binary codes of the analog-digital converter to voltages. The CWAI control multiplies the binary code by the ScaleMultiplier and adds the ScaleOffset to convert a binary code to a voltage.
    (BinaryCode * ScaleMultiplier) + ScaleOffset = Voltage"
    If the signal range was, for example +/- 5 V, the multiplier for a 12 bit board would be approximately 0.00244141 so that:
    2047 * 0.002441
    41 = 5V
    NOTE: The 12 bit range (4096 words) is divided into +2047 / -2048
    Unfortuantely there is not a function or method in the CWDAQ API to obtain or set parameters from the Custom Scales used by the Virtual Channels.
    The reason for this is probably due to the fact that once Virtual Channels are created, most users would read in scaled values directly rather than reading binary values, getting the scale constants and applying the custom scale themselves. Since the user specifies the values for the custom scales anyway, the application could as well store the scaling constants as part of its configuration.
    Still, it would be nice to have this functionality so I thank you for pointing this out. I will create a suggestion indicating the need for such functions.
    The ways to achieve the results you desire are:
    1) Use Virtual Channels and read scaled data
    or
    2) Use the ScaleMultiplier and ScaleConstants to transform binary values into actual voltage values. Once
    you obtain the voltage values you can manually apply the same custom linear scale you had created through MAX.
    Regards,
    Alejandro Asenjo
    Applications Engineer
    National Instruments

  • What are the newest books available from Sun?

    Hi, I was just wondering what are the newest editions of books that are available from this site specifically and the developers of Java.
    I was looking at the shop from this site just, but all of the editions of books seem to be old compared to those that I have found on Amazon.
    Specifically I was looking for books endorsed by Sun themselves, I think I saw two in particular which are:-
    The Java Programming Language (Fourth Edition is latest I see) by Ken Arnold, James Gosling, and David Holmes
    Effective Java, Programming Language Guide (Second Edition) by Joshua Bloch
    Are there any other books like this which are written by the Java developers or listed as Effective Java was in the trails (and what are the newest versions)? Thanks.

    What's the sudden requirement that the books be from Sun? I've found that books from O'Reilly and APress are often better than those from Sun. For beginners, the O'Reilly "Head First" series is one of the best and the easiest to read.

Maybe you are looking for

  • Jabber for Windows Video calling in Deskphone mode

    Hi Does Jabber for windows support video calling in deskphone mode? I have 7942 IP Phone, VT advantage camera on Laptop and Jabber clinet insatlled on laptop. Can i make video callng with Jabber in Deskphone mode? It is not working please help. Regar

  • ISight Camera not working and green light won't cut off

    Ok, so I used to use macs all the time (exclusively) then I left for a few years, and now that I am back I have had a great experience so far except for this oddity... I have no idea why but all of the sudden my little green light beside my built-in

  • ERP source system appearing in BI folder

    Hello All, We have done a refresh of our ERP system from PROD to QA. When I restored the connection of the source system in BI it is appearing under the Source System folder BI, instead of the SAP folder. Also the symbol is different of that of an ER

  • Trouble opening a managed project file on a PC

    Hi all! So I have encountered a really weird problem that's been driving me bonkers lately. I'm working on a comedy web series and have been getting managed timelines from the editor to do some adjustments, grading and sound with. The first episode w

  • "Save As" not working for cursor generated content

    Hi All, Oracle Portal Version : 9.0.4. I have a PL/SQL procedure which generates a HTML page when called with certain parameters. When I am trying to do "Save as", "Web Page Complete" for this page in IE 6, it does not save correctly. The problem is