IPage - Casting Issue - Class Not Found
EP6SP14...Encountering a funny issue...
I am successfully compling the following code. All JAR are in place and NWDS is detecting the class and showing the methods properly. LookupObject() is able to find the object.
import com.sap.portal.pcm.page.IPage;
IPage page = (IPage) lookUpObject request,PcmConstants.ASPECT_SEMANTICS,pageUrl);
lookUpObject() returns - com.sap.portal.pcm.page.admin.AttributeSetPage@81e75c
but during Casting, it gives error...
Caused by: java.lang.NoClassDefFoundError: com/sap/portal/pcm/page/IPage
Any ideas what's missing???
Hi Gulshan,
For IPage (and IiView, ILayout, ...) you need the following reference:
<property name="ServicesReference" value="com.sap.portal.ivs.api_iview"/>
Hope this helps.
Daniel
Similar Messages
-
JMS compiling issue (class not found??)
I have installed JMS and the Sun Application Server and am having an odd problem. Here is my code:
Subscriber2 class:
import javax.jms.*;
public class Subscriber2
private MyMessage2 msg;
public Subscriber2(){}
}MyMessage2 class:
public class MyMessage2
public MyMessage2(){}
}I am using the following two lines to compile the two programs (in this order, too):
javac -classpath C:\sun\appserver\bin\j2ee.jar MyMessage2.java
javac -classpath C:\sun\appserver\bin\j2ee.jar Subscriber2.java
For some reason, I am getting an error during the compilation of Subscriber2.java
Subscriber2.java:5: cannot resolve symbol
symbol : class MyMessage2
location: class Subscriber2
private MyMessage2 msg;
Why can't it find the MyMessage2 class? They're in the same directory. What is going on here?Since it is indeed a classpath problem, I would suggest to read the following, as to not have again the same type of problem :
http://mindprod.com/jgloss/classpath.html -
"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 -
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 when accessing Proxy class from backing bean in VC.
Hi All,
I'm attempting to access a class of a webservice(generated as a proxy) within my ADF application and invoke the method within a backing bean of the View Controller(bean scope : backing bean). The proxy has generated an ObjectFactory class among other classes. When I access this Object factory class from within the backing bean, the application throws a Class not found error.
I don't know where the error lies since I've declared the View Controller of the ADF application dependent on the Proxy and I've imported the class and accessing it within a backing bean. How would you suggest I approach resolveing this.
JDev : 1.1.1.4
Thank you.
Regards
PP.Hello Arun,
Thank you for suggesting a Data control, but my requirement isn't to drag and drop the method as a button. It's more of a behind the scnes updating data via a database adapter requirement.
I've resolved the issue. turns out, my deployment archive didn't include the proxy.jpr. Once included it works likea charm.
Thanks
PP. -
Hi,
Did anyone came across this issue with Class not being found for XSLT Function used in transformer on 12c OSB.
I'm using oraext:sequence-next-val and have configured as below:
namespace-uri:http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc
namespace-prefix: oraext
Not sure why at runtime I'm getting below error, as the same was working fine in 11g OSB Domain.
XML-22045: (Error) Extension function error: Class not found 'oracle.tip.pc.services.functions.ExtFunc'Have you restarted servers after putting jar in $Domain_Home/lib directory? Also try after explicitly adding this jar in classpath by editing server startup script (startManagedWeblogic.cmd or .sh) or in domain env setting script (setDonainEnv.cmd or .sh) and restarting the servers.
Regards,
Anuj
Edited by: Anuj Dwivedi on Mar 21, 2011 1:10 PM -
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! -
Class not found in web-inf/classes folder of war file within ear file
Hi all,
I am using Weblogic 8.1 sp4. I have a war file within an ear file. I am trying to deploy the war file with a few classes within its web-inf/classes folder, however when the classes are in that folder I consistently get a class not found exception when trying to instantiate them. If I package the classes in a jar file and then put that jar file within the web-inf/lib folder of the war, the classes are also not found.
If I put these two classes in the app-inf/classes folder of the ear file, everything works as expected and the classes are found.
Any ideas of why this is happening. This seems to be a very simple thing that should work, but appears to not be working at all.
thanks in advance for any suggestions or ideas.Hi,
This is a known limitation/issue with WL. There is also no way around this.
Regards,
LG -
Class not found for class generated by autotype when deploy
I'm getting a ClassNotFoundException when I attempt to deploy a webservice that was originally generated from an XSD.
1) I create the stubs using "autotype" and the schemaFile attribute. Class files are generated and placed in the location specified by destDir.
2) I then run source2wsdd to generate the web-services.xml and WSDL files. source2wsdd specified the "javaSource" attribute and points to the java file the WebService is to call.
I also take all the generated JAVA classes and put it into a JAR file for step 3.
3) I run wspackage to create the EAR file. For "webAppClasses" I specify the class files that goes with the "javaSource" specified in step 2. I also take the JAR file created in step 2 (which contains all the code generated by step 1) and use "utilJars" to put in the the /lib directory of the war file.
4) When I deploy, I get a "class not found" for one of the classes that is in the utility jar file I created in step 2. I have verified that the jar file is in the "web-inf/lib" directory.
What am I not seeing that is causing WebLogic (WLS 8.0 SP2) to not find the class?
Thanks in advance...
WayneBruce: Got it working. (Bad news is I'm not sure what I did to fix it. :-( )
My service now deploys, but I'm having problems doing a "source2wsdd" from inside
Eclipse. Found another customer in this group with the same issue, and added my
info to his message.
For now I have to run the build outside Eclipse, but at least my service is deployable.
Thanks for taking the time to reply to my message!
Wayne
Bruce Stephens <[email protected]> wrote:
I think attachments are working again, so you might post a short example
and we can take a look...
Bruce Stephens wrote:
Hi Wayne,
Could it be something simple like not being capital "WEB-INF"
...probably not, but who knows. Also, in step 1, is your destDir going
to WEB-INF/classes ?? Might review the working example Manoj generated
[1].
HTH,
Bruce
[1]
http://www.manojc.com/?sample43
Wayne Holmes wrote:
I'm getting a ClassNotFoundException when I attempt to deploy a webservice
that was originally generated from an XSD.
1) I create the stubs using "autotype" and the schemaFile attribute.Class files are generated and placed in the location specified by destDir.
2) I then run source2wsdd to generate the web-services.xml and WSDLfiles. source2wsdd specified the "javaSource" attribute and points to
the java file the WebService is to call.
I also take all the generated JAVA classes and put it into a JARfile for step 3.
3) I run wspackage to create the EAR file. For "webAppClasses" Ispecify the class files that goes with the "javaSource" specified in
step 2. I also take the JAR file created in step 2 (which contains all
the code generated by step 1) and use "utilJars" to put in the the /lib
directory of the war file.
4) When I deploy, I get a "class not found" for one of the classesthat is in the utility jar file I created in step 2. I have verified
that the jar file is in the "web-inf/lib" directory.
What am I not seeing that is causing WebLogic (WLS 8.0 SP2) to notfind the class?
Thanks in advance...
Wayne -
IAS: Java Classes not found Error
Hello,
[oracle@Linux2005 bin]$ ORACLE_HOME=$ORACLE_HOME5
[oracle@Linux2005 bin]$ ./rwserver.sh server=RepSRV batch=yes
[oracle@Linux2005 bin]$ ./rwserver server=RepSRV
REP-0133: Java Classes not found
====
1) Getting a REP-0133: Java Classes not found ?
2) How can I resolve this issue ?
PTTry post your problem to "Application server" forum.
Oracle Application Server - General -
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 -
Getting the Adapter Class Not Found Error in the Java Manipulator
Hi,
I wrote a custom java manipulator for the baseline update and created a jar file for the class. This works fine in the Windows machine. All I have to do is while specifying the CLASSPATH, I entered the ./ib/newManipulator.jar; ./lib/additional_dependency.jar. When I tried to deploy the same code in the Unix environment, it fails saying the Adapter Class not found. The only difference from windows and Unix environment is that in the windows machine, in order to run the base line update, I go to the directory my_project->control->baseline_update.bat but in case of Unix environment I have a separate location where I have a shell script called run-baseline-update.sh located at /apps/bin which invokes the baseline.sh in the directory my_project/control/baseline.sh. I even tried to put the full path of the jar files e.g. /my_project/lib/newManipulator.jar; /my_project/lib/additional_dependency.jar in the class path but still the same issue. Any suggestions?Unix classpath needs ":" as the path separator, not ";". Changing that will make this work.
For reference, later versions of the deployment template make this configurable, so you'd see (in environment.properties):
# PATH_SEP_VARNAME: for platform-independence
PATH_SEP_VARNAME=;
# Forge needs record store libraries as well as Spring to load record store adapter configuration files
FORGE_CLASSPATH=./config/lib/java/spring-delegate-adapter-1.0.1.jar${PATH_SEP_VARNAME}./config/lib/java/spring.jar${PATH_SEP_VARNAME}./config/lib/java/eacToolkit.jar${PATH_SEP_VARNAME}./config/script${PATH_SEP_VARNAME}.
You can then add the following to your <forge /> definition in AppConfig.xml:
<arg>--javaClasspath</arg>
<arg>${FORGE_CLASSPATH}</arg>
Hope this helps.
Michael -
Jasper exception? Class not found? But the resources are there!
Hi, thanks for reading. I am building a simple web application. Just servlets and jsp working together to either retrieve or add or edit or delete data in a mysql database.
The problem i have is, some servlets compile and run fine and properly, while others return me the 'jasper error' (see below) and class not found error. The code in these servlets (those that work, and those that don't) are almost identical. I've checked them a couple of times, does not seems like there is any problem with the programming at all.
Please advise. Thanks for reading. If there is any files that you think i should upload, please let me know. Though it says class not found, the resources are there! What could be wrong? From the advice of someone on another thread, i've looked into the web.xml. And it looks like its right.
If anyone is willing to look into the matter for me. I'll upload all the files. (But that feels really rude to just impose on someone like that). Irregardless, thanks, really.
And what about the Jasper Exception? I've googled that already. But nothing that i found has been useful (even the official ones from apache).
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Wrapper cannot find servlet class Maintenance.Support.AddProdLog or a class it depends on
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:619)
root cause
java.lang.ClassNotFoundException: Maintenance.Support.AddProdLog
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:619)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
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
An error occurred at line: 55 in the jsp file: /support_editUAT.jsp
Generated servlet error:
C:\Documents and Settings\Administrator\.netbeans\5.5.1\apache-tomcat-5.5.17_base\work\Catalina\localhost\MaintenanceSite\org\apache\jsp\support_005feditUAT_jsp.java:110: cannot find symbol
symbol : variable branchname
location: class org.apache.jsp.support_005feditUAT_jsp
out.print( branchname);
^
An error occurred at line: 91 in the jsp file: /support_editUAT.jsp
Generated servlet error:
C:\Documents and Settings\Administrator\.netbeans\5.5.1\apache-tomcat-5.5.17_base\work\Catalina\localhost\MaintenanceSite\org\apache\jsp\support_005feditUAT_jsp.java:148: cannot find symbol
symbol : variable branchname
location: class org.apache.jsp.support_005feditUAT_jsp
out.print( branchname);
^
2 errors
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
root cause
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 55 in the jsp file: /support_editUAT.jsp
Generated servlet error:
C:\Documents and Settings\Administrator\.netbeans\5.5.1\apache-tomcat-5.5.17_base\work\Catalina\localhost\MaintenanceSite\org\apache\jsp\support_005feditUAT_jsp.java:110: cannot find symbol
symbol : variable branchname
location: class org.apache.jsp.support_005feditUAT_jsp
out.print( branchname);
^
An error occurred at line: 91 in the jsp file: /support_editUAT.jsp
Generated servlet error:
C:\Documents and Settings\Administrator\.netbeans\5.5.1\apache-tomcat-5.5.17_base\work\Catalina\localhost\MaintenanceSite\org\apache\jsp\support_005feditUAT_jsp.java:148: cannot find symbol
symbol : variable branchname
location: class org.apache.jsp.support_005feditUAT_jsp
out.print( branchname);
^
2 errors
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:249)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)Thanks for the reply. I'm sorry for cross-posting. The other thread is here: http://forum.java.sun.com/post!reply.jspa?messageID=9920352#
sunish_jose suggested that:
The servlet classes u mentioned in web.xml should be in WEB-INF/classes. U can add in many ways, you can manually copy and paste(But u have to follow the package structure) or You can mention the class folderd in your editor to
WEB-INF/classes so that the editor will automaticall generate the class file into that folder with the folder structure. By looking at the error.txt what I can understand is Exceptions are thrown due to the above issue and more than that there are some compilation errors in support_getContact.jsp.
And i'm looking into that right now. -
HELP!! Nokia's API classes not found with j2me WTK
I setup j2me WTK, jdk1.4.2 and also Nokia's SDK (Series_60_MIDP_SDK_for_Symbian_OS_v_1_2_1) on my Win NT 4.0 machine.
J2ME samples (shipped with it) are working fine with ktoolbar. but when i try to build & run nokia samples, they are always giving error "FullCanvas class not found" and "package com.nokia.lcd.ui.* not found". I am sure it is the problem of placement of classes of nokia at correct place inside j2me's WTK. However, i followed the guidelines to install symbian sdk inside wtk401\wtklib\devices folder (as per instructions of forum nokia). But i am still not able to get it running. Any expert suggestions, then plz respond me , i am in urgent need to solve this issue!!!! plz help me!!!!Hi,
Maybe I'm being thick but I can't get this work. I've tried zipping the com/nokia stuff into the midpapi.zip. And I've tried just replacing midapi.zip with classes.zip from the nokia emulator. But it still says:
"package nokia.mid.ui does not exist
import nokia.mid.ui.*;"
I'm using ktoolbar 1.04.
Many thanks!
CP
Hey, thanks for the great tip. Was also using
KToolbar because it runs faster on my slow laptop than
Sun One studio.
With the later version of WTK, the paths
C:\...\WTK21\lib contains 2 files, midpapi20.zip and
midpapi10.zip
The later contains classes for compiling to MIDP1.0
standard. I think most people use this. Replace it
the class.zip in
C:\Nokia\Devices\Nokia_7210_MIDP_SDK_v1_0\lib if
you're using the same SDK as I am, and don't forget to
rename it.
Cheers.
Maybe you are looking for
-
Error when loading data from PSA TO Target(ODS)
I am getting the following errror:- The value ' 20080712143841' from field CRM_CHANGED_AT is not convertible into the DDIC data type DATS of the InfoObject in data record 61. The field content could not be transferred into the communication structure
-
How to use standard DIFF pricing condition in pricing procedure
In my pricing procedure there is total amount value including Tax & I want to apply DIFF (Rounding Off) condition on that total but I don't know how It apply ? please provide me solution. thank you .
-
Hi, We are using 2005B - PL - 41 While viewing Account balance of any GL Account Offset Code is displayed there. But I need the Account Name instead. In form settings it is not available. How can I bring the account description. For eg. If we view TD
-
Packaging a PAR as Part of a EAR
Hello I have found documentation regarding Packaging a PAR as Part of a EAR on http://help.sap.com/saphelp_erp2004/helpdata/en/76/27044017355c0ce10000000a1550b0/content.htm Though I managed to do it manually (i.e. meddling with the application-j2ee-e
-
I don't get the menu for predictive text word suggestions that the user guide says i should. I can set predictive but not word suggestions. also, if i want to save a word in the dictionary i have to spell it, save it, then type it again within the sa