Sun 8: ClassCastException from ManagementHome

I am trying to use JMX from Sun 8 using a java application client.
When I tried:
Context ctx = new InitialContext(properties);
Object objref = ctx.lookup("ejb/mgmt/MEJB");
ManagementHome home = (ManagementHome)
PortableRemoteObject.narrow(objref, ManagementHome.class);
I got error:
java.lang.ClassCastException
at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java
:293)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
What is missing from my program or environment?
My classpath is: .;d:\sun\appserver\lib\j2ee.jar;d:\sun\appserver\lib\appserv-rt.jar;d:\sun\appserver\lib\appserv-admin.jar
My java -version is:
java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
Any information would be appreciated. Thanks in advance.

Hi Hans,
Thanks for your advice: I set these three properties now. I can go one step futher.
Now I can get ManagementHome object without errors. But when I tried to call create(),
I got error below. What else do I miss?
>>>>>>>>>>>>>>>>>>>>>>>>
D:\test\manage>java -Djavax.rmi.CORBA.UtilClass=com.sun.corba.ee.impl.javax.rmi.CORBA.Util -Dorg.omg
.CORBA.ORBClass=com.sun.corba.ee.impl.orb.ORBImpl -Dorg.omg.CORBA.ORBSingletonClass=com.sun.corba.ee
.impl.orb.ORBSingleton -classpath d:\sun\appserver\lib\jmxremote.jar;.;d:\sun\appserver\lib\j2ee.jar
;d:\sun\appserver\lib\appserv-rt.jar;d:\sun\appserver\lib\appserv-admin.jar;d:\sun\appserver\domains
\domain1\applications\j2ee-apps\MEjbApp\MEjbAppClient.jar;d:\a\otherJars\jhall.jar;d:\ant\lib\ant.ja
r;d:\j2sdkee1.3.1\lib\j2ee.jar;d:\j2sdkee1.3.1\lib\j2eetools.jar;d:\a\otherJars\retroguard.jar;d:\a;
d:\a\build;.;d:\a\otherJars\redress.jar;d:\a\otherJars\browserLaucher.jar;d:\a\otherJars\hsql.jar;d:
\a\otherJars\jcalendar.jar;d:\a\otherJars\jcommon-0.6.4.jar;d:\a\otherJars\jfreechart092.jar;e:\Mave
ricks\lib\primetime.jar;e:\Mavericks\lib\jbuilder.jar;;d:\a\otherJars\kunststoff.jar;d:\jmx\lib\jmxr
i.jar;d:\a\otherJars\jsch-0.1.15.jar;d:\a\otherJars\commons-net-1.2.2.jar;sunSuperLogging.jar;d:\sun
\appserver\lib\jmxremote.jar M
java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
org.omg.CORBA.NO_PERMISSION: ----------BEGIN server-side stack trace----------
org.omg.CORBA.NO_PERMISSION: vmcid: 0x0 minor code: 0 completed: No
at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.receive_request(SecServerReq
uestInterceptor.java:396)
at com.sun.corba.ee.impl.interceptors.InterceptorInvoker.invokeServerInterceptorIntermediate
Point(InterceptorInvoker.java:509)
at com.sun.corba.ee.impl.interceptors.PIHandlerImpl.invokeServerPIIntermediatePoint(PIHandle
rImpl.java:504)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.getServantWithPI(CorbaSer
verRequestDispatcherImpl.java:367)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerReque
stDispatcherImpl.java:189)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessage
MediatorImpl.java:1683)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediato
rImpl.java:1543)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorI
mpl.java:925)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_
1_2.java:181)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediato
rImpl.java:697)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelCon
nectionImpl.java:454)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConne
ctionImpl.java:1188)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.j
ava:398)
----------END server-side stack trace---------- vmcid: 0x0 minor code: 0 completed: No
at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:195)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHan
dlerImpl.java:142)
at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
at com.sun.enterprise.management.agent._MEJBHome_DynamicStub.create(_MEJBHome_DynamicStub.ja
va)
at M.getMejb(M.java:38)
at M.test(M.java:54)
at M.main(M.java:107)

