Help to adjust Tomcat 4.1.18

Dear friends!
I have properly installed Tomcat 4.1.18 on my PC. When I run it I have default page index.jsp and can go through all examples - it works ok. Now I wish to try my own servlets but I can't find the place for class files.
In Tomcat documentation I read I have to place my classes into install_dir/webapps/ROOT/WEB_INF/classes, but there is no classes directory there.
Please tell me what place have I put my classes to make them visible for Tomcat.
Thank you,
Dmitry.

It depends, wether you use Tomcat as Standalone Server or with another Webserver. In general:
1. make a directory-structure "myWebApp/WEB-INF/classes",
2.put servlets, classes and beans etc. into the classes directory
3. make an entry like the following into the server.xml in install_dir/conf/
(between the <engine> tags, if you have already a host entry the <context> entry might be sufficient):
                  <Host name="myDomain" debug="0" appBase="/absolutePath to myWebApp" unpackWARs="true">
                     <Context path="" docBase="/absolutePath to myWebApp" debug="0" crossContext="true" />
                  </Host>3. if you use another webserver, you have to make shure that the url is redirected to Tomcat (httpd.conf for Apache)
4. restart Tomcat (always after editing server.xml)
5. the url for servlets is myDomain/servlet/servletName where servletName is the name of the servlet class without the .class ending

