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
Similar Messages
-
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 -
OEP 12.1.3
Following the instructions in 4 Adapters (12c Release 1 (12.1.3)) I have created a custom message converter bean for my Outbound JMS Adapter (I had to add the JAR file com.bea.wlevs.adapters.jms_12.1.3.0_0.jar from OEP_HOME\oep\modules to my project to make the code compile). However, upon deployment, I ran into a class not found exception:
<Sep 15, 2014 7:17:19 PM CEST> <Error> <org.springframework.osgi.extender.internal.activator.ContextLoaderListener> <BEA-000000> <Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=CreditCardTheftDetection.AirportCreditCardTransactionProcessing, config=osgibundle:/META-INF/spring/*.xml))
java.lang.NoClassDefFoundError: saibot.airport.security.prevention.jms.SuspectedCreditCardEventConverter not found from bundle [CreditCardTheftDetection.AirportCreditCardTransactionProcessing (CreditCardTheftDetection.AirportCreditCardTransactionProcessing)]
at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:112)
at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:270)
Caused By: java.lang.NoClassDefFoundError: com/bea/wlevs/adapters/jms/api/OutboundMessageConverter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)
Caused By: java.lang.ClassNotFoundException: com.bea.wlevs.adapters.jms.api.OutboundMessageConverter
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
I have tried adding the JAR file (com.bea.wlevs.adapters.jms_12.1.3.0_0.jar) to my deployment JAR. That did not make any difference.
Does anyone know why this class OutboundMessageConverter is not found - and more importantly: what I can do to make it available in the run time?
thanks.
LucasTo make a package available to your application at runtime for OEP, you will need to add it to the application's MANIFEST.MF file to the Import Package section (since the OEP server is OSGi-based). There's no need to supply a version number, you can just enter the package name (e.g.)
com.bea.wlevs.adapters.jms.api, -
Compilation Error for import classes not found in generated Proxy Class
Hi,
We are generating java classes for the COM dll using JCOM com2java compiler.
We are getting a compilation error for import class not found when compiling the
generated Proxy java source code. It can't find the com.bea.jcom.Dispatch class that
the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
or com.bea.jcom.Param. These are interfaces or data types or classes used by COM
library.
I added weblogic.jar to my class path and the only Dispatch class i found inside
the weblogic.jar is com.linar.jintegra.Dispatch;
We have com objects for which we want to develop an EJB client to interface with
the COM object using JCOM with Native Mode disabled.
Any help on the compilation error..I tried changing the extends for Dispatch to com.linar.jintegra.Dispatch
but the other errors are still there.
To begin with, I think the generated code should not refer to any of the COM data
types.
Any help please.
Thank you in advance,
Regards,
Rahul Srivastava
[email protected]Hi,
I resolved the other errors by changing all references from com.bea.jcom.Variant
etc to com.linar.jintegra.class name..all were present under the com.linar.jintegra
package.
Thank you all anyways,
Regards,
rahul
"Rahul Srivastava" <[email protected]> wrote:
>
Hi,
We are generating java classes for the COM dll using JCOM com2java compiler.
We are getting a compilation error for import class not found when compiling
the
generated Proxy java source code. It can't find the com.bea.jcom.Dispatch
class that
the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
or com.bea.jcom.Param. These are interfaces or data types or classes used
by COM
library.
I added weblogic.jar to my class path and the only Dispatch class i found
inside
the weblogic.jar is com.linar.jintegra.Dispatch;
We have com objects for which we want to develop an EJB client to interface
with
the COM object using JCOM with Native Mode disabled.
Any help on the compilation error..I tried changing the extends for Dispatch
to com.linar.jintegra.Dispatch
but the other errors are still there.
To begin with, I think the generated code should not refer to any of the
COM data
types.
Any help please.
Thank you in advance,
Regards,
Rahul Srivastava
[email protected] -
Class not found with jms cache sync
hi. when i try to use the remote command manager in my live environment only i get a class not found exception for my initial context factory. using a debugger i discovered this is actually hiding a linkage error. so i confirmed that my resin and java versions and all my jars are the same between live and stage, where this works no problem. but still doesn't work in production. any ideas what else i should look at? here's a stack trace
Exception [TOPLINK-22101] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.RemoteCommandManagerException
Exception Description: Could not obtain JNDI context with properties {java.naming.provider.url=tcp://10.10.6.73:3035, java.naming.factory.initial=org.exolab.jms.jndi.InitialContextFactory , java.naming.security.principal=tcp://10.10.6.73:3035, dedicated.connection=true, java.naming.security.credentials=tcp://10.10.6.73:3035}
Internal Exception: javax.naming.NoInitialContextException: Cannot instantiate class: org.exolab.jms.jndi.InitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.exolab.jms.jndi.InitialContextFactory ]
at oracle.toplink.exceptions.RemoteCommandManagerException.errorObtainingContext(RemoteCommandManagerException.java:42)
at oracle.toplink.remotecommand.TransportManager.getContext(TransportManager.java:194)
at oracle.toplink.remotecommand.TransportManager.getRemoteHostContext(TransportManager.java:385)
at oracle.toplink.remotecommand.jms.JMSTopicTransportManager.getRemoteHostContext(JMSTopicTransportManager.java:270)
at oracle.toplink.remotecommand.jms.JMSTopicTransportManager.getTopicConnectionFactory(JMSTopicTransportManager.java:204)
at oracle.toplink.remotecommand.jms.JMSTopicTransportManager.createJMSTopicRemoteConnection(JMSTopicTransportManager.java:84)
at oracle.toplink.remotecommand.jms.JMSTopicTransportManager.createLocalConnection(JMSTopicTransportManager.java:106)
at oracle.toplink.remotecommand.jms.JMSTopicDiscoveryManager.startDiscovery(JMSTopicDiscoveryManager.java:44)
at oracle.toplink.remotecommand.RemoteCommandManager.initialize(RemoteCommandManager.java:132)
at oracle.toplink.publicinterface.DatabaseSession.login(DatabaseSession.java:509)I would guess the problem is related to the application's class-loader visibility. Verify that your application can access the class org.exolab.jms.jndi.InitialContextFactory forio to launching the TopLink session. If it cannot then you may need to address the container's access to this library.
Doug -
Error in compiling: file javax\servlet\jsp\PageContext.class not found
Hi,
i'm getting an error when I'm trying to compile an java file. The error is as follows:
cannot access javax.servlet.jsp.PageContext
file javax\servlet\jsp\PageContext.class not found
Isn't the javax package included in jdk? I've installed jdk 1.3.1_03 and j2re1.4.0_02. Shouldn't this PageContext.class be automatically loaded when i've installed jdk?
I'm getting desperated! I've tried almost everything: i've changed the classpath, moved the directory of the java file I'm trying to compile over and over but i'm getting no success!
Any help is very welcome!
Thankx,
Nuno.hmmm... i had a look and it seems that what you are trying to "import" is actually in a package... instead of import try:
package javax.servlet.jsp;you may need to go download this "package" and complile it in the directory you are working in.
my advice: try the above statement (which does compile for me), if it doesn't work, you will need to find the source code for this package and compile it just like you do any other source code.
hope this helps. -
I'm using OC4J 9.0.2.1 and JDeveloper 9.0.2 with Oracle db. I have a set of queues created in the database.
Before I try to send my request, I create an instance of the serializable object I want to send. I do all of my queue connection setup, then I call:
queueSession.createObjectMessage(request);
Where "queueSession" is a QueueSession obtained from "queueConnection.createQueueSession()".
When I step over this function call, I get the following:
oracle.jms.AQjmsException: JMS-109: Class not found: com.attws.it.bsa.felix.mci.common.ServiceInfoRequest
(The indicated class name is the type of the "request" object.)
What could I be doing wrong?The code below creates the following classes when I compile it (using jsk1.3):
DistanceBarApplication2.class
DistanceBarApplication2$1
DistanceBarApplication2$2
DistanceBarApplication2$3
DistanceBarApplication2$DistanceBar2
The error I receive is: load: class DistanceBarApplication2 not found
Here is my HTML code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<BODY>
<applet code="DistanceBarApplication2.class" width=300 height=50>
</applet>
</BODY>
</HTML>
Here is the Java code:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class DistanceBarApplication2 extends JApplet {
private final DistanceBar2 bar = new DistanceBar2();
public void init() {
bar.setMaximum(100);
bar.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
bar.stop();
JOptionPane.showMessageDialog(bar, bar.getValue() + " yards");
bar.start();
this.getContentPane().add(bar);
bar.start();
static class DistanceBar2 extends JProgressBar {
private Thread mThread;
private boolean mRunning= false;
private int mValue = 0;
private boolean mUp = true;
private Runnable updater = new Runnable() {
public void run() {
setValue(mValue);
public void start() {
if (mRunning) {
return;
mRunning = true;
mThread = new Thread(new Runnable() {
public void run() {
while (mRunning) {
try {
Thread.sleep(30);
} catch (InterruptedException e) { }
adjust();
mThread.setDaemon(true);
mThread.start();
public void stop() {
mRunning= false;
// Best to let a thread run itself out
// if (mThread != null)
// mThread.interrupt();
// Don't need this for this applet, but possibly later
// public Dimension getPreferredSize() {
// return new Dimension(300,70);
private void adjust() {
int delta = getMaximum() / 40;
mValue += delta * (mUp ? 1 : -1);
if (mValue >= getMaximum()) {
mValue = getMaximum();
mUp = false;
} else if (mValue <= 0) {
mValue = 0;
mUp = true;
SwingUtilities.invokeLater(updater); -
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. -
Hello,
I have been waiting for the videoTexture class for a long time and now it's been included with the new release of Air 17 sdk, but unfortunately I can't get it to work in my small test project. I read the release notes to find an answer for my issue with no luck at all, my problem is that Air 17 runtime can't find VideoTexture class and throws this error: VerifyError: Error #1014: Class flash.display3D.textures::VideoTexture could not be found.
It's really a simple project with 1 line only using Flasg Builder
package
import flash.desktop.NativeApplication;
import flash.display.Sprite;
import flash.display3D.textures.VideoTexture;
public class videoTextureTest extends Sprite
public function videoTextureTest()
trace("version="+NativeApplication.nativeApplication.runtimeVersion);
var v:VideoTexture;
My working environment:
- iMac late 2013 with OSX 10.9 maverick 64-bit, 8GB RAM, 2.7 GHz Intel core i5, video card: Intel Iris Pro 1MB
- Flash Builder 4.6
- Desktop project
- Air 17.0.0.124 (flex developers) with Flex 4.6 merged
- swf-version=28 Compiler argument is set
- added <renderMode>direct</renderMode> in my xml discriptor
I have checked the runtime version with trace output, it's 17.0.0.124
I also ran a mobile version on my ipad mini 2 late 2013, same result: VideoTexture is no where to be found
Please help and thank you in advancepeter schlaeger (guest) wrote:
: I got Class not found: oracle.net.asst.container.NetApplication
: when starting netasst
: Can anyone help ?
: Thanks
: Peter
Install the patch and read the fine manual.
null -
When, I compile applets, I continually get class not found errors when I run it from IE... (Status bar says Class (name) not found)
But when I use appletviewer, the applet works fine
The files are where they are supposed to be...
Here's the kicker... I downloaded a class file from the internet, and that works!! Is there something wrong with the compiler??
Please help! Or tell me what forum I should post inpost java & html code & classpath & where the files are & the command you issue & what directory you're in when you issue it, please
-
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. -
Wsgen error: Class not found
Hi,
I am new to WS. I was trying the helloworld WS. I compiled and generated the atrifacts using the apt command. Then I was trying to generate the WSDL using wsgen.
I got the error error: Class not found: "E:\coding\WS\hello_world\src\examples\webservices\hello_world\HelloWorldImpl.class"
I have ran the wsgen as given below:
E:\coding\WS\hello_world\src>wsgen -classpath E:\Sun\jwsdp-2.0\fastinfoset\lib\FastInfoset.jar;E:\Sun\jwsdp-2.0\jaxb\lib
\jaxb-xjc.jar;E:\Sun\jwsdp-2.0\jaxb\lib\jaxb-api.jar;E:\Sun\jwsdp-2.0\jaxb\lib\jaxb1-impl.jar;E:\Sun\jwsdp-2.0\jaxb\lib\
jaxb-impl.jar;E:\Sun\jwsdp-2.0\jaxp\lib\jaxp-api.jar;E:\Sun\jwsdp-2.0\jaxr\lib\jaxr-api.jar;E:\Sun\jwsdp-2.0\jaxr\lib\ja
xr-impl.jar;E:\Sun\jwsdp-2.0\jaxrpc\lib\jaxrpc-api.jar;E:\Sun\jwsdp-2.0\jaxrpc\lib\jaxrpc-impl.jar;E:\Sun\jwsdp-2.0\jaxr
pc\lib\jaxrpc-spi.jar;E:\Sun\jwsdp-2.0\jaxws\lib\jsr181-api.jar;E:\Sun\jwsdp-2.0\jaxws\lib\jaxws-tools.jar;E:\Sun\jwsdp-
2.0\jaxws\lib\jaxws-api.jar;E:\Sun\jwsdp-2.0\jaxws\lib\jaxws-rt.jar;E:\Sun\jwsdp-2.0\jaxws\lib\jsr250-api.jar;E:\Sun\jws
dp-2.0\saaj\lib\saaj-api.jar;E:\Sun\jwsdp-2.0\saaj\lib\saaj-impl.jar; E:\coding\WS\hello_world\src\examples\webservices\
hello_world\HelloWorldImpl.class
error: Class not found: "E:\coding\WS\hello_world\src\examples\webservices\hello_world\HelloWorldImpl.class"
If anybody could tell me what could be the issue here, that will be great for me to proceed...
Also if you can give me any good url that will help me in learning WebServices, that would be fantastic.
cheers
kkHi All,
I ran into the same problem and it took me two days of trials and errors. I don't how different is your problem from mine but when I ran wsgen from the same directory as my source code, it gave me this error. Since my package was called, "hello", I ran the wsgen -cp . hello.CircleFunctions from WEB-INF\src and that worked but it will not build from my WEB-INF\src\hello folder. -
Oracle.forms.webutil.ole.OleFunctions class not found
Hi all,
I am getting oracle.forms.webutil.ole.OleFunctions class not found at design time in Forms Builder 10gR2 as well as at run time when working with webutil. Webutil is properly configured. I am using file uploading and downloading and it is working fine. but when I m working with CLIENT_OLE2, it is giving class not found exception. Can someone please help me to identify the problem.
Thanks in advance
Bilalhi
Forms [32 Bit] Version 10.1.2.0.2 (Production in this version the webutil is already installed but u have to sign jars and there is also some modifications
in formsweb.cfg.
please check this.
How to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
Solution
Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
here are steps to get a small test form running, using WebUtil 1.06.
Note: [OraHome] is used as an alias for your real oDS ORACLE_HOME.
Feel free to copy this note to a text editor, and do a global find/replace on
[OraHome] with your actual value (no trailing slash). Then it is easy to
copy/paste actual commands to be executed from the note copy.
1) Download http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
and extract to a temporary staging area. Do not attempt to use 1.7 or 1.9.
2) Copy or move jacob.jar and jacob.dll
[JacobStage] is the folder where you extracted Jacob, and will end in ...\jacob_18
cd [JacobStage]
copy jacob.jar [OraHome]\forms\java\.
copy jacob.dll [OraHome]\forms\webutil\.
The Jacob staging area is no longer needed, and may be deleted.
3) Sign frmwebutil.jar and jacob.jar
Open a DOS command prompt.
Add [OraHome]\jdk\bin to the PATH:
set PATH=[OraHome]\jdk\bin;%PATH%
Sign the files, and check the output for success:
[OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\frmwebutil.jar
[OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\jacob.jar
4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
you may skip this step. Otherwise,
Create a schema to hold the WebUtil stored code, and privileges needed to
connect and create a stored package. Schema name "WEBUTIL" is recommended
for no reason other than consistency over the user base.
Open [OraHome]\forms\create_webutil_db.sql in a text editor, and delete or comment
out the EXIT statement, to be able to see whether the objects were created witout
errors.
Start SQL*Plus as SYSTEM, and issue:
CREATE USER webutil IDENTIFIED BY [password]
DEFAULT TABLESPACE users
TEMPORARY TABLESPACE temp;
GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
CONNECT webutil/[password]@[connectstring]
@[OraHome]\forms\create_webutil_db.sql
-- Inspect SQL*Plus output for errors, and then
CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
Reconnect as SYSTEM, and issue:
grant execute on webutil_db to public;
5) Modify [OraHome]\forms\server\default.env, and append [OraHome]\jdk\jre\lib\rt.jar
to the CLASSPATH entry.
6) Start the OC4J instance
7) Start Forms Builder and connect to a schema in the RDBMS used in step (4).
Open webutil.pll, do a "Compile ALL" (shift-Control-K), and generate to PLX (Control-T).
It is important to generate the PLX, to avoid the FRM-40039 discussed in
Note 303682.1
If the PLX is not generated, the Webutil.pll library would have to be attached with
full path information to all forms wishing to use WebUtil. This is NOT recommended.
8) Create a new FMB.
Open webutil.olb, and Subclass (not Copy) the Webutil object to the form.
There is no need to Subclass the WebutilConfig object.
Attach the Webutil.pll Library, and remove the path.
Add an ON-LOGON trigger with the code
NULL;
to avoid having to connect to an RDBMS (optional).
Create a new button on a new canvas, with the code
show_webutil_information (TRUE);
in a WHEN-BUTTON-PRESSED trigger.
Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K).
9) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if
the "Application Server URL" is empty.
Then append "?config=webutil" at the end, so you end up with a URL of the form
http://server:port/forms/frmservlet?config=webutil
10) Run your form.sarah -
Class not found - from jsp sub-directories
Hello:
Main-Issue:
- I have some java-class files in the \<my-web-app>\web-inf\classes directory. These classes do not belong to any packages.
- I have some jsps in the \<my-web-app>\ directory and also in some sub-directories in the \<my-web-app>\ directory. Example: \<my-web-app>\test\index1.jsp.
- The jsps in the \<my-web-app>\ directory can invoke the classes in the \<my-web-app>\web-inf\classes directory with no issues. But, the jsps in the sub-directories CANNOT see the classes in the \<my-web-app>\web-inf\classes directory. I get a "class not found" error. (this is just in oc4j).
First of all, just a background to the issue:
- I am trying to port a web application from JRUN to OC4J.
- I want to do this with minimal changes to the existing code.
- The application has been running on JRUN for a while. I only see the above mentioned error (class not found) error when trying to run it on oc4j.
- As a test, I created my own test application to verify:
(-) I wrote a simple java class (test.class) with no package and placed it in the web-inf\classes directory
(-) I wrote a jsp file (index.jsp) to invoke test.class. I placed the jsp at the top-level directory of the web-app.
(-) I wrote another jsp file (index1.jsp) to invoke test.class as well. I placed that jsp file in a sub-directory in the top-level directory of the web-app.
(-) index.jsp worked without any problems. index1.jsp gave the "class not found" error.
(-) As another test, I then modified the class to be in a package (com.benny). I then changed the jsps to call "com.benny.test" rather than just "test". This time, both index.jsp and index1.jsp worked fine.
So, I guess my question is, do these classes have to be in a package? I am trying to avoid having to make a lot of changes to the app. If they do have to be in packages, then I have re-compile a lot of class files, add import statements to jsps, etc.
Any help/suggestion would be appreciated.
Thanks,
BennySo, I guess my question is, do these classes have to be in a package?Answer: yes.
As of Java1.4, classes in the "unnamed" package were no longer accessible.
What version of java were you running with JRun?
What version are you running with OC4J?
Read all about it here:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4361575
If you have to repackage the classes, the IDE Eclipse has excellent support for refactoring, and wil let you put classes into packages with a minimum of fuss.
Maybe you are looking for
-
Once in a Web-Site, if I wish to read an article I could click on the READER box in the Search Window and just the article would come forward blocking out everything else.
-
I cant find ( Send reset security info email )
hello i forget answer of security question for my apple id then i find in apple support this link ( http://support.apple.com/kb/HT6170 ) but in step 5 i cant find ( Send reset security info email ) link and in this site call if i cant find this link
-
Nikon NEF thumbnails and Lightroom
I am trying out Adobe Lightroom and the Nikon NEF files from my D70s are imported directly into Lightroom just as I had hoped they would be. However, I am flying blind when it comes to seeing the thumbnail previews of those same files "before" I do t
-
Unable to transfer wma files on computer to 6280
I have the latest PC suite installed for my Nokia 6280 and when I get into music manager and try to transfer a wma file it comes up with the error message that the file cannot be ripped. Any suggestions to overcome problem?
-
Processor