Similar Messages

  • ClassCastException from OraclePreparedStatement.setArrayInternal() method

    The following code throws a ClassCastException from oracle.jdbc.driver.OraclePreparedStatement.setArrayInternal() method line# 5886 when cs.setArray() is executed.
    Connection conn = getConnection(); // Returns a java.sql.Connection instance
    CallableStatement cs = conn.prepareCall(queryString);
    cs.setArray(1, new UsnArray(usns)); // UsnArray implements java.sql.Array
    cs.registerOutParameter(2, Types.INTEGER);
    cs.execute();
    This works if I create the CallableStatement on an oracle.jdbc.driver.OracleConnection instance and use an oracle.sql.ARRAY instance in the setArray() method call. A JDBC-compliance driver shouldn't be expecting the applications to use driver-specific classes. The application can pass any instance of type java.sql.Array in the setArray() method call.
    Is this a bug in the driver?
    Driver information from ojdbc14.jar manifest.mf file:
    Manifest-Version: 1.0
    Specification-Title: Oracle JDBC driver classes for use with JDK14
    Sealed: true
    Created-By: 1.4.2_08 (Sun Microsystems Inc.)
    Implementation-Title: ojdbc14.jar
    Specification-Vendor: Oracle Corporation
    Specification-Version: Oracle JDBC Driver version - "10.2.0.2.0"
    Implementation-Version: Oracle JDBC Driver version - "10.2.0.2.0"
    Implementation-Vendor: Oracle Corporation
    Implementation-Time: Tue Jan 24 08:55:21 2006
    Name: oracle/sql/converter/
    Sealed: false
    Name: oracle/sql/
    Sealed: false
    Name: oracle/sql/converter_xcharset/
    Sealed: false
    --------------------------------------------------------------------------------------------------

    Let me elaborate on your last two replies: it doesn't matter what other drivers support; it doesn't matter what your "intention" was; all that matters is whether the implementation adheres to the specification or not. If it is not, it is not compliant to the specification (period). It is a very strong statement to say that "You must use oracle.sql.ARRAY." I'm not quite sure you understand the meaning and motivation behind standards like JDBC and J2EE and standards bodies like ANSI. This is very obvious when you say that "This is a limitation of the expressiveness of the Java type system."
    If you think the JDBC compliance only mandates that "A driver is only required to accept a value that is of the concrete class defined by the driver," which is not mentioned anywhere in the spec anyway, then Sun would have simply defined the setArray method as "public void setArray(int i, oracle.sql.ARRAY x)" (one for each driver available) instead of saying "public void setArray(int i, java.sql.Array x)". It also clearly says that if a specification is not supported by a driver, in which case it must be specified in the DatabaseMetaData, the driver must throw a SQLEception. Bur your claim completely contradicts everything. You can also refer links like this on the Web: http://archives.postgresql.org/pgsql-jdbc/2003-07/msg00294.php.
    I don't know what you mean by "The JDBC spec is not as precise as it could be." The relevant requirements have been clearly stated throughout Chapter 13 “Statements” and in Appendix B "Data Type Conversion Tables" in JDBC 3.0 spec (Chapter 8 Section 3 "Arrays" in JDBC 2.1 spec).
    A JDBC driver may provide underlying data source-specific features in addition to those mandated by the JDBC specification. Applications that try to take advantage these additional features may decide to “stick” with a specific driver and import driver-specific classes. But these additional features cannot substitute the basic requirements.

  • How to run TCK using Java Card Sun reference model from eclipse

    Hi all,
    can any one help me by giving an idea about running java card TCK using sun reference model from eclipse IDE.
    Thanks
    Murali

    tck should be able to run as stand-alone (with jcre).

  • ClassCastException from LDControl

    Hi,
    I am trying to invoke a LD Query using LDControl from a pageflow.
    I keep getting java.lang.ClassCastException on method call to myControl.LDQueryMethod().
    My guess is that its some data-type mismatch between the schema returned by the LD Query and the auto-generated XML Bean.
    Is there any way to debug where this exception is coming from?
    - vineet

    Exception stack trace -
    java.lang.ClassCastException
    at $Proxy10.SomeGetData(Unknown Source)
    at portlets.Data.DataController.SomeGetData(
    DataController.jpf:140)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.netui.pageflow.FlowController.invokeActionMethod(FlowCont
    roller.java:1510)
    at com.bea.wlw.netui.pageflow.FlowController.getActionMethodForward(Flow
    Controller.java:1445)
    at com.bea.wlw.netui.pageflow.FlowController.internalExecute(FlowControl
    ler.java:776)
    at com.bea.wlw.netui.pageflow.PageFlowController.internalExecute(PageFlo
    wController.java:211)
    at com.bea.wlw.netui.pageflow.FlowController.execute(FlowController.java
    :606)
    at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
    tProcessor.java:484)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processActionPerf
    orm(PageFlowRequestProcessor.java:1354)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
    va:274)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowR
    equestProcessor.java:650)
    at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegi
    sterActionServlet.java:527)
    at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActi
    onServlet.java:152)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:1006)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:419)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte
    r.java:293)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6724)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3764)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2644)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

  • How to catch ClassCastException from JSP page?

    I get a ClassCastException within my JSP page and I know where my bug is. However, this classcastexception message is displayed in the browser and I want to catch this exception to also log it into my log file. But I can't find the place where to catch it: in my servlet's doPost() method I can't catch it - i tried it by enclosing the method body with try/catch but it isn't catched. I wonder if I can catch it at all or if this error is handled internally in the servlet engine?

    It should only be displayed in the browser if you're not catching the exception in the jsp itself. If the exception is happening in the jsp, then there's no point in trying to catch it in the servlet.
    What happens if you put a try-catch just around the actual code in the jsp? You could put it around the entire jsp, but that's not necessary.
    One problem I've encountered in catching exceptions is if there are escape sequences within the try block, for example:
    try{
       //java code
    %>
       <!--html -->
    <%
    //java
    catch (Exception e)I'm not sure if that works or not, but to be safe, make sure you're not escaping from jsp within the try block.

  • ClassCastException from appendSecondaryDocument( non-oracle-generated-XMLDocument i )

    I wrote an xsql custom handler that converts html to xhtml and includes it into my xsql-generated xml.
    It gets slow because appendSecondaryDocument() throws a ClassCastException if I pass in a (XML) Document that is generated by the parser in JTidy.
    I therefore have to reparse this document using Oracle parser, which degrades performance too much.
    Is there any way to avoid this reparsing?
    I included code that shows the problem, the code relies on the JTidy library, which may be downloaded from:
    http://sourceforge.net/projects/jtidy/
    <pre>
    package nki.nettskolen.xsql;
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    import oracle.xml.parser.v2.*;
    import oracle.jdeveloper.cm.ConnectionManager;
    import oracle.sql.*;
    import oracle.jdbc.driver.*;
    import oracle.xml.xsql.*;
    import oracle.xml.xsql.actions.*;
    /** This class provides functionality for including html (as xhtml)
    into an xsql-page. Usage:
    <xsql:include-html src="../../main.html"/>
    @author Tommy Skodje, NKI 2001.
    public class HtmlImporter2 extends XSQLActionHandlerImpl {
    String mUrl = null;
    boolean mRelative = false;
    /** Get url to the resource u want to include */
    public void init(XSQLPageRequest req, Element action) {
    super.init(req, action);
    mUrl = action.getAttribute( "src" );
    } // init()
    /** Read the html file, convert to xhtml, and add to result. */
    public void handleAction(Node result) {
    InputStream in = null;
    try {
    org.w3c.tidy.Tidy tidy = new org.w3c.tidy.Tidy();
    tidy.setXHTML( true );
    tidy.setQuiet( true );
    XSQLServletPageRequest xspr = (XSQLServletPageRequest)getPageRequest();
    String requestType = xspr.getRequestType();
    if ( ! requestType.equals("Servlet"))
    return;
    HttpServletRequest req = xspr.getHttpServletRequest();
    HttpServletResponse res = xspr.getHttpServletResponse();
    String text = "<html><head></head><body><br>Hello World!</body></html>";
    in = new ByteArrayInputStream( text.getBytes() ); // dummy: get resource as stream
    // PassPostRequestServlet.getStream( mUrl , req , res );
    ByteArrayOutputStream outBuf = new ByteArrayOutputStream();
    Document xDoc = tidy.parseDOM( in , outBuf );
    // tsk FixMe: ClassCastException if used directly, why? appendSecondaryDocument( result , tidy.parseDOM( in , Logg.getStream() ) );
    InputStream inBuf = new ByteArrayInputStream( outBuf.toByteArray() );
    xDoc = readXMLDoc( inBuf );
    appendSecondaryDocument( result , xDoc );
    } catch ( Exception e ) {
    String msg = "Exception in XSQLImporter.handleAction(), url=" + mUrl;
    System.out.println( msg + e.getMessage() );
    } finally {
    close( in );
    } // handleAction()
    /* Parses and instantiates an XML document from stream (which is then closed)
    @param ByteArrayInputStream stream of textual data (from String, file etc)
    @return XMLDocument instantiated from contents of stream
    public XMLDocument readXMLDoc( InputStream source ) {
    DOMParser theParser = new DOMParser();
    try {
    //the parser works faster in nonvalidation mode
    theParser.setValidationMode(false);
    theParser.parse( source );
    } catch ( Exception e ) {
    String msg = "Exception in readXMLDoc(): " + e.getMessage();
    System.out.println( msg );
    } finally {
    close( source );
    return theParser.getDocument();
    }// end hentXMLDoc
    /** Closes the stream */
    public static void close( InputStream s ) {
    if ( s != null ) try {
    s.close();
    } catch ( Exception e ) { }
    } // close()
    /** Closes the stream */
    public static void close( OutputStream s ) {
    if ( s != null ) try {
    s.close();
    } catch ( Exception e ) { }
    } // close()
    } // class HtmlImporter
    </pre>

    Looks like you already figure this one out, but basically the XSQL Page Processor expects the DOM implementation that is used to be the fast Oracle DOM implementation for performance reasons.

  • How does Sun make money from Java? Silly question.

    Hi,
    From what I have read about the J2SE licensing, we are able to download the SDK and develope commercial applications with it for free.
    Have I made a big mistake in my reading? How does Sun make any money from Java?
    Thanks very much.
    Prem.

    related topic
    a lot of companies package a free or trial version of software like
    Rational Rose
    TextPad
    VisualAgeForJava
    DreamWeaver
    etc.....
    the versions may be limited in many ways
    they want public and students to use it to become popular
    students get jobs and convince boss to buy enterprise edition
    they make money
    I didn't mention sun in the above list cause they are special!!!!!
    some other interesting topics include GNU liscence and
    COPYLEFT
    check it out

  • Sun One deploy from 9.0.3

    Is there a way to deploy from jdev to a sun one server using an admin jar and appserver connection? other than copying over the war/ear file, I mean ...

    There is no built-in one click deployment to Sunone from 9.0.3
    You might be able to use the external tools option to invoke some script that will take the needed files and deploy them.

  • Where to download Sun OpeESB components from?

    I know it is not correct place but I couldn't find any other suitable one. My question is where can find platinum pack–v2.2-installer.jar for OpenESB now? Is it still possible or Oracle policy is to pretend that it never happened?
    Thanks
    Smok

    Sun IDM 8.1 can be installed from scratch. No previous IDM versions are required. It is a full installation. Simply use MySQL as the repository database and Apache Tomcat as your application server.
    Specific installation instructions for Sun IDM 8.1 on Tomcat can be found here: http://docs.sun.com/app/docs/doc/820-5594/ahtbq?l=en&a=view
    Of course, first you need to prepare the DB and App Server: http://docs.sun.com/app/docs/doc/820-5594/ghrqf?l=en&a=view and http://docs.sun.com/app/docs/doc/820-5594/ghrsw?l=en&a=view, respectively.
    Good luck.
    Edited by: user12611524 on Dec 28, 2010 2:55 PM

  • Boot SUN Fire V245 from USB DVD

    Hi,
    I am trying to install Solaris on SUN Fire V245 by booting from USB DVD, but in vain. Boot PROM Version in the server is: 4.22.33 and this doesn't contain a internal DVD.
    Can any one help me out to complete the installation from external USB DVD?
    Thanks in-advance
    sk

    Could you please give me the exact product number for your notebook?
    If you need help finding it, you can use the following link:
    http://h10025.www1.hp.com/ewfrf/wc/findModel?cc=us&dlc=en&lc=en
    Thanks,
    Kyle
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • How to sun all calendars from iPad to iMac to iCloud?

    Ever since I upgraded to the Maveric operating system for my imac, I've having trouble syning all icals from iphones to ipads to imac.  A lot of times, events entered through the imac just won't syn up with my iphone nor ipad.  Is anyone elese experiencing this problem?  Does anyone have any solution to this problem?  By the way, I don't save the most important information on iCloud, but devices can be updated through Wifi at home only.  Got hacked too many times through public wifis.

    Almost same problem. My iphone will sync to iCal on mac but if I add something in my iCal on my mac it won't sync with my iphone. It used to work...

  • Problems in Sun's Database from SCJD Exam

    Hello,
    Any does the SCJD exam between January - February 2008?
    I did, but the Sun's database has a problem, so my exam went send by the inspector ONE MONTH later.

    Hi Brian,
    Thanks a lot. I don't have an oracle full java driver now. I'll try working with it. But the thing is, there is no error in syntax because i'm able to access the database now and then. But it doesn't work always. Moreover the one about the link! When I type a URL, it works fine but not with a location.href link or a flash link. To be frank with you I copied the working url and pasted it into the link, but still that doesn't work. What is the reason for all this? Even despite including "con.close()" statement in my page, why does the connection still continue? When is the connection actually established? Supposed to be when I submit the form!! Please reply at your earliest.
    Thanks a lot once again...
    R. Yogaesh.

  • ClassCastException from Query to JDBCQuery

    Section 4.6 of the 3.0b2 documentation states, "You can safely cast any
    query instance returned by a Kodo JDO persistence manager to a JDBCQuery."
    I get the following stack trace when I attempt to do so:
    java.lang.ClassCastException
    at kodopt.UserManagerServlet.doGet(UserManagerServlet.java:1060)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
    at
    com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
    at com.caucho.server.http.Invocation.service(Invocation.java:315)
    at
    com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
    at
    com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246)
    at
    com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
    at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
    at java.lang.Thread.run(Thread.java:536)
    I set javax.jdo.PersistenceManagerFactoryClass to
    kodo.jdbc.runtime.JDBCPersistenceManagerFatory. The object type returned
    by PersistenceManager.newQuery() is kodo.datacache.CacheAwareQuery. Is
    this a bug, or am I doing something wrong?

    Abe White wrote:
    The object type returned
    by PersistenceManager.newQuery() is kodo.datacache.CacheAwareQuery. Is
    this a bug, or am I doing something wrong?
    Argh; it's a bug. It'll only happen when the data cache is enabled, by
    the way. Darn... you'll have to make due with casting to
    kodo.query.KodoQuery.
    Was there a specific JDBCQuery method you needed to invoke?Yes... setJoinSyntax().

  • Migrating issue from ibm jdk to sun jdk and from WAS5.0 to WAS6.1

    hi,
    while creating ConnectionFactory i am getting the following error:
    com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. [Root exception is java.lang.NoClassDefFoundError: Invalid Implementation Key, com.ibm.ws.transaction.NonRecovWSTxManager]
    Using SUN JDK5 , WAS6.1
    I have included com.ibm.ws.runtime_6.1.0.jar and com.ibm.ws.webservices.thinclient_6.1.0.jar in my buildpath but still i am getting the exception.
    Can anybody point out where i found this class?
    plz help,
    Thanks in advance...

    Hi,
    I have exactly identical probelm. Do you have any solution to it? Would you please share here.
    Thank you.

  • ClassCastException from doFilter

    Hi,
    I added a security filter in front of Weblogic 8.1 WebServiceServlet and at the
    end of my filter, I passed a customized HttpServletRequestwrapper instance to
    the doFilter(req, resp) call. I am getting a ClassCastException as following:
    Error 500--Internal Server Error
    java.lang.ClassCastException
         at weblogic.webservice.server.servlet.WebServiceServlet.getWebService(WebServiceServlet.java:195)
         at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:95)
         at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:232)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:385)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at mypackage.servlets.security.AuthorisorFilter.doFilter(AuthorisorFilter.java:180)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Does any one have this same problem before? Where can I find the source code for
    this WebServiceServlet?
    Many thanks and best regards,
    Jacky

    Hi Jacky,
    Take a look at the servlet example posted by Michael [1] and see if this
    answers your question.
    Hope this helps,
    Bruce
    [1]
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.webservices&item=4618
    Jacky Lee wrote:
    >
    Hi,
    I added a security filter in front of Weblogic 8.1 WebServiceServlet and at the
    end of my filter, I passed a customized HttpServletRequestwrapper instance to
    the doFilter(req, resp) call. I am getting a ClassCastException as following:
    Error 500--Internal Server Error
    java.lang.ClassCastException
    at weblogic.webservice.server.servlet.WebServiceServlet.getWebService(WebServiceServlet.java:195)
    at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:95)
    at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:232)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:385)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at mypackage.servlets.security.AuthorisorFilter.doFilter(AuthorisorFilter.java:180)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Does any one have this same problem before? Where can I find the source code for
    this WebServiceServlet?
    Many thanks and best regards,
    Jacky

