JNDI: Can't find Class com.sun.jndi.nis.NISCtxFactory
Hi
I searched this forum for similar problems .. and I also found some, but this questions were either not be answered or not detailed enough.
Now to my question. I've got a Java File that I imported to Oracle (I use it from PL/SQL). This Java File contains following code.
static Properties = System.getProperties();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.nis.NISCtxFactory");
env.put(Context.PROVIDER_URL, "nis://disney/geo.unizh.ch");
Context ctx = new InitialContext(env);
And if I run it from oracle(PL/SQL) I get the error below.
javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.nis.NISCtxFactory. Root exception is java.lang.ClassNotFoundException: com/sun/jndi/nis/NISCtxFactory
at java.lang.Class.forName0(Class.java)
at java.lang.Class.forName(Class.java)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java)
at javax.naming.InitialContext.init(InitialContext.java)
at javax.naming.InitialContext.<init>(InitialContext.java)
at GIUZContext.getCtx(GIUZContext:42)
at CheckPwd.check(CheckPwd:18)
The nis.jar I imported with the loadjava, so actuallay should it be in the database. But why it cant find this class (NISCtxFactory)!
I get no error if I use this code ->
NISCtxFactory test = new NISCtxFactory();
System.out.println(test);
It would be very nice if you could give me some clues. TNX!!
Oracle Version 8.1.7.
Cyrill
Hi Cyrill,
I don't know what other postings you have read, and I also don't
know why they were insufficient for you, so excuse me if I repeat
things you already know.
As far as I know, the error message you are getting is most probably
due to one of the following three causes:
1. The class is not loaded into the database.
2. The class is loaded but is not "valid".
3. You don't have permission to access the class.
To the best of my memory, there have been several posts to either
this forum or the "Products > Database > JVM" forum
http://forums.oracle.com/forums/forum.jsp?id=424322
that (in my opinion) sufficiently explain how to resolve the problem
for each of the three causes listed above.
Personally, I believe that the Oracle documentation sufficiently
explains how to resolve the above three issues, and I have posted
the URLs for the relevant Oracle documentation several times already.
I am guessing that you are trying to "talk" to an EJB (probably deployed
in SUN's application server) from a java stored procedure in the Oracle
database. If that is the case, then that question has been discussed
many times in this forum. Perhaps you can say why those discussions
were not sufficiently helpful for you.
Hope this helps.
Good Luck,
Avi.
Similar Messages
-
Preverification error: Cannot find class com/sun/perseus/model/Viewport
Hi all,
I have a (previously) working Midlet to which I have added one line as follows:
SVGImage image = (SVGImage)SVGImage.createEmptyImage(null);
- and imported the necessary from javax.microedition.m2g. (I am using the library that comes with the WTK, jsr226.jar).
This builds, jars, obfuscates fine. But when I try to preverify (using Antenna's wtkpreverify) on the jar, it gives up in disgust very swiftly as follows:
[wtkpreverify] Error preverifying class javax.microedition.m2g.ScalableGraphics
[wtkpreverify] VERIFIER ERROR javax/microedition/m2g/ScalableGraphics.render(IILjavax/microedition/m2g/ScalableImage;)V:
[wtkpreverify] Cannot find class com/sun/perseus/model/Viewport
I'm using the WTK2.5.1ea and antenna 0.9.14, CLDC1.1, MIDP2.0...
Many thanks for any ideas.Problem resolved simply by replacing jsr226.jar (as distributed with WTK2.5.1ea) with m2g.jar (as distributed with J2MEPolish).
-
Where can i find package com.sun.awt.svg.*??
where can i find package com.sun.awt.svg.*??
urgent!!! please help me!
thanks in advance!!!Perhaps you might find some useful information here;-
http://forum.java.sun.com/thread.jsp?forum=54&thread=427144&tstart=15&trange=15
(pillock) -
Hi everybody,
I m new in developing web service.
I am using NetBeans IDE 4.1 EA2 for developing web service.
I have created a sample jaxrpc web service. When i build project it gives me error that:taskdef class com.sun.xml.rpc.tools.ant.Wscompile cannot be found.
This error is contain in the file build-impl.xml which is referred by build.xml file.
netbeans ide uses ant tool for compiling, building & deploying web service.
All the xml files are automatically generated by netbeans ide.
Please help me with this...
Thanx in advance..
Nirav Patel.You'll need to add jaxrpc-impl.jar to your
classpath.
You can find it under %JWSDP_HOME%\jaxrpc\lib
If you haven't got JWSDP then try
http://java.sun.com/webservices/downloads/webservicesp
ack.htmlhello...
i want to add jaxepc-impl.jar to classpath.
i got the same problem.
i check the user variable c:\sun\jwsdp-1.6\jwsdp_shared\bin;c:\sun\jwsdp-1.6\jwsdp_shared\bin
have been there.
but still the same error appear in the netbeans.
i hope can't get the one-by-one steps guidelines from u.
thanks -
Can't find class when executing javabean test
Hi,
I've installed Sunone 6.0
JSP is installed
JDK is installed
I've written and compiled a simple javabeans program
and it generates class correctly.
When I try to execute I get "Can't find class" error.
Where does the class need to reside after compiling?
Is my PATH hosed?
Thanks for any pointer
Williehi
did you get a chance to read this doc:
http://docs.sun.com/source/817-6251/pwajsp.html -
Error in parsing: SAX2 driver class com.sun.xml.parser not found
Hi I have this exception
Error in parsing: SAX2 driver class com.sun.xml.parser not found
when I try to run the examples from the book xml and java
I have added the following jar files to the class path that i have download form java.sun.com
xml.jar
xalan.jar
jaxp.jar
crimson.jar
Please can anyone tell me what is missing or wrong..the code must be right since written by oreilly... please have u any ideA
XMLReaderFactory.createXMLReader(
// "org.apache.xerces.parsers.SAXParser");
"com.sun.xml.parser");//
I HAVE ONLY CHANGED THIS LINE FROM THE apache parser..to com.sun.xml.parser
THIS IS THE ALL CODE
import java.io.IOException;
import org.xml.sax.Attributes;
import org.xml.sax.ContentHandler;
import org.xml.sax.ErrorHandler;
import org.xml.sax.Locator;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.XMLReaderFactory;
import org.xml.sax.*;
* <b><code>SAXParserDemo</code></b> will take an XML file and parse it using SAX,
* displaying the callbacks in the parsing lifecycle.
* @author Brett McLaughlin
* @version 1.0
public class SAXParserDemo {
* <p>
* This parses the file, using registered SAX handlers, and output
* the events in the parsing process cycle.
* </p>
* @param uri <code>String</code> URI of file to parse.
public void performDemo(String uri) {
System.out.println("Parsing XML File: " + uri + "\n\n");
// Get instances of our handlers
ContentHandler contentHandler = new MyContentHandler();
ErrorHandler errorHandler = new MyErrorHandler();
try {
// Instantiate a parser
XMLReader parser =
XMLReaderFactory.createXMLReader(
// "org.apache.xerces.parsers.SAXParser");
"com.sun.xml.parser");// I HAVE ONLY CHANGED THIS LINE FROM THE apache parser..
// Register the content handler
parser.setContentHandler(contentHandler);
// Register the error handler
parser.setErrorHandler(errorHandler);
// Parse the document
parser.parse(uri);
} catch (IOException e) {
System.out.println("Error reading URI: " + e.getMessage());
} catch (SAXException e) {
System.out.println("Error in parsing: " + e.getMessage());
* <p>
* This provides a command line entry point for this demo.
* </p>
public static void main(String[] args) {
// if (args.length != 1) {
// System.out.println("Usage: java SAXParserDemo [XML URI]");
// System.exit(0);
//String uri = args[0];
SAXParserDemo parserDemo = new SAXParserDemo();
parserDemo.performDemo("content.xml");
* <b><code>MyContentHandler</code></b> implements the SAX
* <code>ContentHandler</code> interface and defines callback
* behavior for the SAX callbacks associated with an XML
* document's content.
class MyContentHandler implements ContentHandler {
/** Hold onto the locator for location information */
private Locator locator;
* <p>
* Provide reference to <code>Locator</code> which provides
* information about where in a document callbacks occur.
* </p>
* @param locator <code>Locator</code> object tied to callback
* process
public void setDocumentLocator(Locator locator) {
System.out.println(" * setDocumentLocator() called");
// We save this for later use if desired.
this.locator = locator;
* <p>
* This indicates the start of a Document parse - this precedes
* all callbacks in all SAX Handlers with the sole exception
* of <code>{@link #setDocumentLocator}</code>.
* </p>
* @throws <code>SAXException</code> when things go wrong
public void startDocument() throws SAXException {
System.out.println("Parsing begins...");
* <p>
* This indicates the end of a Document parse - this occurs after
* all callbacks in all SAX Handlers.</code>.
* </p>
* @throws <code>SAXException</code> when things go wrong
public void endDocument() throws SAXException {
System.out.println("...Parsing ends.");
* <p>
* This will indicate that a processing instruction (other than
* the XML declaration) has been encountered.
* </p>
* @param target <code>String</code> target of PI
* @param data <code>String</code containing all data sent to the PI.
* This typically looks like one or more attribute value
* pairs.
* @throws <code>SAXException</code> when things go wrong
public void processingInstruction(String target, String data)
throws SAXException {
System.out.println("PI: Target:" + target + " and Data:" + data);
* <p>
* This will indicate the beginning of an XML Namespace prefix
* mapping. Although this typically occur within the root element
* of an XML document, it can occur at any point within the
* document. Note that a prefix mapping on an element triggers
* this callback <i>before</i> the callback for the actual element
* itself (<code>{@link #startElement}</code>) occurs.
* </p>
* @param prefix <code>String</code> prefix used for the namespace
* being reported
* @param uri <code>String</code> URI for the namespace
* being reported
* @throws <code>SAXException</code> when things go wrong
public void startPrefixMapping(String prefix, String uri) {
System.out.println("Mapping starts for prefix " + prefix +
" mapped to URI " + uri);
* <p>
* This indicates the end of a prefix mapping, when the namespace
* reported in a <code>{@link #startPrefixMapping}</code> callback
* is no longer available.
* </p>
* @param prefix <code>String</code> of namespace being reported
* @throws <code>SAXException</code> when things go wrong
public void endPrefixMapping(String prefix) {
System.out.println("Mapping ends for prefix " + prefix);
* <p>
* This reports the occurrence of an actual element. It will include
* the element's attributes, with the exception of XML vocabulary
* specific attributes, such as
* <code>xmlns:[namespace prefix]</code> and
* <code>xsi:schemaLocation</code>.
* </p>
* @param namespaceURI <code>String</code> namespace URI this element
* is associated with, or an empty
* <code>String</code>
* @param localName <code>String</code> name of element (with no
* namespace prefix, if one is present)
* @param rawName <code>String</code> XML 1.0 version of element name:
* [namespace prefix]:[localName]
* @param atts <code>Attributes</code> list for this element
* @throws <code>SAXException</code> when things go wrong
public void startElement(String namespaceURI, String localName,
String rawName, Attributes atts)
throws SAXException {
System.out.print("startElement: " + localName);
if (!namespaceURI.equals("")) {
System.out.println(" in namespace " + namespaceURI +
" (" + rawName + ")");
} else {
System.out.println(" has no associated namespace");
for (int i=0; i<atts.getLength(); i++)
System.out.println(" Attribute: " + atts.getLocalName(i) +
"=" + atts.getValue(i));
* <p>
* Indicates the end of an element
* (<code></[element name]></code>) is reached. Note that
* the parser does not distinguish between empty
* elements and non-empty elements, so this will occur uniformly.
* </p>
* @param namespaceURI <code>String</code> URI of namespace this
* element is associated with
* @param localName <code>String</code> name of element without prefix
* @param rawName <code>String</code> name of element in XML 1.0 form
* @throws <code>SAXException</code> when things go wrong
public void endElement(String namespaceURI, String localName,
String rawName)
throws SAXException {
System.out.println("endElement: " + localName + "\n");
* <p>
* This will report character data (within an element).
* </p>
* @param ch <code>char[]</code> character array with character data
* @param start <code>int</code> index in array where data starts.
* @param end <code>int</code> index in array where data ends.
* @throws <code>SAXException</code> when things go wrong
public void characters(char[] ch, int start, int end)
throws SAXException {
String s = new String(ch, start, end);
System.out.println("characters: " + s);
* <p>
* This will report whitespace that can be ignored in the
* originating document. This is typically only invoked when
* validation is ocurring in the parsing process.
* </p>
* @param ch <code>char[]</code> character array with character data
* @param start <code>int</code> index in array where data starts.
* @param end <code>int</code> index in array where data ends.
* @throws <code>SAXException</code> when things go wrong
public void ignorableWhitespace(char[] ch, int start, int end)
throws SAXException {
String s = new String(ch, start, end);
System.out.println("ignorableWhitespace: [" + s + "]");
* <p>
* This will report an entity that is skipped by the parser. This
* should only occur for non-validating parsers, and then is still
* implementation-dependent behavior.
* </p>
* @param name <code>String</code> name of entity being skipped
* @throws <code>SAXException</code> when things go wrong
public void skippedEntity(String name) throws SAXException {
System.out.println("Skipping entity " + name);
* <b><code>MyErrorHandler</code></b> implements the SAX
* <code>ErrorHandler</code> interface and defines callback
* behavior for the SAX callbacks associated with an XML
* document's errors.
class MyErrorHandler implements ErrorHandler {
* <p>
* This will report a warning that has occurred; this indicates
* that while no XML rules were "broken", something appears
* to be incorrect or missing.
* </p>
* @param exception <code>SAXParseException</code> that occurred.
* @throws <code>SAXException</code> when things go wrong
public void warning(SAXParseException exception)
throws SAXException {
System.out.println("**Parsing Warning**\n" +
" Line: " +
exception.getLineNumber() + "\n" +
" URI: " +
exception.getSystemId() + "\n" +
" Message: " +
exception.getMessage());
throw new SAXException("Warning encountered");
* <p>
* This will report an error that has occurred; this indicates
* that a rule was broken, typically in validation, but that
* parsing can reasonably continue.
* </p>
* @param exception <code>SAXParseException</code> that occurred.
* @throws <code>SAXException</code> when things go wrong
public void error(SAXParseException exception)
throws SAXException {
System.out.println("**Parsing Error**\n" +
" Line: " +
exception.getLineNumber() + "\n" +
" URI: " +
exception.getSystemId() + "\n" +
" Message: " +
exception.getMessage());
throw new SAXException("Error encountered");
* <p>
* This will report a fatal error that has occurred; this indicates
* that a rule has been broken that makes continued parsing either
* impossible or an almost certain waste of time.
* </p>
* @param exception <code>SAXParseException</code> that occurred.
* @throws <code>SAXException</code> when things go wrong
public void fatalError(SAXParseException exception)
throws SAXException {
System.out.println("**Parsing Fatal Error**\n" +
" Line: " +
exception.getLineNumber() + "\n" +
" URI: " +
exception.getSystemId() + "\n" +
" Message: " +
exception.getMessage());
throw new SAXException("Fatal Error encountered");I have seen this error when I'm executing inside one of the (j2ee sun reference implementation) server containers (either web or ejb). I believe its caused by "something" having previously loaded the "sax 1 driver class". In my case, I think the container or server is loading the sax parser from a jar that contains a sax 1 version. If you can, ensure that nothing is loading the sax 1 parser from another jar on your system. Verify that you are loading the sax parser from a jar containing the latest version so that you get the sax 2 compliant parser. Good luck!
-
Can't find class org/apache/jk/apr/AprImpl
Hi
I have Tomcat 4.1.29 and Apache Web Server 2.0.48 installed.
I have used this tutorial since I'm a newbie :(
http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html
My problem is when I try to regroup them, I obtained this error error.log.
error] Can't find class org/apache/jk/apr/AprImpl
java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Here is my confid file (workers.properties) :
[logger]
level=DEBUG
[config:]
#file=C:/Apache2/conf/workers2.properties
file=C:/Apache2/conf/workers2.properties
debug=0
debugEnv=0
[uriMap:]
info=Maps the requests. Options: debug
debug=0
# Alternate file logger
#[logger.file:0]
#level=DEBUG
#file=C:/Apache2/logs/jk2.log
[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=C:/Apache2/logs/jk2.shm
size=1000000
debug=0
disabled=0
[workerEnv:]
info=Global server options
timing=1
debug=0
# Default Native Logger (apache2 or win32 )
# can be overriden to a file logger, useful
# when tracing win32 related issues
#logger=logger.file:0
[lb:lb]
info=Default load balancer.
debug=0
#[lb:lb_1]
#info=A second load balancer.
#debug=0
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009
#[channel.socket:localhost:8019]
#info=A second tomcat instance.
#debug=0
#tomcatId=localhost:8019
#lb_factor=1
#group=lb
#group=lb_1
#disabled=0
#[channel.un:/opt/33/work/jk2.socket]
#info=A second channel connecting to localhost:8019 via unix socket
#tomcatId=localhost:8019
#lb_factor=1
#debug=0
[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess
[status:]
info=Status worker, displays runtime informations
[vm:]
info=Parameters used to load a JVM in the server process
#JVM=C:\jdk\jre\bin\hotspot\jvm.dll
OPT=-Djava.class.path=c:/Tomcat/bin/tomcat-jni.jar;c:/Tomcat/server/lib/commons-logging.jar
OPT=-Dtomcat.home=${TOMCAT_HOME}
OPT=-Dcatalina.home=${TOMCAT_HOME}
OPT=-Xmx128M
#OPT=-Djava.compiler=NONE
disabled=0
[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
disabled=0
stdout=C:/Apache2/logs/stdout.log
stderr=C:/Apache2/logs/stderr.log
[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop
disabled=0
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:
#[uri:127.0.0.1:8003]
#info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test it
#alias=myVirtualHost:8003
#[uri:127.0.0.1:8003/ex]
#info=Example webapp in the virtual host. It'll go to lb_1 ( i.e. localhost:8019 )
#context=/ex
#group=lb_1
[uri:/examples]
info=Example webapp in the default context.
context=/examples
debug=0
#[uri:/examples1/*]
#info=A second webapp, this time going to the second tomcat only.
#group=lb_1
#debug=0
[uri:/examples/servlets/*]
info=Prefix mapping
[uri:/examples/*.jsp]
info=Extension mapping
[uri:/examples/*]
info=Map the whole webapp
[uri:/examples/servlets/HelloW]
info=Exampel with debug enabled.
debug=10
Thank you for your time !
MaxBtw: I get the warning starting IIS - It seems to me that IIS tries to load Tomcat on-the-fly. The Tomcat load the fails and IIS continues to load successfully.
The beginning of the IIS Event log outputs this:
Apache Jakarta Connector2, Information, Info: [jk_vm_default.c (340)]: vm.detach() ok
Apache Jakarta Connector2, Warning, Error: [jk_worker_jni.c (308)]: Can't find class org/apache/jk/apr/AprImpl
Apache Jakarta Connector2, Information, Info: [jk_worker_jni.c (297)]: Loaded org/apache/jk/apr/TomcatStarter
Apache Jakarta Connector2, None, Debug: [jk_vm_default.c (302)]: vm.attach() allready attached
Apache Jakarta Connector2, Information, Info: [jk_worker_jni.c (252)]: jni.validate() class= org/apache/jk/apr/TomcatStarter
Apache Jakarta Connector2, Information, Info: [jk_vm_default.c (607)]: vm.open2() done
Apache Jakarta Connector2, Information, Info: [jk_vm_default.c (500)]: vm.init(): Jni lib: C:\wwwapps\j2sdk1.4.2_01\jre\bin\client\jvm.dll
/watson -
I just download and try WTK2.5 today, I changed the file ktoos.properties to use Retroguard as the document said, the toolkit shown the following error message while building the app!
The obfuscation class file can not be loaded.
com.sun.kvem.ktools.RunRetro
Warning: java.lang.ClassNotFoundException: com.sun.kvem.ktools.RunRetro
Obfuscation failed.
then, I checked that ..\wtklib\ktools.zip does not contain the class com.sun.kvem.ktools.RunRetro, it just contains the class com.sun.kvem.ktools.RunPro for Proguard!
is that a bug? or anything i am missing?I just download and try WTK2.5 today, I changed the file ktoos.properties to use Retroguard as the document said, the toolkit shown the following error message while building the app!
The obfuscation class file can not be loaded.
com.sun.kvem.ktools.RunRetro
Warning: java.lang.ClassNotFoundException: com.sun.kvem.ktools.RunRetro
Obfuscation failed.
then, I checked that ..\wtklib\ktools.zip does not contain the class com.sun.kvem.ktools.RunRetro, it just contains the class com.sun.kvem.ktools.RunPro for Proguard!
is that a bug? or anything i am missing? -
Hi,
I am developing a soap web service using apache axis tool. I am using tomcat6 and jdk6. I need to return SOAPMessage as return object from remote interface methods. Now I have success fully deploy web service in tomcat. Also I have create client too, but when I am trying to call web service throw client then it show me a exception on client is
org.xml.sax.SAXParseException: Premature end of file.
and on server log, it show me this exception
java.io.IOException:
xisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.io.IOException: No serializer found for class com.sun.xml.messaging.saaj.soap.ver1_1.M
ssage1_1Impl in registry org.apache.axis.encoding.TypeMappingDelegate@98062f
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.io.IOException: No serializer found for class com.su
.xml.messaging.saaj.soap.ver1_1.Message1_1Impl in registry org.apache.axis.encoding.TypeMappingDelegate@
8062f
at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1507)
at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980)
at org.apache.axis.encoding.SerializationContext.outputMultiRefs(SerializationContext.java:1055)
at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:145)
at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478)
at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
at org.apache.axis.Message.writeTo(Message.java:539)
at org.apache.axis.transport.http.AxisServlet.sendResponse(AxisServlet.java:902)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:777)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:2
0)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:58
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
{http://xml.apache.org/axis/}hostname:EMRG-409964-L19
ava.io.IOException: No serializer found for class com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl
n registry org.apache.axis.encoding.TypeMappingDelegate@98062f
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:317)
at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
at org.apache.axis.Message.writeTo(Message.java:539)
at org.apache.axis.transport.http.AxisServlet.sendResponse(AxisServlet.java:902)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:777)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:2
0)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:58
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
aused by: java.io.IOException: No serializer found for class com.sun.xml.messaging.saaj.soap.ver1_1.Mess
ge1_1Impl in registry org.apache.axis.encoding.TypeMappingDelegate@98062f
at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1507)
at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980)
at org.apache.axis.encoding.SerializationContext.outputMultiRefs(SerializationContext.java:1055)
at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:145)
at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478)
at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
... 19 moreI have deploy new version of saa-impl.jar and saaj-api.jar too. And I also have deploy webservice-rt.jar too in server lib and application lib folder. but still this exception is there. I dont understand, how can I over come from this error. If some one have resolved this type of exception then please reply. Please reply me on [email protected]
--Thanks in Advance
Umashankar Adha
Sr. Soft. Eng.
United StatesFYI, now I'm in work:
import javax.xml.namespace.*;
import javax.xml.rpc.*;
import javax.activation.*;
import javax.mail.*;
import com.sun.xml.messaging.saaj.*;
-classpath D:\jwsdp-1.3\jaxp\lib\endorsed\dom.jar;D:\jwsdp-1.3\jaxp\lib\endorsed\xercesImpl.jar;D:\jwsdp-1.3\saaj\lib\saaj-impl.jar;D:\jwsdp-1.3\saaj\lib\saaj-api.jar;D:\jwsdp-1.3\jwsdp-shared\lib\activation.jar;D:\jwsdp-1.3\jwsdp-shared\lib\mail.jar;D:\jwsdp-1.3\jaxrpc\lib\jaxrpc-api.jar;D:\jwsdp-1.3\jaxrpc\lib\jaxrpc-impl.jar;D:\jwsdp-1.3\jaxrpc\lib\jaxrpc-spi.jar;D:\jwsdp-1.3\jwsdp-shared\lib\jax-qname.jar
Those are what I had to use to get it working.
Chris -
Failed to load Main Class: com.sun.enterprise.appclient.Main
Hi,
I use Sun Server 8.0 with Java 5.
When I am running my application I find this error,
Failed to load Main Class: com.sun.enterprise.appclient.Main
This class is in file /home/jai/cts141/SUNWappserver/lib/appserv-rt.jar and I have this file Class in my CLASSPATH.
The same works fiine with Java 1.4
Please Clarify the reasons due to which this might happen.
Thanks in Advance,
JayI use Sun Server 8.0 with Java 5.
When I am running my application I find this error,
Failed to load Main Class:
com.sun.enterprise.appclient.Main
This class is in file
/home/jai/cts141/SUNWappserver/lib/appserv-rt.jar
and I have this file Class in my CLASSPATH.
The same works fiine with Java 1.4Check if there is any other jar in the SDK 5.0 distribution which has the same class. -
Hello all,
I’m having a problem with projects generated by the LWUIT resource editor. I get a:
“Error preverifying class com.sun.lwuit.impl.midp.CanvasImplementation:” VERIFIER ERROR com/sun/lwuit/impl/midp/GameCanvasImplementation.paintVideo(Lcom/sun/lwuit/Component;ZLjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V: Cannot find class javax/microedition/media/control/VideoControl”
when I run the Project_MIDP project.
I’m running Netbeans 7.0.1, ME 3.0.5, and LWUIT 1.5. I’ve got a trivial GUI that I made in the resource editor consisting of a very simple theme and one label. l generated the Netbeans projects from the resource editor, resolved the reference by pointing at the 3.0.5 in the project configuration. I’ve found that the problem goes away if I deselect the Mobile 3D Graphics Optional Package 1.1 checkbox in the Optional Packages of the Project configuration but I then run into a problem with being unable to find the animations. (I’m not using any animations or transitions, as I said, its a trivial GUI).
I would greatly appreciate any assistance anyone could provideNothing to do with Java ME SDK, which is the subject of this forum.
Moving to CLDC and MIDP
db -
Hi,
I've installed VDI 3.1 on Solaris 10/09 in evaluation mode. I have absolutely no error during the install or the configuration. Once everything is completed, I can log locally on the VDA web console where I enter my username/password for root (the user that was used for the install). Once I do that, I have an "Internal Error Occured" that shows on the login page. If I click on the error log, I have the following:
Error Details
Here is a full stack trace of the error:org.apache.jasper.JasperException: javax.faces.FacesException: javax.faces.FacesException: javax.faces.FacesException: Cant instantiate class: com.sun.vda.admin.AccordionBean.. null
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
=== reduced for clarity ===
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.faces.FacesException: javax.faces.FacesException: javax.faces.FacesException: Cant instantiate class: com.sun.vda.admin.AccordionBean.. null
at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:216)
at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:211)
at javax.faces.webapp.UIComponentClassicTagBase.createChildRight now, all the services are running and status are good. However, I can't create provider with the CLI neither. I receive the message that VDI is not running (even if it is) and that's even if I commented out the localhost IPV6.
I saw that the VDI Demo is not supported in a VM. Is that why or it should work even if not supported? My current VM has 3 GB of RAM and 2 CPU allocated to it which seems appropriate for a demo.
If you have any idea or if I missed something, please let me know.
Thank you.
fortineTry executing:
vda-webadmin stop
vda-service stop
vda-service start
vda-webadmin start
IIRC this worked for me some time back. If it doesn't work for you, check the DB state with vda-db-status
~Thomas -
App svr - GFv2
Opensso 8.0 u2
PA 3.0
using agentsample.ear modified suffix to my environment
password format in the password file - just the clear password text in the first line of the file.
I have been getting this error everytime I tried to access the protected page. Has anyone worked around it. It is wierd that this being a straight forward install has so much complications, which normally do not happen.
I get the following error:
HTTP Status 500 -
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: PWC1243: Filter execution threw an exception
root cause
java.lang.ExceptionInInitializerError
root cause
java.lang.RuntimeException: Failed to load configuration: ApplicationSSOTokenProvider.getApplicationSSOToken(): Unable to get Application SSO Token
note The full stack traces of the exception and its root causes are available in the Sun GlassFish Enterprise Server v2.1 logs.
When I retry or press reload I get a different error message:
HTTP Status 500 -
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: PWC1243: Filter execution threw an exception
root cause
java.lang.NoClassDefFoundError: Could not initialize class com.sun.identity.agents.filter.AmFilterManager
note The full stack traces of the exception and its root causes are available in the Sun GlassFish Enterprise Server v2.1 logs.Do you still investigate it? I have ever same error. To solve it, it seems root cause was wrong server url setting for my case.
For my case, root cause was wrong setting of /etc/hosts as default (not discribed the server name on 127.0.01). so I was installing and setting the openam on http://localhost:9080/openam.
so then the agent can not connect to server and resolve the name address, and the problem of "Could not initialize class com.sun.identity.agents.filter.AmFilterManager " happend.
So for resolution, I set /etc/hosts properly as follow.
127.0.0.1 localhost.localdomain localhost sso.server.com
192.168.56.101 sso.server.com
192.168.56.102 sso.agent.com
and remove all of openam folder (****/webapps/openam and /root/openam), and re-install openam.war in ****/webapps.
And restart again the setting of openam on http://sso.server.com:9080/openam.
after that, I can resolve it. I hope you also can resolve it.
(ofcourse please modify the server name, IP number and port number as you like) -
Why is this happening, I am trying to access servlet, 2.4 on the Webshere 6.1, installation as succesfull and the servlet is running without exceptions.
nested while defining class: com.sun.xml.ws.api.WSBinding
This error indicates that the class: javax.xml.ws.Binding
could not be located while defining the class: com.sun.xml.ws.api.WSBinding
This is often caused by having the class at a higher point in the classloader hierarchy
Dumping the current context classloader hierarchy:
==> indicates defining classloader
*** indicates classloader where the missing class could have been found
==>[0]
com.ibm.ws.classloader.CompoundClassLoader@51905190
Local ClassPath: C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\classes;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\aopalliance-1.0.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\commons-logging-1.1.1.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\jaxb-impl-2.1.7.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\jaxb-xjc-2.1.7.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\jaxws-rt-2.1.4.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\jaxws-rt-2.1.7.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\jaxws-spring-1.8.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\jboss-j2ee.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\jremote.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\log4j-1.2.9.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\org.springframework.aop-3.0.1.RELEASE.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\org.springframework.asm-3.0.1.RELEASE.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\org.springframework.beans-3.0.1.RELEASE.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\org.springframework.context-3.0.1.RELEASE.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\org.springframework.core-3.0.1.RELEASE.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\org.springframework.expression-3.0.1.RELEASE.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\org.springframework.jms-3.0.1.RELEASE.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\org.springframework.transaction-3.0.1.RELEASE.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\org.springframework.web-3.0.1.RELEASE.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\spring-batch-infrastructure-2.1.0.RELEASE.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\stax-ex-1.2.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\streambuffer-0.7.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\TWSCore.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\xbean-spring-3.4.3.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war
Delegation Mode: PARENT_FIRST
[1] com.ibm.ws.classloader.JarClassLoader@777399894 Local Classpath: Delegation mode: PARENT_FIRSTEdited by: romanshtekelman on Sep 9, 2010 7:34 AMFor future reference...
We followed the following instructions and created a shared lib.
http://download.oracle.com/docs/cd/E12524_01/web.1013/e12290/opensrc.htm#BABDDAIF
We resolved most of our class loading issues.
BR//Bahman -
ERROR: Can't find class Startadmin
Hello,
why do I get this error message:
Can't find class Startadmin
I want to start my class Startadmin.java with "java Startadmin"!
The file is in the current path, so I tried "java -classpath .: Startadmin" too, but I sill get this error!
What can I do?Can you please post the solution, I'm having similar problem.
I set the classpath before compiling the program
export CLASSPATH=/usr/java/lib/classes.zip:/oracle/product/8.1.6/demo/lib/classes111.zip
When I try to run the program at the command prompt
$ java JdbcTest
I am getting error message "Can't find class JdbcTest"
When tried
$ java -classpath . JdbcTest
I was getting different error message
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver at JdbcTest.main(Compiled Code)
Any help is appreiated
Thanks
SJ
Maybe you are looking for
-
HT4972 previously used apps won't work after system restore?ipod touch 2nd gen.?
My son forgot his passcode so I had to restore his ipod touch, 2nd gen. After the restore, many of his apps no longer work. He had Netflix, Facebook, Angry Birds. They now all say they require ios 4.3 or 5.0. Does anyone know how to get these app
-
VALUE IN PO HISTORY OF SERVICE ENTRY SHEET EXIST EVEN AFTER DELETION OF SES
Respected All, My client has prepared a down payment request , prepared a service purchase order against that vendor, created service entry sheet. Later on he came to know that the qty he has entered is wrong ,so he reversed all the goods receipt(do
-
Airplay Stuttering Issues - Troubleshooting Help
Hi all, I've been having some Airplay problems for a while and all of the other forum posts or articles I've found online haven't helped. Here's a complete list of what works and what doesn't as well as my current WLAN settings. Any ideas would be in
-
How to create new KM "Entry Point"
Hi Could someone guide me how to create a new Entry Point (Note:Not the PCD navigation entry point) "An entry point provider makes one or more folders available as links that you can access from a central point" Thanks Rocky
-
Palm OS and Mac Leopard Question
Hi, I am using a Palm Treo 755p (Sprint). It is currently connected to a Mac running OS 10.4.11 (with issues in syncing, I might add....mostly duplicates appear/secondary addresses 'gone') with Palm Desktop 4.2.1 software, connected for HotSync via