Applet not loading from jsp
using weblogic server 6.1 sp2, solaris 8 mu7, netscape 6.2.1
the compiled applet UploadScreenshots.class is bundled into a web app
file named roach.war and resides in the following directory in the war
file:
WEB-INF/classes/roach/web/applets/UploadScreenshots.class
trying to deploy applet from jsp with following plugin definition in
jsp:
<jsp:plugin type="applet"
code="roach.web.applets.UploadScreenshots.class"
codebase="/classes/"
height="200" width="500"
jreversion="1.3"
nspluginurl="http://java.sun.com/products/plugin/1.3/plugin-install.html"
iepluginurl="http://java.sun.com/products/plugin/1.3/jinstall-131-win32.cab">
<jsp:fallback>
<font color=#FF0000>Sorry, cannot run java applet!!</font>
</jsp:fallback>
</jsp:plugin>
when executing the jsp from the browser, get the following error
message when browser attempts to load the applet:
Exception: java.lang.ClassNotFoundException:
roach.web.applets.UploadScreenshots.class
however, when codebase attribute is removed from plugin element
definition and the compiled applet class (and its directory) is moved
to the same directory as the jsp, the applet loads and works without
any problems!
what's up???
joseph,
thanks for the follow up. i still was not able to load the applet from
the web-inf directory so i just jarred up the applet, stuck the jar
file in the jsp directory, and added the archive attribute to the
jsp:plugin element. everything loads and works fine. maybe i'll
revisit loading applets from the web-inf directory later. thanks
again.
rick
"Joseph Nguyen" <[email protected]> wrote in message news:<[email protected]>...
> Rick,
>
> Take a look here real quick:
> http://e-docs.bea.com/wls/docs70/jsp/trouble.html#error-plugin. It's not
> much, but if it doesn't help please open a case with BEA Support via
> WebSupport portal here http://support.bea.com/welcome.jsp as there is no
> existing issue in our bug db right now with the jsp:plugin tag.
>
> Regards,
> Joseph Nguyen
> BEA Support
>
> "rick bryant" <[email protected]> wrote in message
> news:[email protected]...
> > using weblogic server 6.1 sp2, solaris 8 mu7, netscape 6.2.1
> >
> > the compiled applet UploadScreenshots.class is bundled into a web app
> > file named roach.war and resides in the following directory in the war
> > file:
> > WEB-INF/classes/roach/web/applets/UploadScreenshots.class
> >
> > trying to deploy applet from jsp with following plugin definition in
> > jsp:
> > <jsp:plugin type="applet"
> > code="roach.web.applets.UploadScreenshots.class"
> > codebase="/classes/"
> > height="200" width="500"
> > jreversion="1.3"
> >
> nspluginurl="http://java.sun.com/products/plugin/1.3/plugin-install.html"
> >
> iepluginurl="http://java.sun.com/products/plugin/1.3/jinstall-131-win32.cab"
> >
> > <jsp:fallback>
> > <font color=#FF0000>Sorry, cannot run java applet!!</font>
> > </jsp:fallback>
> > </jsp:plugin>
> >
> > when executing the jsp from the browser, get the following error
> > message when browser attempts to load the applet:
> > Exception: java.lang.ClassNotFoundException:
> > roach.web.applets.UploadScreenshots.class
> >
> > however, when codebase attribute is removed from plugin element
> > definition and the compiled applet class (and its directory) is moved
> > to the same directory as the jsp, the applet loads and works without
> > any problems!
> >
> > what's up???
Similar Messages
-
Applet not loading from JAR?
Well, I've been having a bit of a problem with embedding my applet into a webpage. My applet tag looks like this:
<applet archive="poke.jar" code="a.class" width=550 height=600>
<param name=cachelistsrcdir value="http://io9labs.com/poke/cache">
</applet>and when I access the page, I set the trace level to 5 in the Java Console, and look into it and see the following:
basic: Stopping applet ...
basic: Removed progress listener: sun.plugin.util.GrayBoxPainter@61db2b
basic: Finding information ...
basic: Releasing classloader: sun.plugin.ClassLoaderInfo@1df377e, refcount=0
basic: Caching classloader: sun.plugin.ClassLoaderInfo@1df377e
basic: Current classloader cache size: 3
basic: Done ...
basic: Joining applet thread ...
basic: Destroying applet ...
basic: Disposing applet ...
basic: Quiting applet ...
basic: Joined applet thread ...
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@1df377e, refcount=1
basic: Added progress listener: sun.plugin.util.GrayBoxPainter@c710ba
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
basic: completed perf rollup
network: Cache entry not found [url: http://io9labs.com/poke/a.class, version: null]
network: Connecting http://io9labs.com/poke/a.class with proxy=DIRECT
network: Connecting http://io9labs.com/poke/a.class with cookie "PHPSESSID=831a2067577cfe38db085b2566c36631"
network: Cache entry not found [url: http://io9labs.com/poke/a/class.class, version: null]
network: Connecting http://io9labs.com/poke/a/class.class with proxy=DIRECT
network: Connecting http://io9labs.com/poke/a/class.class with cookie "PHPSESSID=831a2067577cfe38db085b2566c36631"
load: class a.class not found.
java.lang.ClassNotFoundException: a.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
basic: Exception: java.lang.ClassNotFoundException: a.classIt seems as though it's trying to load the applet from the actual directory, instead of the JAR. Any ideas on why this is happening? Thanks in advance for your help.
Also, the applet is located at http://io9labs.com/poke/I'm using Mozilla Firefox 3.0.1 on Windows XP with SP2. I tried running it with IE7 and it gives me the same exact problem. It can't be my browser because it loads JAR'ed applets on any other webpage just fine.
I tried it with a non-obfuscated JAR, and it STILL gives me the same error. Do you have any ideas as to why it would choose to ignore the archive attribute?
EDIT: I think it might be because I signed it improperly, lemme try that.
EDIT2: Nope, still doesnt work
EDIT3: Problem solved, it was because the JAR needed a unique name, and i already had a jar of the same name in my cache.
Edited by: io9_ on Aug 20, 2008 11:17 AM -
Applet not loading on jsp page
Hi there, I'm learning Java Server Pages now a days, and I wanted to place one applet on my JSP, and I have used jsp:plugin to load this applet on my jsp page, but still it is not working, any idea,
regards,
Raasi.post your jsp code and write where do you put your applet.
-
Java applet was loaded in JSP as HTML.
I was running my web application in Linux platform. I have the lastest mozilla broswer which is 1.7.1. I was installed the Java plugins which this can be proved by i was able to load ICQ2Go of ICQ.com. The Java applet i created was loaded correctly in .html file. Unfortunately the Java applet was not load in .jsp file and a window was pop up to prompt me to go java.sun.com to donwload the proper plugin to view the applet which the link is http://java.sun.com/products/plugin/?application/x-java-applet;. I need help. Please give me a hand. Thank you.
Coding to load Java applet in .jsp
<HTML>
<HEAD>
<TITLE>Applet In Broswer</TITLE>
</HEAD>
<BODY>
<H1>Applet in Broswer</H1>
Fibonacci Test in Java Applet.
<jsp:plugin type="applet" code="foo.FibonacciTest.class" width="800" height="300" >
</jsp:plugin>
</BODY>
</HTML>Coding to load Java applet in .html
<HTML>
<HEAD>
<TITLE>Applet In Broswer</TITLE>
</HEAD>
<BODY>
<H1>Applet in Broswer</H1>
Fibonacci Test in Java Applet.
<APPLET CODE="foo.FibonacciTest.class" WIDTH=800 HEIGHT=300>
</APPLET>
</BODY>
</HTML>Whoops.. I even make a mistaken on the title of my problem - should be is Java applet was not loaded in JSP as HTML. The problem was solved. Thanks for anyone who had view this.
-
XP OS, have NoScript installed, disabled, Java console still will not load from FFx.
I followed your instructions and installed Developer Suite 10G on Windows Vista Home Premium edition. I have Oracle 11G DB running on the same machine.
Two points, Steve:
1. When I tried to set the maximum virtual memory to 6110 an error message displayed from Windows and told me that I can't set the maximum virtual memory to more than 4096. I set it to 4090 and it worked and I got nothing wrong during the installation process.
2. After installing JInitiator and disabling Java on Firefox I called the http://127.0.0.1:8889/forms/frmservlet page and everything seemed to be OK because the Oracle Forms Services logo appeared and then a successful installation message appeared , but as I clicked (ok) to continue a gray screen appeared inside the browser (like the one displayed when you try to run a Java applet inside a browser) and then I wait to death till something appears but sadly nothing. I just get a blank gray screen inside my Firefox browser.
Do you have any idea what to do to solve the problem?
Regards -
Delta records are not loading from DSO to info cube
My query is about delta loading from DSO to info cube. (Filter used in selection)
Delta records are not loading from DSO to Info cube. I have tried all options available in DTP but no luck.
Selected "Change log" and "Get one request only" and run the DTP, but 0 records got updated in info cube
Selected "Change log" and "Get all new data request by request", but again 0 records got updated
Selected "Change log" and "Only get the delta once", in that case all delta records loaded to info cube as it was in DSO and gave error message "Lock Table Overflow" .
When I run full load using same filter, data is loading from DSO to info cube.
Can anyone please help me on this to get delta records from DSO to info cube?
Thanks,
ShammaData is loading in case of full load with the same filter, so I don't think filter is an issue.
When I follow below sequence, I get lock table overflow error;
1. Full load with active table with or without archive
2. Then with the same setting if I run init, the final status remains yellow and when I change the status to green manually, it gives lock table overflow error.
When I chnage the settings of DTP to init run;
1. Select change log and get only one request, and run the init, It is successfully completed with green status
2. But when I run the same DTP for delta records, it does not load any data.
Please help me to resolve this issue. -
Counters not loading from saved PerfMon html settings file in IE
The Settings html file is hosted on our internal trusted web server, the perfmon interface loads but no counters load.
If I right click and go properties there are no counters configured. If I add a counter that works, but upon reloading the page the counters do not load from the HTML source file.
I check the source of the HTML, and the counters are there, but aren't loading.if you open the file from a local drive it does work, but I cant get it to work from a network folder.
-
I just download fire 4 beta on my windows vista. Can not open in some websites. the message applet not load properly please reload the page
Your More system details list doesn't show the Java plugin as installed.
Update the [[Java]] plugin to the latest version.
*http://kb.mozillazine.org/Java
*http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE) -
I am resurrecting my old iMacG5 for my grandson. Appleworks has question mark in dock and does not load from bundled software on original installation discs. Can anyone help?
I'm sorry no-one has answered you yet - I'm afraid I don't know the answer to the question: but I wanted to put into your mind that starting up with AppleWorks at this stage isn't a good idea. The program was 'end-of-lifed' years ago, it won't run on Lion, and some of the document types created in it - Databases in particular - cannot be opened at all by any other program whatever. Word Processing documents can be opened in Pages, and Spreadsheets in Numbers (with some reservations in both cases), but building up a collection of AppleWorks documents at this stage is going to lead to problems later on.
It's difficult to know what to recommend for a PowerPC machine that would still be compatible with modern ones. An older version of Microsoft Office, perhaps, if you can find one which will run on PPC; but most of the modern Word Processors are Intel only. This is something you would need to investigate. -
Itunes will not load from external hard drive
My Itunes will not load from my external harddrive. worked fine a few days ago.
I do not have any exclamation points - missing songs do not show at all. I had to click 'locate files' when I opened iTunes after reorganizing, since there was nothing there anymore
-
My son just got a new iPhone 4S some of his apps are not loading from his cloud storage.
That is not the way to get Apps, they can only be downloaded from the App store.
Apps from a DVD will not be related to your iTunes account and therefore will not be transferred to your iPad.
The only way to install Apps on to an iPad is to download them from the iTunes Store. -
why are 2 of my Numbers documents not loading from icloud They appear in faded grey and I can't open them ? How do I recover them ?
You may have to try deleting all the music from your phone (by going to Settings>General>Usage>Music, swipping All Music and tapping Delete), then sync it all back on with iTunes in order to fix this.
-
Signed Applet not loading on Mac OS X if using HTTPS protocol
Hi All,
I need to open a trusted applet on Mac OS 10.2. The applet works fine if using HTTP protocol. But if the protocol used is HTTPS the the applet does not loads and "javax.net.ssl.SSLException - untrusted server cert chain" exception comes on the console.
The error comes for both - Verisign and javakey - signed applet.
On seaching for possible solution on the net, i came across following link: http://www.macosxhints.com/article.php?story=20020525101202503&query=Workaround+for+secure+Java+applet+problems
It says that this is Mac's known bug and gives the workaround as:
1. Access the problematic site with Internet Explorer on Windows. Click on the padlock item and export the certificate to a file.
2. Copy the certificate to your Mac.
3. Use the command
sudo keytool -import -trustcacerts -keystore /Library/Java/Home/lib/security/cacerts -file mycert.cer
to import the certificate file to your keystore (substitute mycert.cer with the name of the file containing the certificate). The keystore is password protected - the default password is "changeit".
4. Restart your browser
But the client cannot be asked to do all this to run the applet.
Is this problem being solved by Mac in their java implementation or is there any other possible solution?
Thanx in advance.
Regards,
CharuI am experiencing the same problem - I notice it does not happen on OS9.2 using IE but appears a problem on all browsers on OSX
Apple gave me the following reply.....
Re: Bug ID# 3268633: cannot load applet class under https connection
Hello Andrew,
Thank you for bringing this problem to our attention. We have received feedback
from engineering on your
reported issue.
Please know that to get Java to recognize the certificate you will need to do
one of two things, depending
on which VM you are using. Since you want it to work with Internet Explorer, we
will assume Java 1.3.1.
In Java 1.3.1 you'll need to add the certificate to
/Library/Java/Home/lib/security/cacerts using
/usr/bin/keytool to import the certificate into the certificate database.
In Java 1.4.1 you should be able to just add the certificate to the keychain
using certtool. For more
details on how to do this, please refer to the information found at
<http://java.sun.com/j2se/1.4.1/docs/tooldocs/solaris/keytool.html>. After
doing so, if you should require
further help from Apple in resolving this issue, we recommend that you request
assistance from Developer
Technical Support. This must be done by filing a Technical Support Incident.
So I am supposed to tell every Mac user to do the above am I?!!! -
Java Applet Not Loading In IE6 on XP
Can anyone assist I have a user who can not load a Java Applet on one of our web pages, I really need her to access this as it is important to her work. I have tried all the latest Java Versions to no avail. I have also tried adding SP1a to Windows XP to no avail. I am at a loss and it is stopping the user from working, can anyone help? Web site is Http:\\www.daimlerchryslerservices.co.uk/insurance
Below is a copy of the messages from the Java Console to tell you what is happening.
Thanks in Advance
Java(TM) Plug-in: Version 1.4.1_01
Using JRE version 1.4.1_01 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\schweizerc
Proxy Configuration: Automatic Proxy Configuration
URL: http://wpad.corpdcs.net:80/wpad.dat
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
java.io.IOException: Server returned HTTP response code: 407 for URL: http://www.daimlerchryslerservices.co.uk/insurance/TDAgent.jar
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.plugin.net.protocol.http.HttpUtils.followRedirects(Unknown Source)
at sun.plugin.cache.CachedJarLoader.download(Unknown Source)
at sun.plugin.cache.CachedJarLoader.load(Unknown Source)
at sun.plugin.cache.JarCache.get(Unknown Source)
at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
at sun.misc.URLClassPath$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getResource(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
load: class ft3td/tdagent/TDAgentStub.class not found.
java.lang.ClassNotFoundException: ft3td.tdagent.TDAgentStub.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 11 moreI have exactly the same problem.
(my config is
windows Xp Profesional
jre 1.4.1 03
ie6)
I'm also using zonealarm as a firewall.
any Ideas? -
Classes are not loading from WEB-INF/classes directory
Hi All,
I am in a deep troble because the class files in the WEB-INF/classes directory are not loading.
I have deployed the application in Tomcat 6 server. And stored all class files under WEB-INF/classes dirctory. But when I execute a JSP page, I am getting following error:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
JSP FileName:/hello.jsp
An error occurred at line: 1 in the jsp file: /hello.jsp
com.flt.Test cannot be resolved to a type
1: <%=new com.flt.Test().hello()%>
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:98)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)The classes are available in the WEB-INF/classes directory and the folder name and package name of the classes are correct. I have also tried to execute the application by creating a jar file and put it in the WEB-INF/lib directory. But I am getting same result.
Is it the problem with Tomcat configuration? When I gone through Tomcat documentation, I get to know that the WebAppX class loader in Tomcat, loads application specific classes for a web application. Is it possible to start/stop WebAppx classloader manually?
Please help me to solve this issue.
Many Thanks,
Francis Lukose
Edited by: francis_ on May 13, 2008 10:03 AMThanks for your reply, Soultech2012.
<%=new com.flt.Test().hello()%>is the only code in the JSP page. Just a single line. Nothing more than that.
The code in Test.java is as follows:
* To change this template, choose Tools | Templates
* and open the template in the editor.
package com.flt;
* @author Francis Lukose
public class Test {
public static String hello() {
return "hello";
}Many Thanks,
Francis
Edited by: francis_ on May 13, 2008 6:45 PM
Maybe you are looking for
-
Asa 5505 Remote VPN Can't access with my local network
Hello Guys ,, i have a problem with my asa 5505 Remote VPN Connection with local network access , the VPn is working fine and connected , but the problem is i can't reach my inside network connection of 192.168.30.x , here is my configuration , pleas
-
Unable to edit certain fields in order type RE comparing with OR
Dear friend, When I am creating return order with order type 'RE', I find out there are certain fields that are not editable. However, this issue doesnt happen with standard order(order type 'OR'). please refer to the following snapshot: where you ca
-
"Very few" views here on the homepage
Hi! Well this might be a bug on the homepage, but it does not affect anything, just I'm curious am I right or not? If we check on this homepage the ABAP Development category, and within the ABAP General forum, now it shows, the Views are: 943,727, t
-
Aperture not displaying MobileMe Galleries
I have a half-dozen MobileMe galleries that I am using to allow clients to view image proofs. They are password-protected and hidden from my Gallery page. When I opened Aperture this morning, it does not show the MobileMe item in the project pane. No
-
Webi Error - Driver not capable
Hello, One of our users is getting "Driver not capable" error on 1 webi report, but can run another without the error. These 2 reports come off seperate BEx querier. We have BO SP2 FP2.5. SAP authentication is set on BO server and roles are imported.