Related to servlets and core java

Hi,
How the JVM and servlet container/wecontainer/ejb container is communicating with each other coz they sit in difft places...

Pigeons

Similar Messages

  • Compiling the java file related to Servlet and Core java files in heirarchy

    I am working in Jakarta-Tomcat 4.0.4 with j2sdk1.4.1_01 and i have put all servlet files in package "com.java.servlet"
    and other core java files in package "com.java.action" . Also I am imorting java files in package
    "com.java.action" to the package "com.java.servlet".
    But when I am compiling the servlet files in package "com.java.servlet"
    then the servlet files are not compiling because it cannot able to import
    java files in package "com.java.action" . I have tried all the options.
    If anybody has solution then please respond immediately.

    I agree with the previous poster, this sounds like a generic compiling problem. FYI: I do not think that packages that start with "com.java." are special or reserved in any way.
    You are making a servlet, not a JSP, right? Since this is merely about compiling, you might want to re-post to "Java Programming".

  • NOT able to compile servlet and EE java files

    hi
    i am not able to compile java files of servlet
    it is showing cannot resolve symbol for servlet classes
    since i have installed tomcat j2sdk1.4.2_06 and also facing problem with the classpath since i have to set the classpath everytime as i have already created it in environment variables
    show me the way out

    **MAJOR SPAMMING SCUM BAG ALERT**
    I was puzzled in that you asked a SQL Server question in one post and then in another thread asked a Oracle related question... and then I noticed you had cross posted one of your questions at JavaRanch and I was more annoyed....
    and then I found this....
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=10&t=002447
    You sir -> Michael Byrd -> are a scum sucking dirtbag.
    To quickly explain. Mr. Byrd posts his messages (which he copies wholesale from other posters) so that he can get better google caching for the website listed in his profile.
    This is such scummy behaviour I don't even know what to say. Other than basically everyone that has ever helped you had totally wasted their time.
    You are scum. Your company is scum. I hope you rot in hell.

  • Servlet communication with Java App.

    Hi currently I am working on a project in which with the current design I have to implement a servlet, which can communicate to other servlets and/or Java applications via calling their methods. I know that RMI would be ideal for this however, I do not want to have to setup or configure anything on the server end. Another approach I thought of was to extend the abilities of the servlet and Java app to communicate at the "socket" level, however this can cause issues when communicating through a firewall , I am sure there are workarounds. The last thing that I thought of was having the servlet and application communicate via the HTTP protocol and using HTTPMessage to pass arguments. This approach seems to be the easiest but I would have rather liked to access the Object methods of the two applications rather than send args back and forth. Again as mentioned technologies like RMI and CORBA would probably benifit me. While I don't know too much about CORBA I do know that RMI would require administration work which I would not like to deal with mostly b/c of paperwork and red tape.
    Any advice would be appreciated.
    thank you,
    Peyman m.

    HI,
    I think if your client is RMI, then you need to have RMI server running to answer that client.
    While here you have servlet as your server side component. So, I think in its orginal form servelet can not reply to RMI implelemnted client.
    The best approach I feel for the situatioin described by you is using java based HTTP classes.

  • Questions about Java Servlets and JSP

    Hi,
    I'm a confident Java Programmer (and really enjoy using this language) but am very new to Java servlets and Java Server Pages.
    I have previously worked with Perl on my web projects (simple 'league' style voting pages). I read in my 'Core Java' book that I should no longer use perl or even cgi.
    I need to know more about Java servlets and Java Server Pages so I can make the switch to a 'real' programming language.
    I have a few questions:
    How should I start to learn JS and JSP?
    How applicable will the java knowlegdge I have already be?
    Are JSP common on the world wide web?
    What tools do I need to start? (I currently develop in JBuilder and have Java 1.4.1 Standard Edition)
    Is it likey my web host (and others) will support JSP?
    Thank-you very much for helping a novice get started,
    Regards,
    Paul

    Hi, Steve ...has to be frustrating! But do not despair.
    Let's suppose the servlet it's named MyServlet on package org.servlets
    WEB-INF should look:
    WEB-INF
    classes
    org
    servlets
    MyServlet.class
    web.xml
    web.xml file should have this two declarations:
    <web-app>
      <servlet>
        <servlet-name>MyServlet</servlet-name>
        <servlet-class>org.servlets.MyServlet</servlet-class>
      </servlet>
      <!-- other servlets -->
      <servlet-mapping>
        <servlet-name>MyServlet</servlet-name>
        <url-pattern>/MyServlet</url-pattern>
      </servlet-mapping>
      <!-- other servlets mappings -->
    </web-app>Now, once the container starts (Tomcat?), you should be able to see that servlet in:
    http://localhost:8080/[my-context/]MyServletAnd what my-context is? The web application context. This string should be empty if your're deploying to the root context, otherwise should the context name. In Tomcat, deploying to root context defaults to using webapps/ROOT.
    Sorry for my English, but I felt the need to answer your request. I hope it helps despite my writing.

  • Serving Java Servlets and JSP

    I have a small hosting company and was wondering what is required to be installed on a Win2k Server to host Java Servlets and JSP pages for a client of mine?

    Ah, so you just want to add a servlet engine to IIS5?
    Tomcat can be used as a plugin for IIS. Check out the Tomcat FAQs - somewhere in there you should find one relating to using Tomcat as an IIS plugin. They're far more comprehensive than I could ever hope to be on the matter!

  • What is the diffrence between  map and map.entry in core java

    what is the diffrence between map and map.entry in core java . where it will be use ful. any one give one example plz.

    A Map contains Map.Entry's
    e.g.
            Map map = new LinkedHashMap(8);
            map.put(new Integer(1), "one");
            map.put(new Integer(2), "two");
            final Iterator iterator = map.entrySet().iterator();
            while (iterator.hasNext()) {
                Map.Entry entry = (Map.Entry) iterator.next();
                System.out.println("key=" + entry.getKey() + ", value=" + entry.getValue());
            }

  • Java Development issue/differences between Core Duo and Core 2 Duo (??)

    Hi Everyone,
    I am a Java developer that uses my 17" MBP Core Duo for all of my development. Lately, I've been trying to use both the Glassfish Application Server V2 (from Sun) and Maven 2.09 from the Apache project. I have configured identical scenarios on my MBP Core Duo and on a 15" MBP Core 2 Duo.
    The scenario involves compiling and running some webservices (at least on the Core 2 Duo) in a local development environment. Both machines use the default JDK 1.5.0_13 installed on the machine.
    On the 17" Core Duo, issuing a "mvn install" command produces the following error:
    [INFO] Compiling 1 source file to /Users/john/downloads/soabook-code-20070504/chap07/endpoint-provider/modules/en dpoint/target/classes
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Fatal error compiling
    Embedded error: Prohibited package name: java.lang
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 12 seconds
    [INFO] Finished at: Fri Sep 05 07:09:06 CDT 2008
    [INFO] Final Memory: 9M/17M
    [INFO] ------------------------------------------------------------------------
    Running Maven with the "-e" switch turned on produces the following stacktrace:
    org.apache.maven.lifecycle.LifecycleExecutionException: Fatal error compiling
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecyc leExecutor.java:564)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(De faultLifecycleExecutor.java:480)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycl eExecutor.java:459)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailure s(DefaultLifecycleExecutor.java:311)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Default LifecycleExecutor.java:278)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExe cutor.java:143)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
    Caused by: org.apache.maven.plugin.MojoExecutionException: Fatal error compiling
    at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java: 498)
    at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
    at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.j ava:443)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecyc leExecutor.java:539)
    ... 16 more
    Caused by: java.lang.SecurityException: Prohibited package name: java.lang
    at java.lang.ClassLoader.preDefineClass(ClassLoader.java:534)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:669)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at org.codehaus.plexus.compiler.javac.IsolatedClassLoader.loadClass(IsolatedClassL oader.java:56)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at org.codehaus.plexus.compiler.javac.IsolatedClassLoader.loadClass(IsolatedClassL oader.java:56)
    at org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCompiler .java:398)
    at org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:141 )
    at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java: 493)
    However, the exact same software setup on the Core 2 Duo produces this result (which I would expect on the Core Duo):
    [INFO] Installing /Users/john/Downloads/soabook-code-20070504/chap07/endpoint-provider/pom.xml to /Users/mjhart/.m2/repository/soabook/chap07-endpoint-provider/1.0/chap07-endpoi nt-provider-1.0.pom
    [INFO]
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO] ------------------------------------------------------------------------
    [INFO] CHAP07-ENDPOINT-PROVIDER-WSDL2JAVA .................... SUCCESS [1:35.885s]
    [INFO] CHAP07-ENDPOINT-PROVIDER-ENDPOINT ..................... SUCCESS [7.221s]
    [INFO] CHAP07-ENDPOINT-PROVIDER-CLIENT ....................... SUCCESS [16.525s]
    [INFO] CHAP07-ENDPOINT-PROVIDER .............................. SUCCESS [1.597s]
    [INFO] ------------------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESSFUL
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 2 minutes 1 second
    [INFO] Finished at: Fri Sep 05 07:07:23 CDT 2008
    [INFO] Final Memory: 16M/30M
    [INFO] ------------------------------------------------------------------------
    I have installed the same software versions and have the same configuration on a Windows desktop running XP SP2 and get the same successful result.
    Is this an issue between the Core Duo and Core 2 Duo? I can't see that it is since I don't believe the hardware influences the software to that degree. However, I am at a loss for what is causing the issue and the Apache Maven list insists that there are developers that are using Maven successfully on OS X.
    I really need to get past this issue, but I am at a loss. Please help.
    Thanks,
    John

    Have you repaired permissions? (/Applications/Utilities/Disk Utility.app)
    Are you sure you're using JDK 5? (Applications/Utilities/Java/Java Preferences.app or output of $ javac -version)
    --greg

  • InterMedia Java Classes for Servlets and JSPs and Netscape

    I am using the interMedia Java Classes for Servlets and JSPs to upload and retrieve multimedia data. I have found that it is much more performant in Internet Explorer (5.5) than in Netscape Communicator (4.7). In fact, I cannot upload images larger than 10K at all using netscape. However, the same image can be uploaded into the same application using IE. Is this a known issue?
    Thanks in advance.

    Hi,
    We have successfully uploaded multimedia data in the giga-byte range (Quicktime and AVI files) at the same speed with both the Netscape (4.7n) and MS IE (4.n and 5.n) browsers. One thing we have noticed is that its very important to set the manual proxy settings correctly if you have an environment with a proxy server. If you don't, then uploads can go via the proxy server and, for some reason, that seems to take considerably longer. For example, suppose you are in the www.xyzco.com domain and are connecting to a host named webserver.www.xyzco.com, then specify webserver and webserver.www.xyzco.com (to cover both cases) in the "Do not use proxy servers for..." box in the manual proxy server configuration screen. Also, if you're using a tool such as JDeveloper that uses the host IP address in the debugger environment, then you also need to add the numeric-based (nnn.nnn.nnn.nnn) IP address to this list.
    Hope this helps.
    In order to better understand the variety of ways in which our customers are using interMedia, we'd be very interested in knowing a little more about your application, the interMedia functionality that you are using, and how you are developing and deploying your application. If you are able to help us, please send a short email message with some information about your application, together with any comments you may have, to the Oracle interMedia Product Manager, Joe Mauro, at [email protected] Thank you!
    Regards,
    Simon
    null

  • Related 2 CORE JAVA

    HAI..... dis is neeraja...
    I hav a question.... I wanna know how to link the HTML page to a frame by clicking on a button or menuItem using CORE JAVA without using servlets,jsp.... If anyone knows the answer plz... reply to dis as soon as possible...
    Thank 'U'

    Can anyone provide some info on this based on your empirical experience or alternate ways

  • JSP, Servlet, and Java Classes location in Tomcat

    In tomcat, I want to know JSP files, Servlets, and Java classes
    should put in different locations:
    I put web.xml in the following:
    C:\jakarta-tomcat-4.1.30\webapps\proj1\WEB-INF
    I put all JSP files in the following:
    C:\jakarta-tomcat-4.1.30\webapps\proj1
    I put all servlet files in the following:
    C:\jakarta-tomcat-4.1.30\webapps\proj1\WEB-INF\classes
    I put all Java classes in the following with package proj1:
    C:\jakarta-tomcat-4.1.30\webapps\proj1\WEB-INF\classes\proj1
    When I execute JSP files, it has HTTP error 404, file not found.
    The content of web.xml is:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>proj1</display-name>
    <description>
         proj1
    </description>
    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/*</url-pattern>
    </servlet-mapping>
    </web-app>
    Please advise. thanks!!!

    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/*</url-pattern>
    </servlet-mapping>
    </web-app>Where's the servlet definition that maps to "invoker"?

  • Deploying the JSPs, Servlets and Java class files

    Hello All,
    I'm very new to the Oracle 9i AS. We are using Version 1.0.2.2.
    How do we deploy the JSPs, Servlets, and Java class files (simple class files, not EJBs)?
    plese give us the procedure and stpes how to deply or the links for the same.
    Thanks,
    Santhosh.

    Hi
    I guess u r running apache-jserv as servlet engine for your jsp and servlets. If its so, jsp files can be run without any additonal configuration by putting the jsp file under document root or any subdirectory and for running servlets u have to add classpath entries for your servlet in jserv.properties file.
    To make sure that your servlet engine is working, try
    http://servername:port/servlet/IsItWorking, if u get success msg that means servlet engine is working fine.
    Hope this will help
    Regards
    Kumaran

  • Servlets and java.util.concurrent

    Hey --
    I know one is not supposed to spawn their own threads from Servlets and EJBs, but is it also 'bad form' to use Callables from a Servlet or EJB? If not can something similar be done safely?
    I need to be able to (a) submit a file to be processed (b) give the user back a 'got it, will work on it' response, (c) let the user see the status of his 'job' and (4) open the results when complete.
    The file processing would be running outside of the normal send request/return response path which is, of course, a synchronous process. I don't see a way, other than spawning a thread in that servlet (or another servlet which manages the 'jobs') to provide for 'long running processes.'
    Thanks for any insight.
    - Z -
    Message was edited by:
    zelmak

    Hey --
    I know one is not supposed to spawn their own threads from Servlets and EJBs, but is it also 'bad form' to use Callables from a Servlet or EJB? If not can something similar be done safely?
    I need to be able to (a) submit a file to be processed (b) give the user back a 'got it, will work on it' response, (c) let the user see the status of his 'job' and (4) open the results when complete.
    The file processing would be running outside of the normal send request/return response path which is, of course, a synchronous process. I don't see a way, other than spawning a thread in that servlet (or another servlet which manages the 'jobs') to provide for 'long running processes.'
    Thanks for any insight.
    - Z -
    Message was edited by:
    zelmak

  • When to use servlets and jsp in an application like  shoping cart?

    Hi All
    I m going to design and implement a web application using servelts and jsp. I am still at its requirements analyze stage.
    The application is almost likely a shopping cart. So if any of you have the deep knowledge about this domain with servlets and jsp please help me for a good design. What I realy need to know is that
    1. what are the core requirements for a shoping cart ?
    2. use cases ?
    3. best way to follow mvc with servlets and jsp for it?
    you can answer to this at the abstract level. no need to go in detail.
    if you have any documents like design and use cases mail me to [email protected]
    your cooperation is highly appreciated in this regards.

    Look into this kid
    http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-Session-Tracking.htm

  • Servlets and Workspaces

    I have a named workspace which is created at startup of the server
              within a starup class.
              When the startup method is called, I instantiate and put an object
              called FooObject in the workspace.
              Then, in a servlet, called Dispatcher, in the service method, I
              retrieved my named workspace and the object
              FooObject which is in this workspace. At this time, I have a
              ClassCastException.
              To give you more details about my configuration, here is my directory
              configuration:
              weblogic
              |----------- serverclasses
              |------------- startupObject
              |------------- FooObject
              |----------- servletclasses
              |------------- myServlet
              |------------- FooObject (which is exactly
              the same of the serverclasses one)
              Do you have any ideas ? The idea is to instantiate a given object at the
              startup of the web server and to retrieve
              these objects within servlets and JSPs.
              Regards.
              Alexandre Aubry
              Consultant
              Fi System, The Web Agency
              http://www.fisystem.fr
              mailto:[email protected]
              Phone: +33 1 55 04 03 03 Fax: +33 1 55 04 03 04
              

    Do you have Service Pack 6. SP6 is supposed to fix this problem
              "Jon Armstrong" <[email protected]> wrote in message
              news:[email protected]...
              > Mark/All,
              >
              > As a recent member of the list, this is the only reference/post that
              seemed that
              > it might be related to the problem I'm seeing.
              >
              > I have a servlet that runs fine if I register it through the standard WLS
              httpd
              > servlet mechanism:
              >
              > weblogic.httpd.register.XE=appl.X.EServlet
              > weblogic.httpd.servlet.classpath=\
              > /weblogic/myserver/public_html/XE/myclasses.jar;\
              > ... etc.
              >
              > If I attempt to deploy the servlet as a WebApp:
              >
              > weblogic.httpd.webApp.XE=/C:/XE
              >
              > Where: C:/XE contains
              >
              > WEB-INF/web.xml
              > WEB-INF/lib/myclasses.jar (contains: appl.X.EServlet)
              > WEB-INF/lib/...
              > ...etc.
              >
              > I get the following ClassCast Exception when invoking the servlet:
              >
              > Fri Nov 10 15:14:08 EST 2000:<E> <ServletContext-XE> Error casting
              servlet:
              > appl.X.EServlet java.lang.ClassCastException: appl.X.EServlet
              > at
              >
              weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
              :382)
              >
              > at
              >
              weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
              va:349)
              >
              > at
              >
              weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
              a:338)
              >
              > at
              >
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:16
              4)
              > at
              >
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :99)
              >
              > at
              >
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:742)
              >
              > at
              >
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:686)
              >
              > at
              >
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              Manager.java:247)
              >
              > at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
              > at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              > Fri Nov 10 15:14:08 EST 2000:<E> <ServletContext-XE> Servlet failed with
              > Exception
              > javax.servlet.ServletException: Servlet class: appl.X.EServlet does not
              > implement javax.servlet.Servlet
              > at
              >
              weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
              :385)
              >
              > at
              >
              weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
              va:349)
              >
              > at
              >
              weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
              a:338)
              >
              > at
              >
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:16
              4)
              > at
              >
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :99)
              >
              > at
              >
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:742)
              >
              > at
              >
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:686)
              >
              > at
              >
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              Manager.java:247)
              >
              > at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
              > at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              > This class doesn't <implement> Servlet. It <extends> a class which
              eventually
              > <extends> HttpServlet... which should suffice, much like the typical
              HelloWorld
              > sample servlets.
              >
              > I have to remove the WEB-INF directory and register this as a standard
              httpd
              > servlet to get weblogic to run it properly.
              > This servlet deploys fine with Jakarta-Tomcat as a WebApp and the same
              web.xml
              > file. I can post that, if need be. I assume the classloader is somehow
              > confused.
              >
              > Is this the same problem discussed below? If so, there's no reference to
              the
              > version of WLS that will address this issue.
              >
              > I'm currently using WLS 5.1. <Fri Nov 10 13:48:48 EST 2000:<I>
              <WebLogicServer>
              > ************ WebLogic Server (5.1.0 04/03/2000 17:13:23 #66825)>
              >
              > Has this been fixed or is there a workaround that allows WebApp deployment
              to
              > succeed? I really would like to stay away from as much web/app server
              specific
              > configuration as possible before taking this into the field.
              >
              > Jon
              >
              > Mark Griffith wrote:
              >
              > > Alexandre:
              > >
              > > Although byte for byte the FooObject is the same, according to the VM
              they
              > > are different class. This is because a class's type distinctiveness is
              > > based not only its interfaces,methods,data members etc but ALSO on its
              > > classloader. There is a different classloader for the
              > > serversclasses_FooObject and the servletclasses_FooObject so they are
              > > considered different, so you get a CCE.
              > >
              >
              > etc...
              >
              > >
              > > This will be handled more elegantly in our next major release Spring
              2000,
              > > however note (and prepare by designing accordingly) the solution is to
              allow
              > > the Servlet to interact with interfaces not actual classes and these
              > > interfaces can be stuffed into system/server loaded classes such as
              > > workspaces and httpsessions, thus preventing CCE's.
              > >
              > > Cheers
              > > Mark G
              > >
              > > Alexandre Aubry wrote:
              > >
              > > > I have a named workspace which is created at startup of the server
              > > > within a starup class.
              > > > When the startup method is called, I instantiate and put an object
              > > > called FooObject in the workspace.
              > > >
              > > > Then, in a servlet, called Dispatcher, in the service method, I
              > > > retrieved my named workspace and the object
              > > > FooObject which is in this workspace. At this time, I have a
              > > > ClassCastException.
              > > >
              > > > To give you more details about my configuration, here is my directory
              > > > configuration:
              > > > weblogic
              > > > |----------- serverclasses
              > > > |------------- startupObject
              > > > |------------- FooObject
              > > > |----------- servletclasses
              > > > |------------- myServlet
              > > > |------------- FooObject (which is
              exactly
              > > > the same of the serverclasses one)
              > > >
              > > > Do you have any ideas ? The idea is to instantiate a given object at
              the
              > > > startup of the web server and to retrieve
              > > > these objects within servlets and JSPs.
              > > >
              > > > Regards.
              > > >
              > > > --
              > > > Alexandre Aubry
              > > > Consultant
              > > > Fi System, The Web Agency
              >
              > ---
              > Jon M. Armstrong
              > Senior Systems Consultant
              > Xelus, Inc.
              >
              > EMail: [email protected]
              > Phone: 716-419-3155
              > Fax: 716-248-9199
              >
              > Visit us online: http://www.xelus.com
              >
              >
              

Maybe you are looking for

  • identifier expected with ArrayList in JDK5RC

    Just started with J2SE1.5 but still am unable to compile. Already fixed the generics. Error is <identifier> expected. See code. Who can help me with this? I am stuck :-( import java.util.List; import java.util.Vector; import java.awt.Dimension; impor

  • Analog signal from PXI

    Hi everybody, I have a problem: I cannot acquire 6 analog signals with a PXIe 8135 with 4MS/s. I use two boards with 4 MS/s, 16 bits and 8 Analog Inputs. I use a subVI of SAMPLE CLOCK for configuration with this parameters, Continuous SIGNAL, SAMPLE

  • Web Cockpit developent (SEM-CPM or VC or something else)

    This question is intended for SAP Development team or Product management team. We are looking to make a strategic decision about the tool set to build BI Cockpit on the Web. SAP has competing technologies, which can deliver the cockpit on the web and

  • Excel Add-in won't install

    Hello, I'm a real newbie, so please forgive the silly question. I have Excel 2003 and I can connect to an Oracle 9.2 database. I tried installing the Excel add-in but I do not see it listed on the menu bar. However, I do see it listed in the Add-in l

  • Missing MSVCR71.dll Error Message During Launch

    I just wanted to pass along an error message that I have found the solution to and have passed onto Adobe through the bug submission process. I have discovered a QuickTime Component that causes Adobe Encore CS5 to give an error message during launch.