Regular (non-boot) server classes found in Java -classpath
I can't start the weblogic server from the start menu at all. Neither the console nor server menu works. I get this error:
The WebLogic Server did not start up properly.
Reason: Trying to start the server dynamically, specifying weblogic.class.path,
but regular (non-boot) server classes found in Java -classpath.
WebLogic Server terminated with an abnormal condition of 1
Any tips!!
Ahmad
SO is there any fix for this? I get this after installing SP9. Things work fine
without SP9
"Ahmad" <[email protected]> wrote:
>
I can't start the weblogic server from the start menu at all. Neither
the console nor server menu works. I get this error:
The WebLogic Server did not start up properly.
Reason: Trying to start the server dynamically, specifying weblogic.class.path,
but regular (non-boot) server classes found in Java -classpath.
WebLogic Server terminated with an abnormal condition of 1
Any tips!!
Ahmad
Similar Messages
-
Not able to start the remote server - class not found exception
All,
I am quite new to RMI programming, although i am an experienced java programmer. I am facing a problem in starting the remote server program which i wrote for RMI. I am getting class not found exception for "stub" class eventhough the class is in the classpath.
Following is the error console:
cmd> java -classpath "D:\Eclipse_WorkSpaces\WS2\RMITests\classes" MyServerImplementation
GetNames error: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: MyServerImplementation_Stub
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: MyServerImplementation_Stub
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at MyServerImplementation.main(MyServerImplementation.java:21)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: MyServerImplementation_Stub
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: MyServerImplementation_Stub
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:434)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
... 12 morePLEASE ADVISE HOW TO RESOLVE THIS...
Following are my classes:
MyRemoteInterface.java
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface MyRemoteInterface extends Remote {
public String[] getNames() throws RemoteException;
public class MyServerImplementation extends UnicastRemoteObject implements
MyRemoteInterface {
public MyServerImplementation()throws RemoteException{
super();
public String[] getNames() throws RemoteException{
return new String[]{"Name1","Name2","Name3","Name4"};
public static void main(String args[]) {
try {
// Create an object of the HelloWorldServer class.
MyRemoteInterface obj = new MyServerImplementation();
// Bind this object instance to the name "HelloServer".
Naming.rebind("rmi://localhost:1985/GetNames", obj);
System.out.println("GetNames bound in registry");
catch (Exception e) {
System.out.println("GetNames error: " + e.getMessage());
e.printStackTrace();
public class MyRMIClient {
*@param args*
public static void main(String[] args) {
try {
MyRemoteInterface remObj = (MyRemoteInterface) Naming.lookup("rmi://localhost:1985/GetNames");
System.out.println("Names are "+remObj.getNames());
catch(Exception e) {
System.out.println("Problem encountered accessing remote object "+e);
}That's a remote exception coming from the registry. You need to learn to recognize remote exceptions and their source, it's a mjaor source of confusion in RMI.
In this case it's the registry that can't find the stub class.
The stub class needs to be in the CLASSPATH of (i) the Registry and (ii) the client as well. Ditto the remote interface; ditto any application classes it refers to, and so on until closure.
The easiest way to achieve (i) is to start it in the server's JVM, with LocateRegistry.createRegistry(). -
I am facing a problem when i am going to generate Stub and Skeleton using rmic command, but it gives the error that
Error: "class not found"
Please help me.its urgent.Run rmic -depend to ensure that any classes referenced by the server classes are also compiled. Also, run rmic from inside the directory of your project beside the root of your package.
ie:
Work directory: work/
Classes are in: work/com/yourdomain/rmistuff/CoolServer.java
Then cd into directory work/ and run:
rmic -depend -verbose com.yourdomain.rmistuff.CoolServer
Try this and see what happens. -
Regularly get "Server Not Found" then always works with a retry. Why
Regularly get Server Not Found" then always works with a "retry".
== This happened ==
Every time Firefox opened
== I started using FirefoxIssue
I have another kind of problem with Firefox
Description
Regularly get Server Not Found" then always works with a "retry".
This happened
Every time Firefox opened
I started using Firefox
Firefox version
3.6.3
Operating system
xp windoes
User Agent -
import java.rmi.*;
public class Rem extends java.rmi.server.UnicastRemoteObject implements RemInt {
public static void main(String args[]) {
System.setSecurityManager(new RMISecurityManager());
try {
Rem r = new Rem();
Naming.rebind("saurabh", r);
} catch(Exception e) { e.printStackTrace(); }
public Rem() throws java.rmi.RemoteException {
public String give() {
return("u got it from server");
import java.rmi.Remote;
public interface RemInt extends java.rmi.Remote {
public String give() throws java.rmi.RemoteException;
STACK TRACE
java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.
0.1:1099 connect,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.ja
va:270)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1044)
at java.net.Socket.connect(Socket.java:419)
at java.net.Socket.connect(Socket.java:375)
at java.net.Socket.<init>(Socket.java:290)
at java.net.Socket.<init>(Socket.java:118)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocke
tFactory.java:22)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocke
tFactory.java:122)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:159)
at Rem.main(Rem.java:10)I also get that exception, but only when I use SSL and the client is launched with Java Web Start.
I have tried to solve the problem by changing the permissions in the policy file but the problem still arises.
If I use default sockets (i.e.: no SSL) the client runs ok.
This is the policy file that the server uses:
grant {
// allows anyone to listen on un-privileged ports
permission java.net.SocketPermission "*:1024-65535", "listen,accept,connect";
permission java.util.PropertyPermission "*", "read";
permission java.io.FilePermission "*", "read,write";
permission java.lang.RuntimePermission "*"; -
News server not found!! news:comp.lang.java.programmer HELP
I trying to join newsgroup comp.lang.java.programmer
but keep getting news server not found.
Please help.No it's the name of the news group. You may add news1.sinica.edu.tw as the news server and select the group from those listed.
-
ORA-01858: a non-numeric character was found where a numeric was expected
hi ,
This was the code which shows the sales rep invoice amount and collected amount but while running report thru concurrent program its showing the following error:
ORA-01858: a non-numeric character was found where a numeric was expected
WHERE TO_CHAR ( TO_DATE ( PS.GL_DATE , 'DD/MON/YY' ) , 'MON-YYYY' ) BETWEEN TO_CHAR ( TO_DATE ( : ==> P_todate , 'YYYY/MM/DD' ) , 'MON-YYYY' ) AND TO_CHAR ( TO_DATE ( : P_todate , 'YYYY/MM/DD' ) , 'MON-YYYY' ) AND ps.customer_id = cust.custome
The Actual Code was this
SELECT SUBSTR(SALES.name,1,50) salesrep_name_inv,
--ps.CLASS,
SUM(ABS(ps.acctd_amount_due_remaining)) acctd_amt,
SUM(ABS(ps.amount_due_remaining)) amt_due_remaining_inv,
SUM(ABS(ps.amount_adjusted)) amount_adjusted_inv,
SUM(ABS(ps.amount_applied)) amount_applied_inv,
SUM(ABS(ps.amount_credited)) amount_credited_inv,
SALES.salesrep_id,
NULL "REMARKS"
-- ps.gl_date gl_date_inv,
FROM ra_cust_trx_types ctt,
ra_customers cust,
ar_payment_schedules ps,
ra_salesreps SALES,
ra_site_uses site,
ra_addresses addr,
ra_cust_trx_line_gl_dist gld,
gl_code_combinations c,
ra_customer_trx ct
WHERE TO_CHAR(TO_DATE(PS.GL_DATE,'DD/MON/YY'),'MON-YYYY')
BETWEEN TO_CHAR(TO_DATE(:P_todate,'YYYY/MM/DD'),'MON-YYYY') AND TO_CHAR(TO_DATE(:P_todate,'YYYY/MM/DD'),'MON-YYYY')
AND ps.customer_id = cust.customer_id
AND ps.customer_trx_id = ct.customer_trx_id
AND ps.cust_trx_type_id = ctt.cust_trx_type_id
AND NVL(ct.primary_salesrep_id, -3) = SALES.salesrep_id
AND ps.customer_site_use_id+0 = site.site_use_id(+)
AND site.address_id = addr.address_id(+)
AND TO_CHAR(TO_DATE(PS.GL_DATE_CLOSED,'DD/MON/YY'),'MON-YYYY')
BETWEEN TO_CHAR(TO_DATE(:P_todate,'YYYY/MM/DD'),'MON-YYYY') AND TO_CHAR(TO_DATE(:P_todate,'YYYY/MM/DD'),'MON-YYYY')
--AND ps.gl_date_closed > TO_DATE(:P_todate,'MON-YYYY')
AND ct.customer_trx_id = gld.customer_trx_id
AND gld.account_class = 'REC'
AND gld.latest_rec_flag = 'Y'
AND gld.code_combination_id = c.code_combination_id
AND sales.salesrep_id is not null and sales.name is not null
-- and ps.payment_schedule_id+0 < 9999
-- AND SALES.salesrep_id ='1001'
GROUP BY SALES.name,
--ps.CLASS,
SALES.salesrep_idSo to_date function accepts a string as input and returns a date. When a date is input instead, it is implicity converted to the required type of the function paremeter, which is a string, so that to_date can convert it back to a date again.
If you are lucky with the implicit conversion, you get the same date back, if you are not you might get a different date or an error.
From your query it appears that this conversion from a date, to a string, to a date, and then back to a string using to_char this time, is being done to remove the time or day part of the date. The actual range comparison is being done on strings rather than dates, which is dangerous as strings sort differently than dates.
In this example if I sort by date, Jan 01 comes between Dec 00 and Feb 01 as you would expect.
SQL> select * from t order by d;
D
12-01-2000
01-01-2001
02-01-2001When converted to strings, Feb 01 comes between Dec 00 and Jan 01, which is probably not the desired result
SQL> select * from t order by to_char(d,'DD-MON-YY');
D
12-01-2000
02-01-2001
01-01-2001If you want to remove time and day parts of dates you should use the trunc function
trunc(d) removes the time, trunc(d,'mm') will remove the days to start of month.
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/functions201.htm#i79761 -
Is there a general purpose output stream class like in java?
Hi, I sometimes create tools (abap OO classes) which output characters, that I would like to store in any media (frontend file, server file, string variable, ftp, clipboard, etc.) This is easily done in java via the output stream classes.
Do you know if this kind of class exists? I saw some classes like that, but they are specialized, for example XML, SOAP. I look for non-specialized classes like in java.
Same question for input streams! (normally, we should deduct the input stream classes from the output stream classes)
Or did you develop yourself such input stream or output stream classes that you'd accept to share?
Thx a lot
sandra
Thx a lot!
Edited by: Matt on Nov 20, 2008 9:50 AM - Fixed the postingYes it exists, but in release 7.10 only. [ABAP Keyword Documentation u2192 ABAP - By Theme u2192 Process External Data u2192 Streaming|http://help.sap.com/abapdocu/en/ABENSTREAMING.htm]
-
Handling .class files insite java process
Hello folks
I have a question regarding JVMPI and JVM: I have created a small proff-of-concept program that handles JVMPI_EVENT_CLASS_LOAD_HOOK and JVMPI_EVENT_CLASS_LOAD events. After my class (simple Test.java with System.out.println) has beed loaded (*CLASSLOAD_HOOK event) I remembered pointer and size of .class file in memory of java process. Then, after CLASSLOAD event I filled this memory with zeroes (memset) to see if Test.class will execute normally. And it did worked fine. My question is: does java process need this memory after JVMPI_EVENT_CLASS_LOAD event? Can I safely override .class file data?
Best Regards
BoloekAt some point, the JVM writes the contents of the
class file into memory that's accessible via coredump.
Otherwise it couldn't execute the bytecodes. If you
zero out the memory where the physical .class file was
loaded, it won't affect the memory where the actual
class is stored.you are wrong :-) I did some testing and I caught three events:
- LOADHOOK where I remembered pointer to .class file and size of it
- _LOAD where I zeroed this memory
- JVMSHUT_DOWN where I caused SIGSEGV to force coredump.
I tested two cases: with and without clearing memory and then searched two different core-files for content of *.class file. I only found it in core dumped in a situation when I did not use memset to clear memory. It is because (as I assume) java process after loading .class file makes some optimisations to efficiently execute bytecode so representation of my code exists in memory of proces but in unreadable, undocummented and undecompilable (at least for non jvm developers) format which is characteristic to particular JVM implementation
Someone who wants your code badly enough is going to
get it.sure but I try to make him this task as difficult as I can ;)
Best Regards
Boloek -
NIO Non-Blocking Server not Reading from Key
I have created a NIO non blocking server (below) and it will not pick up any input from the client.... My log doesnt even show that it enters the readKey() method, so it must be something before. Any help would be appreciated.
Scott
package jamb.server;
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.channels.ClosedChannelException;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.nio.channels.spi.SelectorProvider;
import java.nio.charset.Charset;
import java.nio.charset.CharsetDecoder;
import java.util.Iterator;
import java.util.Set;
import java.util.logging.Logger;
import java.util.prefs.Preferences;
import jamb.server.client.Client;
public class Server {
private Selector selector;
private ServerSocketChannel serverChannel;
private static Logger logger = Logger.getLogger("jamb.server");
private static Preferences prefs = Preferences.systemRoot().node("/jamb/server");
public void init() {
logger.entering("jamb.server.Server", "init");
//Get a selector...
try {
selector = SelectorProvider.provider().openSelector();
//Open the SocketChannel and make it non-blocking...
serverChannel = ServerSocketChannel.open();
serverChannel.configureBlocking(false);
//Bind the server to the port....
int port = prefs.getInt("Port", 4000);
logger.config("Server configured on port " + port + " (default: 4000)");
InetSocketAddress isa = new InetSocketAddress(
InetAddress.getLocalHost(), port);
serverChannel.socket().bind(isa);
} catch (IOException ioe) {
logger.severe ("IOException during server initialization!");
logger.exiting("jamb.server.Server", "init");
public void run() {
logger.entering("jamb.server.Server", "run");
int bufferSize = prefs.getInt("BufferSize", 8);
logger.config("Buffer size set to " + bufferSize + " (default: 8)");
SelectionKey acceptKey = null;
try {
acceptKey = serverChannel.register(
selector, SelectionKey.OP_ACCEPT);
} catch (ClosedChannelException cce) {
try {
while (acceptKey.selector().select() > 0) {
Set readyKeys = selector.selectedKeys();
Iterator i = readyKeys.iterator();
while (i.hasNext()) {
//logger.finest("Processing keys...");
//Get the key from the set and remove it
SelectionKey currentKey = (SelectionKey) i.next();
i.remove();
if (currentKey.isAcceptable()) {
logger.finest("Accepting key...");
acceptKey(currentKey);
} else if (currentKey.isReadable()) {
logger.finest("Reading key...");
readKey(currentKey, bufferSize);
} else if (currentKey.isWritable()) {
//logger.finest("Writing key...");
writeKey(currentKey);
} catch (IOException ioe) {
logger.warning("IOException during key handling!");
logger.exiting("jamb.server.Server", "run");
public void flushClient (Client client) {
try {
ByteBuffer buf = ByteBuffer.wrap( client.getOutputBuffer().toString().getBytes());
client.getChannel().write(buf);
} catch (IOException ioe) {
System.out.println ("Error writing to player");
client.setOutputBuffer(new StringBuffer());
private void acceptKey (SelectionKey acceptKey) {
logger.entering("jamb.server.Server", "acceptKey");
//Retrieve a SocketChannel for the new client, and register a new selector with
//read/write interests, and then register
try {
SocketChannel channel = ((ServerSocketChannel) acceptKey.channel()).accept();
channel.configureBlocking(false);
SelectionKey readKey = channel.register(
selector, SelectionKey.OP_READ|SelectionKey.OP_WRITE );
readKey.attach(new Client(this, channel));
} catch (IOException ioe) {
System.out.println ("Error accepting key");
logger.exiting("jamb.server.Server", "acceptKey");
private void readKey (SelectionKey readKey, int bufSize) {
logger.entering("jamb.server.Server", "readKey");
Client client = (Client) readKey.attachment();
try {
ByteBuffer byteBuffer = ByteBuffer.allocate(bufSize);
int nbytes = client.getChannel().read( byteBuffer );
byteBuffer.flip();
Charset charset = Charset.forName( "us-ascii" );
CharsetDecoder decoder = charset.newDecoder();
CharBuffer charBuffer = decoder.decode(byteBuffer);
String text = charBuffer.toString();
client.getInputBuffer().append(text);
if ( text.indexOf( "\n" ) >= 0 )
client.input();
} catch (IOException ioe) {
logger.warning("Unexpected quit...");
client.disconnect();
logger.exiting("jamb.server.Server", "readKey");
private void writeKey (SelectionKey writeKey) {
//logger.entering("jamb.server.Server", "writeKey");
Client client = (Client) writeKey.attachment();
if (!client.isConnected()) {
client.connect();
//logger.exiting("jamb.server.Server", "writeKey");From my own expierence with the NIO (Under Windows XP/ jdk1.4.1_01); you can't seem to set READ and WRITE at the same time.
The program flow I usually end up with for a echo server is:
When the selector.isAcceptable(): accept a connection; register for READs
In the read event; write the incoming characters to a buffer; register for a WRITE and add the buffer as an attachment.
In the write event; write the data to the socket If all the data was written; register for a READ; otherwise register for another WRITE so that you can write the rest.
Not sure if that the "proper" way; but it works well for me.
- Chris -
Weblogic 6 Post Installation Problem - weblogic.Server not found
I reinstalled my recent downloads of the evaluation
copy of Weblogic 6.0 server three times on my NT 4.0 Service
pack 6 notebook computer. Installation works. However, I can't
start the server using the "startWebLogic.cmd". I get an error
that says that the class "weblogic.Server" is not
found -
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/Server
javap command cannot locate the class either.
My suspicion: weblogic .jar is corrupt.
Question: How do I get a new jar file? I have already
downloded the install files twice with no luck.
I have enclosed the command prompt messages.
[d:\bea\wlserver6.0\config\myadmindomain]setEnv
set WL_HOME=d:\bea\wlserver6.0
set JAVA_HOME=d:\bea\jdk130
set CLASSPATH=d:\bea\jdk130\lib\tools.jar;d:\bea\wlserver6.0\lib\weblogic_sp.jar
;d:\bea\wlserver6.0\lib\weblogic.jar;
set PATH=d:\bea\wlserver6.0\bin;d:\bea\jdk130\bin;c:\junk;C:\WINNT\SYSTEM32;C:\W
INNT;C:\MWW32\BIN;C:\MWW32\MODEM;D:\Program Files\Mts;.;D:\Microsoft Visual Stud
io\Common\MSDev98\Bin;D:\Microsoft Visual Studio\Common\IDE\IDE98;D:\Microsoft V
isual Studio\VB98;D:\Microsoft Visual Studio\VIntDev98\bin;D:\Microsoft Visual S
tudio\VC98\Bin;D:\Microsoft Visual Studio\Common\Tools;
Your environment has been set.
[d:\bea\wlserver6.0\config\myadmindomain]startWebLogic.cmd
set PATH=.\bin;d:\bea\wlserver6.0\bin;d:\bea\jdk130\bin;c:\junk;C:\WINNT\SYSTEM3
2;C:\WINNT;C:\MWW32\BIN;C:\MWW32\MODEM;D:\Program Files\Mts;.;D:\Microsoft Visua
l Studio\Common\MSDev98\Bin;D:\Microsoft Visual Studio\Common\IDE\IDE98;D:\Micro
soft Visual Studio\VB98;D:\Microsoft Visual Studio\VIntDev98\bin;D:\Microsoft Vi
sual Studio\VC98\Bin;D:\Microsoft Visual Studio\Common\Tools;
set CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar
"d:\bea\jdk130\bin\java" -hotspot -ms64m -mx64m -classpath .;.\lib\weblogic_sp.j
ar;.\lib\weblogic.jar -Dweblogic.Domain=myAdminDomain -Dweblogic.Name=myserver "
-Dbea.home=d:\bea" "-Djava.security.policy==d:\bea\wlserver6.0/lib/weblogic.poli
cy" -Dweblogic.management.password= weblogic.Server
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/Server
goto finish
cd config\myAdminDomain
ENDLOCAL
[d:\bea\wlserver6.0\config\myadmindomain]javap weblogic.Server
Class 'weblogic.Server' not foundIt looks like your startWebLogic.cmd script has problems with the class
path. You should doublecheck that.
Thanks,
Michael
Michael Girdley
BEA Systems
Learning WebLogic? http://learnweblogic.com
"Bindu Rao" <[email protected]> wrote in message
news:[email protected]...
>
I reinstalled my recent downloads of the evaluation
copy of Weblogic 6.0 server three times on my NT 4.0 Service
pack 6 notebook computer. Installation works. However, I can't
start the server using the "startWebLogic.cmd". I get an error
that says that the class "weblogic.Server" is not
found -
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/Server
javap command cannot locate the class either.
My suspicion: weblogic .jar is corrupt.
Question: How do I get a new jar file? I have already
downloded the install files twice with no luck.
I have enclosed the command prompt messages.
[d:\bea\wlserver6.0\config\myadmindomain]setEnv
set WL_HOME=d:\bea\wlserver6.0
set JAVA_HOME=d:\bea\jdk130
setCLASSPATH=d:\bea\jdk130\lib\tools.jar;d:\bea\wlserver6.0\lib\weblogic_sp.jar
;d:\bea\wlserver6.0\lib\weblogic.jar;
setPATH=d:\bea\wlserver6.0\bin;d:\bea\jdk130\bin;c:\junk;C:\WINNT\SYSTEM32;C:\W
INNT;C:\MWW32\BIN;C:\MWW32\MODEM;D:\Program Files\Mts;.;D:\MicrosoftVisual Stud
io\Common\MSDev98\Bin;D:\Microsoft VisualStudio\Common\IDE\IDE98;D:\Microsoft V
isual Studio\VB98;D:\Microsoft Visual Studio\VIntDev98\bin;D:\MicrosoftVisual S
tudio\VC98\Bin;D:\Microsoft Visual Studio\Common\Tools;
Your environment has been set.
[d:\bea\wlserver6.0\config\myadmindomain]startWebLogic.cmd
setPATH=.\bin;d:\bea\wlserver6.0\bin;d:\bea\jdk130\bin;c:\junk;C:\WINNT\SYSTEM3
2;C:\WINNT;C:\MWW32\BIN;C:\MWW32\MODEM;D:\Program Files\Mts;.;D:\MicrosoftVisua
l Studio\Common\MSDev98\Bin;D:\Microsoft VisualStudio\Common\IDE\IDE98;D:\Micro
soft Visual Studio\VB98;D:\Microsoft VisualStudio\VIntDev98\bin;D:\Microsoft Vi
sual Studio\VC98\Bin;D:\Microsoft Visual Studio\Common\Tools;
set CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar
"d:\bea\jdk130\bin\java" -hotspot -ms64m -mx64m -classpath.;.\lib\weblogic_sp.j
>
ar;.\lib\weblogic.jar -Dweblogic.Domain=myAdminDomain -Dweblogic.Name=myserv
er "
-Dbea.home=d:\bea""-Djava.security.policy==d:\bea\wlserver6.0/lib/weblogic.poli
cy" -Dweblogic.management.password= weblogic.Server
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/Server
goto finish
cd config\myAdminDomain
ENDLOCAL
[d:\bea\wlserver6.0\config\myadmindomain]javap weblogic.Server
Class 'weblogic.Server' not found -
ZendAMF Server Class Throwing Errors
(mx.messaging.messages::ErrorMessage)#0
body = (Object)#1
clientId = (null)
correlationId = "14E5A70F-0829-9D09-D237-61B6A51ED666"
destination = ""
extendedData = (null)
faultCode = "Client.Error.MessageSend"
faultDetail = "Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: 'http://[servername]/development/'"
faultString = "Send failed"
headers = (Object)#2
messageId = "55E31D60-FFC1-82EB-A00A-61B6A7F95FAF"
rootCause = (mx.messaging.events::ChannelFaultEvent)#3
bubbles = false
cancelable = false
channel = (mx.messaging.channels::AMFChannel)#4
authenticated = false
channelSets = (Array)#5
connected = false
connectTimeout = -1
enableSmallMessages = true
endpoint = "http://[servername]/development/"
failoverURIs = (Array)#6
id = "zend-endpoint"
mpiEnabled = false
netConnection = (flash.net::NetConnection)#7
client = (mx.messaging.channels::AMFChannel)#4
connected = false
maxPeerConnections = 8
objectEncoding = 3
proxyType = "none"
uri = "http://[servername]/development/"
piggybackingEnabled = false
polling = false
pollingEnabled = true
pollingInterval = 3000
protocol = "http"
reconnecting = false
recordMessageSizes = false
recordMessageTimes = false
requestTimeout = -1
uri = "http://[servername]/development/"
url = "http://[servername]/development/"
useSmallMessages = false
channelId = "zend-endpoint"
connected = false
currentTarget = (mx.messaging.channels::AMFChannel)#4
eventPhase = 2
faultCode = "Channel.Connect.Failed"
faultDetail = "NetConnection.Call.BadVersion: : url: 'http://[servername]/development/'"
faultString = "error"
reconnecting = false
rejected = false
rootCause = (Object)#8
code = "NetConnection.Call.BadVersion"
description = ""
details = ""
level = "error"
target = (mx.messaging.channels::AMFChannel)#4
type = "channelFault"
timestamp = 0
timeToLive = 0
I'm getting this error message when trying to use a RemoteObject that ties to ZendAMF server class.
This is the RemoteObject:
[Bindable]
private var companyResults:ArrayCollection;
private function findAll_companyServiceHandler(event:ResultEvent):void
this.companyResults = new ArrayCollection(event.result as Array);
Alert.show(this.companyResults.length.toString());
for (var i:uint = 0; i < this.companyResults.length; i++)
Alert.show(CompanyVO(this.companyResults[i]).name);
protected function button1_clickHandler(event:MouseEvent):void
this.leadlawService.CompanyAmfService.findAll();
this.leadlawService.findAll();
protected function leadlawService_faultHandler(event:FaultEvent):void
Alert.show(event.message.toString());
]]>
</fx:Script>
<fx:Declarations>
<s:RemoteObject
id="leadlawService"
destination="zend"
showBusyCursor="true"
fault="leadlawService_faultHandler(event)"
>
<s:method name="findAll" result="findAll_companyServiceHandler(event)" />
</s:RemoteObject>
</fx:Declarations>
And here's the corresponding controller code using Zend Framework:
<?php
* ServicesController
* @author
* @version
require_once 'Zend/Controller/Action.php';
class ServicesController extends Zend_Controller_Action
public function init()
$this->_helper->viewRenderer->setNoRender();
public function amfAction()
$server = new Zend_Amf_Server();
$server->addDirectory(APPLICATION_PATH . '/services/');
echo $server->handle();
And here the class that is in the services directory:
<?php
require_once APPLICATION_PATH . '/models/CompanyVO.php';
class CompanyAmfService
* @return array
public function findAll()
$results = array();
$companyVO = new CompanyVO();
$companies = $companyVO->fetchAll($companyVO->select());
foreach ($companies as $company)
array_push($results, $company);
return $results;
And here the CompanyVO model class:
<?php
class CompanyVO extends Zend_Db_Table
protected $_name = "company";
public $_explicitType = "CompanyVO";
public $id;
public $name;
Everything appears to look in order, and I tried to create my code according to the example in ZendAMF documentation. Can anyone see what is amiss here?
Thanks for all your help!
~Mike
Update 1:
I forgot to add my services-config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<services-config>
<services>
<service id="zend-service" class="flex.messaging.services.RemotingService" messageTypes="flex.messaging.messages.RemotingMessage">
<destination id="zend">
<channels>
<channel ref="zend-endpoint" />
</channels>
<properties>
<source>*</source>
</properties>
</destination>
</service>
</services>
<channels>
<channel-definition id="zend-endpoint" class="mx.messaging.channels.AMFChannel">
<endpoint uri="http://[servername]/development/" class="flex.messaging.endpoints.AMFEndpoint" />
</channel-definition>
</channels>
</services-config>End point in the Services-config.xml will be like
https://{server.name}:{server.port}/{context.root}/messagebroker/amf
not url: 'http://[servername]/development/'"
also find out if the libraries are in the right path for the ZendAMF(i'm from java background so, we have libraries) -
JDBCaccess message ORA-01858: a non-numeric character was found where a num
When trying to read a cloumn from a table using JDBC I get the above message
Below is a copy of the code;
Connection conn=null;
DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
System.out.println ("Driver registered"); // Print Driver Connected
try
{ // <-- 1.1
conn = DriverManager.getConnection("jdbc:oracle:thin:@***.******.**:1521:orcl", "********", "*******");
// @machineName:port:SID, userid, password
} // <-- 1.1
catch (SQLException exc_1)
{ // <-- 1.1
//System.out.println("SQL Connect failed with: '" + exc_1.getMessage() + "'");
exc_1.printStackTrace();
System.exit(1);
} //<-- 1.1
System.out.println ("Connected - User/Password"); // Print Connected User/Password
Statement stmt = conn.createStatement();
System.out.println ("Instansiate SQL Statement "); // Print Instansiate
String sql = "select BASE_CURRENCY_CODE from WH_ENT_MODEL.V_FX_DAILY_RATES ";
try
oracle.jdbc.driver.OracleLog.startLogging();
PreparedStatement ps = conn.prepareStatement(sql);
ResultSet rs = ps.executeQuery();
oracle.jdbc.driver.OracleLog.stopLogging();
System.out.println ("Create SQL Statement resultset "); // Print SQL Statement
while (rs.next())
System.out.println (rs.getString("BASE_CURRENCY_CODE")); // Print Base_Currency_Code
stmt.close();
catch(Exception e)
e.printStackTrace();
System.exit(1);
The error I get is;
java.sql.SQLException: ORA-01858: a non-numeric character was found where a numeric was expected
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:153)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:330)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:287)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:742)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:215)
at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:930)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1131)
at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:983)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1257)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3467)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3512)
at com.exchange.interfaces.dbAccess.main(dbAccess.java:69)
This is a test class to prove we can access the database from within Java program.
Any help much appreciated.Hi Deepak,
I would first look at your session state, this should show what was passed to the procedure.
I would suggest that if you have a select list showing a null value that that would be the issue as it passes %null% through.
Regards
Michael -
Hello,
I currently have a problem with the EJBException which does not give the
client the getCausedBy() Exception. I d' like to try the 5.1 sp8 to see if
the bug is fix.
Unfortunately, after having installed the sp8, my WLS 5.1 does not start
anymore : I get an invocationTargetException.
Does anyone have a clue ?
Best Regards.
dom
The WebLogic Server did not start up properly.
Exception raised: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodError:
weblogic.boot.ServerClassLoader: method
getClassLoadNotify()Lweblogic/boot/ClassLoadNotify; not found
at
weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
a:141)
at
weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
a:113)
at
weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
a:105)
at
weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.<init>(Recurs
iveReloadOnModifyClassLoader.java:53)
at
weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$SingleSlave.<
init>(RecursiveReloadOnModifyClassLoader.java:149)
at
weblogic.servlet.internal.ServletContextImpl.setClassLoader(ServletContextIm
pl.java:1571)
at
weblogic.servlet.internal.ServletContextImpl.<init>(ServletContextImpl.java:
539)
at
weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:523)
at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
at weblogic.NTServiceHelper.run(NTServiceHelper.java:19)
at java.lang.Thread.run(Thread.java:479)
java.lang.NoSuchMethodError: weblogic.boot.ServerClassLoader: method
getClassLoadNotify()Lweblogic/boot/ClassLoadNotify; not found
at
weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
a:141)
at
weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
a:113)
at
weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
a:105)
at
weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.<init>(Recurs
iveReloadOnModifyClassLoader.java:53)
at
weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$SingleSlave.<
init>(RecursiveReloadOnModifyClassLoader.java:149)
at
weblogic.servlet.internal.ServletContextImpl.setClassLoader(ServletContextIm
pl.java:1571)
at
weblogic.servlet.internal.ServletContextImpl.<init>(ServletContextImpl.java:
539)
at
weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:523)
at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
at weblogic.NTServiceHelper.run(NTServiceHelper.java:19)
at java.lang.Thread.run(Thread.java:479)
tel 02 38 64 37 95
mailto:[email protected]Well... I've made a big classpath mistake.
It works indeed.
dom
"Dominique Jean-Prost" <[email protected]> a écrit dans le
message news: [email protected]...
Hello,
I currently have a problem with the EJBException which does not give the
client the getCausedBy() Exception. I d' like to try the 5.1 sp8 to see if
the bug is fix.
Unfortunately, after having installed the sp8, my WLS 5.1 does not start
anymore : I get an invocationTargetException.
Does anyone have a clue ?
Best Regards.
dom
The WebLogic Server did not start up properly.
Exception raised: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodError:
weblogic.boot.ServerClassLoader: method
getClassLoadNotify()Lweblogic/boot/ClassLoadNotify; not found
at
weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
a:141)
at
weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
a:113)
at
weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
a:105)
at
weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.<init>(Recurs
iveReloadOnModifyClassLoader.java:53)
at
weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$SingleSlave.<
init>(RecursiveReloadOnModifyClassLoader.java:149)
at
weblogic.servlet.internal.ServletContextImpl.setClassLoader(ServletContextIm
pl.java:1571)
at
weblogic.servlet.internal.ServletContextImpl.<init>(ServletContextImpl.java:
539)
at
weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:523)
at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
at weblogic.NTServiceHelper.run(NTServiceHelper.java:19)
at java.lang.Thread.run(Thread.java:479)
java.lang.NoSuchMethodError: weblogic.boot.ServerClassLoader: method
getClassLoadNotify()Lweblogic/boot/ClassLoadNotify; not found
at
weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
a:141)
at
weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
a:113)
at
weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
a:105)
at
weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.<init>(Recurs
iveReloadOnModifyClassLoader.java:53)
at
weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$SingleSlave.<
init>(RecursiveReloadOnModifyClassLoader.java:149)
at
weblogic.servlet.internal.ServletContextImpl.setClassLoader(ServletContextIm
pl.java:1571)
at
weblogic.servlet.internal.ServletContextImpl.<init>(ServletContextImpl.java:
539)
at
weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:523)
at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
at weblogic.NTServiceHelper.run(NTServiceHelper.java:19)
at java.lang.Thread.run(Thread.java:479)
tel 02 38 64 37 95
mailto:[email protected] -
Server not found in Kerberos database (7)
Hi!
Running the examples from
http://java.sun.com/javase/6/docs/technotes/guides/security/jgss/lab
works fine for me as long as I use the Kerberos test realm I have set up on a unix machine. But when I run the same classes against our Active Directory, the client spills a stacktrace, indicating that AD can not find the server in its database. But it actually is in that database, as the sample server can perfectly authenticate as exactly that principal!
Enabling all security related debug info i could find, this is the client dump:
$ java -Djava.security.auth.login.config=jaas-krb5.conf
-Djava.security.krb5.kdc=##KDC##
-Djava.security.krb5.realm=##REALM##
-Dsun.security.jgss.debug=true
-Dsun.security.krb5.debug=true
-Djava.security.debug="logincontext,policy,scl,gssloginconfig"
GssClient host ##SERVER##
scl: getPermissions ProtectionDomain (file:/xxxxx/ <no signer certificates>)
sun.misc.Launcher$AppClassLoader@11b86e7
<no principals>
java.security.Permissions@1a46e30 (
(java.io.FilePermission \xxxxx\- read)
(java.lang.RuntimePermission exitVM)
scl:
Debug is true storeKey false useTicketCache true useKeyTab true doNotPrompt false ticketCache is nu
ll isInitiator true KeyTab is null refreshKrb5Config is false principal is xxxxx tryFirstPass is tru
e useFirstPass is false storePass is false clearPass is false
Acquire TGT from Cache
KinitOptions cache name is C:\xxxxxAcquire default native Credentials
Obtained TGT from LSA: Credentials:
client=##USER##@##REALM##
server=krbtgt/##REALM##@##REALM##
authTime=20070705103930Z
startTime=20070705103930Z
endTime=20070705203930Z
renewTill=20070712103930Z
flags: FORWARDABLE;RENEWABLE;INITIAL;PRE-AUTHENT
EType (int): 23
Principal is ##USER##@##REALM##
[Krb5LoginModule] authentication succeeded
[LoginContext]: login success
Commit Succeeded
[LoginContext]: commit success
Authenticated principal: [##USER##@##REALM##]
Connected to address ##SERVER##/xxxxx
xxxxx
create server name with host@##SERVER##
Search Subject for Kerberos V5 INIT cred (<<DEF>>, sun.security.jgss.krb5.Krb5InitCredential)
Found ticket for ##USER##@##REALM## to go to krbtgt/##REALM##@##REALM## expiring on Thu Jul
05 20:39:30 GMT 2007
Entered Krb5Context.initSecContext with state=STATE_NEW
Found ticket for ##USER##@##REALM## to go to krbtgt/##REALM##@##REALM## expiring on Thu Jul
05 20:39:30 GMT 2007
Service ticket not found in the subject
Credentials acquireServiceCreds: same realmUsing builtin default etypes for default_tgs_enctypes
default etypes for default_tgs_enctypes: 3 1 23 16 17.
CksumType: sun.security.krb5.internal.crypto.RsaMd5CksumType
EType: sun.security.krb5.internal.crypto.ArcFourHmacEType
KrbKdcReq send: kdc=##KDC## UDP:88, timeout=30000, number of retries =3, #bytes=1328
KDCCommunication: kdc=##KDC## UDP:88, timeout=30000,Attempt =1, #bytes=1328
KrbKdcReq send: #bytes read=101
KrbKdcReq send: #bytes read=101
KDCRep: init() encoding tag is 126 req type is 13
KRBError: sTime is Thu Jul 05 14:43:05 GMT 2007 1183646585000
suSec is 487997
error code is 7
error Message is Server not found in Kerberos database
realm is ##REALM##
sname is host/##SERVER##
msgType is 30
KrbException: Server not found in Kerberos database (7)
at sun.security.krb5.KrbTgsRep.<init>(Unknown Source)
at sun.security.krb5.KrbTgsReq.getReply(Unknown Source)
at sun.security.krb5.internal.CredentialsUtil.serviceCreds(Unknown Source)
at sun.security.krb5.internal.CredentialsUtil.acquireServiceCreds(Unknown Source)
at sun.security.krb5.Credentials.acquireServiceCreds(Unknown Source)
at sun.security.jgss.krb5.Krb5Context.initSecContext(Unknown Source)
at sun.security.jgss.GSSContextImpl.initSecContext(Unknown Source)
at sun.security.jgss.GSSContextImpl.initSecContext(Unknown Source)
at GssClient$GssClientAction.run(GssClient.java:171)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Unknown Source)
at Jaas.loginAndAction(Jaas.java:94)
at GssClient.main(GssClient.java:97)
Caused by: KrbException: Identifier doesn't match expected value (906)
at sun.security.krb5.internal.KDCRep.init(Unknown Source)
at sun.security.krb5.internal.TGSRep.init(Unknown Source)
at sun.security.krb5.internal.TGSRep.<init>(Unknown Source)
... 13 more
Exception in thread "main" java.security.PrivilegedActionException: GSSException: No valid credentia
ls provided (Mechanism level: Server not found in Kerberos database (7))
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Unknown Source)
at Jaas.loginAndAction(Jaas.java:94)
at GssClient.main(GssClient.java:97)
Caused by: GSSException: No valid credentials provided (Mechanism level: Server not found in Kerbero
s database (7))
at sun.security.jgss.krb5.Krb5Context.initSecContext(Unknown Source)
at sun.security.jgss.GSSContextImpl.initSecContext(Unknown Source)
at sun.security.jgss.GSSContextImpl.initSecContext(Unknown Source)
at GssClient$GssClientAction.run(GssClient.java:171)
... 4 more
Caused by: KrbException: Server not found in Kerberos database (7)
at sun.security.krb5.KrbTgsRep.<init>(Unknown Source)
at sun.security.krb5.KrbTgsReq.getReply(Unknown Source)
at sun.security.krb5.internal.CredentialsUtil.serviceCreds(Unknown Source)
at sun.security.krb5.internal.CredentialsUtil.acquireServiceCreds(Unknown Source)
at sun.security.krb5.Credentials.acquireServiceCreds(Unknown Source)
... 8 more
Caused by: KrbException: Identifier doesn't match expected value (906)
at sun.security.krb5.internal.KDCRep.init(Unknown Source)
at sun.security.krb5.internal.TGSRep.init(Unknown Source)
at sun.security.krb5.internal.TGSRep.<init>(Unknown Source)
... 13 moreWhy's AD claiming in the KRBError that it can't find a sname/realm which exactly matches the principal it accepted for the server? This totally confuses me! Can please anyone bring some light?
RegardsIt works now!!!
The exact procedure is:
- Create a new user in AD with an arbitrary name <username>. Use the same name in "User Logon Name", "User Logon Name (pre Win2K)" and "First Name" (odd, isn't it).
- Set the password, deactivate "User has to change the password at first logon", and activate "Password never expires"
- Create a mapping for the service name by entering into the command line: ktpass -princ "<protocol>/<fqdn>@<realm>" -mapuser "<username>@<realm>" -pass "*" -out dummy.keytab
- Check that the mapping is set and unique; use adsiedit.msc (Windows Support Tools).
- Now you can use the Java tool ktab to create your own keytab as usual and go.
But it is a science in its own right to correctly configure an Active Directory , especially for use with Kerberos. In particular error messages are hardly useful (as it is generally the case in the Kerberos world). It may help to read:
http://www.microsoft.com/downloads/details.aspx?FamilyID=99b0f94f-e28a-4726-bffe-2f64ae2f59a2&DisplayLang=en
and
http://www.microsoft.com/downloads/details.aspx?FamilyID=7dfeb015-6043-47db-8238-dc7af89c93f1&displaylang=en
Have fun!
Maybe you are looking for
-
Error while opening office document
Hello Gurus! I try to use word intergation in WebIC (CRM 5.0). In "Create lead" trunsaction (CL_CRM_IC_ABOXSAMPLE_CR_LEAD class) I have Attachment tab. When I click "Create document with template" buton I get "Error while opening office document" err
-
FB60 - Credit Note: Baseline Date Determination
Hi Experts At present I have an AP function who use FB60 to post manual Invoices and Credits to Vendors. The issue is that when a Credit is selected (Doc Type: KG) the baseline date and the subsequent due date are not being determined and have to be
-
Updating rows in a master-detail udo form
Dear Sirs, I'm using a form connected to a UDO and I want to use standard services provided by SAP. In a column I have a CFL button, and if I set a new rows data with the following code in the et_CHOOSE_FROM_LIST event: oDetailDS.SetValue("U_ItemCode
-
When Oracle 11g new features 1z0-050 exam changed last time ??
Hi everyone, Can anybody tell me that when the last time Oracle 11g new features 1z0-050 exam changed?? Does it changed recently, or its going to be change in near future?? Thanks and Regards, Khurram
-
I have had issues importing photos into ACR 6.7 since I got my camera almost 2 weeks ago. I finally figured out that it seemed to need a well charged battery, not a close to dead one. It worked great after that for about a week. Then suddenly stopped