Problem getting JSP examples to work

Hi,
I just installed weblogic few days back. I'm trying to run the jsp examples.
I cannot get them work. I keep getting 404 object not found error when I try
an url like
http://localhost:7004/examplesWebApp/HellowWorld.jsp
. I followed the docs and run the scripts.
There is a HellowWorld.jsp file under
.\bea\wlserver\config\examples\applications\defaultWebApp.
Also I can run petstore fine or hellowworld works with default server.
But when I cannot get it tow work with exampleserver
Any pointer to debug is greatly appreciated.
There was a 'servlet mapping' error in hte xml parsing in the weblogic.xml file
which come with istallaiton for the example.
Anyone experienced that.
thanks

if you put the HellowWorld.jsp under
\bea\wlserver\config\examples\applications\defaultWebApp. that means you
have it under default webapp, then your url should be:
http://localhost:7004/HellowWorld.jsp
The url pattern should be http://server:port/webappName/filename.jsp
thanks
"b gosh" <[email protected]> wrote in message
news:[email protected]..
>
Hi,
I just installed weblogic few days back. I'm trying to run the jspexamples.
I cannot get them work. I keep getting 404 object not found error when Itry
an url like
http://localhost:7004/examplesWebApp/HellowWorld.jsp
I followed the docs and run the scripts.
There is a HellowWorld.jsp file under
\bea\wlserver\config\examples\applications\defaultWebApp.
Also I can run petstore fine or hellowworld works with default server.
But when I cannot get it tow work with exampleserver
Any pointer to debug is greatly appreciated.
There was a 'servlet mapping' error in hte xml parsing in the weblogic.xmlfile
which come with istallaiton for the example.
Anyone experienced that.
thanks

