Javax.media.NoPlayerException: Cannot find a Player

Hi all,
I've installed JMF,
and tried the sample 'SimplePlayerApplet.java' from Sun:
http://java.sun.com/products/java-media/jmf/2.1.1/samples/
(see the code below)
However, everytime I run the applet,
I get the message:
"javax.media.NoPlayerException: Cannot find a Player"
Can anybody help?
-------code from sun website-----------------
* @(#)SimplePlayerApplet.java     1.2 01/03/13
* Copyright (c) 1996-2001 Sun Microsystems, Inc. All Rights Reserved.
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
* modify and redistribute this software in source and binary code form,
* provided that i) this copyright notice and license appear on all copies of
* the software; and ii) Licensee does not utilize the software in a manner
* which is disparaging to Sun.
* This software is provided "AS IS," without a warranty of any kind. ALL
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
* This software is not designed or intended for use in on-line control of
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
* the design, construction, operation or maintenance of any nuclear
* facility. Licensee represents and warrants that it will not use or
* redistribute the Software for such purposes.
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
import java.lang.String;
import java.net.URL;
import java.net.MalformedURLException;
import java.io.IOException;
import java.util.Properties;
import javax.media.*;
//import com.sun.media.util.JMFSecurity;
* This is a Java Applet that demonstrates how to create a simple
* media player with a media event listener. It will play the
* media clip right away and continuously loop.
* <!-- Sample HTML
* <applet code=SimplePlayerApplet width=320 height=300>
* <param name=file value="sun.avi">
* </applet>
* -->
public class SimplePlayerApplet extends Applet implements ControllerListener {
// media Player
Player player = null;
// component in which video is playing
Component visualComponent = null;
// controls gain, position, start, stop
Component controlComponent = null;
// displays progress during download
Component progressBar = null;
boolean firstTime = true;
long CachingSize = 0L;
Panel panel = null;
int controlPanelHeight = 0;
int videoWidth = 0;
int videoHeight = 0;
* Read the applet file parameter and create the media
* player.
public void init() {
//$ System.out.println("Applet.init() is called");
setLayout(null);
setBackground(Color.white);
panel = new Panel();
panel.setLayout( null );
add(panel);
panel.setBounds(0, 0, 320, 240);
// input file name from html param
String mediaFile = null;
// URL for our media file
MediaLocator mrl = null;
URL url = null;
// Get the media filename info.
// The applet tag should contain the path to the
// source media file, relative to the html page.
if ((mediaFile = getParameter("FILE")) == null)
Fatal("Invalid media file parameter");
try {
url = new URL(getDocumentBase(), mediaFile);
mediaFile = url.toExternalForm();
} catch (MalformedURLException mue) {
try {
// Create a media locator from the file name
if ((mrl = new MediaLocator(mediaFile)) == null)
Fatal("Can't build URL for " + mediaFile);
try {
JMFSecurity.enablePrivilege.invoke(JMFSecurity.privilegeManager,
JMFSecurity.writePropArgs);
JMFSecurity.enablePrivilege.invoke(JMFSecurity.privilegeManager,
JMFSecurity.readPropArgs);
JMFSecurity.enablePrivilege.invoke(JMFSecurity.privilegeManager,
JMFSecurity.connectArgs);
} catch (Exception e) {}
// Create an instance of a player for this media
try {
player = Manager.createPlayer(mrl);
} catch (NoPlayerException e) {
System.out.println(e);
Fatal("Could not create player for " + mrl);
// Add ourselves as a listener for a player's events
player.addControllerListener(this);
} catch (MalformedURLException e) {
Fatal("Invalid media file URL!");
} catch (IOException e) {
Fatal("IO exception creating player for " + mrl);
// This applet assumes that its start() calls
// player.start(). This causes the player to become
// realized. Once realized, the applet will get
// the visual and control panel components and add
// them to the Applet. These components are not added
// during init() because they are long operations that
// would make us appear unresposive to the user.
* Start media file playback. This function is called the
* first time that the Applet runs and every
* time the user re-enters the page.
public void start() {
//$ System.out.println("Applet.start() is called");
// Call start() to prefetch and start the player.
if (player != null)
player.start();
* Stop media file playback and release resource before
* leaving the page.
public void stop() {
//$ System.out.println("Applet.stop() is called");
if (player != null) {
player.stop();
player.deallocate();
public void destroy() {
//$ System.out.println("Applet.destroy() is called");
player.close();
* This controllerUpdate function must be defined in order to
* implement a ControllerListener interface. This
* function will be called whenever there is a media event
public synchronized void controllerUpdate(ControllerEvent event) {
// If we're getting messages from a dead player,
// just leave
if (player == null)
return;
// When the player is Realized, get the visual
// and control components and add them to the Applet
if (event instanceof RealizeCompleteEvent) {
if (progressBar != null) {
panel.remove(progressBar);
progressBar = null;
int width = 320;
int height = 0;
if (controlComponent == null)
if (( controlComponent =
player.getControlPanelComponent()) != null) {
controlPanelHeight = controlComponent.getPreferredSize().height;
panel.add(controlComponent);
height += controlPanelHeight;
if (visualComponent == null)
if (( visualComponent =
player.getVisualComponent())!= null) {
panel.add(visualComponent);
Dimension videoSize = visualComponent.getPreferredSize();
videoWidth = videoSize.width;
videoHeight = videoSize.height;
width = videoWidth;
height += videoHeight;
visualComponent.setBounds(0, 0, videoWidth, videoHeight);
panel.setBounds(0, 0, width, height);
if (controlComponent != null) {
controlComponent.setBounds(0, videoHeight,
width, controlPanelHeight);
controlComponent.invalidate();
} else if (event instanceof CachingControlEvent) {
if (player.getState() > Controller.Realizing)
return;
// Put a progress bar up when downloading starts,
// take it down when downloading ends.
CachingControlEvent e = (CachingControlEvent) event;
CachingControl cc = e.getCachingControl();
// Add the bar if not already there ...
if (progressBar == null) {
if ((progressBar = cc.getControlComponent()) != null) {
panel.add(progressBar);
panel.setSize(progressBar.getPreferredSize());
validate();
} else if (event instanceof EndOfMediaEvent) {
// We've reached the end of the media; rewind and
// start over
player.setMediaTime(new Time(0));
player.start();
} else if (event instanceof ControllerErrorEvent) {
// Tell TypicalPlayerApplet.start() to call it a day
player = null;
Fatal(((ControllerErrorEvent)event).getMessage());
} else if (event instanceof ControllerClosedEvent) {
panel.removeAll();
void Fatal (String s) {
// Applications will make various choices about what
// to do here. We print a message
System.err.println("FATAL ERROR: " + s);
throw new Error(s); // Invoke the uncaught exception
// handler System.exit() is another
// choice.
}

First and most obvious question is, what are you trying to have the applet view? The NoPlayerException generally means that JMF couldn't figure out how to display what you're telling it to display, be that an unknown codec, or unknown media type.

Similar Messages

  • Javax.media.NoPlayerException: Cannot find a Player for :v4l://0

    Hi,
    I'm trying to grab a frame in a linux box with a webcam.
    First i was having trouble in getting my webcam registered but thats history and now i can use jmfstudio to view thru the camera's eye.
    But using the code below to get a frame i get the following exception:
    Exception in thread "main" javax.media.NoPlayerException: Cannot find a Player for :v4l://0
    at javax.media.Manager.createPlayerForContent(Manager.java:1412)
    at javax.media.Manager.createPlayer(Manager.java:417)
    at javax.media.Manager.createRealizedPlayer(Manager.java:553)
    at FrameGrab.main(FrameGrab.java:26)
    Code:
    public class FrameGrab {
    public static void main(String[] args) throws Exception {
    Vector list = CaptureDeviceManager.getDeviceList ( null );
    CaptureDeviceInfo devInfo = (CaptureDeviceInfo)list.elementAt ( 1 );
    // Create capture device
    CaptureDeviceInfo deviceInfo = CaptureDeviceManager.getDevice(devInfo.getName());
    Player player = Manager.createRealizedPlayer(deviceInfo.getLocator());
    player.start();
    // Wait a few seconds for camera to initialise (otherwise img==null)
    Thread.sleep(2500);
    // Grab a frame from the capture device
    FrameGrabbingControl frameGrabber = (FrameGrabbingControl)player.getControl("javax.media.control.FrameGrabbingControl");
    Buffer buf = frameGrabber.grabFrame();
    // Convert frame to an buffered image so it can be processed and saved
    Image img = (new BufferToImage((VideoFormat)buf.getFormat()).createImage(buf));
    BufferedImage buffImg = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_RGB);
    // Save image to disk as PNG
    ImageIO.write(buffImg, "png", new File("webcam.png"));
    // Stop using webcam
    player.close();
    player.deallocate();
    System.exit(0);
    Any tips?

    hi
    i've got the same problem too
    the jms could only play .mp3 not other formats
    is the installation wrong?
    could some experts give me some advise?
    my e-mail:[email protected]

  • *UNABLE_CREATE_PLAYER*javax.media.NoPlayerException: Cannot find a Player f

    Dear all,
    I have the following error : UNABLE_CREATE_PLAYERjavax.media.NoPlayerException: Cannot find a Player for :
    But I can't find why. Here is the revelent part of my code.
    VCDataSource myDataSource = new VCDataSource(MicrophoneCaptureDevice.getLocator());
    // Add the DataSource to the MediaPlayer
    VCMediaPlayer.setSource(myDataSource);
    // run the media player
    VCMediaPlayer.start();
    could you explain where I am wrong ! =)

    Hi
    I have a question: where did you initialized the player?
    (something like Manager.createPlayer(...);
    regards

  • RTPSocketPlayer Cannot find a Player

    I can not execute RTPSocketPlayer.class from sun
    mycode =
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.media.*;
    import javax.media.format.*;
    import javax.media.protocol.*;
    import javax.media.rtp.*;
    import javax.media.rtp.event.*;
    import javax.media.rtp.rtcp.*;
    public class RTPSocketPlayer implements ControllerListener {
    String address = "224.224.224.100";
    int port = 49150;
    String media = "video";
    RTPSocket rtpsocket = null;
    RTPPushDataSource rtcpsource = null;
    Player player = null;
    private int maxsize = 2000;
    UDPHandler rtp = null;
    UDPHandler rtcp = null;
    public RTPSocketPlayer() {
    rtpsocket = new RTPSocket();
    String content = "rtpraw/" + media;
    rtpsocket.setContentType(content);
    rtp = new UDPHandler(address, port);
    rtpsocket.setOutputStream(rtp);
    rtcp = new UDPHandler(address, port +1);
    rtcpsource = rtpsocket.getControlChannel();
    rtcpsource.setOutputStream(rtcp);
    rtcpsource.setInputStream(rtcp);
              System.out.println(rtpsocket);
    try {
    rtpsocket.connect();
                   player = Manager.createPlayer(rtpsocket);
                   //System.out.println("oche");
    rtpsocket.start();
    } catch (NoPlayerException e) {
    System.err.println(e.getMessage() + " ballball");
    e.printStackTrace();
    return;
    catch (IOException e) {
    System.err.println(e.getMessage());
    e.printStackTrace();
    return;
    if (player != null) {
    player.addControllerListener(this);
    public synchronized void controllerUpdate(ControllerEvent ce) {
    if ((ce instanceof DeallocateEvent) ||
    (ce instanceof ControllerErrorEvent)) {
    if (rtp != null) rtp.close();
    if (rtcp != null) rtcp.close();
    // method used by inner class UDPHandler to open a datagram or
    // multicast socket as the case maybe
    private DatagramSocket InitSocket(String sockaddress,
    int sockport)
    InetAddress addr = null;
    DatagramSocket sock = null;
    try {
    addr = InetAddress.getByName(sockaddress);
    if (addr.isMulticastAddress()) {
    MulticastSocket msock;
    msock = new MulticastSocket(sockport);
    msock.joinGroup(addr);
    sock = (DatagramSocket)msock;
    else {             
    sock = new DatagramSocket(sockport,addr);
    return sock;
    catch (SocketException e) {
    e.printStackTrace();
    return null;
    catch (UnknownHostException e) {
    e.printStackTrace();
    return null;
    catch (IOException e) {
    e.printStackTrace();
    return null;
    // INNER CLASS UDP Handler which will receive UDP RTP Packets and
    // stream them to the handler of the sources stream. IN case of
    // RTCP, it will also accept RTCP packets and send them on the
    // underlying network.
    public class UDPHandler extends Thread implements PushSourceStream,
    OutputDataStream
    DatagramSocket mysock;
    DatagramPacket dp;
    SourceTransferHandler outputHandler;
    String myAddress;
    int myport;
    boolean closed = false;
    // in the constructor we open the socket and create the main
    // UDPHandler thread.
    public UDPHandler(String haddress, int hport) {
    myAddress = haddress;
    myport = hport;
    mysock = InitSocket(myAddress,myport);
    setDaemon(true);
    start();
    // the main thread receives RTP data packets from the
    // network and transfer's this data to the output handler of
    // this stream.
    public void run() {
    int len;
    while(true) {
    if (closed) {
    cleanup();
    return;
    try {
    do {
    dp = new DatagramPacket( new byte[maxsize],
    maxsize);
    mysock.receive(dp);
    if (closed){
    cleanup();
    return;
    len = dp.getLength();
    if (len > (maxsize >> 1)) maxsize = len << 1;
    while (len >= dp.getData().length);
    }catch (Exception e){
    cleanup();
    return;
    if (outputHandler != null) {
    outputHandler.transferData(this);
    public void close() {
    closed = true;
    private void cleanup() {
    mysock.close();
    stop();
    // methods of PushSourceStream
    public Object[] getControls() {
    return new Object[0];
    public Object getControl(String controlName) {
    return null;
    public ContentDescriptor getContentDescriptor() {
    return null;
    public long getContentLength() {
    return SourceStream.LENGTH_UNKNOWN;
    public boolean endOfStream() {
    return false;
    // method by which data is transferred from the underlying
    // network to the session manager.
    public int read(byte buffer[],
    int offset,
    int length)
    System.arraycopy(dp.getData(),
    0,
    buffer,
    offset,
    dp.getLength());
    return dp.getData().length;
    public int getMinimumTransferSize(){
    return dp.getLength();
    public void setTransferHandler(SourceTransferHandler
    transferHandler)
    this.outputHandler = transferHandler;
    // methods of OutputDataStream used by the session manager to
    // transfer data to the underlying network.
    public int write(byte[] buffer,
    int offset,
    int length)
    InetAddress addr = null;
    try {
    addr = InetAddress.getByName(myAddress);
    } catch (UnknownHostException e) {
    e.printStackTrace();
    DatagramPacket dp = new DatagramPacket( buffer,
    length,
    addr,
    myport);
    try {
    mysock.send(dp);
    } catch (IOException e){
    e.printStackTrace();
    return dp.getLength();
    public static void main(String[] args) {
    new RTPSocketPlayer();
    And when I run program >>>>
    D:\Topic\RtpSocket>java RTPSocketPlayer
    javax.media.rtp.RTPSocket@56a499
    Cannot find a Player for: javax.media.rtp.RTPSocket@56a499
    javax.media.NoPlayerException: Cannot find a Player for: javax.media.rtp.RTPSock
    et@56a499
    at javax.media.Manager.createPlayerForSource(Manager.java:1536)
    at javax.media.Manager.createPlayer(Manager.java:524)
    at RTPSocketPlayer.<init>(RTPSocketPlayer.java:37)
    at RTPSocketPlayer.main(RTPSocketPlayer.java:266)

    Im also having the same problem if anyone finds the answer then plz reply

  • Javax.servlet.ServletException: Cannot find bean CustForm in any scope

    while i m running my struts application.. i m getting this error.. can any one pointout wat error is this...
    javax.servlet.ServletException: Cannot find bean CustForm in any scope
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
         at org.apache.jsp.Result_jsp._jspService(Result_jsp.java:100)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
         at java.lang.Thread.run(Thread.java:534)

    hi shanu
    getting in jsp call..
    ERROR [Engine] ApplicationDispatcher[customTag] Servlet.service() for servlet jsp threw exception.
    n this is the action
    <action-mappings >
         <action path="/select" type="customTld.CustAction" name="custform" scope="request">
              <forward name="ok" path="/Result.jsp"/>
         </action>
         </action-mappings >

  • Getting Error: javax.servlet.ServletException: Cannot find ActionMappings o

    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
         org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:88)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
         org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:711)
         org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:419)
         org.apache.jsp.index_jsp._jspx_meth_html_form_0(org.apache.jsp.index_jsp:139)
         org.apache.jsp.index_jsp._jspx_meth_html_html_0(org.apache.jsp.index_jsp:114)
         org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:81)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
    This is my web.xml file
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app     PUBLIC "-//SUN Microsystem, //"
         "http://java.sun.com/j2ee/dtds/web-app_2.2/dtd">
    <web-app>
         <!--Action Servlet Configuration -->
         <servlet>
              <servlet-name>action</servlet-name>
              <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
              <!-- Resource Bundle base class -->
              <init-param>
                   <param-name>application</param-name>
                   <param-value>ApplicationResources</param-value>
              </init-param>
              <!-- Context Relative Path to the XML resource containing Struts Configuration -->
              <init-param>
                   <param-name>config</param-name>
                   <param-value>/WEB-INF/struts-config.xml</param-value>
              </init-param>
              <!-- The Debugging detail level for this servlet, which controls how much information -->
              <init-param>
                   <param-name>debug</param-name>
                   <param-value>2</param-value>
              </init-param>
              <load-on-startup>2</load-on-startup>
         </servlet>
         <!-- Action Servlet Mapping -->
         <servlet-mapping>
              <servlet-name>action</servlet-name>
              <url-pattern>*.do</url-pattern>
         </servlet-mapping>
         <!-- The welcome File List -->
         <welcome-file-list>
              <welcome-file>index.jsp</welcome-file>
         </welcome-file-list>
         <!-- Application Tag Library Descriptor -->
         <taglib>
              <taglib-uri>/WEB-INF/app.tld</taglib-uri>
              <taglib-location>/WEB-INF/app.tld</taglib-location>
         </taglib>
         <!-- Struts Tag Lib Descriptors -->
         <taglib>
              <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
              <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
         </taglib>     
         <taglib>
              <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
              <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
         </taglib>     
         <taglib>
              <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
              <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
         </taglib>
    </web-app>
    ==================================================================================================================
    This is my Struts-config.xml file
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE struts-config     PUBLIC "-//SUN Microsystem, //"
         "http://java.sun.com/j2ee/dtds/struts-config_1_0/dtd">
    <struts-config>
         <form-beans>
              <!-- Logon Form Bean -->
              <form-bean name="loginForm"     type="LoginForm" />
         </form-beans>
         <global-forwards>
              <forward name="mainmenu"      path="/mainmenu.jsp" />
         </global-forwards>
         <action-mappings>
              <!-- Process a user logon -->
              <action      path="/login"     type="LoginAction"     
                        name="loginForm"     scope="session"          input="/index.jsp">
              </action>
         </action-mappings>
         </struts-config>
    ==================================================================================================================
    This is my LoginForm.java file
    package src;
    import org.apache.struts.action.ActionForm;
    public class LoginForm extends ActionForm {
         private String login;
         private String password;
         public String getLogin() {
              return login;
         public void setLogin(String login) {
              this.login = login;
         public String getPassword() {
              return password;
         public void setPassword(String password) {
              this.password = password;
    ==================================================================================================================
    This is my LoginAction.java file
    package src;
    import java.io.IOException;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.apache.struts.action.*;
    import org.apache.struts.action.Action;
    public class LoginAction extends Action {
         public ActionForward execute( ActionMapping mapping, ActionForm form,
                   HttpServletRequest request, HttpServletResponse response)
                   throws IOException, ServletException
              return (mapping.findForward("mainmenu"));
    ==================================================================================================================
    This is my index.jsp file
    <%@ page language ="java" %>
    <%@ taglib uri ="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri ="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri ="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <html:html>
    <head>
         <title> My First Struts Application! </title>
    </head>
    <body>
         <html:form action="/login">
              LOGIN : <html:text property="login" />
              PASSWORD : <html:password property="password" />
              <html:submit> Login </html:submit>
              <html:reset> Reset </html:reset>
         </html:form>
    </body>
    </html:html>
    ==================================================================================================================
    and finally This is my mainmenu.jsp file
    <%@ page language="java" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld"      prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld"      prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld"      prefix="logic" %>
    <html:html>
    <head>
         <title>Main Menu</title>
    </head>
    <body>
         This is the MainMenu !
    </body>
    </html:html>
    ==================================================================================================================
    Kindly solve my problem........
    try to run on your machine...........
    I am using Tomcat 5.5.9 and my Project name is MyAppli

    Hey guys,
    Even I was frustrated for a long time with all the Struts errors for which Google returned loads of results but no particular solutions. All these solutions were all based on hit and trial and only work on some cases. Let me tell you that Struts (and most other frameworks) have a general approach to consume the actual error message and throw an exception which is light years away from the actual cause. So whats' the solution?
    Enable logging.... LOG4J to be precise...
    ...and see that it (log4j) is configured properly. You will see the actual cause there and not on the consoles of your servers (whichever you use).
    In my case, it was a host not found exception in the logs because I was sitting behind a firewall and the validator could not locate struts.apache.org
    (Wish this thread had some duke dollars)
    Regards,
    The Correspondent
    http://www.araneidae.org

  • Cannot find flash player 10 after install: xp pro, IE6, SP2

    I have been trying for a week to install Flash Player 10 to no avail. I uninstall and reinstall every time. I have XP Professional Media version, IE6, ans SP2. After install, from which I get no errors and a successful install message, I search for flash player and cannot find it anywhere on my C drive. Any ideas? Is there still a problem with trying to install with IE? Thanks for your help and support.

    Flash Player is a browser plugin, not an installed application. It's not designed to work as a standalone app for opening FLV or SWF.  It's designed to play SWF content inside a web page inside your browser.
    Now, if you must open local content then you can either open those using File: Open in your browser, or you can get the FLash Player 10 Standalone player from the archived players technote here:  kb2.adobe.com/cps/142/tn_14266.html

  • Cannot find Flash player download

    I downloaded Flash player 10 active X yesterday on a promt but although it shows in Add or Remove programmes list it does not show size etc and I cannot find it on my computer anywhere else.

    Check http://www.adobe.com/software/flash/about/ - if you see the Flash animation, then it's successfullyinstalled.
    The FP files are located in C:\Windows\System32\Macromed\Flash\   or  C:\Windows\SysWOW64\Macromed\Flash\ - note that this is a web player, not a standalone player.

  • Cannot find debug player--sometimes

    I have Flex2 up and running. Only problem (so far) is in
    using the debug.
    Sometimes in debug, Flex Builder seems to find the flash
    debug player fine. Other times, it cannot find it; giving the
    dialog about "where is the debug player located?"
    Since the debug does is found and works *sometime*, it must
    be there.
    Any ideas why the behavior isn't consistent?
    Thanks
    Keith

    in the first debug, are you using AAA override with options 64/65/81?  Could be a bad packet trying to set the VLAN/Interface.
    as for WARP Capabilities, it happend right after Scotty(or Jordy if you a TNG fan) fixed the plasma couplers, to allow the proper flow into the warp core.
    that message is per-usual, I don't remember what it means, but it should be fine.
    HTH,
    Steve
    Please remember to rate helpful posts or to mark the quesiton as answered so that it can be found later.

  • Error: Cannot find flash player.....

    I have the latest version of the Flash player installed on my
    computer however all of a sudden I am starting to receive this
    message when trying to open FlashPaper 2
    FlashPaper Printer Error
    Could not find the Flash player. Please install the Flash
    player before using FlashPaper Printer.
    The Flash player can be freely downloaded from
    http://www.macromedia.com.
    OK
    I cannot understand why. This just started to happen today
    for no reason. And when I try to reinstall I get this error
    message:
    Macromedia FlashPaper 2 Installer Information
    Error 1904.Module
    C:\WINDOWS\system32\Macromed\Flash\Flash.ocx failed to
    register. HRESULT -2147220473. Contact your support personnel.
    OK

    I also have exactely the same problem and just had the "custom personnel" on the phone for nearly an hour - with no result. The advice was to check out on the forum or to buy an up-grade "of this out dated software"!
    Could you solve your problem in the meantime?

  • I cannot find icloud player on my computer or items submitted purchased from other sources

    I find it easy to access Amazon cloud but I am unable to find items on itunes match sinec I moved files to a separate hard drive when they were filling up my Apple notebook. Do I need to download itunes icloud player again? Please advise what I need to do. I also want to access icloud on my ipod and a Samsung Galaxy phone. Thanks, John Tyrrell - Triel 2976

    I'm afraid I do not quite understand what you are trying to accomplish. There is no "cloud player" application. You access your music in the cloud with iTunes on a computer and through the Music app on iOS devices. Please describe the problem you are having in more detail so we can help you.
    As to accessing "icloud" on mobile devices, iCloud is not the same as iTunes Match. Please tell us what model of iPod you have. At this time only OS X, iOS and Windows (Windows Vista SP2 and up) are supported.

  • Media Manager cannot find my computer

    My computer is connected to my wiressless router at 192.168.2.107, but media manager can never detects my computer. How do you trouble shoot the connection?  Motorola box is connected to same wireless router via powerline adaptor, so I am assuming they should see each other.  The same config works great for sling player without any issues.  

    bd1973 wrote:
    My computer is connected to my wiressless router at 192.168.2.107, but media manager can never detects my computer. How do you trouble shoot the connection?  Motorola box is connected to same wireless router via powerline adaptor, so I am assuming they should see each other.  The same config works great for sling player without any issues.  
    The Media Manager and the STB have to be on the same subnet.
    That means your cable box needs to also be on a 192.168.2.x ip address (which is unlikely as they default to 192.168.1.x)
    That is your first step is getting them on the same subnet.
    here is some additional info
    Media Manager and your Firewall
    Media Manager and your Antivirus
    Set Top Box Connectivity Issues
    Pay special attention to the 'Communication Check between PC/Laptop and STB' section and & 'IP Address Comparison' section

  • Media Encoder cannot find files

    I am having a problem with exporting from Premier CS4. I have been using the same setup for some time but now the encoder cannot read from the source files. They haven’t been moved or deleted and they play back correctly on the timeline. If I copy and paste them to AE they output without any problem. This worked using exactly the same output settings. Copy and pasting them back from AE into a new Premier project didn't work either. Any suggestions?

    It this a question about Thunderbird?
    If that is the case then we can move the question to Thunderbird support.

  • Error "javax.swing.JFrame"  cannot find symbol  frame.getContentPane90.add

    Getting above errror when running the code below.how do I install the Jframe so the program can see it.Looks like JRE and JDK does not have it.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class SimpleGui1{
    public static void main(String []args){
    JFrame frame = new JFrame();
    JButton button = new JButton("click me");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane90.add(button);
    frame.setSize(300,300);
    frame.setVisible(true);
    }

    This is the single most amazing thread I have ever+* seen.                                                                                                                                                                                                   

  • [ME21] error message : cannot find message associated with key

    Dear all,
    I try to develop an Mobile application using smartSync,
    but when the application running (on client) got an error message :
    Error: 500
    Location: /UPLOAD_TEST/upload_testapp/Menu.do
    Internal Servlet Error:
    javax.servlet.ServletException: cannot find message associated with key : dispatcher.forwardException
    at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherImpl.java:238)
    at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:162)
    at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:423)
    at 0002findex0002ejspindex_jsp_0._jspService(_0002findex_0002ejspindex_jsp_0.java:62)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java)
    note:
    when create this application, I'm using tcode : merep_sbuilder
    Sync type : U01 - Upload using SMAPIs
    Bapi wrapper : MEREP_CONTACT_CREATE
    SAP Mobile Engine 2.1
    and generate .war file using MDK tool
    any one know about this ??
    thanks & regards,

    Hi,
    this error comes up when the destination serlvet throws an exception other than ServletException!
    Its a standard tomcat bug!
    Rgds Thomas
    -->
    http://issues.apache.org/bugzilla/show_bug.cgi?id=19114
    -->From apache.org:
    When a forwarded servlet throws an exception other than ServletException or
    IOException, the thrown exception is lost. This is due to the line:
    throw new ServletException(sm.getString("dispatcher.forwardException", t));
    (found in org/apache/tomcat/facade/RequestDispatcherImpl.java:210)
    the earlier catched t is here not passed into the constructor of
    ServletException but into getString.
    To reproduce construct a servlet that throws an Exception (other than
    ServletException and IOException) and another servlet that forwards to it. You
    will get just a forwardException (if you have the proper locale strings
    installed!) but the originally thrown exception will get lost forever.

Maybe you are looking for

  • Animated gif not moving, image.animation_mode already set to Normal

    ''dupe of - https://support.mozilla.org/en-US/questions/932846 - locking'' With image.animation_mode already set to Normal, animated gif are not moving, it seems only the first frame is downloaded. I tried downloading the image, it also seems that on

  • WHAT IS THIS AUTHORIZATION CRAP?, WHAT IS THIS AUTHORIZATION CRAP?

    I have one authorized computer. I am trying to go in on my kids laptop and the silly thing keeps telling me I need to authorize the computer to download anything.  I go to the help menu and it tells me to go to "Authorize This Computer" in the Store

  • Using Secure FTP to extract a file

    Dear all we want to create a mapping to read data from a set of tables and after some transformation to export the data into a flat file over a secure FTP protocol to a remote location. I am wondering : a) if that is feasible and if yes, then b) what

  • Microsoft office programs always launch at start of session

    I cannot prevent that all microsft office programs ( Excel, word, ppt, outlook) start ( as well as other programs; activity monitor) when ever I start my session; how can I control that ( and have a quiet session start without my screen poll-ted by 1

  • Forms: Browser Error

    Data Execution Prevention and IE8 ? Data Execution Prevention and IE8 ? Hi Me too have the same problem.I did every thing as you told.but still i have the problem. Im using Forms 10g(10.1.2), db 11g & Windows Xp SP3 in Internet Explorer 8 In Firefox