POWL- Create object for feeder class not found
Hi,
I have developed a Webdynpro application and tried to integrate to POWL, but the application dumps saying cretae object of feeder class is not found.
I am new to POWL, can anybody help me in this regard.
Thanks,
Shailaja Ainala.
- in se80 you need this kind of code
AUTHORITY-CHECK OBJECT 'Z:CPRO_RAP'
ID 'ZZ_MARKDIV_test' FIELD record-string+0(3)
ID 'ACTVT' FIELD '02'. "change access
IF sy-subrc <> 0.
AUTHORITY-CHECK OBJECT 'Z:CPRO_RAP'
ID 'ZZ_MARKDIV_test' FIELD record-string+0(3)
ID 'ACTVT' FIELD '03'. "read only access
IF sy-subrc = 0.
is_allowed = abap_true.
ENDIF.
ELSE.
is_allowed = abap_true.
ENDIF.
security team should setup the POWL
http://help.sap.com/saphelp_erp60_sp/helpdata/en/44/36ca0563df660ee10000000a1553f6/content.htm
http://help.sap.com/saphelp_erp60_sp/helpdata/en/42/d6652b755c1630e10000000a1553f7/content.htm
so if you see the code above there is a ID and filed associated with each object.
Similar Messages
-
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] -
We need to get our servers up to date with the latest ColdFusion hotfixes in order to pass our security scans and policies. We have been following the Adobe instructions for installing the hotfixes, but we’re getting the same errors each time. The CF 8 hotfix 2 works fine, but once we install hotfix 3 and/or hotfix 4, we get the following errors:
"Object Instantiation Exception.Class not found: coldfusion.security.ESAPIUtils The specific sequence of files included or processed is: C:\ColdFusion\wwwroot\WEB-INF\exception\java\lang\Exception.cfm, line: 12 "
coldfusion.runtime.java.JavaObjectClassNotFoundException:
We have dozens of servers running Windows XP, Netscape Enterprise Server 6.1 (I know, don’t laugh), ColdFusion 8,0,1,195765, and Java Version 1.6.0_04. Just about the only good thing about running XP on our servers is that it matches our development boxes, so we have almost mirrored environments for dev, test, and production. We do NOT have the CF install with the J2EE configuration.
The crazy thing is, on tech note 51180 (http://kb2.adobe.com/cps/511/cpsid_51180.html), it says that the fix for bug # 71787 (Fix for "Object Instantiation Exception" thrown when calling a Java object constructor or method with a null argument under JDK 1.6.) was added in cumulative hotfix 2. However we don’t see this problem until we go to hotfix 3 (or 4).
I’ve also been reading that other people had this same problem, and that the CF 8 hotfix 3 was not compatible with certain versions of JDK, then when you read the Adobe site for CF 8.0.1 hotfix 3, it says “Added the updated cumulative hotfix to make it compatible with jdk 1.4.x, 1.5.x and 1.6.x.”, so that makes me think that Adobe was supposed to have fixed this CF 8.0.1 hotfix 3 JDK incompatability issue - but unfortunately it's still not working for us. We have followed the instructions for removing the jar files and starting/restarting the CF server as directed, we’ve tried this 5-6 times, and still no luck.
Recommendations? Seems like this is a ColdFusion bug to me – one that says is fixed on the Adobe site, but is not fixed in our environment. Please advise, thanks.For what it's worth, we had an MXUnit user describe a similar, though not identical, problem after installing the latest hotfixes. In his case, he's getting "NoSuchMethodExceptions".
-
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); -
Create object for a class in jar file
Hi
I am using Oracle JDeveloper 10g. I have created a main application using Swing/JClient technologies. I am facing a problem for the past one week. I let u all people know my problem and I kindly request you to send a solution if known possibly confirmed.
Problem: I have created a main application using swing that class extends JFrame. This main application consists of two parts. One left side panel and one right side panel. Left side panel contains JTree component. Each item in that tree refers to a class file located in a separate jar file.i.e that acts as a separate application. If we are executing separately that jar file class, I am able to see that small application running. If I am selecting an item in JTree during runtime, I should place that small application from the respective jar file in the right side panel of the main application. I can locate the jar file and even I can create object to that particular class file. But I cannot execute the application even separately and also not able to place in the right side panel of the main application.
Note: The small application from the jar file contains one class file containing main method. That class file extends JPanel and implements JUPanel. i.e., with data binding. I am trying to create an object for this class file with data binding from my main application. Navigation bar is used in the main class file.
If possible can any provide me solution at the earliest. Waiting eagerly for the positive reply.
Regards,
s.senthilkumarCan you sure that there is only a A class in the classpath of Tomcat, I advise you to add
some statements into the A class so that you can be sure which classloader is used
to load the A class. -
TestStand create different object for singleton class
Hi all,
we have a singleton class which has some functions used to do testing a harware.
Our main Exe will create an object for that singleton class(which opens Com1 port and communicate with hardware). so the Exe will do basic communication test with hardware it is working well. We are using Teststand operator interface to do various testing by using sequence files. Main exe will use teststand usercontrols to execute tests when the user clicks Testbutton. after that, teststand try to create an object for that singleton but it returns new object not the existing one which is created by EXE. So it throwing me exeception "Com1 port access denied." (since we created object for signleton class @ very first in EXE)
My question is Since that teststand runs in a separate Appdoamin will the singltonclass create separate object for different appdomain? if so is there any solution to reslove this?
Hope i clearly explained my probs.
Thanks in advance
SriniHi Srini,
How are you calling the executable? From a Call Executable step? Or are you using another means of calling it? Also, why is TestStand trying to recreate the object? As long as you have the correct handle to the object I don't think it matters what app domain you are in.
Regards,
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~ -
Class not Found Exception while running an EJB
I have created and published a EJB in Oracle 8i (in a particular
schema) by running the deployejb tool supplied. The ejb was
published successfully. On running the client program I get an
error saying that the mybeans's HomeHelper class cannot be
found. This error occurs when there is a lookup to the home
interface of the bean. The exception thrown says Reasons are
unknown. On checking the objects of type 'JAVA CLASS' I found
that the homeHelper class object had been created automatically
be the deploy process. What is the reason for the class not
found exception and what can I do to correct it. ?
The code for the beans is as given below :
Home Interface
package mituser ;
import javax.ejb.*;
import java.rmi.RemoteException;
public interface MITUserHome extends EJBHome {
public MITUser create()
throws CreateException, RemoteException;
Remote Interface
package mituser ;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;
public interface MITUser extends EJBObject {
public int validateUserName (String username)
throws java.sql.SQLException, RemoteException;
public int validatePassword (String username, String password)
throws java.sql.SQLException, RemoteException;
public String validateSearchAccess (String username, String
password)
throws java.sql.SQLException, RemoteException;
Bean
package mituserServer ;
import java.sql.*;
import java.rmi.RemoteException;
import javax.ejb.*;
public class MITUserBean implements SessionBean {
SessionContext ctx;
public void ejbCreate() throws CreateException,
RemoteException {
public void ejbActivate() {
public void ejbPassivate() {
public void ejbRemove() {
public void setSessionContext(SessionContext ctx) {
this.ctx = ctx;
public int validateUserName (String username) throws
SQLException, RemoteException
int count = 0 ;
Connection conn =
new oracle.jdbc.driver.OracleDriver().defaultConnection ();
PreparedStatement ps =
conn.prepareStatement ("select count(username) from
useraccountinfo where username = ?");
try {
ps.setString (1, username);
ResultSet rset = ps.executeQuery ();
if (!rset.next ())
throw new RemoteException ("no registered user with User
Name " + username);
count = rset.getShort(1) ;
return count ;
} finally {
ps.close();
public int validatePassword (String username, String password)
throws SQLException, RemoteException
int count = 0 ;
Connection conn =
new oracle.jdbc.driver.OracleDriver().defaultConnection ();
PreparedStatement ps =
conn.prepareStatement ("select count(username) from
useraccountinfo where username = ? and password = ?");
try {
ps.setString (1, username);
ps.setString(2, password);
ResultSet rset = ps.executeQuery ();
if (!rset.next ())
throw new RemoteException ("Invalid Password ");
count = rset.getShort(1) ;
return count ;
} finally {
ps.close();
public String validateSearchAccess (String username, String
password) throws SQLException, RemoteException
String searchaccess = "" ;
Connection conn =
new oracle.jdbc.driver.OracleDriver().defaultConnection ();
PreparedStatement ps =
conn.prepareStatement ("select searchprofileaccess from
useraccountinfo where username = ? and password = ?");
try {
ps.setString (1, username);
ps.setString(2, password);
ResultSet rset = ps.executeQuery ();
if (!rset.next ())
throw new RemoteException ("Access Denied for " +
username );
searchaccess = rset.getString(1) ;
return searchaccess ;
} finally {
ps.close();
Client program
import mituser.MITUser;
import mituser.MITUserHome;
import oracle.aurora.jndi.sess_iiop.ServiceCtx;
import javax.naming.Context;
import javax.naming.InitialContext;
import java.util.Hashtable;
public class Client {
public static void main (String [] args) throws Exception {
int count = 0 ;
String access = "" ;
if (args.length != 4) {
System.out.println("usage: Client serviceURL objectName
user password");
System.exit(1);
String serviceURL = args [0];
String objectName = args [1];
String user = args [2];
String password = args [3];
Hashtable env = new Hashtable();
env.put(Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
env.put(Context.SECURITY_PRINCIPAL, user);
env.put(Context.SECURITY_CREDENTIALS, password);
env.put(Context.SECURITY_AUTHENTICATION,
ServiceCtx.NON_SSL_LOGIN);
Context ic = new InitialContext(env);
MITUserHome home = (MITUserHome)ic.lookup (serviceURL +
objectName);
MITUser testBean = home.create ();
count = testBean.validateUserName("MITA");
if (count > 0 )
System.out.println ("Valid User");
else
System.out.println ("Invalid User");
count = testBean.validatePassword("MITA", "MITA");
if (count > 0 )
System.out.println ("Valid Password");
else
System.out.println ("Invalid Password");
access = testBean.validateSearchAccess("MITA", "MITA");
if ( access.equalsIgnoreCase("YES") )
System.out.println ("Search Access Available");
else
System.out.println ("Search Access Denied");
The Descriptor file
// MIT UserBean EJB deployment descriptor
SessionBean mituserServer.MITUserBean {
BeanHomeName = "test/mitUserJDBCBean";
RemoteInterfaceClassName = mituser.MITUser;
HomeInterfaceClassName = mituser.MITUserHome;
AllowedIdentities = {MIT};
SessionTimeout = 20;
StateManagementType = STATEFUL_SESSION;
RunAsMode = CLIENT_IDENTITY;
TransactionAttribute = TX_REQUIRED;
Batch File for deploying the ejb
@echo off
if (%ORACLE_HOME%)==() goto usage
if (%ORACLE_SERVICE%)==() goto usage
if (%JDK_CLASSPATH%)==() goto usage
@echo on
set CLASSPATH=.;%ORACLE_HOME%\lib\aurora_client.jar;%ORACLE_HOME%
\jdbc\lib\classes111.zip;%ORACLE_HOME%\sqlj\lib\translator.zip;%
ORACLE_HOME%\lib\vbjorb.jar;%ORACLE_HOME%\lib\vbjapp.jar;%
JDK_CLASSPATH%
javac -g mituser\MITUser.java
javac -g mituser\MITUserHome.java
javac -g mituserServer\MITUserBean.java
jar cf0 mituser.jar mituser\MITUser.class
mituser\MITUserHome.class mituserServer\MITUserBean.class
javac -g Client.java
call deployejb -republish -temp temp -u mit -p mit -s %
ORACLE_SERVICE% -descriptor mituser.ejb mituser.jar
@echo off
goto done
:usage
@echo -------------------------------------------------------
@echo Following are the requirements to run this script
@echo set ORACLE_HOME to installed Oracle home
@echo set ORACLE_SERVICE to the CORBA service name of
your databae
@echo for example sess_iiop://localhost:2481:ORCL
@echo set JDK_CLASSPATH to the full path of your JDK
classes.zip
@echo -------------------------------------------------------
:done
Batch file for running the cleint program
@echo off
if (%ORACLE_HOME%)==() goto usage
if (%ORACLE_SERVICE%)==() goto usage
if (%JDK_CLASSPATH%)==() goto usage
@echo on
set CLASSPATH=.;%ORACLE_HOME%\lib\aurora_client.jar;%ORACLE_HOME%
\jdbc\lib\classes111.zip;%ORACLE_HOME%\sqlj\lib\translator.zip;%
ORACLE_HOME%\lib\vbjorb.jar;%ORACLE_HOME%\lib\vbjapp.jar;%
JDK_CLASSPATH%;server_generated.jar
java Client %ORACLE_SERVICE% /test/mitUserJDBCBean mit mit
@echo off
goto done
:usage
@echo -------------------------------------------------------
@echo Following are the requirements to run this script
@echo set ORACLE_HOME to installed Oracle home
@echo set ORACLE_SERVICE to the CORBA service name of
your databae
@echo for example sess_iiop://localhost:2481:ORCL
@echo set JDK_CLASSPATH to the full path of your JDK
classes.zip
@echo -------------------------------------------------------
:done
I know this is not strictly to do with JDBC but there appears to
be no discussion forum for EJB
Hoping for a response soon as it us very URGENT
Thanks
Mita
nullI have created and published a EJB in Oracle 8i (in a particular
schema) by running the deployejb tool supplied. The ejb was
published successfully. On running the client program I get an
error saying that the mybeans's HomeHelper class cannot be
found. This error occurs when there is a lookup to the home
interface of the bean. The exception thrown says Reasons are
unknown. On checking the objects of type 'JAVA CLASS' I found
that the homeHelper class object had been created automatically
be the deploy process. What is the reason for the class not
found exception and what can I do to correct it. ?
The code for the beans is as given below :
Home Interface
package mituser ;
import javax.ejb.*;
import java.rmi.RemoteException;
public interface MITUserHome extends EJBHome {
public MITUser create()
throws CreateException, RemoteException;
Remote Interface
package mituser ;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;
public interface MITUser extends EJBObject {
public int validateUserName (String username)
throws java.sql.SQLException, RemoteException;
public int validatePassword (String username, String password)
throws java.sql.SQLException, RemoteException;
public String validateSearchAccess (String username, String
password)
throws java.sql.SQLException, RemoteException;
Bean
package mituserServer ;
import java.sql.*;
import java.rmi.RemoteException;
import javax.ejb.*;
public class MITUserBean implements SessionBean {
SessionContext ctx;
public void ejbCreate() throws CreateException,
RemoteException {
public void ejbActivate() {
public void ejbPassivate() {
public void ejbRemove() {
public void setSessionContext(SessionContext ctx) {
this.ctx = ctx;
public int validateUserName (String username) throws
SQLException, RemoteException
int count = 0 ;
Connection conn =
new oracle.jdbc.driver.OracleDriver().defaultConnection ();
PreparedStatement ps =
conn.prepareStatement ("select count(username) from
useraccountinfo where username = ?");
try {
ps.setString (1, username);
ResultSet rset = ps.executeQuery ();
if (!rset.next ())
throw new RemoteException ("no registered user with User
Name " + username);
count = rset.getShort(1) ;
return count ;
} finally {
ps.close();
public int validatePassword (String username, String password)
throws SQLException, RemoteException
int count = 0 ;
Connection conn =
new oracle.jdbc.driver.OracleDriver().defaultConnection ();
PreparedStatement ps =
conn.prepareStatement ("select count(username) from
useraccountinfo where username = ? and password = ?");
try {
ps.setString (1, username);
ps.setString(2, password);
ResultSet rset = ps.executeQuery ();
if (!rset.next ())
throw new RemoteException ("Invalid Password ");
count = rset.getShort(1) ;
return count ;
} finally {
ps.close();
public String validateSearchAccess (String username, String
password) throws SQLException, RemoteException
String searchaccess = "" ;
Connection conn =
new oracle.jdbc.driver.OracleDriver().defaultConnection ();
PreparedStatement ps =
conn.prepareStatement ("select searchprofileaccess from
useraccountinfo where username = ? and password = ?");
try {
ps.setString (1, username);
ps.setString(2, password);
ResultSet rset = ps.executeQuery ();
if (!rset.next ())
throw new RemoteException ("Access Denied for " +
username );
searchaccess = rset.getString(1) ;
return searchaccess ;
} finally {
ps.close();
Client program
import mituser.MITUser;
import mituser.MITUserHome;
import oracle.aurora.jndi.sess_iiop.ServiceCtx;
import javax.naming.Context;
import javax.naming.InitialContext;
import java.util.Hashtable;
public class Client {
public static void main (String [] args) throws Exception {
int count = 0 ;
String access = "" ;
if (args.length != 4) {
System.out.println("usage: Client serviceURL objectName
user password");
System.exit(1);
String serviceURL = args [0];
String objectName = args [1];
String user = args [2];
String password = args [3];
Hashtable env = new Hashtable();
env.put(Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
env.put(Context.SECURITY_PRINCIPAL, user);
env.put(Context.SECURITY_CREDENTIALS, password);
env.put(Context.SECURITY_AUTHENTICATION,
ServiceCtx.NON_SSL_LOGIN);
Context ic = new InitialContext(env);
MITUserHome home = (MITUserHome)ic.lookup (serviceURL +
objectName);
MITUser testBean = home.create ();
count = testBean.validateUserName("MITA");
if (count > 0 )
System.out.println ("Valid User");
else
System.out.println ("Invalid User");
count = testBean.validatePassword("MITA", "MITA");
if (count > 0 )
System.out.println ("Valid Password");
else
System.out.println ("Invalid Password");
access = testBean.validateSearchAccess("MITA", "MITA");
if ( access.equalsIgnoreCase("YES") )
System.out.println ("Search Access Available");
else
System.out.println ("Search Access Denied");
The Descriptor file
// MIT UserBean EJB deployment descriptor
SessionBean mituserServer.MITUserBean {
BeanHomeName = "test/mitUserJDBCBean";
RemoteInterfaceClassName = mituser.MITUser;
HomeInterfaceClassName = mituser.MITUserHome;
AllowedIdentities = {MIT};
SessionTimeout = 20;
StateManagementType = STATEFUL_SESSION;
RunAsMode = CLIENT_IDENTITY;
TransactionAttribute = TX_REQUIRED;
Batch File for deploying the ejb
@echo off
if (%ORACLE_HOME%)==() goto usage
if (%ORACLE_SERVICE%)==() goto usage
if (%JDK_CLASSPATH%)==() goto usage
@echo on
set CLASSPATH=.;%ORACLE_HOME%\lib\aurora_client.jar;%ORACLE_HOME%
\jdbc\lib\classes111.zip;%ORACLE_HOME%\sqlj\lib\translator.zip;%
ORACLE_HOME%\lib\vbjorb.jar;%ORACLE_HOME%\lib\vbjapp.jar;%
JDK_CLASSPATH%
javac -g mituser\MITUser.java
javac -g mituser\MITUserHome.java
javac -g mituserServer\MITUserBean.java
jar cf0 mituser.jar mituser\MITUser.class
mituser\MITUserHome.class mituserServer\MITUserBean.class
javac -g Client.java
call deployejb -republish -temp temp -u mit -p mit -s %
ORACLE_SERVICE% -descriptor mituser.ejb mituser.jar
@echo off
goto done
:usage
@echo -------------------------------------------------------
@echo Following are the requirements to run this script
@echo set ORACLE_HOME to installed Oracle home
@echo set ORACLE_SERVICE to the CORBA service name of
your databae
@echo for example sess_iiop://localhost:2481:ORCL
@echo set JDK_CLASSPATH to the full path of your JDK
classes.zip
@echo -------------------------------------------------------
:done
Batch file for running the cleint program
@echo off
if (%ORACLE_HOME%)==() goto usage
if (%ORACLE_SERVICE%)==() goto usage
if (%JDK_CLASSPATH%)==() goto usage
@echo on
set CLASSPATH=.;%ORACLE_HOME%\lib\aurora_client.jar;%ORACLE_HOME%
\jdbc\lib\classes111.zip;%ORACLE_HOME%\sqlj\lib\translator.zip;%
ORACLE_HOME%\lib\vbjorb.jar;%ORACLE_HOME%\lib\vbjapp.jar;%
JDK_CLASSPATH%;server_generated.jar
java Client %ORACLE_SERVICE% /test/mitUserJDBCBean mit mit
@echo off
goto done
:usage
@echo -------------------------------------------------------
@echo Following are the requirements to run this script
@echo set ORACLE_HOME to installed Oracle home
@echo set ORACLE_SERVICE to the CORBA service name of
your databae
@echo for example sess_iiop://localhost:2481:ORCL
@echo set JDK_CLASSPATH to the full path of your JDK
classes.zip
@echo -------------------------------------------------------
:done
I know this is not strictly to do with JDBC but there appears to
be no discussion forum for EJB
Hoping for a response soon as it us very URGENT
Thanks
Mita
null -
Using 'getClasses' for reflection / introspection - not found in Jdev
Hi people,
I am using Jdeveloper 10.1.3.0.4 and I am trying to use some of java's reflection / introspection features.
- I am trying to use the getClasses method, part of the 'Class' class.
However, Jdeveloper is telling me 'method not found.' The getClass method
is found OK, but not getClasses, which looks like a standard method in 'Class' in the java doc. Anyone know how to pull this one in ? I am coding import java.lang.Class; explicitly as well.
Specifically, my need is to determine, at runtime, a list of the lowest-level 'leaf node' subclasses in a specific class inheritance tree. I reckon I should be able to do this with a recursive routine that uses getClasses on each class; when this returns an empty array I know I am at a lowest-level subclass. However it's failing on the first hurdle -
static House myHouse = new House(); // House is the simple class I want to test
static Class[] array_of_classes ;
array_of_classes = myHouse.getClasses();
-> method getClasses not found in <current package.class>
on a similar vein, I tried adding
import java.lang.reflect;
- this gives java.lang.reflect not found.
My only alternative is to code my program in a totally non-OO way! :-(
please help!
thanks!!!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] -
How to create object by getting class name as input
hi
i need to create object for the existing classes by getting class name as input from the user at run time.
how can i do it.
for exapmle ExpnEvaluation is a class, i will get this class name as input and store it in a string
String classname = "ExpnEvaluation";
now how can i create object for the class ExpnEvaluation by using the string classname in which the class name is storted
Thanks in advancei think we have to cast it, can u help me how to cast
the obj to the classname that i get as inputThat's exactly the point why you shouldn't be doing this. You can't have a dynamic cast at compile time already. It doesn't make sense. Which is also the reason why class.forName().newInstance() is a very nice but also often very useless tool, unless the classes loaded all share a mutual interface. -
Object.class not found for JDeveloper For 11.5.102CU (Patch 4573517)
Hi,
we've just upgraded to 11.5.10 CU2 and I have downloaded new jdeveloper (4573517). On tryinmg to rebuild Tutorial.jpr I get compilation error "Initialization error. File java\lang\Object.class not found on classpath". JDEV_USER_HOME is set correctly to C:\OAJDEV11510\jdevhome\jdev and appears to be picked up in classpath settings below.
Full compilation error below:
Error: initialization error: file java\lang\Object.class not found on classpath C:\OAJDEV11510\jdevhome\jdevbin\jdk\jre\lib\rt.jar;C:\OAJDEV11510\jdevhome\jdevbin\jdk\jre\lib\i18n.jar;C:\OAJDEV11510\jdevhome\jdevbin\jdk\jre\lib\sunrsasign.jar;C:\OAJDEV11510\jdevhome\jdevbin\jdk\jre\lib\jsse.jar;C:\OAJDEV11510\jdevhome\jdevbin\jdk\jre\lib\jce.jar;C:\OAJDEV11510\jdevhome\jdevbin\jdk\jre\lib\charsets.jar;C:\OAJDEV11510\jdevhome\jdev\myclasses;C:\OAJDEV11510\jdevhome\jdev\myhtml\WEB-INF\lib\datatags.jar;C:\OAJDEV11510\jdevbin\jdev\lib\jdev-rt.jar;C:\OAJDEV11510\jdevbin\jdbc\lib\classes12.jar;C:\OAJDEV11510\jdevbin\jdbc\lib\nls_charset12.jar;C:\OAJDEV11510\jdevbin\jlib\jdev-cm.jar;C:\OAJDEV11510\jdevbin\BC4J\lib\bc4jmt.jar;C:\OAJDEV11510\jdevbin\BC4J\lib\collections.jar;C:\OAJDEV11510\jdevbin\BC4J\lib\bc4jct.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\xmlparserv2.jar;C:\OAJDEV11510\jdevbin\j2ee\home\lib\jndi.jar;C:\OAJDEV11510\jdevbin\BC4J\lib\bc4jctejb.jar;C:\OAJDEV11510\jdevbin\j2ee\home\lib\ejb.jar;C:\OAJDEV11510\jdevbin\BC4J\lib\bc4jmtejb.jar;C:\OAJDEV11510\jdevbin\BC4J\lib\bc4jhtml.jar;C:\OAJDEV11510\jdevbin\BC4J\lib\datatags.jar;C:\OAJDEV11510\jdevbin\BC4J\lib\bc4juixtags.jar;C:\OAJDEV11510\jdevbin\BC4J\lib\bc4j_jclient_common.jar;C:\OAJDEV11510\jdevbin\BC4J\jlib\bc4jctvb.jar;C:\OAJDEV11510\jdevbin\vbroker4\lib\vbjorb.jar;C:\OAJDEV11510\jdevbin\j2ee\home\lib\ojsp.jar;C:\OAJDEV11510\jdevbin\j2ee\home\jsp\lib\taglib\ojsputil.jar;C:\OAJDEV11510\jdevbin\j2ee\home\oc4j.jar;C:\OAJDEV11510\jdevbin\j2ee\home\lib\servlet.jar;C:\OAJDEV11510\jdevbin\jdev\lib\ojc.jar;C:\OAJDEV11510\jdevbin\jakarta-commons-el\jsp-el-api.jar;C:\OAJDEV11510\jdevbin\jakarta-commons-el\commons-el.jar;C:\OAJDEV11510\jdevbin\jakarta-commons-el\oracle-el.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\regexp.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\share.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\sax2.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\uix2.jar;C:\OAJDEV11510\jdevbin\mds\lib\mdsrt.jar;C:\OAJDEV11510\jdevbin\jdev\lib\mdsdt.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\oamdsdt.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\fwkjbo.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\fwk.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\wf.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\ak.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\flex.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\aolj.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\collections.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\appsSSO.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\concurrent.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\oamMaintMode.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\wsp.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\fwkCabo.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\diagnostics.jar;C:\OAJDEV11510\jdevbin\bibeans\lib\biamlocal.jar;C:\OAJDEV11510\jdevbin\bibeans\lib\bipres.jar;C:\OAJDEV11510\jdevbin\bibeans\lib\bicmn.jar;C:\OAJDEV11510\jdevbin\bibeans\lib\bidatasvr.jar;C:\OAJDEV11510\jdevbin\bibeans\lib\bidataclt.jar;C:\OAJDEV11510\jdevbin\bibeans\lib\bidatacmn.jar;C:\OAJDEV11510\jdevbin\bibeans\lib\biext.jar;C:\OAJDEV11510\jdevbin\bibeans\lib\bicmn-nls.zip;C:\OAJDEV11510\jdevbin\bibeans\lib\bipres-nls.zip;C:\OAJDEV11510\jdevbin\bibeans\lib\bidata-nls.zip;C:\OAJDEV11510\jdevbin\bibeans\lib\olap_api_92.jar;C:\OAJDEV11510\jdevbin\BC4J\lib\bc4jdomorcl.jar;C:\OAJDEV11510\jdevbin\BC4J\jlib\bc4jdatum.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\rosettaRt.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\cacheFwk.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\jttComn.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\iasjoc.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\pat.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\portalFlexComps.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\svc.zip;C:\OAJDEV11510\jdevbin\BC4J\jlib\bc4jtester.jar;C:\OAJDEV11510\jdevbin\lib\xmlparserv2.jar;C:\OAJDEV11510\jdevbin\jlib\help4-nls.jar;C:\OAJDEV11510\jdevbin\jlib\help4.jar;C:\OAJDEV11510\jdevbin\jlib\share.jar;C:\OAJDEV11510\jdevbin\jlib\jewt4-nls.jar;C:\OAJDEV11510\jdevbin\jlib\jewt4.jar;C:\OAJDEV11510\jdevbin\jlib\oracle_ice5.jarRT.JAR Files as mentioned in the Error log is not in the Directory ( you can verify)
Usually rt.jar is in
jdevbin\jdk\jre\lib.. Check the JDEV_USER_HOME variable and also the Libraries under Project Setting of JDEV , when you click on any specific lib it show you a path in the class path section..verify the same.
Thanks,
Sunit -
Class not found exception for the startup class defined.
iam using weblogic server 10 and bea jrockit 1.5.0.12.
i have created a startup class in the admin console for a web project and i have deployed the war file using the console in a user defined domains, user project directory.
when i start the server, iam getting class not found exception for the startup class.
But, the startup class is available in the web archive (war). how should we add the classes and jars in the war to the classpath in setDomainEnv.sh or is there any other setting available in the console to enable this.Hello Julius,
yes sure, we can move this post to the NW admin forum. I have already posted similar thread on sun forums. I was hoping that someone from SAP SDN already tackled this problem and if not someone specialized in J2EE Engine could troubleshoot me from the class problem I'm getting. I don't know if it's specific from the agent or if this ClassNotFound is a general SAP J2EE Engine error relating to a library not correclty defined.
Kind regards,
Tanguy Mezzano -
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 -
Java.rmi.UnmarshalException: skeleton class not found but required for clie
Hello everyone,
I am new to RMI and getting a strange exception. I am using Java 1.5.0_07 both on client and server. They are running on the same machine, the rmi registry is started inside the server application.
I am wondering why java complains about skeletons, I thought they are automatically created when using java 5.0?
Please have a look at the stacktrace below.
Thank you for your help.
Best Regards
Patric
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling call header; nested exception is:
java.rmi.UnmarshalException: skeleton class not found but required for client version
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:325)
sun.rmi.transport.Transport$1.run(Transport.java:153)
java.security.AccessController.doPrivileged(Native Method)
sun.rmi.transport.Transport.serviceCall(Transport.java:149)
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
java.lang.Thread.run(Thread.java:595)
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
java.rmi.Naming.lookup(Naming.java:84)
org.apache.jsp.index_jsp._jspService(index_jsp.java:58)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)The full class path information that I can gather is as follows (some of the library path locations could be suspect...):
Class path: /edge/node3/hotfix::/edge/node3/current/lib/JMdsApi.jar:/edge/node3/current/lib/MemoryProfilingAgent.jar:/edge/node3/current/lib/T2common-2.6.0-SNAPSHOT.3200.jar:/edge/node3/current/lib/T2scripting-jython.jar:/edge/node3/current/lib/activation.jar:/edge/node3/current/lib/alib.jar:/edge/node3/current/lib/alibom.jar:/edge/node3/current/lib/ant.jar:/edge/node3/current/lib/authapi.jar:/edge/node3/current/lib/bbdlapi.jar:/edge/node3/current/lib/bcpg-jdk15-136.jar:/edge/node3/current/lib/bcprov-jdk15-136.jar:/edge/node3/current/lib/c3p0-0.9.1.2.jar:/edge/node3/current/lib/castor-1.1-codegen-anttask.jar:/edge/node3/current/lib/castor-1.1-codegen.jar:/edge/node3/current/lib/castor-1.1-xml.jar:/edge/node3/current/lib/castor-1.1.jar:/edge/node3/current/lib/colt-1.2.0.jar:/edge/node3/current/lib/common-annotations.jar:/edge/node3/current/lib/commons-beanutils.jar:/edge/node3/current/lib/commons-codec-1.3.jar:/edge/node3/current/lib/commons-collections-3.2.1.jar:/edge/node3/current/lib/commons-jexl-1.1.jar:/edge/node3/current/lib/commons-lang-2.3.jar:/edge/node3/current/lib/commons-logging-1.1.1.jar:/edge/node3/current/lib/commons-net-1.4.1.jar:/edge/node3/current/lib/dsn.jar:/edge/node3/current/lib/eagleapi.jar:/edge/node3/current/lib/ezmorph-1.0.3.jar:/edge/node3/current/lib/f2-loader-1.8.jar:/edge/node3/current/lib/fasttrade-boviewer-1.0.1.jar:/edge/node3/current/lib/hsqldb.jar:/edge/node3/current/lib/icu4j-3.4.4.jar:/edge/node3/current/lib/ivy.jar:/edge/node3/current/lib/janino.jar:/edge/node3/current/lib/janus-sdk-1.7.0.0.jar:/edge/node3/current/lib/jasypt-1.4.1.jar:/edge/node3/current/lib/javolution.jar:/edge/node3/current/lib/jcalendar-1.3.2.jar:/edge/node3/current/lib/jcl-over-slf4j-1.5.6.jar:/edge/node3/current/lib/jcommon-1.0.9.jar:/edge/node3/current/lib/jconn2.jar:/edge/node3/current/lib/jconn3-6.05-b26214.jar:/edge/node3/current/lib/jdom.jar:/edge/node3/current/lib/jfreechart-1.0.5.jar:/edge/node3/current/lib/jgroups-all.jar:/edge/node3/current/lib/jline.jar:/edge/node3/current/lib/jmkv123p1.jar:/edge/node3/current/lib/jna.jar:/edge/node3/current/lib/joda-time-1.5.2.jar:/edge/node3/current/lib/jscience.jar:/edge/node3/current/lib/json-lib-2.2.1-jdk15.jar:/edge/node3/current/lib/jul-to-slf4j-1.5.6.jar:/edge/node3/current/lib/junit.jar:/edge/node3/current/lib/jython.jar:/edge/node3/current/lib/log4j-1.2.15.jar:/edge/node3/current/lib/log4j-over-slf4j-1.5.6.jar:/edge/node3/current/lib/loggablePreparedStatement-1.6.jar:/edge/node3/current/lib/looks-2.1.4.jar:/edge/node3/current/lib/mailapi.jar:/edge/node3/current/lib/model-12021.jar:/edge/node3/current/lib/mysql-connector-java-5.1.7-bin.jar:/edge/node3/current/lib/opencsv-1.8.jar:/edge/node3/current/lib/rfa.jar:/edge/node3/current/lib/rspcore.jar:/edge/node3/current/lib/slf4j-api-1.5.6.jar:/edge/node3/current/lib/slf4j-log4j12-1.5.6.jar:/edge/node3/current/lib/smtp.jar:/edge/node3/current/lib/smtphandler-0.6.jar:/edge/node3/current/lib/spring-2.5.2.jar:/edge/node3/current/lib/statsvn.jar:/edge/node3/current/lib/swingx-0.9.3.jar:/edge/node3/current/lib/t2-12021.jar:/edge/node3/current/lib/testng-5.9-jdk15.jar:/edge/node3/current/lib/tibmsg.jar:/edge/node3/current/lib/tibrvj.jar:/edge/node3/current/lib/trove.jar:/edge/node3/current/lib/velocity-tools.jar:/edge/node3/current/lib/velocity.jar:/edge/node3/current/lib/xalan.jar:/edge/node3/current/lib/xerces.jar:/edge/node3/current/lib/patng/activeio-core-3.0.0-incubator.jar:/edge/node3/current/lib/patng/activemq-core-4.1.1.jar:/edge/node3/current/lib/patng/avalon-framework-4.1.3.jar:/edge/node3/current/lib/patng/backport-util-concurrent-2.2.jar:/edge/node3/current/lib/patng/binding-1.4.0.jar:/edge/node3/current/lib/patng/cglib-nodep-2.1_3.jar:/edge/node3/current/lib/patng/common-1.30.jar:/edge/node3/current/lib/patng/commons-cli-1.0.jar:/edge/node3/current/lib/patng/commons-configuration-1.2.jar:/edge/node3/current/lib/patng/commons-discovery-0.2.jar:/edge/node3/current/lib/patng/commons-math-1.1.jar:/edge/node3/current/lib/patng/concurrent-1.3.4.jar:/edge/node3/current/lib/patng/geronimo-j2ee-management_1.0_spec-1.0.jar:/edge/node3/current/lib/patng/geronimo-jms_1.1_spec-1.0.jar:/edge/node3/current/lib/patng/logkit-1.0.1.jar:/edge/node3/current/lib/patng/mina-core-1.0.1.jar:/edge/node3/current/lib/patng/mina-filter-ssl-1.0.1.jar:/edge/node3/current/lib/patng/mina-java5-1.0.1.jar:/edge/node3/current/lib/patng/mx4j-remote-3.0.1.jar:/edge/node3/current/lib/patng/mx4j-tools-3.0.1.jar:/edge/node3/current/lib/patng/org.apache.felix.framework-1.0.0.jar:/edge/node3/current/lib/patng/org.osgi.core-1.0.0.jar:/edge/node3/current/lib/patng/pat-dt-common-1.18.jar:/edge/node3/current/lib/patng/pat-sdt-1.18.jar:/edge/node3/current/lib/patng/patNg-api-1.27.1.jar:/edge/node3/current/lib/patng/patNg-server-aoc-1.21.jar:/edge/node3/current/lib/patng/patNg-server-common-1.21.jar:/edge/node3/current/lib/patng/patNg-server-session-manager-1.21.jar:/edge/node3/current/lib/patng/patNg-utils-1.27.1.jar:/edge/node3/current/lib/patng/qpid-broker-2.2.2.0.jar:/edge/node3/current/lib/patng/qpid-client-2.2.2.0.jar:/edge/node3/current/lib/patng/qpid-common-2.2.2.0.jar:/edge/node3/current/lib/patng/qpid-mina-core-2.2.2.0.jar:/edge/node3/current/lib/patng/rsee-2.11.jar:/edge/node3/current/lib/patng/servlet-api-2.3.jar:/edge/node3/current/lib/patng/silk-1.3.jar:/edge/node3/current/lib/patng/slf4j-api-1.4.0.jar:/edge/node3/current/lib/patng/slf4j-log4j12-1.4.0.jar:/edge/node3/current/lib/patng/validation-1.2.0.jar
Boot class path: /apps/jdk/1.6.0_13/linux/jre/lib/resources.jar:/apps/jdk/1.6.0_13/linux/jre/lib/rt.jar:/apps/jdk/1.6.0_13/linux/jre/lib/sunrsasign.jar:/apps/jdk/1.6.0_13/linux/jre/lib/jsse.jar:/apps/jdk/1.6.0_13/linux/jre/lib/jce.jar:/apps/jdk/1.6.0_13/linux/jre/lib/charsets.jar:/apps/jdk/1.6.0_13/linux/jre/classes:/tmp/yjp200811122006.jar
Library path: /apps/jdk/1.6.0_13/linux/jre/lib/i386/server:/apps/jdk/1.6.0_13/linux/jre/lib/i386:/apps/jdk/1.6.0_13/linux/jre/../lib/i386::/edge/node3/current/lib:/home/eqdev/eqedgeuat/yourkit_7_5_11/yjp-7.5.11/bin/linux-x86-32:/edge/node3/current/lib:/home/eqdev/eqedgeuat/yourkit_7_5_11/yjp-7.5.11/bin/linux-x86-32:/usr/java/packages/lib/i386:/lib:/usr/lib -
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) -
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.
Maybe you are looking for
-
I remove CTIOS 8 in window 8.1, and install CTIOS 9.0 but i am trying to login they given the error. Pls help
-
Is it possible to copy a swf to a new location and still use debug
Hi, I'm developing a SWF using Flex. When I generate my SWF file I'd like to copy it to a new location (a folder under my website root folder) so that it runs in my local version of a website I'm working on. Before when working with a Flash movie, us
-
Require following field from one function module
Hi, This is a issue which I am working on.Can u help me in this issue The issue is as below. It ia a Abaper related issue .They want the clarification from Functional side We require your help in below mentioned Open order extractions. Basically we w
-
Is there some way of getting the next character
asdf sa fsadf > asdfsadfasdfasf> d adfsasdfasdfsdf Say you want to get a string after the ">". So you call s.substring(s.indexOf('>'+1)) but there could be two cases. There is another character after the ">" in which case it works but it could be the
-
Pass continuous discrete averages out of loop
Hi, I have a DAQ that's acquiring 1 sample at 1 Hz. I am trying to get the program to continuously acquire samples but to output the average of every 10 samples, which I use at a later point in the program for calculations. I have found a lot of topi