Class not found in webapp
All the struts classes and lib are in the webapp. All ejbs are in another package.
All war and jar are then package into one ear file. I have 2 similar struts actions
inheriting from the same base class ListBaseAction. Somehow one of them consistently
have loading problem.
The ListBaseAction class is in WEB-INF/classes in the war file.
[INFO] RequestProcessor - -Processing a 'GET' for path '/hotlist/listaction'
java.lang.NoClassDefFoundError: com/cubic/cts/struts/ListBaseAction
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
6)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
ClassLoader.java:390)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
Loader.java:152)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:287)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw
areClassLoader.java:44)
at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.jav
a:193)
at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.
java:219)
at org.apache.struts.action.RequestProcessor.processActionCreate(Request
Processor.java:316)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:260)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:129
2)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:401)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:5412)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:744)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3086)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2544)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
[ERROR] RequestProcessor - -No action instance for path /hotlist/listaction coul
d be created <java.lang.NoClassDefFoundError: com/cubic/cts/struts/ListBaseAction>
I have seen this happen when there is a class my webapp tries to use that
has already been loaded by my ejb app
Try to work out what classes HotlistAction uses/imports that are different
to DeviceTypeListAction
perhaps try loading just your webapp without your ejb app and see if you get
any further
"Sudarma Pokta" <[email protected]> wrote in message
news:[email protected]...
>
> My environment is WebLogic 7.0 Patch 1.
>
> Inheritance relationship:
> DeviceTypeListAction -> ListBaseAction -> BaseAction.
> HotlistAction -> ListBaseAction -> BaseAction.
>
> When things is working:
>
> [Loaded org.apache.struts.action.RequestProcessor]
> [INFO] RequestProcessor - -Processing a 'GET' for path
'/DeviceType/listaction'
> [Loaded weblogic.utils.http.QueryParams]
> [Loaded weblogic.utils.enumerations.IteratorEnumerator]
> [Loaded org.apache.struts.action.Action]
> [Loaded com.cubic.cts.struts.BaseAction]
> [Loaded com.cubic.cts.struts.ListBaseAction]
> [Loaded com.cubic.cts.struts.DeviceType.DeviceTypeListAction]
> [Loaded org.apache.struts.action.ActionMessages]
> [Loaded org.apache.struts.action.ActionErrors]
> [Loaded com.cubic.cts.util.ejb.EJBHomeFactory]
> [Loaded weblogic.servlet.internal.session.FileSessionData]
> [Loaded weblogic.servlet.internal.session.CookieSessionData]
> [Loaded weblogic.servlet.internal.session.SessionData$1]
> [Loaded javax.servlet.http.Cookie]
> .... goes on loading all the required classes
>
>
>
> When things are not working:
> [INFO] RequestProcessor - -Processing a 'GET' for path
'/hotlist/listaction'
> java.lang.NoClassDefFoundError: com/cubic/cts/struts/ListBaseAction
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
> at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
> 6)
> at
weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
> ClassLoader.java:390)
> at
weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
> Loader.java:152)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:287)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
> at
weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw
> areClassLoader.java:44)
> at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.jav
> a:193)
> at
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.
> java:219)
> at
org.apache.struts.action.RequestProcessor.processActionCreate(Request
> Processor.java:316)
> at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
> va:260)
> at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:129
> 2)
> at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
> (ServletStubImpl.java:1058)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java:401)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java:306)
> at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
> n.run(WebAppServletContext.java:5412)
> at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
> eManager.java:744)
> at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
> rvletContext.java:3086)
> at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
> pl.java:2544)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
> [ERROR] RequestProcessor - -No action instance for path
/hotlist/listaction coul
> d be created <java.lang.NoClassDefFoundError:
com/cubic/cts/struts/ListBaseActio
> n>
>
>
> Why does it try to load com.cubic.cts.struts.ListBaseAction which has been
loaded
> before?
> It seems like a different class loader.
>
> "Matt Krevs" <[email protected]> wrote:
> >are there any external classes that your failed class uses? I have had
> >this
> >problem if a class has import statements from a jar that i have forgotten
> >to
> >add to my lib directory
> >
> >ie - it may not be the class that the classloader cannot find but another
> >class that it imports
> >
> >try running in verbose mode (-verbose switch) - it may tell you what
> >class
> >exactly cannot be found
> >
> >"Sudarma Pokta" <[email protected]> wrote in message
> >news:[email protected]...
> >>
> >> All the struts classes and lib are in the webapp. All ejbs are in
another
> >package.
> >> All war and jar are then package into one ear file. I have 2 similar
> >struts actions
> >> inheriting from the same base class ListBaseAction. Somehow one of
> >them
> >consistently
> >> have loading problem.
> >>
> >> The ListBaseAction class is in WEB-INF/classes in the war file.
> >>
> >> [INFO] RequestProcessor - -Processing a 'GET' for path
> >'/hotlist/listaction'
> >> java.lang.NoClassDefFoundError: com/cubic/cts/struts/ListBaseAction
> >> at java.lang.ClassLoader.defineClass0(Native Method)
> >> at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
> >> at
> >java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
> >> 6)
> >> at
> >weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
> >> ClassLoader.java:390)
> >> at
> >weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
> >> Loader.java:152)
> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:287)
> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
> >> at
> >weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw
> >> areClassLoader.java:44)
> >> at
> >org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.jav
> >> a:193)
> >> at
> >org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.
> >> java:219)
> >> at
> >org.apache.struts.action.RequestProcessor.processActionCreate(Request
> >> Processor.java:316)
> >> at
> >org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
> >> va:260)
> >> at
> >org.apache.struts.action.ActionServlet.process(ActionServlet.java:129
> >> 2)
> >> at
> >org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
> >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >> at
> >weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
> >> (ServletStubImpl.java:1058)
> >> at
> >weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> >> pl.java:401)
> >> at
> >weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> >> pl.java:306)
> >> at
> >weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
> >> n.run(WebAppServletContext.java:5412)
> >> at
> >weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
> >> eManager.java:744)
> >> at
> >weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
> >> rvletContext.java:3086)
> >> at
> >weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
> >> pl.java:2544)
> >> at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
> >> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
> >> [ERROR] RequestProcessor - -No action instance for path
> >/hotlist/listaction coul
> >> d be created <java.lang.NoClassDefFoundError:
> >com/cubic/cts/struts/ListBaseAction>
> >
> >
>
Similar Messages
-
Class not found error on Firefox browser
Requirement:-
We have Apache server on the top of a tomcat container where we have deployed application Webnow. This application will provide SSO to another application Imagenow. The requirement is we have to authenticate and authorize a user based on the client certificate which will be installed on the client side browser.
Issue:-
We have achieved the requirement for the browser IE. But for browser Firefox ,we are getting an exception "Class not found". Basically an applet class from the jar is not getting loaded on the Firefox.
Further investigating on this we came to conclusion that Firefox is not able to read the SSL certificate.
In order to eliminate this, we have imported the client certificate in java console as well. After this step, we were not getting "ClassNotFoundException" in FF. But right now, user is getting prompted for certificate/keystore password each & every time while trying to login onto the application (both in IE & FF).
So, we are trying to find ways to remove class not found exception without importing client certificate to java console. Also , is there any way to eliminate the authentication pop up for keystore (though we might not go for this approach as it will be very difficult to manage Java console for end users). Need your urgent help on this issue.
Attaching stack trace of both the browser and screenshot of keystore authentication pop-up . FF_Issue_stacktrace.docx is one when we were getting "class not found exception" and IE_Stacktrace.docx is one for successful case.We have a similar set up where we have a web app and an applet in a JSP page. You have to put your applet classes up above WEB-INF. So, if your structure for your webapp was:
tomcat/webapps/mywebapp
you'd want your classes under mywebapp instead of webapps/mywebapp/WEB-INF. In your case, if I read your package structure right, you'd want a Log directory under webapp that contains your LogApplet.class file.
I hope this works for you! -
My server already working properly in internet.It's a travel agent site.there after i include one more page for audio guide which is JMF with in the applet and it is plugin to my jsp page.It's work very fine in my local system.my server is Tomcat .But if i hosted to our server means it's giving applet class not found exception.
It is already having com package ,now i include my jmf package wol to it.
My root directory of this class file is
web-inf/classes/wol/PlaySongs.class
My server doesn't have JMF pack so,i just copy JMF.jar and Sound.jar to my web-inf/lib/ folder.and also to my server folder like tomcat/common/lib/ .Now i restart my server it's giving applet class not found exception.but it's working fine in local system.
I have using following jsp code.
<body>
<%
String fname = "file:" + request.getRealPath("AudioF") + "/button-1.mp3";
%>
<jsp:plugin type="applet" code="PlaySongs.class" codebase="/wol" width="300" height="20">
<jsp:params>
<jsp:param name="file" value="<%=fname%>" />
</jsp:params>
<jsp:fallback>
<p> Unable to start Plug-in. </p>
</jsp:fallback>
</jsp:plugin>Any one help me.
Regards
K.Sureshthe codebase should be a path into the webdir, not the WEB-INF dir. Your browser needs to be able to reach the applet class like any other resource.
My server doesn't have JMF pack so,i just copy JMF.jar and Sound.jar to my web-inf/lib/ folder.and also to my server folder like tomcat/common/lib/If you are already copying it to your common/lib folder, you don't need it in the lib folder of your webapp. -
Struts class not found for war file
Hello,
I am tring to deploy my struts web application in weblogic 8.1. I have all the
library files in web-inf\lib directory. It gave me the error that class not found
for some class in struts library. The console also told me the classpath. But
I can use javap to find the class using the same classpath. Could any one point
me some direction what I am doing wrong here.
Thanks.
Here is the error message:
java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter.>
<Nov 13, 2003 11:05:29 AM EST> <Error> <HTTP> <BEA-101216> <Servlet: "action"
fa
iled to preload on startup in Web application: "voppocWebApp".
javax.servlet.ServletException: [HTTP:101250][ServletContext(id=9921725,name=vop
pocWebApp,context-path=/voppocWebApp)]: Servlet class org.apache.struts.action.A
ctionServlet for servlet action could not be loaded because a class on which it
depends was not found in the classpath C:\bea\weblogic81\server\bin\myserver\upl
oad\voppocWebApp.war;C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extrac
t\myserver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF\lib\activation30425.jar;C:
\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_voppocWebApp
_voppocWebApp\jarfiles\WEB-INF\lib\commons-beanutils30426.jar;C:\bea\weblogic81\
server\bin\.\myserver\.wlnotdelete\extract\myserver_voppocWebApp_voppocWebApp\ja
rfiles\WEB-INF\lib\commons-collections30427.jar;C:\bea\weblogic81\server\bin\.\m
yserver\.wlnotdelete\extract\myserver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF
\lib\commons-digester30428.jar;C:\bea\weblogic81\server\bin\.\myserver\.wlnotdel
ete\extract\myserver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF\lib\commons-file
upload30429.jar;C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\mys
erver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF\lib\commons-lang30430.jar;C:\be
a\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_voppocWebApp_vo
ppocWebApp\jarfiles\WEB-INF\lib\commons-logging30431.jar;C:\bea\weblogic81\serve
r\bin\.\myserver\.wlnotdelete\extract\myserver_voppocWebApp_voppocWebApp\jarfile
s\WEB-INF\lib\commons-validator30432.jar;C:\bea\weblogic81\server\bin\.\myserver
\.wlnotdelete\extract\myserver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF\lib\ja
karta-oro30433.jar;C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\
myserver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF\lib\jdbc2_0-stdext30434.jar;
C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_voppocWebA
pp_voppocWebApp\jarfiles\WEB-INF\lib\mailapi30435.jar;C:\bea\weblogic81\server\b
in\.\myserver\.wlnotdelete\extract\myserver_voppocWebApp_voppocWebApp\jarfiles\W
EB-INF\lib\struts30436.jar;C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\
extract\myserver_voppocWebApp_voppocWebApp\jarfiles\_wl_cls_gen.jar.
java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter.
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:800)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
ervletContext.java:3236)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
ServletContext.java:3181)Hello Mark,
Your suggested solution (putting an empty commons-logging.properties into
web-inf/classes or in a jar in web-inf/lib)
does not make any change at all. It still complains about not being able to
preload the servlet and still
gives exceptions upong calling upon LogFactory.
What I have been able to do is put the three classes from
com.bea.wlw.netui.util.logging into a separate jar
and add that to web-inf/lib.
However I am sometimes getting funny exceptions upon undeploy
(NoClassDefFoundError for org.apache.commons.collection.FastHashMap$KeySet).
Regards,
Robert Varga
"Mark Griffith" <[email protected]> wrote in message
news:[email protected]...
From a FAQ on netui:
1. Why do I get a ServletException while trying to deploy a struts web
application on a Workshop/Integration/Portal domain?
In the "<WL-HOME>/server/lib/knex.jar" file there is a properties file
called "commons-logging.properties" which configures the
com.bea.wlw.netui.util.logging.StrutsLogFactory class for Struts loggingas
below:
org.apache.commons.logging.LogFactory=com.bea.wlw.netui.util.logging.StrutsL
ogFactory
This class file is not available for a Struts web application that was not
built using Workshop, the reason being the containing NetUI jar files are
not present in the web application's WEB-INF/lib folder. This leads to a
ServletException while deploying the web application. The solution is toadd
a blank file (or a JAR containing the file) namedcommons-logging.properties
to the server CLASSPATH, or to the WEB-INF/lib folder of the concerned web
application. This issue will be fixed in Service Pack 2.
cheers
mbg
"Robert Varga" <[email protected]> wrote in message
news:[email protected]...
Hi Rob,
I also have a similar error with deploying a Struts web application into
a
8.1 Basic Workshop Domain created
by 8.1 Platform.
I get a ClassNotFoundException for 'com.wlw...StrutsLogFactory', whenStruts
tries to load any Jakarta class
from commons-beanutils or Struts which has logging.
This happens because commons-logging picks up some property whichinstructs
it to load that class, which is
naturally not included in most web applications, since it is
workshop-specific. This property definition, I think,
is in <bea>\weblogic81\server\knex.jar, called
commons-logging.properties,
containing the following line:
org.apache.commons.logging.LogFactory=com.bea.wlw.netui.util.logging.StrutsL
ogFactory
How can I override this in my webapp in a property file, so that when a
Struts or Beanutils class calls
LogFactory.getLog(org.apache.....<classname>.class), it would not try touse
the property file and the
class defined in knex.jar.
Thanks in advance,
Robert Varga
"Rob Woollen" <[email protected]> wrote in message
news:[email protected]...
Actually it complained about a NoClassDefFoundError. Generally this
is
caused by something in a parent classloader that is found but then
depends on something only loadable in a child classloader.
eg.
You have something in your $CLASSPATH that references something in the
WEB-INF/lib. This will NoClassDefFoundError.
So, as I recommended, remove everything you've added to the$CLASSPATH,
add the jars to WEB-INF/lib. If you're still having problems, show me
your $CLASSPATH, the contents of WEB-INF/lib, and the error message
/stack trace.
-- Rob
yuruo chen wrote:
Hello, Rob,
I did put the common-beanutils and other jar files in the
web-inf/lib
directory.
And from the weblogic console, I do see the jar file get included in
the
classpath.
(those generated file name have some number attached at the end.)
As
I
mentioned
before, I can use javap find the class using this weblogic generatedclasspath.
But weblogic complained that the class is not found.
Rob Woollen <[email protected]> wrote:
Remove anything you've added to the server's classpath.
Add the required jar files to WEB-INF/lib
-- Rob
yuruo chen wrote:
Hello,
I am tring to deploy my struts web application in weblogic 8.1. I
have
all the
library files in web-inf\lib directory. It gave me the error that
class
not found
for some class in struts library. The console also told me the
classpath.
But
I can use javap to find the class using the same classpath. Could
any
>>>>>
one point
me some direction what I am doing wrong here.
Thanks.
Here is the error message:
java.lang.NoClassDefFoundError:
org/apache/commons/beanutils/Converter.>
<Nov 13, 2003 11:05:29 AM EST> <Error> <HTTP> <BEA-101216>
<Servlet:
>>>>>
"action"
fa
iled to preload on startup in Web application: "voppocWebApp".
javax.servlet.ServletException:
[HTTP:101250][ServletContext(id=9921725,name=vop
pocWebApp,context-path=/voppocWebApp)]: Servlet classorg.apache.struts.action.A
ctionServlet for servlet action could not be loaded because a classon which it
depends was not found in the classpath
C:\bea\weblogic81\server\bin\myserver\upl
>
oad\voppocWebApp.war;C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extrac
>
t\myserver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF\lib\activation30425.jar;C:
>
\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_voppocWebApp
>
_voppocWebApp\jarfiles\WEB-INF\lib\commons-beanutils30426.jar;C:\bea\weblogic81\
>
server\bin\.\myserver\.wlnotdelete\extract\myserver_voppocWebApp_voppocWebApp\ja
>
rfiles\WEB-INF\lib\commons-collections30427.jar;C:\bea\weblogic81\server\bin\.\m
>
yserver\.wlnotdelete\extract\myserver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF
>
\lib\commons-digester30428.jar;C:\bea\weblogic81\server\bin\.\myserver\.wlnotdel
>
ete\extract\myserver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF\lib\commons-file
>
upload30429.jar;C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\mys
>
erver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF\lib\commons-lang30430.jar;C:\be
>
a\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_voppocWebApp_vo
>
ppocWebApp\jarfiles\WEB-INF\lib\commons-logging30431.jar;C:\bea\weblogic81\serve
>
r\bin\.\myserver\.wlnotdelete\extract\myserver_voppocWebApp_voppocWebApp\jarfile
>
s\WEB-INF\lib\commons-validator30432.jar;C:\bea\weblogic81\server\bin\.\myserver
>
\.wlnotdelete\extract\myserver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF\lib\ja
>
karta-oro30433.jar;C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\
>
myserver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF\lib\jdbc2_0-stdext30434.jar;
>
C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_voppocWebA
>
pp_voppocWebApp\jarfiles\WEB-INF\lib\mailapi30435.jar;C:\bea\weblogic81\server\b
>
in\.\myserver\.wlnotdelete\extract\myserver_voppocWebApp_voppocWebApp\jarfiles\W
>
EB-INF\lib\struts30436.jar;C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\
extract\myserver_voppocWebApp_voppocWebApp\jarfiles\_wl_cls_gen.jar.
java.lang.NoClassDefFoundError:
org/apache/commons/beanutils/Converter.
atweblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:800)
atweblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
ervletContext.java:3236)
atweblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
ServletContext.java:3181) -
Hi,
I have installed the Oracle Data Integrator Public Web Services on Apache Tomcat 5.5 application server with Apache Axis2
When I try to call the web service OdiInvoke using the operation "listScenario" using only the JdbcDriver as input parameter, the response I get back from the web service call is:
java.lang.ClassNotFoundException: Class Not found : oracle.jdbc.driver.OracleDriver
Using the operator "getWebServiceVersion" I get a successfull response back som the connection seems fine.
Obviously the error has to do with the driver not beeing available but where should I put the driver? Or how do I make it available? When working from Topology Manager, all connections are fine.
Best regards
MSolved it on my own by putting ojdbc14.jar in the following directory: <Apache-Tomcat install dir>/webapps/axis2/WEB-INF/lib/
Thought I'd share in case some one else has same issue
/M -
Bean class not found error...
I am using Tomcat 4.0 on windows 98, when I try to use my bean class from jsp program, I get class not found error. I read/followed all the similar problems in the forum but still have not been able to solve the problem.
The error I get is as follows:
==============================
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
An error occurred at line: 1 in the jsp file: /handoff1.jsp
Generated servlet error:
D:\Apps\Apache\Tomcat4.0\work\Standalone\localhost\cartapp\handoff1$jsp.java:56: Class com.cartapp.user.User not found.
com.cartapp.user.User handoff = null;
^
An error occurred at line: 1 in the jsp file: /handoff1.jsp
Generated servlet error:
D:\Apps\Apache\Tomcat4.0\work\Standalone\localhost\cartapp\handoff1$jsp.java:59: Class com.cartapp.user.User not found.
handoff= (com.cartapp.user.User)
^
An error occurred at line: 1 in the jsp file: /handoff1.jsp
Generated servlet error:
D:\Apps\Apache\Tomcat4.0\work\Standalone\localhost\cartapp\handoff1$jsp.java:64: Class com.cartapp.user.User not found.
handoff = (com.cartapp.user.User) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.cartapp.user.User");
^
3 errors, 1 warning
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
=============================================
Location of files
==================
My jsp file is located at:
D:\Apps\Apache\Tomcat4.0\webapps\ROOT\cartapp
my bean class - User - is at:
D:\Apps\Apache\Tomcat4.0\webapps\ROOT\WEB-INF\classes\com\cartapp\user
Contents of the jsp file
=======================
<jsp:useBean id="handoff" scope="session" class="com.cartapp.user.User" />
<HTML>
<BODY>
This is the setting page!
<%
handoff.setFirstName("George");
%>
</BODY>
</HTML>
The first 2 lines of the class are:
==================================
package com.cartapp.user;
public class User {
Environment settings
====================
JAVA_HOME=D:\Apps\java\jdk
CATALINA_HOME=D:\Apps\Apache\Tomcat4.0
CLASSPATH=;.;F:\ola\progmn\JAVA\pkgs;D:\Apps\Apache\Tomcat4.0\common\lib\servlet.jar
Can anyone please help. Thanks.
Thanks.
Ola Oke (SCJP 1.4)Not certain but try putting the classes folder in your classpath:
D:\Apps\Apache\Tomcat4.0\webapps\ROOT\WEB-INF\classes\ -
Class not found - was channel definition question
I am much closer. Tomcat is putting some key messages in the console and I overlooked them. It looks like I am closer than I thought. The request looks like its getting received, but my service blows up on response due to I think two class not found issues. But, I can't tell what classes are missing.
[Flex]Deserializing AMF/RTMP request
Version: 3 null
2.0
(Command method=null (0) trxId=2.0)
null
(Externalizable Object #0 'flex.data.messages.DataMessageExt')
(Array #1)
[0] = (Typed Object #2 'flex.data.messages.DataMessage')
identity = (Object #3)
partId = 81959
operation = 11
correlationId = "419F99AA-B649-9490-650D-88F3CAADBCB7"
headers = (Object #4)
messageId = "8AF6C660-9DE3-F155-6A91-88F3CAC5A4F0"
timestamp = 0
destination = "DocumentPart"
timeToLive = 0
body = (Typed Object #5 'com.hpdocs.ds.document.DocumentPart')
documentId = 81960
partId = 81959
content = "Hello World"
clientId = "05E549ED-455F-A9AF-EEDE-88F3CA7E4BF9"
"DocumentPart"
(Object #6)
DSEndpoint = "hp_rtmp"
DSId = "F65B351A-A60C-6F91-2932-44630DAED2B9"
(Byte Array #7, Length 16) ""
7
[Flex]Received command: TCCommand [ Cmd: 0, MethodName: null, TrxID: 2.0]
[Flex]Serializing AMF/RTMP response
Version: 3
(Command method=_error (0) trxId=2.0)
(Typed Object #0 'flex.messaging.messages.ErrorMessage')
headers = (Object #1)
rootCause = (Typed Object #2 'java.lang.NoClassDefFoundError')
message = "javax/transaction/SystemException"
localizedMessage = "javax/transaction/SystemException"
cause = (Typed Object #3 'java.lang.ClassNotFoundException')
message = "javax.transaction.SystemException"
localizedMessage = "javax.transaction.SystemException"
cause = null
exception = null
body = null
correlationId = "419F99AA-B649-9490-650D-88F3CAADBCB7"
faultDetail = null
faultString = "There was an unhandled failure on the server. javax/transaction/SystemException"
clientId = "F65B3649-620E-C827-50C4-6A1C78BC3712"
timeToLive = 0.0
destination = "DocumentPart"
timestamp = 1.273607998612E12
extendedData = null
faultCode = "Server.Processing"
messageId = "F65B3675-5409-795E-747F-B2F459749415"it looks like your Tomcat is missing the JTA setting.
Tomcat
To use LiveCycle Data Services with Tomcat when not using the integrated Tomcat configuration, install support for the Java Transaction API (JTA). You might also have to install several other libraries depending on the features that you plan to use. Follow these steps after deploying the LiveCycle Data Services WAR files. These steps are not necessary for the integrated Tomcat installation.
Stop Tomcat.
To install support for JTA, a recommended implementation is the Java Open Transaction Manager (JOTM), which is a fully functional open source stand-alone transaction manager.
Download JOTM from http://jotm.objectweb.org.
Copy the JAR files from jotm-root/lib to [tomcat-root]/common/lib.
Create a context file for your web application and register JOTM using the Transaction element. For example, for the samples WAR create a tomcat-root/conf/Catalina/localhost/lcds-samples.xml file and add the following lines:CONTEXT antijarlocking="false" antiresourcelocking="false" docbase="${catalina.home}/webapps/lcds-samples" path="/lcds-samples" privileged="true"> <TRANSACTION factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"></TRANSACTION></CONTEXT>
Note: If a context file exists for your web application, add the <TRANSACTION> element under the <CONTEXT> element.
Increase the maximum memory to at least 512 MB by specifying the maximum heap size for the JVM in the JAVA_OPTS variable: -Xmx512m
(Optional) To enable custom authentication, locate the Tomcat security resource libraries under install_root/resources/security/tomcat.
Place the flex-tomcat-common.jar and flex-tomcat-server.jar files in the tomcat/lib folder.
Add the following line to the context descriptor file for your web application:
<VALVE classname="flex.messaging.security.TomcatValve"></VALVE>
You can now perform authentication against the current Tomcat realm. Usually, the default configuration for authentication stores user information in conf/tomcat-users.xml. See the Tomcat documentation for more information on realms. See the LiveCycle Data Services documentation for more information on custom authentication.
You might also have to update the active <LOGIN-COMMAND> in /WEB-INF/flex/services-config.xml in each deployment of a LiveCycle Data Services WAR file. For Tomcat, ensure that the TomcatLoginCommand is active in the <SECURITY>section:<SECURITY><LOGIN-COMMAND server="Tomcat"></LOGIN-COMMAND>...</SECURITY>
(Optional) To use the JMSAdapter with the Message Service, install and configure a JMS provider (such as ActiveMQ or openJMS) for use with Tomcat.
Restart Tomcat.
original doc is located here
Hopefully this will help. -
APPLET.class not found error on explorer!! need solution URGENTLY!!!
Hi,
I am calling my applet from a jsp and trying to run it on the internet explorer but I am getting the following error:
load: class /WEB-INF/classes/Log/LogApplet.class not found.
java.lang.ClassNotFoundException: .WEB-INF.classes.Log.LogApplet.class
My Explorer version is 6.0 and I am using Plug-in: Version 1.4.1_05. Why do you think it cannot find the class? it is located under the specified directory which is:
/Web Content/WEB-INF/classes/Log/LogApplet.class
and my jsp which is calling my applet is located under:
Web Content/Login.jsp
this is a very urgent problem!! could you please help me? I will appreciate your help so much.
Thanks,
Sofia
here is how I wrote my jsp:
<jsp:plugin type="applet"
code="/WEB-INF/classes/Log/LogApplet.class"
width="600"
height="620"
>
<jsp:params>
</jsp:params>
<jsp:fallback>
<p>Unable to start plugin.</p>
</jsp:fallback>
</jsp:plugin>
...I'm having the same problem...however my applet is located outside of the web-inf folder. the web-inf folder is only for servlets. applets can't be recognised inside it since that folder is for server-side application while applets are meant for client-side.
i put my applet into a separate folder in the root directory of the webapp but it's generating a security error when i call it using a jsp page. so far the only way i got around it was specifying the entire codebase using localhost...but it's not a pretty good way of doing it.
any ideas anyone? -
Installation problem on redhat 6.0, class not found
I have followed the instructions for installing oracle 8i. When i run runIns.sh I get the following error message:
class not found: oracle.sysman.oii.oiic.OiicInstaller
Does anyone know what this means? and what do i have to do?<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by am():
probably you don't use jre116_v5. Install it and alter all symlinks to the old jre/jdk.
Note: Don't use any jdk at all or any jre which is newer than jre116_v5!<HR></BLOCKQUOTE>
Thanks for the reply, but, yes, I've already done that.
null -
For weeks I have been viewing a doggy day care center via their web cam. This weekend I upgraded to Lion and have been unable to view the center. I get an error message for Java plug-in 1.6.0_29 ....webcam class not found. Any suggestions on how to fix this?
Sorry, don't know what else to suggest unless there's a URL to the problem stream that someone here can try. Otherwise we can't test it to try and determine what might be wrong.
BTW, make sure they're testing it with a Mac, not with a Windows system. If they test only with Windows, what they say is or is not working doesn't mean much.
Regards. -
Class Not Found in Server Application
I have set up a basic server application. It contains three files namely
Arith.java (implements the Remote interface)
ArithImpl.java (implements Arith.java the server) and
ArithApp.java which is the client Application
All of these are in the same package. I have compiled all of these files and I execute the rmic ArithImpl command from within the ArithImpl.java file via Runtime.getRuntime.exec(...);
The stub and skeleton files are generated and still I get a class not found exception. I have checked the class path and these files are within the class path.
If anyone could help me I'd greatly appreciate it. Thanks
public class ArithImpl extends UnicastRemoteObject implements Arith{
public static final String HOST_NAME = "localhost";
public static final String ROOT = "C:/Work/Thesis~1/LearningRMI/";
public static final String CLASSPATH = ROOT;
public static final String POLICY_FILE = CLASSPATH+"policies/rmi.policy";
public static final String RMI_LOCATION = "C:/Progra~1/java/jdk1.5.0_03/bin/";
String objectName;
public ArithImpl(String s) throws RemoteException{
super();
objectName = s;
public int[] add(int[] a, int[] b) throws RemoteException {
int c[] = new int[10];
for (int i=0; i<10; i++)
c[i] = a[i]+b;
return c;
public static void main(String[] args) {
System.setProperty("java.security.policy",POLICY_FILE);
System.setProperty("java.class.path",CLASSPATH);
String rmic = RMI_LOCATION+"rmic -vcompat -classpath "+CLASSPATH+" "+ArithImpl.class.getName();
String registry = RMI_LOCATION+"\\rmiregistry";
try{
Runtime rt = Runtime.getRuntime();
rt.exec(rmic);
rt.exec(registry);
catch (IOException e){
e.printStackTrace();
RMISecurityManager sm = new RMISecurityManager();
System.setSecurityManager(sm);
try{
Naming.rebind("//"+HOST_NAME+"/ArithServer", obj);
System.out.println("ArithServer bound in registry");
catch (Exception e){
e.printStackTrace();java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: Arith
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:595)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at ArithImpl.main(ArithImpl.java:106)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: Arith
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassNotFoundException: Arith
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at sun.rmi.server.LoaderHandler.loadProxyInterfaces(LoaderHandler.java:707)
at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:651)
at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:588)
at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1494)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
... 9 more -
"Java Class not found in classpath" Error in DESIGNER
Hello All,
I'm trying to connect in Designer using a JDBC connection to MS SQL Server 2008. As per the instructions, I updated my jdbc.sbo file with the path to the existing two JAR files. However, I still get the following error when I try and connect in Designer: "Java Class not found in classpath : C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\dataAccess\connectionServer\jdbc\Drivers\sqlsrv". Of course, this error includes the drive path with the location to my JAR files. Any help in resolving this nagging issue is very GREATLY appreciated. Also, if anyone needs it I can post a copy of the jdbc.sbo file to this thread.
Thank you,
PankajStratos,
Your suggestion didn't help. I tried to connect after restarting my machine and I still get the error. And, I've also tried adding a connection to MS SQL Server 2005 using this JDBC driver, and that didn't help either. Any other suggestions? Would it help to see my "jdbc.sbo" file? Thanks again for your and everyone else's help, and I look forward to your reply.
Regards,
Pankaj -
Lookout 6.0.1.: Class Not Found when trying to open project on another PC
I am using the same version on both PC's, but when I move the file over and run it, I get "Class not found!". Then "Error running process file".When running the lookout source file I get the following:
Lookout Process File Compiler Version 6.0.1 (build 1)
Copyright National Instruments 1992-2004 All rights reserved.
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(324): error: Class not found: DirectLogic
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(667): error: Class not found: Meter
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(670): error: Class not found: Meter
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(673): error: Class not found: Meter
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(676): error: Class not found: Meter
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(1977): error: Class not found: Meter
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(57): error: Object is not defined: DL1
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(667): error: Object is not defined: Meter1
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(670): error: Object is not defined: Meter2
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(673): error: Object is not defined: Meter3
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(676): error: Object is not defined: Meter4
I have also tried to open on 6.1 with similar results.
I am familiar with lookout, however I have taken this project over so I am not sure what I need to do from here.There are two object (DirectLogic and Meter) that are not present on the amchine you are moving the process to. If the same version of Lookout, you might be able to just copy the cbx files.
Mike
Mike Crabtree - Lead Developer
Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
(866) 964-6948 / (760) 247-9512 -
Keep getting VncViewer.class not found error when trying to use Windows 7
Greetings,
I have no issue accessing the OVM Manager 2.2 with OEL 5.4 x86_64 with the latest Java release from ULN. But when I use a Windows 7 client ( x86) with the Sun Java 6 Update 18 I get the following error when trying to access the Console of a VM Guest:
Java Plug-in 1.6.0_18
Using JRE version 1.6.0_18-b07 Java HotSpot(TM) Client VM
User home directory = C:\Users\deverej
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
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
load: class VncViewer.class not found.
java.lang.ClassNotFoundException: VncViewer.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://141.144.112.202:8888/OVS/faces/app/VncViewer/class.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: VncViewer.class
I am curious fi I should use only a specifc Java Engine with IE 7 or the latest Firefox browers.Same issue to with Windows XP SP3 x86 with Java Runtime Enviornment 1.5.0_15
J2SE Enviornment 5.0 Update 15
Java 6 Update 17 -
Class not found in applet using 2 jar files
I have an applet which has been working for years as a stand alone or connecting directly to a derby database on my home server. I have just changed it to connect to MySQL on my ISP server via AJAX and PHP.
I am now getting a class not found error in my browser, probably because I'm stuffing up the class path.
The HTML I am using to call the applet is:
<applet code="AMJApp.class"
codebase="http://www.interactived.com/JMTalpha"
archive="AMJ014.jar,plugin.jar"
width="500"height="500"
MAYSCRIPT style="border-width:0;"
name="jsap" id="jsap"></applet>The AMJ014.jar contains the applet and supporting class files.
The error message is strange to me because it refers to a class I noticed on another web page but which has nothing to do with my applet. Anyway, the message in full is:
load: class NervousText.class not found.
java.lang.ClassNotFoundException: NervousText.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassNotFoundException: NervousText.class
java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0Thanks again.
The page code is:
<html>
<head>
<title>Applet to JavaScript to PHP</title>
</head>
<body>
<script type="text/javascript">
function updateWebPage(myArg)
document.getElementById("txt1").innerHTML=myArg;
if (myArg=="")
document.getElementById("cbxItem").innerHTML="";
return;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.onreadystatechange=function()
if (xmlhttp.readyState==4 && xmlhttp.status==200)
document.getElementById("cbxItem").innerHTML=xmlhttp.responseText;
xmlhttp.open("GET","putitem.php?id="+myArg,true);
xmlhttp.send();
</script>
<form>
<table border=1 align='center' cellpadding=0 cellspacing=0 >
<tr><td style='text-align:center; background-color:#C0C0C0'>Compiled Java Applet</td></tr>
<tr><td><applet code="AMJApp.class" codebase="http://www.interactived.com/JMTalpha" archive="AMJ014.jar" width="500"height="500" MAYSCRIPT style="border-width:0;" name="jsap" id="jsap"></applet> </td></tr>
<tr><td style='text-align:center; background-color:#C0C0C0'>HTML Textbox filled by JavaScript</td></tr>
<tr><td><textarea style='width:500px; height:50px' name='txt1' id='txt1'>Query goes here</textarea></td></tr>
<tr><td style='text-align:center; background-color:#C0C0C0'>HTML diagnostic messages rendered by PHP script</td></tr>
<tr><td><div id="cbxItem">PHP info will populate this space</div></td></tr>
</table>
</form>
</body>
</html>The URL of the problem page is:
http://www.interactived.com/JMTalpha/AMJTest.htm
The code in the page is based on the following test page, which works:
http://www.interactived.com/test5Applet.htm
And the Applet, before I made any changes can be seen at this address:
http://www.interactived.com/jartest0906.htm
Thanks again for you interest.
Edited by: 886473 on 21-Sep-2011 00:47
Maybe you are looking for
-
Issue with the functions "add matching sets" and "modify matching sets"
Hi, Though 'None' access permission is set for the functions 'Add Matching Sets' and 'Modify Matching Sets', they are accessible. Is this a bug with the tool? or am I missing something? Thanks in advance, Madan
-
It is a common and frequent question, but it has not been answered satisfactorily. The question is, how do I pass a parameter from a form in a Portal page to another page? I have discovered that using a Dynamic Page, I can read parameters passed in b
-
Oracle database configuration in ATG
Hi, I am configuring oracle database with ATG 9.3 using CIM configuration and using oracle 10 g enterprise edition. I have selected Publishing for International from CIM option menu. I filled all the requirements : User name : SYS Password : India@12
-
Text Field value display twice in Adobe Form.
Hi Experts, I want to display a text field value twice in a ADOBE FORM but it only display at first occurance of the text field. Please suggest me possible solution. Regards, Abdul
-
"save as" does not appear on my menu
Since my update to the new operating system, (Mountain Lion), when working in "pages" and "numbers" the "Save As" option is not listed in the pull down menu. The only way I can get to it is to go to "Help" and put it as a search. Then it shows where