Hello world servlet in Glassfish. Need help to start, please.

Hello.
I am new to servlet technology. I am reading the Servlet specification 2.4 and I want to try everything on practice. I want to start using the Glassfish. Currently I want to try it as a simple servlet container. A few years ago I used to work with tomcat and it was easy to compile a servlet and see its output in the browser. But now I am totaly confused with Glassfish but still I want to know more about it.
So my question is:
I compiled my helloworld servlet using jsdk1.5 and using libraries that came with sun app server 9 (glassfish). And now I want to see my servlet working. But I cannot find where should I put my compiled servlet (previously I put it into WEB-INF/classes). I also cannot find the web application descriptor (previously web.xml) to declare my servlet. Please, point me in the right direction so I could start with Glassfish and j2ee 5.0.
Thanks,
Grisha.

Enter this line as the first line of code in your servlet source file.
package com.servlet;Create remainder of directory structure on web server i.e. com/servlet
So you should have this:~
~ROOT/WEB-INF/classes/com/servlet/
Place simpleServlet into above directory
So you should have this:~
~ROOT/WEB-INF/classes/com/servlet/simpleServlet.java
create a web.xml file and put the following into it.
<web-app>
    <servlet>
        <servlet-name>simpleServlet</servlet-name>
        <servlet-class>com.servlet.simpleServlet</servlet-class>
   </servlet>
       <servlet-mapping>     
              <servlet-name>simpleServlet</servlet-name>
              <url-pattern>/simpleServlet </url-pattern>
        </servlet-mapping>
</web-app>Place web.xml in ~/ROOT/WEB-INF/
So you should have this:
~/ROOT/WEB-INF/web.xml
Start your webserver. open web browser and type
http://localhost:8080/simpleServlet
That should go a long way to getting you started. I never used Glassfish so I just hope the directory structure is as I expect.