Similar Messages

  • Need help with adjusting Javascript code to work in Adobe Edge (Countdown)

    Hello
    Im a newbie when it comes to working with Javascript and Adobe Edge and need a bit of help with adjusting some javascript code to work with Adobe Edge. A friend of mine helped me with making this javascript code: Edit fiddle - JSFiddle
    Its a simple countdown which counts down to a certain time at a certain date. What I aim to do is to add this code as a trigger on a text-element called "countdown" (within a symbol called "count").
    I have tried to do this as the code is, but it does not work. Anyone have any suggestions?
    Thanks!
    Mvh,
    Øyvind Hermans

    Hello again
    I have stumbled upon a problem with these animations; They crash the browser after viewing them a little while, usually less than 30 seconds in.
    Is this problem also occuring when you watch the animations?
    Is the countdown-code to much for the browsers to handle?
    Thanks in advance for your answers.
    Sincerely,
    Øyvind Hermans

  • Having trouble with enhanced podcasts, Can anyone help me adjust my iPod?

    Whenever I listen to my enhanced podcasts through iTunes, I have no problems viewing the photos the podcaster included in the program. However, when I play the same podcast in my iPod, the photos will not show. I only see the timeline with the little segments that represent the chapters. I can hit the forward and back arrows and I am taken the to the next chapter marker. But, unfortunately, I do not see the photos, as I do see them in iTunes.
    Can anyone help me adjust my iPod to enable it to play enhanced podcasts correctly?
    According to the iPod manuals, I should be able to see enhanced podcasts with no trouble.
    Thanks.
    5th generation iPod   Windows XP  
      Windows XP  

    Whenever I listen to my enhanced podcasts through
    iTunes, I have no problems viewing the photos the
    podcaster included in the program. However, when I
    play the same podcast in my iPod, the photos will not
    show. I only see the timeline with the little
    segments that represent the chapters. I can hit the
    forward and back arrows and I am taken the to the
    next chapter marker. But, unfortunately, I do not see
    the photos, as I do see them in iTunes.
    Can anyone help me adjust my iPod to enable it to
    play enhanced podcasts correctly?
    According to the iPod manuals, I should be able to
    see enhanced podcasts with no trouble.
    Thanks.
    5th generation
    iPod   Windows XP  
      Windows XP  
    I have solved it myself. Here's how I did it:
    In iTunes, go to Edit and click to Show Art Work and leave it as "Hide Art Work." (Now it will download the enhanced messages.)
    Now go to the iPod: From the Main Menu, go to Settings. At the Settings, go to the other Main Menu. From this Main Menu, go to Music and make sure that the following are on:
    Playlists, Photos, and Photo Import, Videos, and Extras.
    Good Luck.
      Windows XP   60gb video 5th generation

  • G31M3F help cannot adjust vcore!!!!

    Please help me adjust na CPU core voltage with g31 board . It seems the adjustment is locked in the cell menu.

    Quote from: Caloyphil on 21-February-09, 17:40:37
    The cursor will not stop at vcore , it seems that the voltage adjust is locked ???
    So it directly jumps to "DRAM Voltage"?

  • New to Mac: help me adjust my Windows workflow to iPhoto

    I recently switched to Mac, mostly in the hopes of spending less time thinking about how the computer works and more time doing what I want to do.
    In fact, what made me finally start seriously thinking about a Mac is when I heard about the iPhoto '08 events feature, where it automatically split the photos based on the dates. I thought that was genius in how simple, yet effective it was.
    I take quite a few photos. I take a lot of random photos of my car (I'm a car guy), but I also take some photos at parties, friend visits and family visits, etc. I often take several of photos of the same thing, because, heck, there's plenty of space on the memory card, and maybe one of the subsequent photos will be better than the first.
    One common scenario for me is going to a social gathering of some kind and then posting the photos of that event online.
    My Windows XP workflow used to be as follows:
    1. Connect camera
    2. Import photos into a folder named after the event using Windows Photo import. If several different events, select several sets and import them separately into separate folders. E.g. "My Pictures\Spring Cleaning Day Apr 2008"
    3. Browse the photos using Windows File Viewer and delete any obviously poor photos and select the least blurry of several duplicates.
    So that above is fairly straighforward. Now, I need to get these photos up online. A while back, I set up for myself a website that runs Gallery 1.x software, so I could just upload photos via a web interface and have them viewable with automatic thumbnails.
    The thing is: I don't want to upload ALL images online. Just most of them (the best).
    4. Open the photos I'm interested in a photo editor, one by one.
    5. Crop, adjust levels, shadows, colors, etc.
    6. Resize photo to a "large but not too large" web size, usually either 1200 or 1400 pixels wide.
    7. Adjust sharpness on the resized photo to make sure it looks good when viewed at actual pixel size.
    8. Save photo in a subfolder called "forweb", e.g. My Pictures\Spring Cleaning Day Apr 2008\forweb. This way, I get to keep all the originals from the camera and my resized web-ready photos separate.
    9. Upload all photos from the "forweb" folder using a web interface, typing up descriptions for each.
    When I'm done, I have a gallery that has thumbnails, mid-size versions of the photos (800 pixels wide, for easy viewing) and a "full-size" version for a detailed view (but not as huge as the one that came out of the camera... so it's not original size). In fact, the original size photos are huge (as I take them at 7.1MP resolution with the lowest compression), about 2-3MB each, and so I'd never want to upload a 100 3MB photos. A waste of space.
    Overall, the result is pretty good: most people view the midsize photos and save full-size (1200 or 1400 pix wide) photos of things they particularly like.
    However, the process is too time consuming. In particular, it takes forever to go through each photo and resize it and crop it. The process of resizing and saving each individual photo in the separate "forweb" is quite a bit of overhead. Sometimes I kind of dread having to post photos up online after events, and it should totally not be that way!
    I bought a .Mac subscription after seeing the fancy web galleries. I am hoping that the combination of iPhoto and .Mac can help me get my photos up on the web quicker.
    So now, the iPhoto workflow. What should it be?
    Here's my guess:
    1. Connect camera.
    2. Import all photos, naming each event after importing.
    3. Delete poor photos or blurry duplicates.
    4. Identify photos I want to display on the gallery (those worth keeping) and hide all others.
    5. Crop and adjust shadows/colors/etc.
    6. Select "Web gallery" to share the event.
    And then I'm done.
    So that sounds pretty good right there. Except, I have several reservations and questions:
    1. Is it better to mark photos I don't want in the web gallery as hidden (so I can just upload the entire gallery) or should I just select the photos I want to upload online into the web gallery? It seems to work either way. On one hand, it seems better to hide the photos, because then when they get synced to my iPhone, I have the most relevant photos and not the "extras." Also, if I'm showing photos from my laptop, I'm also showing the cream of the crop and not everything. On the other hand, the concept of hiding photos is kind of unusual to me. Feels strange to "hide" photos.
    2. What to do for a web gallery full size that's not as huge as the original camera size? When uploading to .Mac, I only have an option of Optimized or Actual Size. Optimized size is 1024 pixels wide. That's too small for a detailed views or for wallpaper purposes. The problem is that the "Actual Size" from my camera is huge (~3000 pixels wide). I don't really want to burden people with the downloading of the 2-3MB "Actual Size."
    However, it seems that it's tricky to implement such a 1200-1400-pixel-wide "full size" with iPhoto. There is no resize option within iPhoto that I could find. The best I could find was a crop with a constrain size option. I guess I would have to constrain-size crop to something like 1400x1000 first? And then crop again to get the shape I want?
    Also, sharpness adjustment seems useless when adjusting 7MP photos. In my Windows workflow, I found sharpness much more useful when tweaking photos after they have been resized to this "full-size" 1200-1400 wide resolution. This again means that I'd have to do the crop "trick". It feels strange though that everything else is so straighforward, but resizing photos within iPhoto isn't.
    I guess that's where the whole workflow question is. The iPhoto workflow is to keep your originals intact and maintain adjusted duplicates. But resizing is not a suggested part of this workflow--instead, it is expected that any resizing is done on the way "out" of the library (e.g. File->Export or web gallery publishing).
    I wish I could introduce an intermediate "optimized" setting for Web Gallery upload (although then I don't have that precise control of sharpness after resizing).
    Maybe I am overthinking this and, given that I have 10GB of storage space with .Mac, I should just give up and let it upload my 3000-pix wide 2-3MB JPG originals (i.e. use the "actual size" setting)?
    3. Can anyone provide some practical uses for the "albums" setting and contrast their use vs events? I just want to get a better insight into the practical difference. It seems that albums are not very useful or rather would be rarely used, given the main categorization of all photos into events. It seems that the only use for albums would be to bring together photos across different events. For example, I could make an album of all of the photos of my car's odometer or put together my best random city shots. Maybe I just answered my own question? Still, interested into your use of albums.

    ilp
    Welcome to the Apple Discussions.
    So now, the iPhoto workflow. What should it be?
    This is pretty good:
    1. Connect camera.
    2. Import all photos, naming each event after importing.
    3. Delete poor photos or blurry duplicates.
    4. Identify photos I want to display on the gallery (those worth keeping) and hide all others.
    Well I would make a small change here. There are reports of folks getting hidden photos turning up in their web galleries. So, instead I would flag the photos I want to upload and then create an ALBUM from them. (or you can just drag and drop them to an album) Also, you can add to your gallery simply by adding to the album. Or use Ratings and/or keywords, see below
    5. Crop and adjust shadows/colors/etc.
    6. Select "Web gallery" to share the event.
    (or Album)
    You cannot change the size of images that are in the Gallery. It's a flash based "movie". Those size options refer to the file size of images that you allow folks to download from the gallery.
    Events are a really limited way of organising your pics. Events in the iPhoto Window correspond exactly with the Folders in the Originals Folder in the iPhoto Library package file (Right click on it in the Pictures Folder -> Show Package Contents).
    You can move photos between Events, you can rename Events, edit them, create them, as long as you do it via the iPhoto Window. Check out the Info Pane (wee 'i', lower left) the name and date fields are editable. Edit a Event Name using the Info Pane, the Event Folder in iPhoto Library/Originals will also have the new name.
    That's it.
    Albums can be based on any criteria you can think of - and with Smart Albums this can be done automatically.
    For instance, back in your work flow above, you sort the pic and hide the one's you don't want to upload. Here's another way of doing it. Rate the pics, from 1 - 5, and then
    File -> New Smart Album
    Rating -> Is -> 5 stars
    will find your favourites. Best yet, it will update that album every time you rate new pics. You can base Smart Albums on a lot of criteria - date, rating, keyword, camera model... have a look and see the full list, and these can be combined together...
    The other great plus with Albums is that, because they are virtual, a pic can be in 1, 10 or 100 albums with no wasted disk space. But if a pic is in more than one Event you're dealing with a duplicate file.
    Frankly, a Event is a bucket of Pics, and Album is a coherent organisation based on any criteria you can think of.
    Regards
    TD

  • Please Help ?? Tomcat 6 and JDK 6 Class Not Found Exception when deploying

    Hi,
    I am deploying this application in Tomcat 6, but I am getting ClassNotFoundException when I try to the application. I am a novice at this.
    SEVERE: Error loading WebappClassLoader
      delegate: false
      repositories:
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@146c1d4
    com.jbe.test.HelloWorldServlet
    java.lang.ClassNotFoundException: com.jbe.test.HelloWorldServlet
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
         at java.lang.Thread.run(Thread.java:619)
    Oct 15, 2007 12:57:31 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Allocate exception for servlet asterisk
    java.lang.ClassNotFoundException: com.jbe.test.HelloWorldServlet
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
         at java.lang.Thread.run(Thread.java:619)My web xml configuration
    <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>
         Simple Test with a servlet.
        </description>
        <servlet>
             <servlet-name>helloworld</servlet-name>
             <servlet-class>com.jbe.test.HelloWorldServlet</servlet-class>
        </servlet>
        <servlet-mapping>
             <servlet-name>helloworld</servlet-name>
             <url-pattern>/hello.htm</url-pattern>
        </servlet-mapping>
    </web-app>My JSP: <html>
         <head><title>Test Hello World</title>
         </head>
         <body>
         <form>
         <a href = "hello.htm">Hello World</a>
         </form>
         </body>
    </html>
    Please Help !!!

    Are you sure your HelloWorldServlet has doGet method?
    package com.jbe.test;
    // Import servlet packages
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class HelloWorldServlet extends HttpServlet {
         public HelloWorldServlet() {}
         public void init() throws ServletException     {}
         public void doGet(HttpServletRequest request, HttpServletResponse response)
         throws ServletException, IOException           {
              response.setContentType("text/html");
            // then get the writer and write the response data
            PrintWriter out = response.getWriter();
            out.println("<HEAD><TITLE> SimpleServlet Output</TITLE></HEAD><BODY>");
            out.println("<h1> SimpleServlet Output </h1>");
            out.println("<P>This is output is from SimpleServlet.");
         out.println("</BODY>");
         out.close();
         public void destroy()     {}
    }

  • Need help with httpd/tomcat/jsr223/php

    Hello,
    I�m new to tomcat, but have been working with httpd for years. (now I find out how different the two are)
    I�m having some problems getting php to play nicely with tomcat. Here�s my configuration:
    RHEL4 2.6.9-34.0.2.ELsmp
    apache-tomcat-5.5.17
    httpd-2.0.55 (with mod_jk)
    mysql 5.0.21
    jsr223
    primary tomcat application trying to get working: nutch-0.7.2
    what ends up eventually happening (after struggling to get jsp and php working together) is my /usr/local/apache/logs/mod_jk.log gets filled with stuff like this up to 2gb, at which point it brings apache to it�s knee�s until I clear the file. I�m not concerned about this, but I figured the log file might be helpful
    [Fri Jul 21 13:15:19 2006] [4016:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/bannerads/adlog.php' from 5 maps
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlets-examples/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jsp-examples/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*/servlet/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/ROOT/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/bannerads/adlog.php' from 5 maps
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlets-examples/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jsp-examples/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*/servlet/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/ROOT/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/images/employment1.gif' from 5 maps
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlets-examples/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jsp-examples/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*/servlet/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/ROOT/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/images/employment1.gif' from 5 maps
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlets-examples/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jsp-examples/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*/servlet/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/ROOT/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/daily/1997/01/06/sports/ap06sd.ap' from 5 maps
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlets-examples/*'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jsp-examples/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*/servlet/*'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/ROOT/*'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/daily/1997/01/06/sports/ap06sd.ap' from 5 maps
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlets-examples/*'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jsp-examples/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*/servlet/*'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/ROOT/*'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    stepping back, I added this to httpd.conf to get apache-tomcat working:
    httpd.conf:
    # Mod_jk settings
    # Load mod_jk module
    LoadModule jk_module modules/mod_jk.so
    # Where to find workers.properties
    JkWorkersFile conf/workers.properties
    # Where to put jk logs
    JkLogFile logs/mod_jk.log
    # Set the jk log level [debug/error/info]
    JkLogLevel debug
    # Select the log format
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    # JkOptions indicate to send SSL KEY SIZE,
    JkOptions ForwardKeySize ForwardURICompat -ForwardDirectories
    # JkRequestLogFormat set the request format
    JkRequestLogFormat "%w %V %T"
    # Send JSPs for context /jsp-examples to worker named default
    JkMount /jsp-examples/*.jsp default
    # Send servlets-examples to worker named default
    JkMount /servlets-examples/* default
    # Send search2 to worker named default
    JkMount /ROOT/* default
    JkMount /*/servlet/* default
    JkMount /*.jsp default
    to get php working I installed jsr223 and added this to my web.xml file
    <servlet>
    <servlet-name>JSR223Script</servlet-name>
    <servlet-class>com.sun.script.http.ScriptServlet</servlet-class>
    <init-param>
    <param-name>script-blocks</param-name>
    <param-value>js,groovy</param-value>
    </init-param>
    </servlet>
    and then this under the servlet-mapping section. When I add this, php pages will show correctly, but my nutch search.jsp page just comes up as a blank page. My / jsp-examples/ work however.
    <servlet-mapping>
    <servlet-name>JSR223Script</servlet-name>
    <url-pattern>*.php</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>JSR223Script</servlet-name>
    <url-pattern>*.js</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>JSR223Script</servlet-name>
    <url-pattern>*.groovy</url-pattern>
    </servlet-mapping>
    When I remove the 3 server mappings, the nutch jsp pages work fine, but the php pages don�t
    Any help would be greatly appreciated! Thanks

    My suggestion would be to post to the correct forum. This forum is dedicated to discussions regarding Java Web Start, and although most people where would be able to help, these kind of posts are considered a little rude.
    The best place to start searching is at the Apache Project website - http://jakarta.apache.org/.

  • Need help with adjusting size for photos in my website

    Wow it's super to know about adobe forum which i never thought existed, i have been to the adobe site several times befor but never noticed there is a forum
    Ok i have few issues would like some help if possible.
    I have a website for public holidays and festivals and i have been really stressed in the ways i am adding the photos which i am buying from fotolia. First in my featured images the screen is very wide and slim...so i am really having hard time with adjusting the photos so they would fit in a way and show the best part of the photo in the screen, once the featured image is clicked on then their is no problem since it opens up in the full size. Is their a speacial tool in adope (i have cs4) which deals with images in this aspect? Secondly, before i was downloading the image with the regular size in which i bought them (around 3000 px) but that significantly slowed my webiste and i had to resize them into around 500 px, but now the image is small. what is the way around that, is there a feature where i can keep the photo big size with high resolution and little px. I see many big nice resolution photos but very small in size. i have just purchased a lot of photos that i would be posting soon and would like to do them right from the start.
    I don't know if i explain the situation right in words but you can take a look here, most photos for the posts are on the main page, please take a look and tell me how i should revise or make better for my photos in the featured images.
    I have very little experiance in photoshop so i made a very simple logo, but is there a tool that is speacialy designed to help make it easy doing a professional logo?
    Any comments, hints or help would be highly appreciated
    Hmmm one more thing....how do i add a pic for my profile? i don't see anywhere i can do so

    You should use the crop tool to crop your images. You should never squish your images, it really looks unprofessional:
    For your problem with saving images, you can optimize your images for web using the "Save for Web…" menu option:
    Make sure that you save your images at the dimension that you want them to display on your website (It looks like all your images in the blog are 620px wide, go with that).
    As for your logo, you can make them in Photoshop or Illustrator, but I would reccomend making yours in the latter. Here are some tutorials on logo creation: http://ibrandstudio.com/tutorials/46-adobe-illustrator-tutorials-logo-design

  • Can someone help me get TomCat working and...

    I downloaded Tomcat, initially so that I could have the servlett packages.
    When I try to compile I am still getting the error package.javax.servlet does not exist?
    In addition when I try to startup TomCat I get
    The JAVA_HOME environment variable is not defined correctly
    This environment variable is needed to run this program
    Using CATALINA_BASE: C:\jakarta-tomcat-4.1.18
    Using CATALINA_HOME: C:\jakarta-tomcat-4.1.18
    Using CATALINA_TMPDIR: C:\jakarta-tomcat-4.1.18\temp
    Using JAVA_HOME: C:\jdk1.3.1_04\bin
    The system cannot find the file -Djava.endorsed.dirs=.
    Can someone help me get past this please.

    When I try to compile I am still getting the error
    package.javax.servlet does not exist?Have you included %CATALINA_HOME%\common\lib\servlet.jar in your classpath? Since servlet class files are not intergrated with the jdk, you must explicitly include them in your classpath to use them.
    In addition when I try to startup TomCat I get
    The JAVA_HOME environment variable is not defined
    correctly
    Using JAVA_HOME: C:\jdk1.3.1_04\binTry setting JAVA_HOME=c:\jdk1.3.1_04
    Hope that helps.

  • Help with Adjustment brush

    Hi All,
    I have upgraded LR2 to 2.1. Now I can't use the adjustment brush. When i click on the photo to make an adjustment - nothing happens; not white dot, no change, no nothing. HELP! What am I doing wrong? The gradient filter works just fine.
    Any help will be greatly appreciated.
    Al

    Albert - if you haven't already, after clicking on the brush tick the small box underneath it to open a drop-down list. At the bottom of this list is another box alongside the word 'Colour' (or color if you're American :-) ). Click or double click on this box to bring up the colour pallet and using the ey-dropper pick a crazy colour such as a deep red. Now try painting with the bush. If you didn't notice the effects before it may be because the chosen colour was way at the bottom of the colour pallet giving you a neutral grey (gray) which is sometimes hard to spot.

  • Help for adjusting columns of a JTAble in a Table Model

    Hello community,
    In order to have a good display of by DataBase in a JTable, I've wrote some code to adjust columns in function of datas. Those datas are displayed with a TableModel ( which I've declared in a class JDBCAdapter ).
    When I start my application, I call adjustColumns(), and all is great but when I add information to my DB and display it, the columns of my JTable return to default width...
    So I want to incorporate my function adjustColumns in my TableModel, and I need help...
         void adjustColumns()
         // Ajuste les colonnes aux donnes pour que tout soit visible
         int nbRow,nbCol;
         nbRow = JTable1.getRowCount();
         nbCol = test.getColumnCount();
         for ( int i = 0; i < nbCol; i++ )
         com.sun.java.swing.table.TableColumn column = null;
         column = JTable1.getColumnModel().getColumn(i);
         int dataLength = 0;
         for ( int j = 0; j< nbRow; j++ )
         FontMetrics fm;
         int dataLengthTmp;
         String valueTable;
         fm = JTable1.getFontMetrics(JTable1.getFont());
         if ( test.getValueAt(j, i) == null )
         System.out.println("Valeur nulle...");
         dataLengthTmp = 0;
         else
         valueTable = test.getValueAt(j, i).toString();
         dataLengthTmp = fm.stringWidth(valueTable);
         System.out.println(valueTable + " = " + dataLengthTmp);
         if ( dataLengthTmp > dataLength )
         dataLength = dataLengthTmp;
         if ( dataLength != 0 )
    column.setWidth(dataLength + 5);
    else
    column.sizeWidthToFit();
    JTable1.setModel(test);
    JTable1.repaint();
    import java.util.Vector;
    import java.sql.*;
    import com.sun.java.swing.table.AbstractTableModel;
    import com.sun.java.swing.event.TableModelEvent;
    public class JDBCAdapter extends AbstractTableModel {
    Connection connection;
    Statement statement;
    ResultSet resultSet;
    String[] columnNames = {};
    Vector rows = new Vector();
    ResultSetMetaData metaData;
    public JDBCAdapter(String url, String driverName,
    String user, String passwd) {
    try {
    Class.forName(driverName);
    System.out.println("Ouverture de la connexion a la base de donnee...");
    connection = DriverManager.getConnection(url, user, passwd);
    statement = connection.createStatement();
    catch (ClassNotFoundException ex) {
    System.err.println("Cannot find the database driver classes.");
    System.err.println(ex);
    catch (SQLException ex) {
    System.err.println("Cannot connect to this database.");
    System.err.println(ex);
    public void executeQuery(String query) {
    if (connection == null || statement == null) {
    System.err.println("There is no database to execute the query.");
    return;
    try {
    resultSet = statement.executeQuery(query);
    metaData = resultSet.getMetaData();
    int numberOfColumns = metaData.getColumnCount();
    columnNames = new String[numberOfColumns];
    // Get the column names and cache them.
    // Then we can close the connection.
    for(int column = 0; column < numberOfColumns; column++) {
    columnNames[column] = metaData.getColumnLabel(column+1);
    // Get all rows.
    rows = new Vector();
    while (resultSet.next()) {
    Vector newRow = new Vector();
    for (int i = 1; i <= getColumnCount(); i++) {
    newRow.addElement(resultSet.getObject(i));
    rows.addElement(newRow);
    // close(); Need to copy the metaData, bug in jdbc:odbc driver.
    fireTableChanged(null); // Tell the listeners a new table has arrived.
    catch (SQLException ex) {
    System.err.println(ex+" query = "+query);
    public void executeUpdate(String query) {
    if (connection == null || statement == null) {
    System.err.println("There is no database to execute the query.");
    return;
    try {
    statement.executeUpdate(query);
    // close(); Need to copy the metaData, bug in jdbc:odbc driver.
    fireTableChanged(null); // Tell the listeners a new table has arrived.
    catch (SQLException ex) {
    System.err.println(ex+" query = "+query);
    public void close() throws SQLException {
    System.out.println("Fermeture de la connection a la base de donnee... Bye !");
    resultSet.close();
    statement.close();
    connection.close();
    protected void finalize() throws Throwable {
    close();
    super.finalize();
    // Implementation of the TableModel Interface
    // MetaData
    public String getColumnName(int column) {
    if (columnNames[column] != null) {
    return columnNames[column];
    } else {
    return "";
    public Class getColumnClass(int column) {
    int type;
    try {
    type = metaData.getColumnType(column+1);
    catch (SQLException e) {
    return super.getColumnClass(column);
    switch(type) {
    case Types.CHAR:
    case Types.VARCHAR:
    case Types.LONGVARCHAR:
    return String.class;
    case Types.BIT:
    return Boolean.class;
    case Types.TINYINT:
    case Types.SMALLINT:
    case Types.INTEGER:
    return Integer.class;
    case Types.BIGINT:
    return Long.class;
    case Types.FLOAT:
    case Types.DOUBLE:
    return Double.class;
    case Types.DATE:
    return java.sql.Date.class;
    default:
    return Object.class;
    public boolean isCellEditable(int row, int column) {
    try {
    return metaData.isWritable(column+1);
    catch (SQLException e) {
    return false;
    public int getColumnCount() {
    return columnNames.length;
    // Data methods
    public int getRowCount() {
    return rows.size();
    public Object getValueAt(int aRow, int aColumn) {
    Vector row = (Vector)rows.elementAt(aRow);
    return row.elementAt(aColumn);
    public String dbRepresentation(int column, Object value) {
    int type;
    if (value == null) {
    return "null";
    try {
    type = metaData.getColumnType(column+1);
    catch (SQLException e) {
    return value.toString();
    switch(type) {
    case Types.INTEGER:
    case Types.DOUBLE:
    case Types.FLOAT:
    return value.toString();
    case Types.BIT:
    return ((Boolean)value).booleanValue() ? "1" : "0";
    case Types.DATE:
    return value.toString(); // This will need some conversion.
    default:
    return "\""+value.toString()+"\"";
    public void setValueAt(Object value, int row, int column) {
    try {
    String tableName = metaData.getTableName(column+1);
    // Some of the drivers seem buggy, tableName should not be null.
    if (tableName == null) {
    System.out.println("Table name returned null.");
    String columnName = getColumnName(column);
    String query =
    "update "+tableName+
    " set "+columnName+" = "+dbRepresentation(column, value)+
    " where ";
    // We don't have a model of the schema so we don't know the
    // primary keys or which columns to lock on. To demonstrate
    // that editing is possible, we'll just lock on everything.
    for(int col = 0; col<getColumnCount(); col++) {
    String colName = getColumnName(col);
    if (colName.equals("")) {
    continue;
    if (col != 0) {
    query = query + " and ";
    query = query + colName +" = "+
    dbRepresentation(col, getValueAt(row, col));
    System.out.println(query);
    System.out.println("Not sending update to database");
    // statement.executeQuery(query);
    catch (SQLException e) {
    // e.printStackTrace();
    System.err.println("Update failed");
    Vector dataRow = (Vector)rows.elementAt(row);
    dataRow.setElementAt(value, column);
    Thanks to help me.

    Hi,
    OK. I have read your code sample again. It looks like the JDBCAdapter class is reloading table data in the executeQuery method. Why not call adjustColumns at the end of this method after the new rows and columns are loaded? Perhaps it also should be called at the end of executeUpdate. Have you tried doing that?
    I would still set
    JTable1.setAutoCreateColumnsFromModel (false); to prevent Java from readjusting the size automatically at some other time.
    regards,
    Terry

  • Help needed configuring Tomcat 4.1

    Hi there,
    I hope that someone can help me out with this problem!!
    I am having problems running my applications on Tomcat 4.1 (on Win XP, j2sdk1.4.1, j2sdkee1.4) each time i try to run a JSP page that uses JavaBeans i get an 'unable to compile class for JSP' error. I am guessing that tomcat is unable to recognise my JavaBean package (which is stored in the normal place, under WEB-INF/classes)
    Now, I know that i have my environment variables set up correctly, as the example jsps packaged with tomcat work fine.
    From reading previous posts i guess that the problem is my Tomcat configuration, probably server.xml. So, my question is: do i have to configure server.xml manually for each application that i set up? If so, how do i do this? If not, does anyone have any ideas as to what the problem, may be?
    Many thanks in advance for your help!!

    It sounds like you may need to add the bean to your classpath so that the compiler can find it. The classpath's function is simply to let the compiler know where your classes are located.

  • Please help me start Tomcat

    hi,
    Im really struggling here. This is very frustrating. I need to write code and be able to test it, not just read read read from a book. I went to:
    http://tomcat.apache.org/tomcat-5.0-doc/setup.html,
    and that never helped.
    I just dont know how to get it up and running. Please help someone.

    I just dont know how to get it up and running. And what's the problem ?
    Which error messages do you get ?
    What does the log file say?
    The usual way to get tomcat running is:
    - Unpack the downloaded tomcat archive.
    - if necessary set the environment variables JAVA_HOME, CATALINA_HOME
    - look into the $CATALINA_HOME/conf directory and check if a server.xml exists
    - if necessary rename one of the server-*.xml files into server.xml
    - in a command shell run "catalina.bat (or .sh) run" or even tomcat.exe
    - try to access the default or jsp-examples pages
    - if that works
    - create a war file from your project
    - put the war file into the directory $CATALINA_HOME/webapps
    - to be sure restart tomcat.
    - try to access your start page.

  • Help! My tomcat can't startup?

    hi, guys:
    when I execute the tomcat.bat. The prompt shows
    Including all jars in C:\jdk13\tomcat\lib in your CLASSPATH.
    Out of environment space
    Using CLASSPATH: C:\jdk13\tomcat\classes;.;C:\jdk13\lib\*.jar;c:\jdk13\lib\class
    es111.zip;c:\jdk13\lib\tools.jar
    Bad command or file name
    Out of environment space
    Out of environment space
    Including all jars in C:\jdk13\tomcat\lib in your CLASSPATH.
    Out of environment space
    Out of environment space
    Using CLASSPATH: C:\jdk13\tomcat\classes;C:\jdk13\tomcat\classes;.;C:\jdk13\lib\
    *.jar;c:\jdk13\lib\classes111.zip;c:\jdk13\lib\tools.jar
    Out of environment space
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/jasper/Jsp
    C
    How can I correct this problem? My working environment is Windows ME. Thanks a lot. bye
    Regards

    To correct the environment space error you must do the following:
    1.Locate the tomcat.bat and startup.bat files
    2.Right click on tomcat.bat
    3.Select properties
    4.Choose the memory tab
    5.In the conventional memory section use the initial environment dropdown and set it to 2816 (or higher)
    6. Apply changes
    7.Repeat for startup.bat
    Also make sure that the tomcat_home and java_home variables are set correctly
    Hope this helps
    Chelman

  • Help me about tomcat 4.1

    My tomcat start with "org.xml.sax.SAXParseException: The content of element type "web-app" must match........."
    when i try to test a jsp file , the follow msg given to me :
    HTTP Status 500 -
    msg description : The server encountered an internal error () that prevented it from fulfilling this request.
    exception:
    javax.servlet.ServletException: com/sun/tools/javac/Main (Unsupported major.minor version 48.0)
    root cause
    java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main (Unsupported major.minor version 48.0)
    my jdk is 1.31,and win2k os ,who can help me ! thanks advance.

    This problem is due to classpath is picking up of the required files. Copy the tools.jar and other requried files into lib folder of <tomcat-installation> dir. Also check the JDK version required for tomcat 4.1. Update your env varibales ie., JAVA_HOME.

Maybe you are looking for

  • Text Import Options Menu Box

    I recently created a deck of cards in Illustrator for a design show. All the elements were created in Illustrator CS4 in different files. I started a new file and put the cards together printed and saved my file as usual. a week later I tried to open

  • Updates to aliases seems not to be taken into account

    Hello, After having re-installed my email server on a macosx server snow leopard leopard, I tried to setup again my use emails accounts by modifying the aliases files, re-generate the aliases.db file, restarting the email service. Initially, I have a

  • Question on Interactive report on Apex 4.1

    Hello I have a page that I am linking with an interactive report. To the second page I need to pass the filters that is/are chosen in the interactive report. How do I access the filters that are created in the interactive report at run time? Is there

  • Issue with Java applet

    I am having issues with an "inactive plug-in" message in Safari when I want to do something using a Java plug-in.  I searched the communities and sure enough, when I opened Java preferences the box next to "enable applet plug-in and Web Start applica

  • Email Server Problems

    I've been using Outlook Express as my preferred Email Portal for 25+ years without any connectivity problems, even when I was using dial-in. I've been with BT as my ISP since returning to the UK in 2001 and over the last 18 moths have been experienci