Similar Messages

  • I am having horrible problems getting some examples to work

    I am trying to get a couple examples to work from out of Java Examples in a Nutshell, but they are programmed oddly and will not work. I am using a windows 2000 platform with JDK 1.3.1 installed and working properly.
    I have so far typed in these 2 examples:
    import javax.swing.*;
    import java.awt.*;
    public class Containers extends JPanel
    { public Containers()
    { this.setBackground(Color.white);
    this.setFont(new Font("Dialog", Font.BOLD,24));
    JPanel p1 = new JPanel();
    p1.setBackground(new Color(200, 200, 200)); // Panel1 is darker
    this.add(p1); //p1 is contained by this component
    p1.add(new JButton("#1")); //Button 1 is contained in p1
    JPanel p2 = new JPanel();
    p2.setBackground(new Color(150,150,150)); // p2 is darker than p1
    p1.add(p2); // p2 is contained in p1
    p2.add(new JButton("#2")); // button 2 is contained in p2
    JPanel p3 = new JPanel();
    p3.setBackground(new Color(100,100,100));
    p2.add(p3); // p3 is contained in p2
    p3.add(new JButton("#3")); // button 3 is contained in p3
    JPanel p4 = new JPanel();
    p4.setBackground(new Color(150,150,150));
    p1.add(p4);
    p4.add(new JButton("#4")); //button 4 is contained in p4
    p4.add(new JButton("#5")); //Button 5 is also contained in p4
    this.add(new JButton("#6")); // button 6 is contained in this component
    And this program
    //ShowComponent.java
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.beans.*;
    import java.lang.reflect.*;
    import java.util.Vector;
    public class ShowComponent extends JPanel
    public static void main(String[] args)
    {  // process the command line to get the compenents to display
    Vector components = getComponentsFromArgs(args);
    // Create a frame (Window) to display the components to display
    JFrame frame = new JFrame("ShowComponent");
    // Handle window close requests by exiting the VM
    frame.addWindowListener(new WindowAdapter() { //anonymous inner class
    public void WindowClosing(WindowEvent e) { System.exit(0); }
    // set up a menu system that allows the user to select the Look And Feel
    // of the component from a list of installed PLAF's
    JMenuBar menubar = new JMenuBar(); // create a menu bar
    frame.setJMenuBar(menubar); // tell the frame to display the menubar
    JMenu plafmenu = createPlafMenu(frame); // create a menu
    menubar.add(plafmenu); // Add the menu to the menubar
    // Create a JTabbedPane to display each of the components
    JTabbedPane pane = new JTabbedPane();
    // Now add each component as a tab of the tabbed pane
    // use the unqualified component classname as the tab text
    for(int i = 0; i < components.size(); i++)
    { Component c = (Component)components.elementAt(i);
    String classname = c.getClass().getName();
    String tabname = classname.substring(classname.lastIndexOf('.')+1);
    pane.addTab(tabname,c);
    // Add the tabbedpane to the frame. Note: the call to getContentPane()
    // This is required for JFrame, but not for most swing components
    frame.getContentPane().add(pane);
    // Set the frame size and pop it up
    frame.pack(); //Make the frame as big as its children need
    frame.setVisible(true); // Make the frame visible on the screen
    // The main() method exits now but the Java VM keeps running because
    // all AWT programs automatically start an event-handling thread.
    //** this static method queries the system to find out what **
    //** Pluggable LookAndFeel (PLAF) implementations are available **
    //** then it creates a JMenu component that lists each of the **
    //** implementations by name and allows the user to select one **
    //** of them using JRadioButtonMenuItem components. When the **
    //** user selects one, the selected menu item traverses the **
    //** component hierarchy and tells all components to use the new**
    //** PLAF. **
    public static JMenu createPlafMenu(final JFrame frame)
    { //Creates the menu
    JMenu plafmenu = new JMenu("Look and Feel");
    // Create an object used for radio button mutual exclusion
    ButtonGroup radiogroup = new ButtonGroup();
    //Look up the available look and feels
    UIManager.LookAndFeelInfo[] plafs = UIManager.getInstalledLookAndFeels();
    //Loop through the plafs, add a menu item for each one
    for(int i = 0; i < plafs.length; i++)
    { String plafName = plafs[i].getName();
    final String plafClassName = plafs.getClassName();
    // Create the menu items
    JMenuItem item = plafmenu.add(new JRadioButtonMenuItem(plafName));
    // tell the menu item what to do when it is selected
    item.addActionListener(new ActionListener()
    { public void actionPerformed(ActionEvent e)
    { try
    { // Set the new Look And Feel
    UIManager.setLookAndFeel(plafClassName);
    // tell each component to change its look and feel
    SwingUtilities.updateComponentTreeUI(frame);
    //tell the frame to resize itsself to its childrens
    // new desired services
    frame.pack();
    catch(Exception ex) {System.err.println(ex);
    // Only allow one menu item to be selected at once
    radiogroup.add(item);
    return plafmenu;
    //** this method loops through the command line arguements looking for **
    //** class names of components to create and property settings for those**
    //** components in the form name=value. this method demonstrates **
    //** reflection and JavaBeans introspection as they can be aplied to **
    //** dynamically created GUI's **
    public static Vector getComponentsFromArgs(String[] args)
    { Vector components = new Vector();  // List of Components to return
    Component component = null; // the current component
    PropertyDescriptor[] properties = null; // Properties of the component
    Object[] methodArgs = new Object[1]; // we'll use this below
    nextarg: // this is a labeled loop
    for (int i = 0; i < args.length; i++)
    { // loop through all the arguments
    // if the argument does not contain an equal sign, then
    // it is a component class name. Otherwise it is a
    // property setting
    int equalsPos = args[i].indexOf('=');
    if (equalsPos == -1)
    { // Its the name of a component
    try { //Load the named component class
    Class componentClass = Class.forName(args[i]);
    //Instantiate it to create the component instance
    component = ((Component)componentClass.newInstance());
    //Use Java beans to introspect the component
    //And get the list of properties it supports
    BeanInfo componentBeanInfo = Introspector.getBeanInfo(componentClass);
    properties = componentBeanInfo.getPropertyDescriptors();
    catch (Exception e)
    { // If an step failed, print an error and exit
    System.out.println("Can't load, instantiate, " +
    "or introspect: " +args[i]);
    System.exit(1);
    //If we succeeded, store the component in the vector
    components.addElement(component);
    else { // the arg is a name=value property specification
    String name = args[i].substring(0, equalsPos); //property name
    String value = args[i].substring(equalsPos+1); //property value
    // If we do not hava component to set this proerty on, skip!
    if (component == null) continue nextarg;
    // Now look through the properties descriptors for this
    // Component to find one with the same name
    for(int p = 0; p < properties.length; p++)
    { if (properties[p].getName().equals(name))
    { // okay, we found a property of the right name
    // now to get its type, and the setter method
    Class type = properties[p].getPropertyType();
    Method setter = properties[p].getWriteMethod();
    //check if property is read- only !
    if (setter == null)
    { System.err.println("Property " + name+ "is read-only");
    continue nextarg; // continue with the next arguement
    // try to convert the property value to the right type
    // we support a small set of common property types here
    // Store the converted value in an object[] so it can
    //be easily passed when we invoke the property setter
    try { if (type == String.class)
    { // no conversion needed
    methodArgs[0] = value;
    else if (type == int.class)
    { // String to int
    methodArgs[0] = Integer.valueOf(value);
    else if (type == boolean.class)
    { //to boolean
    methodArgs[0] = Boolean.valueOf(value);
    else if (type == Color.class)
    { // to Color
    methodArgs[0] = Color.decode(value);
    else if (type == Font.class)
    { // String to Font
    methodArgs[0] = Font.decode(value);
    else { // if we cannotconvert, ignore the proprty
    System.err.println("Property " + name+ " is of unsupported type "
    + type.getName());
    continue nextarg;
    catch (Exception e)
    { System.err.println("Can't set Property: " + name);
    // NOw go to next command-line arg
    continue nextarg;
    // If we get here we didn't find the named property
    System.err.println("Warning: No such property: " + name);
    return components;
    //** A component subclass that demonstrates nested containers and components.
    //** It creates the hierarchy shown below, and uses different colors to
    //** distinguish the different nesting levels of the containers
    //** containers---panel1----button1
    //** | |---panel2----button2
    //** | | |----panel3----button3
    //** | |------panel40---button4
    //** | |---button5
    //** |---button6
    They both compile fine but when I go to run them together I get an error. the command given in the book to run them both together is:
    java ShowComponent\Containers
    But it does not work. I also tried to append Containers to the bottom of ShowComponent and I got an error that said public class Containers extends JPanel needs to have its own file called Containers.java . . I do not understand that as the file was named correctly for ShowComponent.java. I need to knw either what the true command is for running the programs together or what to name container.java that will make it run inside of ShowContainer.java
    this is very frustrating as I need to know these answers for work and no one here in the IT department knows how to program in Java but me

    Hi,
    I tried the example and got some weird error messages as follows:
    ********* error messages*********
    ShowComponent.java:90: cannot resolve symbol
    symbol : method getName ()
    location: class javax.swing.UIManager.LookAndFeelInfo[]
    { String plafName = plafs.getName();
    ^
    ShowComponent.java:91: cannot resolve symbol
    symbol : method getClassName ()
    location: class javax.swing.UIManager.LookAndFeelInfo[]
    final String plafClassName = plafs.getClassName();
    ^
    ShowComponent.java:139: cannot resolve symbol
    symbol : method indexOf (char)
    location: class java.lang.String[]
    int equalsPos = args.indexOf('=');
    ^
    ShowComponent.java:143: cannot resolve symbol
    symbol : method forName (java.lang.String[])
    location: class java.lang.Class
    Class componentClass = Class.forName(args);
    ^
    ShowComponent.java:161: cannot resolve symbol
    symbol : method substring (int,int)
    location: class java.lang.String[]
    String name = args.substring(0, equalsPos); //property name
    ^
    ShowComponent.java:162: cannot resolve symbol
    symbol : method substring (int)
    location: class java.lang.String[]
    String value = args.substring(equalsPos+1); //property value
    ^
    6 errors.
    *****end of error messages*****
    I use jdk1.3 and Win2000. Can anybody tell me how to delete above error messages?
    Thanks a lot.
    Li

  • Having a real problem getting my vi to work - great difficulty running sequence as desired

    Hi
    I am have a real problem getting my vi to work as required.
    I would like the my vi (EXAMPLE.vi in the vi library attached) to run continuously.  It should update the graphs on the front pannel and also save data to file when requested using the  save data to file button. (I have written a sub vi. to deal with this data handling and file saving which run in two while loops with the vi as can be seen on inspection of the block diagram)
    Now, what I would like is for the updating to pause whenever I change any of the settings on the front panel (which are controls in the first half of the sequence of the vi) so the hardware is reset.  As it is at the moment I have to stop the vi to change the front panel settings and then restart it in order for the first part of the sequence to run and re-set the values on the hardware.
    I guess I need to use some kind of event driven programming an event stucture or something like that. This is quite advanced and I don't know how to implement it. 
    Can anybody offer any Ideas. 
    Many many thanks
    Ashley
    Attachments:
    test library.llb ‏470 KB

    Hi,
    If you are new to event structures then you may find the following tutorial useful:
    Event-Driven Programming in LabVIEW
    http://zone.ni.com/devzone/conceptd.nsf/webmain/E5F8474BDA20C97786256B5A0066968B?opendocument
    A powerful New Tool for UI Programming--User Interface Event Programming
    http://zone.ni.com/devzone/conceptd.nsf/webmain/2a8ab43b28bbde1086256b830059875c
    Advanced Event Handling with LabVIEW 7 Express
    http://zone.ni.com/devzone/conceptd.nsf/webmain/aa79ff38336eb38886256d2b004aca49#1
    I hope this helps
    All the best
    Kurt

  • Hello, i am having problems getting face time to work, I keep getting an error message saying the server could not process the registration, I am using the username and password I always have and it has always worked in the past, any ideas?

    Hello, i am having problems getting face time to work, I keep getting an error message saying the server could not process the registration, I am using the username and password I always have and it has always worked in the past, any ideas?

    We aren't Apple, just users like you volunteering to help other users with problems. Threatening to go to Samsung doesn't mean anything to us. What troubleshooting have you tried so far?

  • JSP examples not working

    I've recently installed 9iAS release 2 on a windows 2000 machine. It all seems to be working, except for the JSP examples. When I try the standard sun JSPs, I get the following type of message:
    java.io.FileNotFoundException: d:\midtier\apache\apache\htdocs\j2ee\examples\jsp\colors\colrs.jsp (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.(FileInputStream.java:64)
         at oracle.jsp.provider.JspFilesystemResource.fromStream(JspFilesystemResource.java:153)
         at oracle.jsp.provider.JspFilesystemResource.fromReader(JspFilesystemResource.java:169)
         at oracle.jsp.app.JspAppLoader.fromReader(JspAppLoader.java:2013)
         at oracle.jsp.app.JspAppLoader.reloadPage(JspAppLoader.java:1246)
         at oracle.jsp.app.JspAppLoader.loadPage(JspAppLoader.java:1141)
         at oracle.jsp.app.JspAppLoader.getPage(JspAppLoader.java:797)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:368)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:265)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:184)
         at oracle.jsp.JspServlet.service(JspServlet.java:154)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:500)
         at org.apache.jserv.JServConnection.run(JServConnection.java:321)
         at java.lang.Thread.run(Thread.java:484)
    Anyone have any idea why this is occurring? Does it have anything to do with installing the November PDK for Portal and uncommenting the line in httpd.conf about jserv.conf?
    Carey

    Yes, you are right. By default, Apache JServ is disabled in ORacle 9iAS Release 2 installation. but since you uncommented the two lines, now jserv is active and will try to serve all JSP request intead of the defualt OC4J. Comment the two line again. (please use the EM to do this and do not comment the lines using a text editor.)
    You may require to restart.
    Shyam Ellur

  • Problem getting custom workflow to work with BPEL Worklist

    I am currently working through the DocumentReviewWorklow custom workflow example in the Oracle Content Services 10g Custom Workflows document and cannot get the workflow to prompt approvers through the BPEL Worklist application that an action must be taken.
    When I run the workflow, the process gets to the point of calling the TaskActionHandler and the approver is told that a process is pending their approval in the Content Services Console.
    The following appears in the BPEL Process Manager when I Audit the workflow:
    onMessage (137) - pending
    [2006/03/20 08:57:42] Waiting for message from "TaskManagerService", operation is "onTaskSuspended".
    onMessage (126) - pending
    [2006/03/20 08:57:42] Waiting for message from "TaskManagerService", operation is "onTaskUpdated".
    onMessage (118) - pending
    [2006/03/20 08:57:42] Waiting for message from "TaskManagerService", operation is "onTaskErrored".
    onMessage (110) - pending
    [2006/03/20 08:57:42] Waiting for message from "TaskManagerService", operation is "onTaskWithdrawn".
    onMessage (102) - pending
    [2006/03/20 08:57:42] Waiting for message from "TaskManagerService", operation is "onTaskCompleted".
    onAlarm (161) - pending
    [2006/03/20 08:57:42] Alarm started. Alarm will go off at time "2006/03/22 08:57:42".
    onAlarm (156) - pending
    [2006/03/20 08:57:42] Alarm started. Alarm will go off at time "never".
    onAlarm (151) - pending
    [2006/03/20 08:57:42] Alarm started. Alarm will go off at time "never".
    After a period of time, the workflow eventually times-out because it is neither approved or disapproved. I have got the other non-blocking custom workflow examples to work without any problems.

    Thanks bnainani, you solved my problem!
    Despite the fact that the approver's username is in the Oracle Collabortion Suite OID as all lower case letters (and you can still login to worklist with lower case letters), you were right in saying that you have to use all upper case letters when logging into the worklist application in order to see the pending tasks.
    Just out of curiousity, do you have any idea why worklist requires upper case letters for the username?
    Message was edited by:
    middaymag
    Message was edited by:
    middaymag

  • Can not get JSP examples to run

    I am able to use the example servlets, but I can not get the JSP examples to run. I get the error listed at the end of this message.
    I am using jdk1.3.x and TOMCAT Version 3.2.3
    Here is my classpath
    .;C:\jdk1.3\jre\lib\rt.jar;c:\jdk1.3\lib\tools.jar;C:\jakarta-tomcat\webapps\privilegesparadox;C:\jdk1.3jre\lib\ext\XML4J.JAR;C:\jdk1.3\jre\lib\ext\mm.mysql-2.0.4-bin.jar;C:\jdk1.3jre\lib\ext\mssqlserver.jar;C:\jdk1.3\jre\lib\ext\mail.jar;C:\jdk1.3jre\lib\ext\activation.jar;C:\Netscape\Servers\java\ldapjdk.jar
    I am running this on win2000. I have done several years of servlet work and now am needing to do JSP stuff. I can not get the examples to run... so any of my test stuff does not work either.
    Error: 500
    Location: /examples/jsp/dates/date.jsp
    Internal Servlet Error:
    javax.servlet.ServletException: sun/tools/javac/Main
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)
    Root cause:
    java.lang.NoClassDefFoundError: sun/tools/javac/Main
         at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
         at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
         at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)

    I don't get it... I have been using jdk 1.3.x for sometime... a year now. All seems fine with servlets and java applications I have created. What could be not there if all of this works?
    If reinstall the jdk over top of where is is now, would that be of any help? I will copy my /ext jar files to a temp area first so I can keep my jar files.
    Dean-O

  • Problem getting (ALT key) to work in Flash

    Hi All,
    I hope there is somebody who can help me with the following issue:
    I can not get ALT key to work in Flash, if I want to use it in combination with other keys nor I can use it alone.
    For example, I have created an application which requires the usage of (ALT+F) in order to access certain thing, This does not seem to fire the key event.
    however if i use the same thing with (CTRL+F) or (SHIFT+F), it works fine.
    It is only ALT  which causes the key event not to fire.
    Is there a bug in Flash for using ALT key? Can anyone help me please?

    see here:
    http://forums.adobe.com/message/2127570

  • Can't get JSP debugging to work with WebLogic 6.0 and Eclipse 2.1.1

    Is native JSP debugging supported in WebLogic 6.0? If so, what are
              the steps involved in getting it to work? I'm in debug mode and my
              servlets will catch at my breakpoints but the JSP pages' breakpoints
              are ignored. I am using compliance level 1.3 and a JRE 1.3. I tried
              to start WebLogic with the 1.4.2 JRE but I get an exception error on
              the WLS JDK name" field. What am I missing here?
              Thanks!
              

    I appear to have solved it, but it is not clear to me why.
    I created a jar file of the required classes, and placed it in the same directory as the jsp file. My jsp code then looked like:
    <jsp:plugin type="applet" code="nz.astarte.ganttapplet.GanttApplet"
    codebase="."
    archive="GanttApplet.jar"
    jreversion="1.3.1"
    width="400" height="175">
    <jsp:fallback>
    Plugin support could not be determined
    </jsp:fallback>
    </jsp:plugin>
    This works fine. However I would expect to be able to move the jar file to some other directory, so that the jar file and jsp files are separated. I spent hours trying to work out why it wouldn't work when I had the jar
    file in WEB-INF/classes (under the jsp file directory) and had codebase="WEB-INF/classes/". In the end I put the jar file into a directory I defined separately called wotnot and defined codebase="wotnot/"
    Now it works. However I still think I should be able to have the jar file anywhere, including WEB-INF/classes and would love for someone to tell me why not!
    Thanks, Andrew

  • Can't get jsp:plugin to work with jb5

    I am trying to get a Swing applet compiled with JDK 1.3.1 to run on a jsp page using the <jsp:plugin> tag. At this stage it is a ridiculously simple applet (just some JLabels and JTextFields) but I can't get it to work. Here is the jsp code:
    <jsp:plugin type="applet" code="nz.astarte.ganttapplet.GanttApplet"
    codebase="./WEB-INF/classes" jreversion="1.3.1"
    width="400" height="175">
    <jsp:fallback>
    Plugin support could not be determined
    </jsp:fallback>
    </jsp:plugin>
    When I run it in the jb5 ide nothing shows up at all. OK, I figured the ide doesn't support the plugin, so leaving the ide running (which provides me with a web server) I go into IE (version 5) and enter the url to the page, which is http://localhost:8080/AppletCommunications/GanttApplet.jsp
    I get the page, and the gray box saying loading the applet but the plugin console tells me:
    load: class nz.astarte.ganttapplet.GanttApplet not found.
    java.lang.ClassNotFoundException: java.io.FileNotFoundException: http://localhost:8080/AppletCommunications/WEB-INF/classes/nz/astarte/ganttapplet/GanttApplet.class
    Why not? Under the directory where the jsp page is located is the directory structure WEB-INF/classes/nz/astarte/ganttapplet and in that directory is a GanttApplet.class file.
    I cannot understand why it isn't found. Do applets work with the jb5 ide? Is there something blindingly obvious that I've missed?
    Thanks, Andrew

    I appear to have solved it, but it is not clear to me why.
    I created a jar file of the required classes, and placed it in the same directory as the jsp file. My jsp code then looked like:
    <jsp:plugin type="applet" code="nz.astarte.ganttapplet.GanttApplet"
    codebase="."
    archive="GanttApplet.jar"
    jreversion="1.3.1"
    width="400" height="175">
    <jsp:fallback>
    Plugin support could not be determined
    </jsp:fallback>
    </jsp:plugin>
    This works fine. However I would expect to be able to move the jar file to some other directory, so that the jar file and jsp files are separated. I spent hours trying to work out why it wouldn't work when I had the jar
    file in WEB-INF/classes (under the jsp file directory) and had codebase="WEB-INF/classes/". In the end I put the jar file into a directory I defined separately called wotnot and defined codebase="wotnot/"
    Now it works. However I still think I should be able to have the jar file anywhere, including WEB-INF/classes and would love for someone to tell me why not!
    Thanks, Andrew

  • Problem getting PS "template" to work properly after slicing

    Hi guys,
    Just a heads up first, this is going to be a little long for two reasons: 1) I have a bad habit of being verbose  2) I'm going to explain exactly what my problem is and what steps I took to get there so everyone knows exactly what has been done so far.
    So, I decided to give my hand a try at designing a full page template purely in Photoshop (CS4 for PS and Dreamweaver). It worked out great, looks awesome... but I didn't know what to do next. I'm currently enrolled for Web Design & Interactive Media in college, but alas I just started 5.5 weeks ago. However, I do have a photoshop learning center and posted my problem to my professors. After some long discussion of my professor telling me to slice it and just save to web & devices, and me finally being able to get it click that doing this makes a bunch of tables out of the images, I had my first full graphic web template. Problem #1: I have not worked with tables since Dreamweaver was Macromedia Dreamweaver 8... eons ago it seems. So, after finally getting everything into an HTML document, where I felt more at home, I started to play around with the tables, trying to remember anything at all about them. My professor helpfully suggested nesting the tables... it was greek to me. However, we live in the internet age, so I googled it up.
    Now I have my images all in wonderfully organized tables, except for five of the images. This is the jpeg of the template. So, I was loving the template, and that is the photoshop .jpg I saved to show my girlfriend what it would end up looking like. After realizing that I had NO idea how to get the text over those specific area's while the "content boxes" were still in tables, I decided to throw in my puny skill in CSS. I made new slices, and sliced up the upper two sections for the content-title1 & content-title2 and then made 2 more new slices for content-left and content-right, then a fifth slice for the bottom of the rounded boxes content-footer. Now, I have used others' templates in the past such as this site but he was using familiar territory for me.. <div> tags. Ok, so anyway I have 4 new tables to throw in... one each for the content headers "News" and the "Welcome to Illuminati" parts, and then two other boxes for the actual content of each section. After trying to figure out how to nest tables, I gave it a shot and while in design mode, it actually works... except the navbar is slid out far to the right. And when I uploaded the site, not only is the navbar way out in deep right field, but my content-right table slid under content-left. You can see the end result here.
    What I need help on:
    If any kind soul could please take a look at my code and tell me exactly where I'm fubarring things up, I would greatly appreciate it!
    If said kind soul could show me how to fix said problems, I would appreciate it even more!!
    Lastly, on that Livengood Investments website, if you notice the bottom section where the "article of the week" and thumblist is, with that guys' template, as I add content to those sections, it grows down so that you never have gaps or spaces etc. That is why I cut the middle content boxes into two, so that I could add content without worry of having the gaps etc. I did notice though, that if one side is longer in text than the other (on my secondlife.lift4ullc.com/test2.html site) then the other side has a gap. I'm going to assume this is because with the Livengood-Investments site, that middle section is actually 1 background? I could do the same with the boxes on my site, make them 1 section instead of two, if only I knew how to have two separate tables over their individual box... thanks!
    Every guide or tutorial or video I have found on the net about nesting tables gives you a simple 2 column 5 row walk-through. Very nice, and handy in some cases I'm sure, but I can't see how that helps me at this particular moment. =( Thank you in advance everyone, for your patience while I rambled, and your help in this matter.
    Matt

    Wow, quick replies! I knew there was a reason I love the Adobe forums over my normal haunt at Web Designers Group (WDG)! ^.^ Although, in fairness to them, they've been helpful before as well. Now, on to the replies....
    @SnakeEyez02: PM coming your way, thank you so very much! With the www.livengood-investments site, what I did was google up "free web templates" and found that layout (different background, and some customization to it to make it fit the company etc) but it was almost purely CSS done. I would say I've been working with CSS in some form or fashion for roughly 2 years, but only within the last 1-2 months have I really sat down to try to learn CSS. Table layouts (for me) are a thing of the past, when everyone and your uncle had a geocities or some other website. Thank you for letting me know this is possible to do without all of the tables... that is a huge relief and load off of my shoulders. http://secondlife.lift4ullc.com was my "first run" test at the website you've seen, and I've already gone in detail over that code to see why I have the gaps in my logo/header/navbar area, because for some reason I changed the size of those div's that were larger than the images But, I tried out that CSS site before I learned about slicing in PS, so that is why the color scheme is so different. I left it as it is because I would rather have my nifty content boxes ;-) Ok, so I have the starter, and I'll step back and just save the images and not the images + html. From there I'll start designing the site with CSS and div tags instead of the dreaded tables. Like I said though, PM coming. Thank you in advance for the help, I hope I don't make it too difficult for you
    @Boss Yes, I just started college, but I'm 28 now and have been meddling in some form or fashion in web sites for nearly 15 years. I just decided in the past month or so to actually turn it from a "hobby" to something more serious with the hopes of actually making a career out of it. I agree with you that CSS design is better than tables. I hate tables, haven't used tables in many years, and CSS is just so much easier to tweak and read the code than a page full of table coding (as I've learned these last few days). I know I'll be learning some coding in my later courses (today was the end of my first term freshman year) such as PHP, JavaScript, and I *think* some C+/++. CSS, I'm not really sure on. I have no doubt though that I'll be able to bug my professors that teach the courses for CSS... they should be up to date with standards and coding. This professor is actually a Photoshop specialist, and while I'm sure he knows some HTML and CSS, probably not as much as a coder or web developer (as opposed to him being a graphics designer). Thank you very much for the tutorial link, I really do appreciate it. I love tutorials, but sometimes the search for a good tutorial can be almost as fustrating as trying to figure these stupid tables out LOL. However, as I mentioned above, now that I know I can, I am switching over to CSS with yours and SnakeEyez's suggestions. Thank you Boss!
    Matt

  • Problem getting wi-fi to work. please help me.

    Hi,
    In my home, I have AT&T/Bellsouth DSL internet service with a download speed of 1.5 megabits and a Belkin wireless router. I have never had any problems whatsoever in getting any device to work with the network. I currently use two laptop computers, and stream Sirius internet radio over it. Well now with my new iPhone, it doesn't work on my network at all. I can connect my iphone to my network, it shows that I'm connected with a strong signal with all 3 bars on the icon on the screen, though I get zero internet usage with the phone. I went to the Apple Store yesterday and it connected to their network just fine and I had blazing speed, so I know that there doesn't seem to be anything wrong with my iPhone. Would someone please help me? I would greatly appreciate it.
    Thanks,
    Harbeth
    iMac G5 & BlackBook Mac OS X (10.4.10)

    Okay, I now have a solution. I found this information in another thread. I implemented it, and now my iPhone works on my network.
    "After reading many posts with many helpful suggestions:
    I was able to make my iphone work on my home wirless connection by choosing from the main screen
    "settings" then "Wi-fi" then under "Choose a Network" I selected my home network (Belkin) (little blue arrow at the end) then under "IP Address" I chose the "static" button clicked on the "DNS" numbers and entered the the DNS addresses of my router as shown on the summary page when I logged on to my router from my home computer. As for how to log on to your router and find your DNS addresses refer to your router documentation. I tried many of the other solutions and this is so far the only way I could get a connection to actually work. It would always show the strong network signal on my phone but would not be able to connect to the internet and find the server. Like some others who have posted, until this solution I was able to borrow a connection from my neighbor with no problems but his router was a linksys. Hopefully Apple will be patching up all these issues soon.
    I have no idea if this solution is permanent or even a good idea but it worked for me. Your mileage may vary. I do love the phone."
    Thanks to everyone for responding.
    Happy iPhoning,
    Harbeth
    iMac G5 & BlacBook

  • Problem Getting An Applet To Work

    Hi,
    I hope there is someone out there that can help me with this problem.
    I'm trying to get an applet to work inside of IE6 and I'm getting the following error message via Java Console,
    Error loading class: demo
    java.lang.ClassFormatError
    java.lang.ClassNotFoundException: demo
         at com/ms/vm/loader/URLClassLoader.loadClass
         at com/ms/vm/loader/URLClassLoader.loadClass
         at com/ms/applet/AppletPanel.processSentEvent
         at com/ms/applet/AppletPanel.processSentEvent
         at com/ms/applet/AppletPanel.run
         at java/lang/Thread.run
    The java code is as follows,
    import java.applet.*;
    import java.awt.*;
    public class demo extends Applet {
    public void init() {
    public void paint(Graphics g) {
    g.drawString("Hello World", 50, 50);
    And the html (demo.htm) is
    <html>
    <head>
    </head>
    <body bgcolor="#00DCFF">
    <applet name="demo" code="demo.class" width="300" height="200">
    </applet>
    </body>
    </html>
    Both demo.htm and demo.class are both in the same directory. I used the Sun Java SDK version 1.4.1 to produce the class.
    I can get it to work if I enable
    Java (Sun)
    Use Java 2 v1.4.1 for applet
    within the Advanced options of IE6, but I don't want to have to force the user to have to either load the the SDK or the plug-in (by using OBJECT/EMBED) due to their size.
    thanks in advance,
    Wayne

    >
    Error loading class: demo
    java.lang.ClassFormatError
    java.lang.ClassNotFoundException: demoIf you load it into Netscape it'll work fine - I cant see any errors with ur code. Have u tried it in the appletviewer?

  • Problems getting e-mac to work with AEBS.

    I have been having some major problems getting connected to our network. We have most of our e-macs connected to the network via AEBS. The AEBS unit is connected by an ethernet connection. I have been trying to get connection to one of our computers for some time now, without any luck. Last night I finally had some connection, but was still unable to connect to the Internet. I was able to see some of the other base stations in the airport admin utility. I don't know what I did any different though to get the base station to recognize other base stations. I am really at a loss as to what to do to get connection.
    I have noticed that under system preferences, when I try to use DHCP, I am given a self-assigned ip address. I can put the ip address in manually. I also put the router in manually.
    I guess one of my questions would be how should I set up the base station and how should I set up the e-mac DHCP services? I currently have DHCP set up on the e-mac using Airport. I have the base station set up with the ethernet connection plugged into the LAN connector. This is the way that our other computers seem to be set up.
    I have heard talk about setting up WDS on the base station, but none of the other computers are set up this way and still receive connection to the Internet. If I were to set up WDS, what would I need to do? I still would like to connect by using ethernet connection to the base station.

    I have the aebs connected via an ethernet connection.
    OK, that is different that what I understood from your previous posts.
    I have the ethernet connection plugged into the LAN port on the back of the aebs.
    That is OK if there is another router on your network providing IP addresses AND this AEBS is configured so that the option to distribute IP addresses is DISABLED.
    Otherwise, it should be plugged into the WAN port.
    ...so should I have the e-mac set up using Airport to get connection to the aebs?
    The eMac should be set to use AirPort and DHCP to get an IP address.

  • Having problems getting Comcast internet to work with my power Mac running 10.5.8  Help needed

    Just got Comcast Cable and everything works: phone, WiFi, and TV, BUT ethernet won;t work with my power mac tower running 10.5.8 . Hooked modem to laptop running Microsoft and no problem, but it won't work with my Mac.  Any solutions out there?

    Hi, see if this changes anything...
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.5, 10.6, 10.7 & 10.8…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x/10.8.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    If using Wifi/Airport...
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.
    For 10.5/10.6/10.7/10.8, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
    208.67.222.222
    208.67.220.220
    (There may be better or faster DNS numbers in your area, but these should be a good test).
    Click OK.

Maybe you are looking for

  • Issue in mail trigerring and saving data in backend(HCM Processes and Forms

    Friends,      I am facing problem in workflow with HCM... Tell me what is the use of TS17900100 Process form.. After this TS17900100 task i have email step that telling 'Data has been updated successfully' but i haven't wriiten any activity after TS1

  • Basic Java - On file name

    if a java class is not a public class, we need not want to give its class name as file name. why ..... ? Kindly answer...

  • Joined Network but Self-Assigned IP from ethernet.

    I am trying to use my previous generation Airport Extreme to act as a wireless switch for my PS3 that can't seem to find my network up in my room. I managed to get the airport to join the netowork of my Netgear WNDR3400. Connecting through wifi is fi

  • FCP isn't playing nice with my camera

    I'm having problems getting FCP to communicate with my mini DV camera. (I have both a Canon ZR70 and a Canon ZR80 . . .this problem applies to both of them.) I'm trying to capture video, but things aren't working as they usually do. -The camera is ho

  • Unable to publish iCal

    Hi folks, When trying to publish one of my iCal calendars, I get a pane pop up which says: Calendar could not be published. Your .Mac account information is not correct. You cannot publish to .Mac until you have configured your .Mac account. The pane