Latest J2EE SDK and Servlets

Hi,
I downloaded the latest J2EE SDK and I wish to use it in Eclipse IDE.
Trying to compile a servlets (a my own one) a javax.servlet cannot be resolved to a type error occurs (shouldn't this package be part of the Sun AS provided within the SDK?).
Searching for it in the J2EE SDK installation directory I didn't found it.
Where it is? How I can compile servlets?
Thank you.
PS: Please, don't reply me that I didn't need the J2EE SDK to compile and run servlets because I know it.
I wish to use J2EE technologies and servlets together.

That makes perfect sense and is quite normal.
Jar files are each individually treated as a directory containing a classpath entry, and will each have to be specified separately.
What you're expecting is similar to having every subdirectory containing within it the root of a class tree being recognised automatically by supplying a single higher level directory on the classpath.
Something like
classroots
  |--project1
  |           |--classes
  |                    |--com
  |-project2
              |-classes
                       |-comJust supplying "classroots" on your classpath will NOT cause project1/classes and project2/classes to be picked up as classpath entries (or shouldn't, there might be broken JVMs out there).

Similar Messages

  • How to upload a file into server using j2ee jsp and servlet with bean?

    How to upload a file into server using j2ee jsp and servlet with bean? Please give me the reference or url about how to do that. If related to struts is more suitable.
    Anyone help me please!

    u don't need j2ee and struts to do file uploading. An example is as such
    in JSP. u use the <input> file tag like
    <input type="file"....>You need a bean to capture the file contents like
    class FileUploadObj {
        private FormFile srcFile;
        private byte[] fileContent;
        // all the getter and setter methods
    }Then in the servlet, you process the file for uploading
        * The following loads the uploaded binary data into a byte Array.
        FileUploadObj form = new FileUploadObj();
        byte[] byteArr = null;
        if (form.signFile != null) {
            int filesize = form.srcFile.getFileSize();
            byteArr = new byte[filesize];
            ByteArrayInputStream bytein = new ByteArrayInputStream (form.srcFile.getFileData());
            bytein.read(byteArr);
            bytein.close();
            form.setFileContent(byteArr);
        // Write file content using Writer class into the destination file in the server.
        ...

  • J2EE SDK and J2SE SDK

    Considering only the development tools & APIs from J2SE SDK (taking out the JRE), are those components (java, security, JPDA, etc) also part of the J2EE SDK?

    How can I go about using java.util.regex? Can/Would
    this regex
    support be packaged into some extended javax packages
    for JDK 1.3?No, the jre/jdk license prohibit taking its parts alone.
    If I use J2SE SDK 1.4 and download all javax packges
    that are
    in J2EE but not J2SE, and compile my application,
    wouldn't it end up with
    run-time exceptions...?Hm..dunno.
    Take a look at http://jregex.sourceforge.net
    BestRegards

  • Unable to run Servlet program using J2EE SDK

    Hello,
    i am a newbie to all this j2ee stuff and servlets even.so the problem that i have maybe a very common one and i hope that most of you may have a fix to it...
    i use J2EE SDK to compile and run Servlet programs.I have a Servlet program with the class name defined as
    public class MyServlet extends HttpServlet ....
    the file is stored as MyServlet.java
    i set the CLASSPATH variable so that the required classes for the compilation of the program can be located.
    the program compiles without any glitches.
    However when i run the program by saying
    java MyServlet
    ( i dont think its any different to run servlet code is it?)
    i get the message
    java.lang.NoClassDefFoundException:MyServlet
    Can someone suggest a remedy?
    thank you
    -NDK

    First, I don't understand what you are trying to do. Running a servlet ?
    Servlets are ran by an application server ! (Apache Tomcat ....).
    Second, is your class in any package ?

  • J2SE to J2EE, beginning and need help

    I am a J2SE developer and I need to learn J2EE. I am trying to figure out how to compile .java files that I write that use J2EE such as servlets. I am using eclipse and Textpad but I can't get either program to recognize J2EE classes. Is this possible? I have downloaded the J2EE SDK and started with some basic .jsp pages but I am more of a programmer than a web designer, and I really don't like using markup languages(HTML, XML). This is probably really stupid, but can anyone help me out or just give me some starting words of wisdom?

    Make sure <J2EE_HOME>/lib/j2ee.jar is in your classpath:
    DO:
    javac MyServlet.java -cp path/to/j2ee.jar
    OR
    set your CLASSPATH env variable to include j2ee.jar
    OR
    throw j2ee.jar into your <JAVA_HOME>/jre/lib/ext directory.

  • Where to download the J2EE SDK?

    I'm dumbfounded. When I try to find the J2EE SDK for download, all I find (on the regarding download page) are Sun's App Server, the J2SE SDK, J2EE samples and the J2EE API docs. Where the heck do I get the J2EE libs? I want to write a servlet, not to install an application server.
    I knew it was around last year, where did it go?

    since enterprise javabeans is a key part of the J2EE concept, you will need an application server to be able to run enterprise applications. That's why it's bundled with the J2EE SDK.
    I don't think there is a J2EE SDK download without the application server.
    The download should probably not have been called "Application server" though, since it seems to confuse a few people (including me). It should have been called something like "J2EE SDK w/ servlet, jsp, main, ejb (etc) API's and Sun Application server".

  • J2EE SDK

    Hi ,
    Does Sun ONE Application Server 7 contains J2EE SDK and can I access packages in my own Java programs without using any IDE such as Studio 4?
    If yes, what version of SDK is included?
    Thanks,
    Rajeev.

    Hi,
    Sun ONE Application Server 7 is J2EE 1.3.1 compliant AppServer. you can access the packages in your java programs but you need to check correct jar files since the packages in jar for Sun ONE AppServer may be different from J2EE SDK.

  • JAAS and J2EE SDK -- please help!

    Hi,
    I'd like to know if it is possible to use customized LoginModule classes in the J2EE SDK reference impl. 1.3
    If so what I can't understand is the following:
    if I use the form-based auth. mechanism in my web app. how can I specify which login module to use? I mean I know JAAS needs an entry in a configuration file such as
    mylogin{
      MyLoginModule required debug=false;
    };but my question is in what file should I add it? clientlogin.config, login.config or serverlogin.config?
    And much more important question is: how can I then specify that I need to use the "mylogin" entry?
    I don't know how the JSecurityCheck servlet work, is there any document where I can find the source code of it?
    Please can anyone help me?
    Thanks in advance.

    I managed to get it working in tomcat 4.0 if you create a config file with the details you've specified called login.config you then need to pass it as a parameter when you start your servlet engine
    i.e. -Djava.security.auth.login.conf=login.config

  • How to install j2ee 1.4 sdk , and only that nothing else

    hi guys , i am trying to install j2ee 1.4 sdk. i found the link for it on sun "http://java.sun.com/j2se/1.4.2/download.html ", and when i try to install that package . it has everything from
    app sever ,to java 2 sdk std edition to start up . etc .
    but i dont want all this , i just want j2ee sdk 1.4
    see what actully i want is j2ee sdk installation coz when i try writing my program in eclipse and when i say import javax.jms.*; it gives error coz it is not able to find the jar.
    just the way for core java we install jdk what do we install so that we can use servlet,jsp,ejb,jms etc
    please reply immediately , where do i install that stuff from
    thanks in advance

    exactly rene , i explored all of the
    "http://java.sun.com/j2ee/1.4/download.html" . i even
    downloaded " J2EE 1.4 SDK 2005Q2 UR2 " which took me
    half an hour. and when i ran the setup file , it had
    everthing from app server to jsdk 1.5 , but no where
    was j2ee sdk to be found. still exploring without any
    success :-(The "J2EE SDK" is basically nothing but the J2EE.JAR. It comes with that app server download.

  • Problems with mobile projects with apache flex 4.8 and an overlay of the latest air sdk

    Using flash builder 4.7 beta, apache flex 4.8 and an overlay of the latest air sdk, i got resolution problems while testing the mobile app (windows version on windows 7) with the air (ipad)emulator. That means the emulator is much bigger than my screen (logicaly seen the resolution of my screen and also like this in earlier version), but the app is much smaller than the emulator. As I have no design view with apache flex 4.8, I don't know where to start searching. Can anyone give me some input?
    Gert

    Hi Crill,
    I don't see any error on creating new projects and running the same.
    Where did you get the installer from?
    What is the framework linkage type? You can check this in project properties -> flex build path. It should be Merged into code for Apache SDK.
    thanks,
    Sudhir

  • Paths with J2EE, J2SE and SDKs...

    I am starting j2EE delelopment on OSX.
    I have installed J2SE 1.4.2 runtime from the Mac software update mechanism.
    I have installed J2SE SDK 1.3.1 and my JAVA_HOME is /Developer/Java/J2SE/jdk1.3.1_02
    I have installed J2EE SDK 1.4.1 and my J2EE_HOME is /Developer/Java/J2EE/j2sdkee1.3.1
    Now, these are the Linux downloads so they have i386 folders in them (why? it is Java..) and I wonder if this is part of the problem.
    "ant -f jboss-build.xml compile" GIVES
    expr: syntax error
    Error: can't find libjava.so.
    Any ideas anyone?
    Thanks in advance
    Tim

    Hi Lance,
    Sorry for being a pain, but can I confirm: I need the J2SE SDK installed even though the package for J2EE 1.4 SDK says it contains J2SE SDK, right?
    Things are not progressing.
    I originally had the EE1.3.1SDK and the SE1.3.1SDK 'installed' so I thought but I could not trust them as I have had problems as even ant would not work (error finding libjava.so) in trying to work through the tutorials.
    As the OSX instructions refered to the 1.4, I have downloaded the new EE1.4, but, unlike the file in the instructions, it is a ".bin" --- but what to do with it? Stuffit does not handle it. I do not know the unix commands to make use of it (the install info refers to a beta file that is a zip ELF which is not the same) so I am stuck again.
    Hope to get progress during this w/e
    Thanks in advance
    Tim

  • J2EE SDK 1.3.1 and OSX

    Hello,
    I would like to get the J2EE SDK installed and working under OSX. Has anyone had success in doing this? If so, I would appreciate any assistance you may have to offer.
    Thank you,
    Rob Abbe

    Well, maybe I was just being lazy ;) This turned out to be easier than I thought, but just in case someone here should ask the same question:
    Download the linux distribution of the J2EE toolkit from Sun and install it.
    Modify the JAVA_HOME variable as follows:
    JAVA_HOME=/System/Library/FrameWorks/JavaVM.framework/Versions/1.3.1/Home
    That's it! now you should be able to run the J2EE comamnd and start the app server.
    OSX is awesome, I hope people here will give it a chance. I think you will be impressed with the speed at which some of your favorite tools will run!

  • J2 sdk and j2ee sdk

    in setting up to run j2ee -verbose, i need to set up the java_home and j2ee_home vars, and others. java_home is supposed to be the directory of j2 sdk, and j2ee_home is where j2ee sdk, which is where j2sdkee1.3.1 resides which is understood by me; but i do not know what j2 sdk is.
    never done this before, if you think its a silly question, it probably is. your help is appreciated.

    i got it!

  • Logging problem in j2ee sdk

    Hi, I downloaded j2ee sdk 1.4 for Windows. Any application using java.util.logging causes errors in server.log. For example this JSP:
    <%@page contentType="text/html"%>
    <%@ page import="java.util.logging.*" %>
    <%
    Logger log = Logger.getLogger("test");
    log.info("testing");
    %>
    causes this log:
    java.lang.ClassNotFoundException: test.LogStrings
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1377)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1224)
         at org.apache.jasper.servlet.JasperLoader$1.run(JasperLoader.java:186)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:184)
         at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:120)
         at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1009)
         at java.util.ResourceBundle.findBundle(ResourceBundle.java:884)
         at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:711)
         at java.util.ResourceBundle.getBundle(ResourceBundle.java:661)
         at java.util.logging.Logger.findResourceBundle(Logger.java:1254)
         at java.util.logging.Logger.setupResourceInfo(Logger.java:1282)
         at java.util.logging.Logger.getLogger(Logger.java:277)
         at com.sun.enterprise.server.logging.BaseLogManager.doInitializeLogger(BaseLogManager.java:92)
         at com.sun.enterprise.server.logging.BaseLogManager.addLogger(BaseLogManager.java:157)
         at java.util.logging.Logger.getLogger(Logger.java:231)
         at org.apache.jsp.testi_jsp._jspService(testi_jsp.java:45)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:320)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:258)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:196)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:272)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:648)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:498)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)
         at java.lang.Thread.run(Thread.java:534)
    java.lang.ClassNotFoundException: test.LogStrings_en
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1377)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1224)
         at org.apache.jasper.servlet.JasperLoader$1.run(JasperLoader.java:186)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:184)
         at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:120)
         at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1009)
         at java.util.ResourceBundle.findBundle(ResourceBundle.java:884)
         at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:730)
         at java.util.ResourceBundle.getBundle(ResourceBundle.java:661)
         at java.util.logging.Logger.findResourceBundle(Logger.java:1254)
         at java.util.logging.Logger.setupResourceInfo(Logger.java:1282)
         at java.util.logging.Logger.getLogger(Logger.java:277)
         at com.sun.enterprise.server.logging.BaseLogManager.doInitializeLogger(BaseLogManager.java:92)
         at com.sun.enterprise.server.logging.BaseLogManager.addLogger(BaseLogManager.java:157)
         at java.util.logging.Logger.getLogger(Logger.java:231)
         at org.apache.jsp.testi_jsp._jspService(testi_jsp.java:45)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:320)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:258)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:196)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:272)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:648)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:498)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)
         at java.lang.Thread.run(Thread.java:534)
    java.lang.ClassNotFoundException: test.LogStrings_en_US
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1377)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1224)
         at org.apache.jasper.servlet.JasperLoader$1.run(JasperLoader.java:186)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:184)
         at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:120)
         at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1009)
         at java.util.ResourceBundle.findBundle(ResourceBundle.java:884)
         at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:730)
         at java.util.ResourceBundle.getBundle(ResourceBundle.java:661)
         at java.util.logging.Logger.findResourceBundle(Logger.java:1254)
         at java.util.logging.Logger.setupResourceInfo(Logger.java:1282)
         at java.util.logging.Logger.getLogger(Logger.java:277)
         at com.sun.enterprise.server.logging.BaseLogManager.doInitializeLogger(BaseLogManager.java:92)
         at com.sun.enterprise.server.logging.BaseLogManager.addLogger(BaseLogManager.java:157)
         at java.util.logging.Logger.getLogger(Logger.java:231)
         at org.apache.jsp.testi_jsp._jspService(testi_jsp.java:45)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:320)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:258)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:196)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:272)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:648)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:498)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)
         at java.lang.Thread.run(Thread.java:534)
    [#|2004-03-16T14:55:23.576+0200|INFO|j2ee-appserver1.4|test|_ThreadID=11;|testing|#]
    What's up with this LogStrings?? It seems this happens only with code that uses getLogger(name),
    if I use getLogger(name, null) it works normally. First one works just fine in Sun ONE 7. Does the
    appserver really create a resource bundle name from logger class name??!! Please tell me there is
    some configuration option I can use to prevent these errors.
    Thanks a lot if someone can reply,
    ode

    This is a Harmless and Annoying exception that will be logged eventhough it's handled appropriately. I believe this is fixed in the latest appserver release.Can you please download the latest release of AppServer and give it a try.

  • Sun J2EE SDK 1.3_01, java.lang.ClassCastException thrown during deployment

    I encountered a bug while using the deploytool to deploy
    an EAR file to the Sun J2EE 1.3_01 server.
    I submitted a bug report to Sun via the Sun Java Developer Connection.
    (Sorry, it has not been assigned a BugID yet)
    Question:
    Does anybody know if the web container in Sun's
    J2EE 1.3_01 server supports access to local enterprise beans?
    Screenshots of the bug are available at
    http://sync4j.sourceforge.net/deploymentbug/
    Full details below....
    -Sean
    category: j2ee
    subcategory: deployment
    release: 1.3_01
    hardware: x86
    OSversion: windows_2000
    synopsis: java.lang.ClassCastException thrown during deployment of Session bean
    java -version
    java version "1.3.1_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
    Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
    C:\j2sdkee1.3\bin>j2ee -version
    Java 2 Enterprise Edition version 1.3_01, build 1.3_01-b01
    I built a EJB 2.0 compliant stateful session bean.
    The session bean has a remote interface (ISyncRemote),
    a remote home interface (ISyncHomeRemote),
    a local interface (ISyncLocal),
    and a local home interface (ISyncHomeLocal).
    I built an HTTP Servlet that is supposed to access
    the Stateful Session Bean using ISyncHomeLocal and
    ISyncLocal
    I run "deploytool.bat" in GUI mode to perform the deployment.
    During deployment, the deploytool GUI displays a message
    box which states:
    "There was a deployment error.
    java.rmi.ServerException: RemoteException occurred in server thread;
    nested exception is:
    java.rmi.RemoteException: An error was encountered while loading
    a web component.
    Please refer to
    <J2EE_HOME>/logs/<machine-name>/j2ee//j2ee/error.log
    for more information. Please verify your Application with the
    Verifier tool."
    The "error.log" file did not contain any useful information.
    I ran the J2EE "verifier.bat" tool to verify that my EAR archive is OK.
    The Sun J2EE server output this error string:
    "java.lang.ClassCastException:
    com.sun.enterprise.deployment.EjbExternalDescriptor"
    Here is the full output from the Sun J2EE server:
    C:\j2sdkee1.3\bin>j2ee -verbose
    J2EE server listen port: 1050
    Naming service started:1050
    Binding DataSource, name = jdbc/EstoreDB, url =
    jdbc:cloudscape:rmi:CloudscapeDB;create=true
    Binding DataSource, name = jdbc/Cloudscape, url =
    jdbc:cloudscape:rmi:CloudscapeDB;create=true
    Binding DataSource, name = jdbc/DB1, url =
    jdbc:cloudscape:rmi:CloudscapeDB;create=true
    Binding DataSource, name = jdbc/DB2, url =
    jdbc:cloudscape:rmi:CloudscapeDB;create=true
    Binding DataSource, name = jdbc/InventoryDB, url =
    jdbc:cloudscape:rmi:CloudscapeDB;create=true
    Binding DataSource, name = jdbc/XACloudscape, url = jdbc/XACloudscape__xa
    Binding DataSource, name = jdbc/XACloudscape__xa, dataSource =
    COM.cloudscape.core.RemoteXaDataSourc
    e@245536
    Starting JMS service...
    Initialization complete - waiting for client requests
    Binding: < JMS Destination : jms/Queue , javax.jms.Queue >
    Binding: < JMS Destination : jms/Topic , javax.jms.Topic >
    Binding: < JMS Cnx Factory : TopicConnectionFactory , Topic , No properties >
    Binding: < JMS Cnx Factory : jms/TopicConnectionFactory , Topic , No properties
    >
    Binding: < JMS Cnx Factory : QueueConnectionFactory , Queue , No properties >
    Binding: < JMS Cnx Factory : jms/QueueConnectionFactory , Queue , No properties
    >
    Starting web service at port: 8000
    Starting secure web service at port: 7000
    J2EE SDK/1.3
    Starting web service at port: 9191
    J2EE SDK/1.3
    J2EE server startup complete.
    Compiling c:\j2sdkee1.3\repository\rbi\gnrtrTMP\Sync4j Server enterprise
    application\sync4j\server\s
    yncbean\SyncBean_LocalHomeImpl.java ....
    Compiling c:\j2sdkee1.3\repository\rbi\gnrtrTMP\Sync4j Server enterprise
    application\sync4j\server\s
    yncbean\SyncBean_EJBLocalObjectImpl.java ....
    Compiling c:\j2sdkee1.3\repository\rbi\gnrtrTMP\Sync4j Server enterprise
    application\sync4j\server\s
    yncbean\SyncBean_RemoteHomeImpl.java ....
    Compiling c:\j2sdkee1.3\repository\rbi\gnrtrTMP\Sync4j Server enterprise
    application\sync4j\server\s
    yncbean\SyncBean_EJBObjectImpl.java ....
    rmic sync4j.server.syncbean.SyncBean_RemoteHomeImpl...
    rmic sync4j.server.syncbean.SyncBean_EJBObjectImpl...
    c:\j2sdkee1.3\repository\rbi\applications\Sync4j Server enterprise
    application1004172068449Server.ja
    r
    Binding name:`java:comp/env/ejb/ISyncHomeRemote`
    Binding name:`java:comp/env/ejb/ISyncHomeLocal`
    java.lang.ClassCastException:
    com.sun.enterprise.deployment.EjbExternalDescriptor
    at com.sun.enterprise.deployment.EjbReferenceDescriptor.getValue
    (EjbReferenceDescriptor.java
    :202)
    at com.sun.enterprise.naming.NamingManagerImpl.bindObjects
    (NamingManagerImpl.java:394)
    at com.sun.web.server.WebService.addContext(WebService.java:148)
    at com.sun.web.server.ServletDeployerImpl.loadWebComponents
    (ServletDeployerImpl.java:214)
    at
    com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployWebComponent
    s
    (JarInsta
    llerImpl.java:791)
    at
    com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication
    (JarInstall
    erImpl.java:219)
    at
    org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstallerImpl_Tie.
    invoke(Un
    known Source)
    at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch
    (ServerDelegate.java:355)
    at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:273)
    at com.sun.corba.ee.internal.iiop.RequestProcessor.process
    (RequestProcessor.java:84)
    at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run
    (ThreadPool.java:99)
    Does the Sun J2EE server implementation support the invocation
    of Session EJB's via a Local interface?
    Does the Sun J2EE server implementation allow a Servlet to invoke
    Session EJB's via the bean's Local interface?
    While researching this issue, I read the J2EE 1.3 final specification.
    The spec says:
    "The EJB container is required to access to local enterprise beans.
    We recommend that the web container also support access to local
    enterprise beans."
    Does the web container in Sun's J2EE server support access to local enterprise beans?

    I'm pretty much sure that you cannot access a
    local Session bean from outside the EJB container.Please read the J2EE 1.3 specification before posting messages about EJB and J2EE.
    According to the J2EE 1.3 specification:
    "The EJB container is required to support access to local enterprise beans. We recommend that the web container also support access to local enterprise beans.
    No support is provided for access to local enterprise beans from the application client container or the applet container."
    If you use local interfaces for your session bean,
    than your client must be local too. A local client is
    a client that is collocated in the same JVM with the
    session/entity that provides the local view and which
    can be tightly coupled to the bean.My client is running in the same JVM as my EJB. The client is a servlet. The servlet is running in the same JVM as the EJB.
    For what its worth, the error that I observed occurs during deployment. I haven't figured out why deployment is failing.

Maybe you are looking for

  • ICloud an family sharing

    new to communities not sure how to solve probelm. 4 devices all us mobile me for other computers same apple id. but know that apple icloud is here how do i an other family member share music an apps without sharing everthing else? should we take a di

  • My head feels warm & bit dizzy when using 24" LED Display

    What is the level of radiation out of this thing? I'm using it with a distance about 70-90cm from the display. Anyone else experiencing the same symptoms?

  • Change contents of T077X (Customer Account Group Names)

    Hi, I have copied an existing account group to create a new account group. When i go to the table T077X, it is showing valid description in EN language. In other languages, the table shows the old account group description. May i know how to change t

  • Isight not working on intelBased iMac core 2 duo osx 10.8.2

    in photobooth, facetime and skype... i got the  green light to come on... but  no camera is visasble in any application... this is my `1st mac and decided to try one out as im a PC type  person.... it does  show up in USB system profiler so it  sees

  • Will amendments be lost if fonts are missing until I can purchase the new font?

    Hi There, We have a document produced by an outside design agency using fonts that we do not own.  We need to make many amendments to the document and want to start these now before our very lengthy procurement process provides us with the missing fo