Similar Messages

  • Simple "Hello world" servlet in sap j2ee 6.20

    Hello @ all,
    I want to develop a little "hello world" servlet which runs on a sap j2ee 6.20.
    Writing the code is not the problem
    But I do not know which steps I have to do in order to get the servlet to run.
    Do I have to create an ear-File? If yes how can I build an ear-File!
    Or is the a way to just create a folder in the root of the j2ee with an WEB-INF folder! I tried this but it dosn´t work!
    Is there perhaps a plugin available for eclipse 2.1 to develop and deploy the application to the sap j2ee??
    Thanks alot for your help!
    Best regards
    Kai

    Hi Kai.
    Coding is always cool!! Never a problem
    >>Do I have to create an ear-File? If yes how can I build an ear-File!
    Anyways, If you have created the J2EE application then you have to build a Web Applicatipn Project. And then give the reference of your application to this Web Application Project. Now craete a archive file of this web application project.
    When you will do this a <b>.ear</b> file will be created and a <b>.war</b> file will also be created in your application. Noe Deploy ear to J2ee engine. It will ask for the password of SDM. Give that password and it will be deployed on the SAP J2ee engine.
    To run the application write:
    http://<my_server>:<my_port>/irj/servlet/<my_application_name>/
    This will run your application. Hope this will help.
    Do award points if you find answer is helpful for you.
    Rgds
    Vikas

  • Hello World Servlet Not Working

    Hi,
    I am using apache and eclipse for the first time. I am running into an issue. When I create the HelloServlet.java class, a yellow icon with a question mark appears on top on my web-inf, package, and class. I also notice a yellow line appears under the class name HelloWorld. I place the curso on top of it, and I saw the message below:
    �The serializable class HelloServlet does not declare a static final serialVersionUID field of type long�. I am not sure what I did wrong. When I paste the url in the browser, it does not show the message. It shows me an error 404.
    I am using eclipse 3 with tomcat 6 and java 5.
    P.S. I started tomcat, and all the jsp and html samples are working fine.

    I am getting the error message below when I compile my hello World Servlet.
    Dec 13, 2007 11:45:54 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_14\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jre1.6.0_03\bin\client;C:\Program Files\Java\jre1.6.0_03\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.5.0_14\bin;C:\JDBC\sqljdbc_1.2\enu\sqljdbc.jar;c:\Program Files\Microsoft SQL Server\90\Tools\binn\
    Dec 13, 2007 11:45:54 AM org.apache.coyote.http11.Http11Protocol init
    SEVERE: Error initializing endpoint
    java.net.BindException: Address already in use: JVM_Bind:8080
         at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501)
         at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:177)
         at org.apache.catalina.connector.Connector.initialize(Connector.java:1059)
         at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
         at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:518)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
         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:585)
         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
    Dec 13, 2007 11:45:54 AM org.apache.catalina.startup.Catalina load
    SEVERE: Catalina.start
    LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind:8080
         at org.apache.catalina.connector.Connector.initialize(Connector.java:1061)
         at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
         at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:518)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
         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:585)
         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
    Dec 13, 2007 11:45:54 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 827 ms
    Dec 13, 2007 11:45:54 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Dec 13, 2007 11:45:54 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
    Dec 13, 2007 11:45:54 AM org.apache.tomcat.util.digester.Digester fatalError
    SEVERE: Parse Fatal Error at line 1 column 6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
    org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
         at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
         at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPIData(XMLScanner.java:689)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanPIData(XMLDocumentFragmentScannerImpl.java:750)
         at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPI(XMLScanner.java:664)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:845)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
         at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562)
         at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:369)
         at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1062)
         at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4239)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
         at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:516)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
         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:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Dec 13, 2007 11:45:54 AM org.apache.catalina.startup.ContextConfig applicationWebConfig
    SEVERE: Parse error in application web.xml file at jndi:/localhost/HelloWorld/WEB-INF/web.xml
    org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1269)
         at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562)
         at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:369)
         at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1062)
         at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4239)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
         at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:516)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
         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:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Dec 13, 2007 11:45:54 AM org.apache.catalina.startup.ContextConfig applicationWebConfig
    SEVERE: Occurred at line 1 column 6
    Dec 13, 2007 11:45:54 AM org.apache.catalina.startup.ContextConfig start
    SEVERE: Marking this application unavailable due to previous error(s)
    Dec 13, 2007 11:45:54 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error getConfigured
    Dec 13, 2007 11:45:54 AM org.apache.catalina.core.StandardContext start
    SEVERE: Context [HelloWorld] startup failed due to previous errors
    Dec 13, 2007 11:45:55 AM org.apache.coyote.http11.Http11Protocol start
    SEVERE: Error starting endpoint
    java.net.BindException: Address already in use: JVM_Bind:8080
         at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501)
         at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:515)
         at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:204)
         at org.apache.catalina.connector.Connector.start(Connector.java:1132)
         at org.apache.catalina.core.StandardService.start(StandardService.java:531)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
         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:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Dec 13, 2007 11:45:55 AM org.apache.catalina.startup.Catalina start
    SEVERE: Catalina.start:
    LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.net.BindException: Address already in use: JVM_Bind:8080
         at org.apache.catalina.connector.Connector.start(Connector.java:1139)
         at org.apache.catalina.core.StandardService.start(StandardService.java:531)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
         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:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Dec 13, 2007 11:45:55 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1244 ms
    Dec 13, 2007 11:45:55 AM org.apache.catalina.core.StandardServer await
    SEVERE: StandardServer.await: create[8005]:
    java.net.BindException: Address already in use: JVM_Bind
         at java.net.PlainSocketImpl.socketBind(Native Method)
         at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
         at java.net.ServerSocket.bind(ServerSocket.java:319)
         at java.net.ServerSocket.<init>(ServerSocket.java:185)
         at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
         at org.apache.catalina.startup.Catalina.await(Catalina.java:630)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:590)
         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:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

  • Need help to start with some file and text manipulation

    Hello script mavens,
    I need help with starting a script that does the following:
    -within a base folder it takes an inventory (list?) of all the files (which happen to be image files).
    -creates a new folder inside the base folder and calls it imagesX where X increases by one every time the script is run
    -moves all the files into the images folder
    -within the base folder it creates a new text file and calls it imagesX.js
    -writes a "//-" into imagesX.js
    -then writes the list of filenames into the imagesX.js twice, separated by an empty line, and adds a semicolon to the end of each filename and saves imagesX.js
    -from a folder a level above the base folder it copies a file called index.html into the base folder and renames in indexX.html
    -in indexX.html it replaces a string "replaceThis" with "imagesX.js"
    The task is more complex but this would help me tremendously do the rest.
    If I am asking for too much on this forum please let me know

    This should get you started.
    The description of how you want to write the data isn't clear, but the rest should work (untested):
    property imageNum : 0 -- last used ImageNumber
    -- within a base folder it takes an inventory (list?) of all the files (which happen to be image files).
    -- get the folder:
    set baseFolder to (choose folder)
    -- now get the files within it:
    tell application "Finder"
    set fileList to every file of folder baseFolder as alias list
    end tell
    --creates a new folder inside the base folder and calls it imagesX where X increases by one every time the script is run
    tell application "Finder"
    set imageNum to imageNum + 1
    set newImageFolder to make new folder at baseFolder with properties {name:"images" & imageNum}
    -- moves all the files into the images folder
    move every file of folder baseFolder to newImageFolder
    --within the base folder it creates a new text file and calls it imagesX.js
    set textFile to (open for access file (baseFolder as text) & "images" & imageNum & ".js" with write permission)
    --writes a "//-" into imagesX.js
    write "//-" to textFile
    -- then writes the list of filenames into the imagesX.js twice, separated by an empty line, and adds a semicolon to the end of each filename and saves imagesX.js
    -- need more info here
    -- a blank line between each instance of the file name? or all file names, blank line, all file names again?
    -- an example, please
    close access textFile
    --from a folder a level above the base folder it copies a file called index.html into the base folder
    --and renames in indexX.html
    --in indexX.html it replaces a string "replaceThis" with "imagesX.js"
    -- the easiest way of doing this is to read the file and write a new copy with the changes - that's easier than changing it in situ:
    set indexHTML to (read file "index.html" of folder (container of baseFolder))
    set {oldTIDs, my text item delimiters} to {my text item delimiters, "replaceThis"}
    set indexHTML to text items of indexHTML
    set my text item delimiters to "imagesX.js"
    set indexHTML to indexHTML as text
    set my text item delimiters to oldTIDs
    set indexFile to (open for access file ("index" & imageNum & ".html") with write permission)
    write indexHTML to indexFile
    close access indexFile
    end tell

  • I'm trying to reinstall Logic Pro 9, and it says It's already installed. I have a project due for class and I need help asap. Please help!!!

    I'm trying to reinstall Logic Pro 9, and it says It's already installed. I have a project due for class and I need help asap. Please help!!!

    Yea I am. I deleted Logic Pro 9 and moved the App to the Trashcan like normal. Then when I go to install it, it says its already Installed. When I do this with other apps; it works fine, the install thing comes back up like it should once you have deleted the app

  • My iPhone4s turned itself off and will not turn back on unless it is charge data all times. I need help and answers please.

    My iPhone4s turned itself off and will not turn back on unless it is charged at all times. I need help and answers please.

    And we would need more info. "will not turn back on unless it is charged at all times." is pretty obvious: the phone will obviously not turn on unless it is charged.
    Describe your problem clearly.

  • I haven't used an Apple computer for years. I need help getting started

    I just bought a mac mini after 20 years using a PC.  I need help getting started.  Any beginning manuals out there?  Thanks.

    New User of Apple wrote:
    I just bought a mac mini after 20 years using a PC.  I need help getting started.  Any beginning manuals out there?  Thanks.
    Welcome back. Do not overlook the Finder and individual application Help menu support. The links provided above are great starter references. With tongue in cheek, they also may not be as current as the OS X release on your mini, so expect some differences.
    Here are a litany of keyboard short-cuts, last updated in June 2012, that may prove selectively beneficial.
    For actions like copy(c), paste(v), cut(x), print(p), and select-all(a), substitute the command key instead of control key.
    If you right click on a file, this menu will seem familiar. Press the option key and notice the menu changes. If you copy a file(s) from this menu, change to the destination and then press option with the right button menu to see copy file(s) changed to move file(s).
    To quickly view a file's contents, left click on the file icon, then press the space bar.
    The native file format for OS X is PDF. Thus, when you choose to print, you also have the option to save as PDF with web links preserved.
    Enjoy your mini.

  • I have need help with something Please respond Quickly :)

    I have need help with something Please respond Quickly  ok so i have the linksys wrt54g Version 2.2 and i upgraded the firmware to V4.21.4 from this site http://homesupport.cisco.com/en-us/wireless/lbc/WRT54G and i clicked V2.2 for the router. So after i upgraded i lost internet ability i can't use the internet so i had to downgrade back to V4.21.1 but i want the things that newer update sloves. Please Help. Everything thing says DNS error? aka Modem.
    $$Cgibbons$$

    Ya i tried that i tried restoring and redoing everything when i downgrade back to .1 it works fine though?
    $$Cgibbons$$

  • Hello world servlet on UCM 11g embedded tomcat

    Hi,
    I'm using UCM 11.1.1.5. I'm trying to run a simple jsp and servlet (hello world) on UCM embedded Tomcat (deployed with a war).
    I successfully executes jsp, however I'm not able to runs servlets...I receive a 404 Http error (generated by WebLogic).
    Deploying the same war on a external standalone tomcat server I successfully run the servlet.
    Have you any idea?
    Any input will be greatly appreciated.
    Thanks for your helps,
    S.

    In order to be more complete, it follows the web.xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
    <display-name>Hello, World Application</display-name>
    <description>
    This is a simple web application with a source code organization
    based on the recommendations of the Application Developer's Guide.
    </description>
    <servlet>
    <servlet-name>HelloServlet</servlet-name>
    <servlet-class>mypackage.Hello</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloServlet</servlet-name>
    <url-pattern>/hello</url-pattern>
    </servlet-mapping>
    </web-app>
    Thank you very much.
    Best regards,
    S.

  • Hello I'm new and need help.

    I have a BB Bold 9900, my provider is Mobilicity, I don't know if I have a BSI with my provider. I have tried to find my OS # without any luck. This is my first smart phone as well as my first BlackBerry, when I was setting up BBM it had asked me to set a password as well as choose a e-mail, I did that. One day I went into my bbm and it asked for my password. I do not remember my password, but I remember my security question. When I type in my answer it tells me that my password has been sent to the e-mail I chose, but I don't know how to get to that e-mail. I have an e-mail account on my phone, but it is one that I set up recently. I have gone on to blackberry website to see if I could change my password, but it won't let me because it tells me my cookies is disabled. I have tried to enable my cookies with no luck. I have contacts which send me bbm's, but I can't read them, or even see who it was who sent it. I am beyond frustrated with this, I hope someone can help. Please.

    Hi and Welcome to the Community!
    You do have several things going on...so I'll try to divide them up in my reply.
    Since you are receiving both email and BBM on your BB, you do indeed have a BIS-level account. BIS = BlackBerry Internet Service, a service delivered by your mobile service provider that enables the various services to which you subscribed.
    Next, to determine your OS level, refer to this:
    KB23393 How to check the model number and version of installed BlackBerry device software on a BlackBerry smartphone
    Now, as to your BB ID credentials. BBs are the most secure mobile devices available. As such, they depend heavily on the "human element" in maintaining that security. When the human "fails", sometimes the automated methods of recovery just aren't good enough. But, there are a few more things for you to understand.
    For security reasons, those password reset emails are never sent to the BB. So, to get to them, you must have non-BB access to that email account. I don't know what type of account you used, but if it was one of the "hosted" type (e.g., @bb or @carrier), then those typically have only BB access to them. Which creates a catch-22 for your situation...you must have non-BB access to the email account so as to receive the password reset email, but you used an email account that can only be accessed from the BB. Fortunately, there is a workaround:
    KB28111 Unable to reset BlackBerry ID password when using a BlackBerry hosted email address
    Basically you need to work with your carrier as they administer that email account...and get a forwarding rule put into that hosted email account, and forward those emails to something you can get to from other than the BB (e.g., gmail, yahoo, etc.). Then, generate again the password reset email, and retrieve/act upon it via that other email account (the one to which you set the forwarding).
    As it stands for you, that is your only non-destructive fix...everything else would mean abandoning your existing BB ID, wiping your BB to a "factory fresh" condition, and starting over again.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • New User needs help with starting SDK

    I downloaded the J2EEsdk-1_4 files and completed the installation. I have looked at all the tutorials and quick-start documentation, but cannot find how to begin building an application. All I needed was very minimal Java parts to write a "Hello World" program for a class, but it prompted me to get the whole package.
    How do I get to a prompt window to write some code, then compile it, then run it? I tested the local server as it suggested and it is working, and I ran their sample program and it worked.
    I just need a pointer to get me started. I don't need all the web deployemnt stuff, etc....
    Sorry for the silly questions but you gotta start somewhere.
    Thanks

    Brent In Iowa, you're on the Air.
    Thanks for taking my call, Larry.
    Umm, yes, I'd like to ask Mr. McNealy a question.
    Go ahead.
    umm, yes, Mr. McNealy. I like your language
    Thanks, Brent. We hope with developers like you, to make it the most widely used language in the world. It's people like you that will helps us squash that bastard Gates and make me...umm, I mean Sun Microsystems the richest company known to man-kind.
    Yeah but that's my problem Mr. McNealy. How do I write Hello World?
    First, Brent, ya gotta download the right SDK. Not the J2EE but the J2SE. Then ya gotta follow the links on the let for the tutorials.
    Thanks for your question. Our next caller, George is in Boise, Idaho. Hello, Boise.

  • Need Help in Urgent please~

    Hello! Need help please~ I cannot erase and partition disk in disk utility. It always alert message that" Partition Failed with error. Couldn't open device". How can I fix this? Help please~

    Try this procedure:
    http://osxdaily.com/2012/03/05/fix-partition-failed-error-mac/

  • MAC keeps crashing?  NEED HELP!! please

    i found a previous forum on here that people were having the same issue, but lets just say i need help for dummies.  Here is the error message i get when safari crashes:
    Exception:  EXC_BAD_ACCESS (0x0001)
    Codes:      KERN_INVALID_ADDRESS (0x0001) at 0xe8240489
    There is actually a lot more to it but i was just trying to search based on this criteria above.  Anyone help?  im not the most computer literate, but i have tried simple things like clearing the cache, emptying old bookmarks etc that take up room.  any other suggestions? I have safaro version 4.1.3 if that helps

    here is the rest of the crash.  i still didnt trash anything bc i wasnt sure how/why that would be able to fix it? is this bad??  it happened when i was just on a regular internet browser (ESPN, MSNBC, etc)
    Thread 0 Crashed:
    0   com.apple.CoreFoundation            0x90826220 CFGetTypeID + 17
    1   com.apple.CoreFoundation            0x908260b4 __CFPropertyListIsValidAux + 52
    2   com.apple.CoreFoundation            0x9083eaec __CFPropertyListIsArrayPlistAux + 44
    3   com.apple.CoreFoundation            0x9083eaa8 CFArrayApplyFunction + 307
    4   com.apple.CoreFoundation            0x9082619f __CFPropertyListIsValidAux + 287
    5   com.apple.CoreFoundation            0x9082699a __CFPropertyListIsDictPlistAux + 74
    6   com.apple.CoreFoundation            0x90826935 CFDictionaryApplyFunction + 218
    7   com.apple.CoreFoundation            0x908261e9 __CFPropertyListIsValidAux + 361
    8   com.apple.CoreFoundation            0x9082699a __CFPropertyListIsDictPlistAux + 74
    9   com.apple.CoreFoundation            0x90826935 CFDictionaryApplyFunction + 218
    10  com.apple.CoreFoundation            0x908261e9 __CFPropertyListIsValidAux + 361
    11  com.apple.CoreFoundation            0x9082699a __CFPropertyListIsDictPlistAux + 74
    12  com.apple.CoreFoundation            0x90826935 CFDictionaryApplyFunction + 218
    13  com.apple.CoreFoundation            0x908261e9 __CFPropertyListIsValidAux + 361
    14  com.apple.CoreFoundation            0x90825b54 CFPropertyListIsValid + 69
    15  com.apple.CoreFoundation            0x9083e8ae CFPropertyListWriteToStream + 176
    16  com.apple.Safari                    0x0016654e 0x1000 + 1463630
    17  com.apple.Safari                    0x00099466 0x1000 + 623718
    18  com.apple.Safari                    0x00099403 0x1000 + 623619
    19  com.apple.Safari                    0x0003fcb7 0x1000 + 257207
    20  com.apple.Safari                    0x0003fc6e 0x1000 + 257134
    21  com.apple.Safari                    0x002bd770 0x1000 + 2869104
    22  com.apple.Safari                    0x0003fc27 0x1000 + 257063
    23  com.apple.CoreFoundation            0x9082d756 CFRunLoopRunSpecific + 3341
    24  com.apple.CoreFoundation            0x9082ca42 CFRunLoopRunInMode + 61
    25  com.apple.HIToolbox                 0x92e01878 RunCurrentEventLoopInMode + 285
    26  com.apple.HIToolbox                 0x92e00f82 ReceiveNextEventCommon + 385
    27  com.apple.HIToolbox                 0x92e00dd9 BlockUntilNextEventMatchingListInMode + 81
    28  com.apple.AppKit                    0x93286f45 _DPSNextEvent + 572
    29  com.apple.AppKit                    0x93286b37 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 137
    30  com.apple.Safari                    0x0000f6f9 0x1000 + 59129
    31  com.apple.AppKit                    0x932808c4 -[NSApplication run] + 512
    32  com.apple.AppKit                    0x93274820 NSApplicationMain + 573
    33  com.apple.Safari                    0x0000749b 0x1000 + 25755
    34  com.apple.Safari                    0x0010e512 0x1000 + 1103122
    35  com.apple.Safari                    0x00007219 0x1000 + 25113
    Thread 1:
    0   libSystem.B.dylib                   0x90024407 semaphore_wait_signal_trap + 7
    1   com.apple.JavaScriptCore            0x0050ade0 ***::ThreadCondition::wait(***::Mutex&) + 24
    2   com.apple.WebCore                   0x015eadd0 WebCore::IconDatabase::syncThreadMainLoop() + 256
    3   com.apple.WebCore                   0x015e8856 WebCore::IconDatabase::iconDatabaseSyncThread() + 192
    4   libSystem.B.dylib                   0x90023d67 _pthread_body + 84
    Thread 2:
    0   libSystem.B.dylib                   0x90009817 mach_msg_trap + 7
    1   com.apple.CoreFoundation            0x9082d227 CFRunLoopRunSpecific + 2014
    2   com.apple.CoreFoundation            0x9082ca42 CFRunLoopRunInMode + 61
    3   com.apple.Foundation                0x928585da +[NSURLCache _diskCacheSyncLoop:] + 206
    4   com.apple.Foundation                0x927fbcfc forkThreadForFunction + 123
    5   libSystem.B.dylib                   0x90023d67 _pthread_body + 84
    Thread 3:
    0   libSystem.B.dylib                   0x90009817 mach_msg_trap + 7
    1   com.apple.CoreFoundation            0x9082d227 CFRunLoopRunSpecific + 2014
    2   com.apple.CoreFoundation            0x9082ca42 CFRunLoopRunInMode + 61
    3   com.apple.Safari                    0x00026c6d 0x1000 + 154733
    4   com.apple.Safari                    0x00026b26 0x1000 + 154406
    5   com.apple.Safari                    0x00026aab 0x1000 + 154283
    6   libSystem.B.dylib                   0x90023d67 _pthread_body + 84
    Thread 4:
    0   libSystem.B.dylib                   0x90009817 mach_msg_trap + 7
    1   com.apple.CoreFoundation            0x9082d227 CFRunLoopRunSpecific + 2014
    2   com.apple.CoreFoundation            0x9082ca42 CFRunLoopRunInMode + 61
    3   com.apple.Foundation                0x9283139c +[NSURLConnection(NSURLConnectionInternal) _resourceLoadLoop:] + 259
    4   com.apple.Foundation                0x927fbcfc forkThreadForFunction + 123
    5   libSystem.B.dylib                   0x90023d67 _pthread_body + 84
    Thread 5:
    0   libSystem.B.dylib                   0x90019d0c select + 12
    1   libSystem.B.dylib                   0x90023d67 _pthread_body + 84
    Thread 6:
    0   libSystem.B.dylib                   0x90024407 semaphore_wait_signal_trap + 7
    1   com.apple.Foundation                0x92851c60 -[NSConditionLock lockWhenCondition:] + 39
    2   com.apple.AppKit                    0x9335dcb4 -[NSUIHeartBeat _heartBeatThread:] + 377
    3   com.apple.Foundation                0x927fbcfc forkThreadForFunction + 123
    4   libSystem.B.dylib                   0x90023d67 _pthread_body + 84
    Thread 7:
    0   libSystem.B.dylib                   0x90024407 semaphore_wait_signal_trap + 7
    1   com.apple.Foundation                0x92851c60 -[NSConditionLock lockWhenCondition:] + 39
    2   com.apple.Syndication               0x998e979e -[AsyncDB _run:] + 181
    3   com.apple.Foundation                0x927fbcfc forkThreadForFunction + 123
    4   libSystem.B.dylib                   0x90023d67 _pthread_body + 84
    Thread 8:
    0   libSystem.B.dylib                   0x90024407 semaphore_wait_signal_trap + 7
    1   com.apple.JavaScriptCore            0x00510742 ***::ThreadCondition::timedWait(***::Mutex&, double) + 74
    2   com.apple.Safari                    0x002ddd66 0x1000 + 3001702
    3   com.apple.Safari                    0x002dde5c 0x1000 + 3001948
    4   com.apple.Safari                    0x0003a0cd 0x1000 + 233677
    5   com.apple.Safari                    0x0003a02f 0x1000 + 233519
    6   libSystem.B.dylib                   0x90023d67 _pthread_body + 84
    Thread 9:
    0   libSystem.B.dylib                   0x90024407 semaphore_wait_signal_trap + 7
    1   com.apple.ColorSync                 0x915a96ab pthreadSemaphoreWait(t_pthreadSemaphore*) + 35
    2   com.apple.ColorSync                 0x915c3ddc CMMConvTask(void*) + 60
    3   libSystem.B.dylib                   0x90023d67 _pthread_body + 84
    Thread 10:
    0   libSystem.B.dylib                   0x90009817 mach_msg_trap + 7
    1   com.apple.CoreFoundation            0x9082d227 CFRunLoopRunSpecific + 2014
    2   com.apple.CoreFoundation            0x9082ca42 CFRunLoopRunInMode + 61
    3   com.apple.audio.CoreAudio           0x91469356 HALRunLoop::OwnThread(void*) + 158
    4   com.apple.audio.CoreAudio           0x91469171 CAPThread::Entry(CAPThread*) + 93
    5   libSystem.B.dylib                   0x90023d67 _pthread_body + 84
    Thread 11:
    0   libSystem.B.dylib                   0x90024407 semaphore_wait_signal_trap + 7
    1   com.apple.JavaScriptCore            0x00510742 ***::ThreadCondition::timedWait(***::Mutex&, double) + 74
    2   com.apple.WebCore                   0x018bb8d2 WebCore::LocalStorageThread::threadEntryPoint() + 170
    3   libSystem.B.dylib                   0x90023d67 _pthread_body + 84
    Thread 12:
    0   libSystem.B.dylib                   0x90009817 mach_msg_trap + 7
    1   com.apple.CoreFoundation            0x9082d227 CFRunLoopRunSpecific + 2014
    2   com.apple.CoreFoundation            0x9083e100 CFRunLoopRun + 60
    3   com.apple.QuickTime                 0x943329b9 QTSNetworkThread_RunThread + 131
    4   libSystem.B.dylib                   0x90023d67 _pthread_body + 84
    Thread 0 crashed with X86 Thread State (32-bit):
      eax: 0x39e6292b  ebx: 0x9082621d  ecx: 0x221acc60  edx: 0x00000001
      edi: 0x39e6292b  esi: 0x39e6292b  ebp: 0xbfffe988  esp: 0xbfffe960
       ss: 0x0000001f  efl: 0x00210286  eip: 0x90826220   cs: 0x00000017
       ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037

  • Just installed security update 2014-002, now Itunes will not open. Have rstrated but no change, need help to fix, please

    Just installed security update 2014-002, now Itunes will not open, I have rebooted twice with no effect, I don't know what else to do to get my itunes back. Need help please

    Believe I've firxed my problem, at least, ITunes is now working again. I followed the information provided from a couple of posts on this thread, (1) re restarting with command-s held down; did it twice, made no differerence; (2) manually re-installed the Security update; no difference; each time restarting, no effect; (3) shutdown the computer; I did for 35 minutes, upon restart, ITunes is back to normal, seems to be working fine. Turning the computer off must clear the cache?

  • IPhone 5 screen wont turn on. (Need help or info, please and thank you.)

    So i got an Iphone 5, and i accedently droped it in the sink. i took it out, whipped it off,  i put it in my pocket and left it alone.
    the next day the screen was not working, moments later, it(Iphon5) turned off.  tried turnng it back on but it wouldnt work.
    so, again i left it. everything still works, its just that the screen wont turn on, i could still play music snapshot stuff,
    but my screen wont tun on.
    I NEED HELP.

    I don't beleive this is a known problem and you should probably bring your phone to a local Genius Bar (make an appointment here) as this is likely a hardware issue (a problem with your phone realizing that you removed it from your ear).
    If you're willing to tinker with it a bit, you can determine if this is a software issue by backing up your iPhone (separately ensure your photos, videos and music is backed up) and then "Restore" your phone. If the restoration solves the problem, you're dealing with a software issue. If the problem still exists, you're almost definitely dealing with a hardware issue.

