Class not found when I run JSPs
I set up and can run JSPs in iPlanet 4.1 SP9 on NT. But if I use anything
such as Date() I get a Server Error and a Class Not Found in the error log.
Can someone tell me how to confire where the .class and .jar support files
go, or where do I put them. In the JDK install directory or in the iPlanet
install directory.
Thanks, Gary
Something to note, you must have superuser priveleges to run ibconf.
Check out this document about installing a PCI-GPIB on a Solaris machine. There is a section in it on page 9 about configuring the software with ibconf.
If you still have problems after reading through this repost.
JenK
Similar Messages
-
Lookout 6.0.1.: Class Not Found when trying to open project on another PC
I am using the same version on both PC's, but when I move the file over and run it, I get "Class not found!". Then "Error running process file".When running the lookout source file I get the following:
Lookout Process File Compiler Version 6.0.1 (build 1)
Copyright National Instruments 1992-2004 All rights reserved.
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(324): error: Class not found: DirectLogic
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(667): error: Class not found: Meter
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(670): error: Class not found: Meter
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(673): error: Class not found: Meter
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(676): error: Class not found: Meter
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(1977): error: Class not found: Meter
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(57): error: Object is not defined: DL1
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(667): error: Object is not defined: Meter1
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(670): error: Object is not defined: Meter2
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(673): error: Object is not defined: Meter3
C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(676): error: Object is not defined: Meter4
I have also tried to open on 6.1 with similar results.
I am familiar with lookout, however I have taken this project over so I am not sure what I need to do from here.There are two object (DirectLogic and Meter) that are not present on the amchine you are moving the process to. If the same version of Lookout, you might be able to just copy the cbx files.
Mike
Mike Crabtree - Lead Developer
Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
(866) 964-6948 / (760) 247-9512 -
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 -
Class not Found when accessing Proxy class from backing bean in VC.
Hi All,
I'm attempting to access a class of a webservice(generated as a proxy) within my ADF application and invoke the method within a backing bean of the View Controller(bean scope : backing bean). The proxy has generated an ObjectFactory class among other classes. When I access this Object factory class from within the backing bean, the application throws a Class not found error.
I don't know where the error lies since I've declared the View Controller of the ADF application dependent on the Proxy and I've imported the class and accessing it within a backing bean. How would you suggest I approach resolveing this.
JDev : 1.1.1.4
Thank you.
Regards
PP.Hello Arun,
Thank you for suggesting a Data control, but my requirement isn't to drag and drop the method as a button. It's more of a behind the scnes updating data via a database adapter requirement.
I've resolved the issue. turns out, my deployment archive didn't include the proxy.jpr. Once included it works likea charm.
Thanks
PP. -
Class not found when generating deployment xml in MW
any ideas anyone?
java.lang.RuntimeException: Class not found:
at oracle.toplink.workbench.persistence.BldrProjectToRuntimeProjectConverter.convert(Unknown Source)
at oracle.toplink.workbench.ui.BldrSession.generateDeploymentXML(Unknown Source)
at oracle.toplink.workbench.ui.BldrMainView.generateDeploymentXMLForSelectedProjects(Unknown Source)
at oracle.toplink.workbench.ui.BldrActionManager$61.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)Hi,
'Class not found' in the Mapping Workbench usually means that one of your classes was not included in the 'class path' panel. In the Mapping Workbench select the project -> Class Path -> Add Entry...
For example, in my case I have Person.class, which is part of the package com.toplink.course. 'C:\dev\tl400\classes\com\toplink\course>Person.class'
So in the Mapping Workbench -> Class Path I put 'C:\dev\tl400\classes'
Raanan. -
9.0.3 Preview - Class not found error after including jsp:useBean
Hi,
I got a Java.lang.NoClassDefFoundError while compiling a JSP Page, after including a simple web bean as follows:
<jsp:useBean id="catviews" scope="request" class="CategoryView" />
<jsp:setProperty name="catviews" property="*" />
somewhere within the HTML page...
<%= catviews.getCategory() %>
The JSP page without the bean compiles fine and the Javabean itself compiles without error. The bean class is where JDev automatically puts it (i.e in a sub-directory of the classes directory within the project) and JDev does not raise any error on that JSP Page before compiling.
The error seems to point to the first line of the page, to the directive of the JSP page:
<%@ contentType="text/html" ... %> which is apparently harmless. What can be wrong ?
Thanks for your reply.'Class not found' means 'Class not found' , the class you are referencing is not in your project's classpath. You should make sure your project's classpath point to the location where this class is deployed to. This could be a directory or a .jar file. You should also include the package name as part fo the class.
-
Hi..everybody!!
I have successfully compiled the program and I am 100% sure that the class file is in the current directory. However, when I run the program, it prompts the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp
Can anyone help me?? Thx!!Is your source file named HelloWorldApp.java (highly recommended)
Is your class file named HelloWorldApp.class (required)
Does your CLASSPATH env. var. include "." (current directory). -
Package not found when importing in JSP
I'm now using Weblogic 6.0 SP 2 for development. I did a test application, containing
EJBs, and a JSP. Package the applications to an EAR file. Then I deploy the test
application using hot-deploy - just drop the EAR into the domain\application folder.
When I call the JSP page, I get an error saying that the package I'm importing
is not found. What is wrong?? The test application works on Weblogic 5.1
My WAR file contains only the JSP and XML descriptor. Do I need to include classes
inside??? Don't think that is correct.
Please advise.
It was a bad mistake. Made an error in the application.xml, which refer to an invalid
JAR file. Made the correction and it works like magic.
Thanks :)
"Cameron Purdy" <[email protected]> wrote:
>WL 60 is tolerant of class location in that you can put all classes in
>the
>EJB JAR inside the EAR and it will work as well (sometimes better if
>there
>are xrefs) as carefully splitting classes between JAR and WAR.
>
>Chances are your context is not set up correctly. What is the web.xml?
>What
>is the URL you used? In WL 51 you provided the context in the "register"
>line in the weblogic.properties. Now that info is self-contained in the
>app
>itself.
>
>Peace,
>
>--
>Cameron Purdy
>Tangosol Inc.
><< Tangosol Server: How Weblogic applications are customized >>
><< Download now from http://www.tangosol.com/registration.jsp >>
>
>
>"Moong" <[email protected]> wrote in message
>news:[email protected]...
>>
>> I'm now using Weblogic 6.0 SP 2 for development. I did a test application,
>containing
>> EJBs, and a JSP. Package the applications to an EAR file. Then I deploy
>the test
>> application using hot-deploy - just drop the EAR into the
>domain\application folder.
>>
>> When I call the JSP page, I get an error saying that the package I'm
>importing
>> is not found. What is wrong?? The test application works on Weblogic
>5.1
>>
>> My WAR file contains only the JSP and XML descriptor. Do I need to
>include
>classes
>> inside??? Don't think that is correct.
>>
>> Please advise.
>>
>
>
-
Class not found when using JvmModelInferrer
I am trying to transform one of my language elements to a class using the ModelInferrer approach. This generated class should extend a class (AbstractMatcher) from an external project. The external project is added to the build path of the Xtext model project as an external class folder and to the run-time project in the same way. It should be noted that the external project is a plug-in built in Helios SR1. I am able to reference the AbstractMatcher class from the xtend source code (it is available for auto complete and imported correctly), but when I start runtime eclipse, I get a java.lang.NoClassDefFoundError when trying to add a superType to the generated class. If I substitute the AbstractMatcher with a dummy like java.util.ArrayList everything works fine. I have tried to make a simple Java class inside the runtime Java project and reference the AbstractMatcher from it and this also works fine. Everything seems to be able to find the offending class except the ModelInferrer.
import external.package.AbstractMatcher
def dispatch void infer(Matcher matcher, IJvmDeclaredTypeAcceptor acceptor, boolean isPreIndexingPhase) {
acceptor.accept(matcher.toClass("matchers." + matcher.name.toFirstUpper + "Matcher")) [
superTypes += typeRef(AbstractMatcher) // <---exception here
Stack trace:
java.lang.NoClassDefFoundError: org/talend/designer/xmlmap/figures/treetools/zone/matchers/AbstractMatcher
at org.xtext.example.mydsl.jvmmodel.MyDslJvmModelInferrer$1.apply(MyDslJvmModelInferrer.java:78)
at org.xtext.example.mydsl.jvmmodel.MyDslJvmModelInferrer$1.apply(MyDslJvmModelInferrer.java:1)
at org.eclipse.xtext.xbase.jvmmodel.JvmModelAssociator$1.run(JvmModelAssociator.java:397)
at org.eclipse.xtext.xbase.jvmmodel.JvmModelAssociator.installDerivedState(JvmModelAssociator.java:407)
at org.eclipse.xtext.resource.DerivedStateAwareResource.installDerivedState(DerivedStateAwareResource.java:240)
at org.eclipse.xtext.xbase.resource.BatchLinkableResource.getContents(BatchLinkableResource.java:148)
at org.eclipse.xtext.xbase.typesystem.internal.LogicalContainerAwareBatchTypeResolver.getEntryPoints(LogicalContainerAwareBatchTypeResolver.java:44)
at org.eclipse.xtext.xbase.typesystem.internal.DefaultBatchTypeResolver.getTypeResolver(DefaultBatchTypeResolver.java:63)
at org.eclipse.xtext.xbase.typesystem.internal.CachingBatchTypeResolver$1.get(CachingBatchTypeResolver.java:49)
at org.eclipse.xtext.xbase.typesystem.internal.CachingBatchTypeResolver$1.get(CachingBatchTypeResolver.java:1)
at org.eclipse.xtext.util.OnChangeEvictingCache.get(OnChangeEvictingCache.java:77)
at org.eclipse.xtext.xbase.typesystem.internal.CachingBatchTypeResolver.doResolveTypes(CachingBatchTypeResolver.java:46)
at org.eclipse.xtext.xbase.typesystem.internal.AbstractBatchTypeResolver.resolveTypes(AbstractBatchTypeResolver.java:69)
at org.eclipse.xtext.xbase.resource.BatchLinkingService.resolveBatched(BatchLinkingService.java:71)
at org.eclipse.xtext.xbase.resource.BatchLinkableResource.resolveLazyCrossReferences(BatchLinkableResource.java:165)
at org.eclipse.xtext.EcoreUtil2.resolveLazyCrossReferences(EcoreUtil2.java:528)
at org.eclipse.xtext.builder.clustering.ClusteringBuilderState.doUpdate(ClusteringBuilderState.java:234)
at org.eclipse.xtext.builder.builderState.AbstractBuilderState.update(AbstractBuilderState.java:115)
at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:248)
at org.eclipse.xtext.builder.impl.XtextBuilder.incrementalBuild(XtextBuilder.java:228)
at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:123)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
I sense that this is actually an OSGi problem, since I see this is how typeRef tries to find the reference, but I don't know how to get around it. I am not able to add the external plugin containing the AbstractMatcher class as a dependency and I'm not sure if it would be possible due to different Eclipse versions (Helios vs Luna).On 13.07.15 12:39, Zeljko Vukovic wrote:
> but when I start runtime eclipse, I get a java.lang.NoClassDefFoundError
> when trying to add a superType
Does it work for you if you refer to the AbstractMatcher from Java-code
that is in a project in the runtime instance?
Best,
Sebastian -
ERROR "Group Public not found" when I run project TutWD_FlightList
Hi everyone,
I created Web Dynpro project TutWD_FlightList exactly as tutorial "Creating a Web Dynpro Application Accessing ABAP Functions ".
I chose "Data type" for "Dictionary Meta Data" and "Destination type" for "Load-balanced connection", when I clicked test connection, the error information as follow:
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=sapserver GROUP=PUBLIC R3NAME=I01 MSSERV=sapmsI01 PCS=1 <b>ERROR Group PUBLIC not found</b> TIME Thu Mar 01 16:57:35 2007 RELEASE 640 COMPONENT LG VERSION 5 RC -6 MODULE lgxx.c LINE 3531 DETAIL LgIGroup COUNTER 2
It seems that the nature reason is "<b>Group Public not found</b>".
But I had created the "Public" group with transaction SMLG in related R/3 system,
and I can logon R/3 via "Public" group both on my laptop and on WebDynpro server. So I think "Public" group is ok.
The error information for "Ping" is :
Failed to ping JCo destination 'WD_FLIGHTLIST_MODELDATA_DEST'.
Is there any friends meet the same problem ?
Could you please give me any suggestion ?
Thanks !
Best Regards,
Jianguo Chenjianguo,
Strange... Is Status field for PUBLIC is ok (green) in SMLG?
If you just want to run tutorial try group SPACE -- as far as I know it always exists.
Valery Silaev
SaM Solutions
http://www.sam-solutions.net -
Dll not found when Tomcat run as an NT service
I am running Tomcat 4.1.27 j2sdk 1.4.2 on Windows 2000 SP4.
I am trying to connect to a datacom database using jdbc.
When I run Tomcat in a separate DOS window - the database connection works fine.
When I run Tomcat as an NT service I get the following error:
org.apache.jasper.JasperException: no cadcdb32 in java.library.path
The service is logged in as an administrator.
cadcdb32.dll is located in C:\Program Files\CA\AdvantageDatacomServer5.0\
This directory is in the PATH environmental variable.
The batch file that starts the DOS window (which works) is:
C:\j2sdk1.4.2\bin\java.exe -jar -Duser.dir="C:\Program Files\Apache Group\Tomcat 4.1" "C:\Program Files\Apache Group\Tomcat 4.1\bin\bootstrap.jar" start
How can I have Tomcat find the dll when run as a service ?
Thank youCreate new user or use an existing user and Log On to this user in the Service {Properties->Log On->This account}.
-
Class not found error while running a JSP App
Hi everybody,
I am getting the following error while try to run a JSPApp using JBuilder
and weblogic server 6.1.
C:\JBuilder6\jdk1.3.1\bin\javaw -classpath "C:\BEA
Home\wlserver6.1\lib\weblogic.jar;C:\BEA
Home\wlserver6.1\lib\weblogic.jar;C:\JBuilder6\jdk1.3.1\demo\jfc\Java2D\Java
2Demo.jar;C:\JBuilder6\jdk1.3.1\jre\lib\i18n.jar;C:\JBuilder6\jdk1.3.1\jre\l
ib\jaws.jar;C:\JBuilder6\jdk1.3.1\jre\lib\rt.jar;C:\JBuilder6\jdk1.3.1\jre\l
ib\sunrsasign.jar;C:\JBuilder6\jdk1.3.1\lib\dt.jar;C:\JBuilder6\jdk1.3.1\lib
\htmlconverter.jar;C:\JBuilder6\jdk1.3.1\lib\tools.jar" -ms64m -mx64m -Djav
a.library.path=C:/BEA Home/wlserver6.1/bin -Dbea.home="C:/BEA
Home" -Dweblogic.Domain=mydomain -Dweblogic.Name=myserver -Djava.security.po
licy==C:/BEA
Home/wlserver6.1/lib/weblogic.policy -Dweblogic.management.password=suresh74
weblogic.Server
java.lang.NoClassDefFoundError: Home/wlserver6/1/bin
Exception in thread "main"
i didn't understand where it is picking the path Home/wlserver6/1/bin.
I am really frustrated with this.
Can any one over there Have any Idea or gone through this, please help me ,
I would be thankfull to them.
Thank you,
-Suresh
Hi.
Try putting double quotes around your java.library.path definition - I think it
can't handle the space in the string. So change:
-Djava.library.path=C:/BEA Home/wlserver6.1/bin
to
-Djava.library.path="C:/BEA Home/wlserver6.1/bin"
Regards,
Michael
Suresh Babu wrote:
> Hi everybody,
>
> I am getting the following error while try to run a JSPApp using JBuilder
> and weblogic server 6.1.
> C:\JBuilder6\jdk1.3.1\bin\javaw -classpath "C:\BEA
> Home\wlserver6.1\lib\weblogic.jar;C:\BEA
> Home\wlserver6.1\lib\weblogic.jar;C:\JBuilder6\jdk1.3.1\demo\jfc\Java2D\Java
> 2Demo.jar;C:\JBuilder6\jdk1.3.1\jre\lib\i18n.jar;C:\JBuilder6\jdk1.3.1\jre\l
> ib\jaws.jar;C:\JBuilder6\jdk1.3.1\jre\lib\rt.jar;C:\JBuilder6\jdk1.3.1\jre\l
> ib\sunrsasign.jar;C:\JBuilder6\jdk1.3.1\lib\dt.jar;C:\JBuilder6\jdk1.3.1\lib
> \htmlconverter.jar;C:\JBuilder6\jdk1.3.1\lib\tools.jar" -ms64m -mx64m -Djav
> a.library.path=C:/BEA Home/wlserver6.1/bin -Dbea.home="C:/BEA
> Home" -Dweblogic.Domain=mydomain -Dweblogic.Name=myserver -Djava.security.po
> licy==C:/BEA
> Home/wlserver6.1/lib/weblogic.policy -Dweblogic.management.password=suresh74
> weblogic.Server
>
> java.lang.NoClassDefFoundError: Home/wlserver6/1/bin
>
> Exception in thread "main"
>
> i didn't understand where it is picking the path Home/wlserver6/1/bin.
>
> I am really frustrated with this.
>
> Can any one over there Have any Idea or gone through this, please help me ,
> I would be thankfull to them.
>
> Thank you,
> -Suresh
Michael Young
Developer Relations Engineer
BEA Support
-
Classes not found when compiling for jdk1.3.1_01 on red hat 7.2
I have just installed jdk1.3.1_01 (rpm) on linux red hat 7.2
I have written a small program to test, however, the compiler isn't able to locate the classes.
import javax.swing.*;
public class JTest {
public static void main( String args[] )
JOptionPane.showMessageDialog( null, "Hello", "Test Dialog",
JOptionPane.INFORMATION_MESSAGE );
System.exit( 0 );
When compiled it generates the error:
JTest.java:10: error:Variable "JOptionPane" is not defined in current context
I have the path and classpath set to what I think are the correct directory paths.
Any advice would be much appreciated!
Thanks..Sorry, typo in the classpath... but now when I compile
I get error: "segmentation fault" then nothing else.
This also happens when I execute a precompiled app (eg
"java OldApp").This is to do with GLIBC-2.2, I believe. :/ (Pointed out by Niteen. :)
"ulimit -s 2048" should fix this. Adding this line to /etc/profile or your ~/.profile shall automatically run this command every log in.
Bhav -
Error Class Not Found when Importing
When trying to import the roles from SAP, the Tomcat server throws the following error:
20-04-09 10:26:28:662 - [/SAP].[Faces Servlet] Thread [http-8080-Processor23]; Servlet.service() for servlet Faces Servlet threw exception
java.lang.ClassNotFoundException: org.apache.jsp.jsp.auth.sapsec_005fimport_005frole_jsp
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
I have added the sapjco.jar to the classpath of tomcat server and restarted the service. But it seems to have no effect.
Would you have any proposed solution?Hello Ingo.
I install the new jco version 2.1.8 by replace the old version.
- Replace sapjco.jar in /<BO DIR>/bobje/tomcat/shared/lib .
- Replace librfccm.o and libsapjcorfc.so in /<BO DIR>//bobje/enterprise120/aix_rs6000 .
then stop tomcat and redeploy the application using this script below.
./wdeploy.sh tomcat55 -DAPP=CmcApp -Das_admin_password=root1234 undeploy
./wdeploy.sh tomcat55 -DAPP=CmcApp -Das_admin_password=root1234 deploy
./wdeploy.sh tomcat55 -DAPP=InfoViewApp -Das_admin_password=root1234 undeploy
./wdeploy.sh tomcat55 -DAPP=InfoViewApp -Das_admin_password=root1234 deploy
./wdeploy.sh tomcat55 -DAPP=OpenDocument -Das_admin_password=root1234 undeploy
./wdeploy.sh tomcat55 -DAPP=OpenDocument -Das_admin_password=root1234 deploy
./wdeploy.sh tomcat55 -DAPP=dswsbobje -Das_admin_password=root1234 undeploy
./wdeploy.sh tomcat55 -DAPP=dswsbobje -Das_admin_password=root1234 deploy
./wdeploy.sh tomcat55 -DAPP=SAP -Das_admin_password=root1234 undeploy
./wdeploy.sh tomcat55 -DAPP=PartnerPlatformService -Das_admin_password=root1234 undeploy
./wdeploy.sh tomcat55 -DAPP=SAP -Das_admin_password=root1234 deploy
./wdeploy.sh tomcat55 -DAPP=PartnerPlatformService -Das_admin_password=root1234 deploy
Then I have the new problem.
After I start tomcat I logon CMC as administrator then click Authentication.
I switch 'Entitlement tab' into 'import role' tab I got this error.
Exception in JSP: /jsp/auth/sapsec_import_role.jsp:22 19: 20: <% 21: String
context=secSAPR3ImportRoleBean.getContextPath(); 22: secSAPR3ImportRoleBean.init(request); 23:
response.setHeader("Expires", "0"); 24: %> 25: Stacktrace:
(This import role tab used to worked when I use jco 2.0.12)
Did I miss something?
Please give me some advise.
Thank you.
- Chai - -
Class not found when invoking sub web-service
Hi all :)
I build a simple BPEL process that invokes a web method. Since here, no problem. No the concerned web method is a web service client of another web service... and it throws me an exception so that the first web method does not find a class needed for the soap request to the second web service. BUT if I call directly this web method, there is no problem : it call the second web method and it works very well...
It seems that the BPEL process make that the first web method loses his contexte or something like that :(
Here is the error :
Caused by: class: com.sun.td.vta.ws.client.reservation.Cancel could not be found
at com.sun.xml.ws.modeler.RuntimeModeler.getClass(RuntimeModeler.java:271)
at com.sun.xml.ws.modeler.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:562)
at com.sun.xml.ws.modeler.RuntimeModeler.processMethod(RuntimeModeler.java:509)
at com.sun.xml.ws.modeler.RuntimeModeler.processClass(RuntimeModeler.java:355)
at com.sun.xml.ws.modeler.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:251)
at com.sun.xml.ws.client.ServiceContextBuilder.processAnnotations(ServiceContextBuilder.java:119)
at com.sun.xml.ws.client.ServiceContextBuilder.completeServiceContext(ServiceContextBuilder.java:87)
at com.sun.xml.ws.client.WSServiceDelegate.processServiceContext(WSServiceDelegate.java:133)
at com.sun.xml.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:284)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:171)
at com.sun.enterprise.webservice.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:82)
at javax.xml.ws.Service.getPort(Service.java:94)
at com.sun.td.vta.ws.client.WebServiceClient.getReservationManager(WebServiceClient.java:76)
at com.sun.td.vta.ws.RegisteredProviderManager.search(RegisteredProviderManager.java:127)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1050)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:165)
at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2766)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3847)
at com.sun.ejb.containers.WebServiceInvocationHandler.invoke(WebServiceInvocationHandler.java:147)
at $Proxy87.search(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.xml.ws.server.PeptTie._invoke(PeptTie.java:61)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.invokeEndpoint(SOAPMessageDispatcher.java:280)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher$SoapInvoker.invoke(SOAPMessageDispatcher.java:588)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:147)
at com.sun.xml.ws.server.Tie.handle(Tie.java:90)
at com.sun.enterprise.jbi.serviceengine.bridge.JAXWSMessageProcessor.doWork(JAXWSMessageProcessor.java:69)
Do you have any idea ?
Best regards !
@++I would imagine that require statement would be need to successfully interpret this PHP file since it refers the Model_DbTable_Users class on line 7:
$tbl = new Model_DbTable_Users();
-mayank
Flash Builder Engineering
Maybe you are looking for
-
Will all my files transfer over (or stay) automatically right after upgrading to Yosemite or do I have to backup every single desired program or document? Question is do I HAVE to please if you can answer if its mandatory or not. Not looking for reco
-
Verify physical hard disk drive health MCS 7825-H3 that installed CUCM inside it
Hi Everyone, I have Cisco MCS 7825-3 that installed CUCM ver 6.1.1 inside it. A few days ago the system was crashed and have been recovered. And the symtomp why the system crashed is because corrupted hard disk drive. Now the system is running well.
-
Pa_billing_pub.insert_event Error
Hi Consultant, we have importing Invoices from AR to PA using this pa_billing_pub.insert_event apis it is getting error when any invoice line amount has zero can anyone advice me on this issue. THanks, Anu
-
XI cannot access oracle databse
A IDOC to JDBC scenario is created in the XI. The database is SQL Server 2000. The adapters are IDOC and JDBC. The scenario is working fine. Next, the existing database (tables+data) in SQL Server 2000 is transferred to an Oracle Database. The JDBC
-
Portlet to Transfer files across firewall
We have 2 standalone portal environments, one internal (4.5WS) and the other externally facing (5.0.3), which we have had to do to satisfy certain security constraints placed upon us. We now want to be able to 'push/publish' information to the extern