Maybe you are looking for

  • How to execute a batch file on different remote server using TFS Build

    I have a build server and have 2 web servers. I am deploying using TFS Builds. Now, I have a requirement to execute a batch file which is kept on these 2 web servers. i.e. C:\MyBatch\CreateMe.bat After my build is successful, I need to execute this b

  • Soap to rfc..dont get a response...

    I have pasted below the complete steps for doing a rfc to soap synchronous scenario...i can send a message and update a custom table in r/3 with the data..however i am not getting any response, i have tested the rfc on r/3 and checked the table ..whi

  • Problem showing the selected node element in Adobe Forms

    Hi, I have a Webdynpro Application with a 0..n cardinality node. The requirement is when the user selects one element of the node in my WD app, the data of the selected node element has to be shown in my Adobe Form. Now the form is showing the first

  • Functionality of SUSR _ LOGIN _ CHECK _ RFC

    Hi people, I need to know how this FM works. I have 2 quesiton: - You import user and password but i don't know where this function go to verify this. - What kind of user this FM comprove? User of sap (user for log to sap) or users that can use sap (

  • Converting from Oracle Express Objects to Standard Form

    Hi, I have create an EIF file from our Oracle Express database, then I have created an Analytic Workspace and imported the EIF file. After this I identify the Time dimensions. But when I want to identify the hierarchie dimension of each time dimensio