Maybe you are looking for

  • External display only with lid open?

    I feel like I must be missing something really obvious, so I apologize in advance, but I'm trying to use my external display (23" cinema display) without using the MBP display yet still keeping the lid open (mainly for the isight camera). The first t

  • Stuck on ask a question page. cant get anything I can work with

    I had a page with bookmarks then it all disappeared and now all I have is a page titled at top --- Ask a Question Firefox Support/Mozilla Firefox. there is nothing on the page I can work or remove . I can see the page I want but cannot get to It.

  • Same Batch is allocated for mutiple outbound deliveries

    Hi All, We have a Batch with quantity as 1, but system assigns this batch for more than one outbound delivery while picking. User has to manually remove this batch and select a different batch. For example, Batch # XYZ was first picked up for deliver

  • Project Resolution for Encore CS5

    I've recently started using Encore CS5 to create Blu-ray discs. I'm creating my projects from sequences from within Final Cut 7 and creating the Blu-ray files using Compressor. I've noticed that Encore asks you to select a project resolution when cre

  • USB disconnected while updating! Any help, please??

    Hi. I was updating my x10i to 2.3 yesterday when the usb cable got disconnected briefly from the phone. The phone turns on, displays the 'Sony Ericsson' logo, then displays a funny looking screen (like the colour stain u get on the screen of a cracke