Can weblogic run serializer classes created by wscompile tool
Hi,
I am trying to deploy a webservice on weblogic.
This webservice implements a given wsdl.
I have created type mapping classes from 'wscompile' tool and not by 'autotype'
provided by weblogic as i want my code to follow JAX-RPC standards and it should
not depend upon weblogic classes.
when i package the webservice and deploy it on weblogic, i get the following error:
weblogic.webservice.server.ConfigException: failed to add type mapping to registry:
- with nested exception:
[java.lang.InstantiationException: com.egain.adapter.StartMonitoringResponse_LiteralSerializer]
at weblogic.webservice.server.WebServiceFactory.initTypeMaps(WebServiceFactory.java:228)
How can we deploy a webservice created with JAX-RPC standard (with either Apache
Axis or JWSDP) on weblogic?
I am using WLS 7.0 SP1.
Thanx for any help in advance.
Davinder
JAX-RPC serializer classes are not portable. So you can not use the
serializer classes
generated by Sun's RI in weblogic JAX-RPC runtime.
provided by weblogic as i want my code to follow JAX-RPC standards and itshould
not depend upon weblogic classes.You dont have to refer any weblogic specific classes to use WLS JAX-RPC
impl. You
only need to use the weblogic provied tools. The application code you write
is portable.
Check out the edoc for more details:
http://edocs.bea.com
-regards,
manoj
"davinder" <[email protected]> wrote in message
news:3e66e03a$[email protected]..
>
Hi,
I am trying to deploy a webservice on weblogic.
This webservice implements a given wsdl.
I have created type mapping classes from 'wscompile' tool and not by'autotype'
provided by weblogic as i want my code to follow JAX-RPC standards and itshould
not depend upon weblogic classes.
when i package the webservice and deploy it on weblogic, i get thefollowing error:
>
weblogic.webservice.server.ConfigException: failed to add type mapping toregistry:
- with nested exception:
[java.lang.InstantiationException:com.egain.adapter.StartMonitoringResponse_LiteralSerializer]
atweblogic.webservice.server.WebServiceFactory.initTypeMaps(WebServiceFactory.
java:228)
>
How can we deploy a webservice created with JAX-RPC standard (with eitherApache
Axis or JWSDP) on weblogic?
I am using WLS 7.0 SP1.
Thanx for any help in advance.
Davinder
Similar Messages
-
Can not run file.class with Internet Explorer ( Please help me)
Please help me ! ! (Beginer Programming)
First, you can't run a .class file. Secondly, you have to post your code, that is the only way we could help
-
Client can't access Serializable classes on Server
Hi there, i have created a very simple client server model and had it running fine. I then added a new serializable class to the server and return it in a new method. Now when i try to run that method on the client side it complains it cannot find my new serializable class ("no class def found exception: rmi/server/ServerObject.class"). This is how it's setup at the moment:
Server
-ServerFront extends Remote
-Server implements ServerFront
-ServerObject implements Serializable
The server binds itself to the registry as such:
ServerFront engine = new Server();
String name = "Server";
ServerFront stub = (ServerFront)UnicastRemoteObject.exportObject(engine, 0);
Registry registry = LocateRegistry.getRegistry();
registry.rebind(name, stub);The ServerObject class looks like this:
public class ServerObject implements Serializable
private static final long serialVersionUID = 10L;
//methods
}The ServerFront interface has a method as such:
ServerObject getServerObject () throws RemoteException; Client
-Client
The client gets a reference to the server as follows:
String name = "Server";
Registry registry = LocateRegistry.getRegistry("127.0.0.1");
server = (ServerFront)registry.lookup(name);Then tries to run the getServerObject() method:
ServerObject = server.getServerObject();I run the client and server from jar files using the following commands:
start java -Djava.rmi.server.codebase="http://www.xenwars.com/Server.jar" -Djava.security.policy=security.policy -jar Server.jar
java -Djava.security.policy=security.policy -jar Client.jar"security.policy" allows all access, and the codebase URL points to my webserver where i uploaded an identical copy of the Server jar file that i'm trying to run.
So... i've read all the Sun documentation and such and i'm massively confused why my client isn't simply downloading the serializable class as it's supposed to. Any help is massively appreciated, thanks :D
Edited by: Aldarn on Feb 8, 2009 10:03 AM
Edited by: Aldarn on Feb 8, 2009 10:05 AMBy a mirrored interface i mean i just created an interface based off my existing serializable classes, i.e. copied the method constructors into an interface class and made the serializable class implement that interface.
I think that must have been the problem then, that i wasn't giving the client an interface to the serializable classes on the server that it was attempting to download. I thought by using RMI on a serializable class it would just download that class when it needs it and so wouldn't need an interface pre-defining it.
Thanks for the help! I'm now working on a system with 3 servers and one client, where two servers have various methods implemented and the third one acts as a bridge between the other two servers and the client - so the client only has to deal with one server. It's working fine but it's pretty annoying having to mirror all the methods from both servers' interface classes in the server that acts as a bridge's interface class - is there any way that the bridge server can inherit the other two servers interfaces into its own so i don't need to make loads of duplicate "shell" methods like this:
// second server
public ArrayList<Thing> getAllThings ()
return things;
// bridge server
private SecondServerFront secondServer; // reference loaded in constructor
public ArrayList<Thing> getAllThings () throws RemoteException
return secondServer.getAllThings();
} -
Java.exe problems. - can't run without class being placed in bin
this is weird, but it's happened to me before. Something on my pc isn't letting me run my class files unless I actually place them in the bin directory under jdk1.3.1_02.
what's the deal?
I've checked my env. variables, but I don't know if I have them wrong or what.
Can someone please help?!
c:\ java Client
Exception in thread "main" java.lang.NoClassDefFoundError: Client
SamActually I would bet money all he needs is the classpath statment such as I directed a few posts up..
He needs the period at the end to tell the java interpeter to search the present directory...
Most of you are mistakeing his questions. If the compiler could not find the class files it wouldn't compile. Since he said he get's the error when:
c:\ java Client
Exception in thread "main" java.lang.NoClassDefFoundError: Client
Tells me that he wrote a program called Client and the interpeter can't find his compiled class file..
Because the class path variable isn't set to present directory (the piriod) I had this same problem the first time I installed java.. It drove me nuts. I spent 2 months programming out of the bin directory before I found the classpath statment.. hehe (hey we were all beginners once)
Gehan
Ps. If you want convermation on what I said go read the link I posted on classpath statments -
How can i run Java class form other java application.
Hi ,
I have problem to run java class from my java application,
I am using the class ClassLoader in order to launched the Java class , it�s work fine whenever, the class exist in the same folder , however , when i am trying to run class that is not in the current folder ,
i got error (see below),
Do you have any idea what is wrong?
java.lang.ClassNotFoundException
at SimpleClassLoader.loadClass(SimpleClassLoader.java:110)
at SimpleClassLoader.loadClass(SimpleClassLoader.java:53)
at Run.main(Run.java:31)What does "run an class" mean? You don't run classes. They're not executables.
I bet your problem is the classpath. You are aware that the classloader looks only there? Unless it's an UrlClassLoader. -
How can i run my .class file with out installing java ?
Hai friends..am new to java , plz help me any one.
I wrote a small program in java lang. i want to run this program in my friend's system , which is doesnt have java language .. How can i run this program in my friends system with out installing java language?
one of my friends told that ,it needs to copy the jvm in to ur directory where the java code is present . How can i copy the jvm from where to where ..?plz help me any oneYour friend will have to install the Java runtime if they want to run Java
programs.
Don't go copying files yourself - and especially don't go copying them to the
location of the Java code. After all, if your friend wants to run 42 different
Java programs they shouldn't have to have 42 copies of the runtime.
Just download and run the installer from this site:
http://java.sun.com/javase/downloads/index.jsp
Be careful to download the "Java Runtime Environment" not the JDK. -
Can't Run Portal Server Created By Wizard
I get the errors below... I've tried messing with the boot.properties file but no success... I had this happen before but I cannot remember what I did to fix it... This is also the same error I get when I open the sample portal servers... please help..
<Jul 14, 2008 8:58:07 AM CDT> <Notice> <Security> <BEA-090082> <Security initial
izing using security realm myrealm.>
<Jul 14, 2008 8:58:07 AM CDT> <Error> <Security> <BEA-000000> <[Security:090759]
A SQLException occurred while retrieving password information
java.sql.SQLException: Invalid table name "USERS" specified at position 23.
at com.pointbase.net.netJDBCPrimitives.handleResponse(DashoA13*..:335)
at com.pointbase.net.netJDBCPrimitives.handleJDBCObjectResponse(DashoA13
*..:383)
at com.pointbase.net.netJDBCConnection.prepareStatement(DashoA13*..:545)
at weblogic.security.providers.authentication.DBMSSQLReadOnlyDatabaseCon
nectionImpl.getPreparedStatement(DBMSSQLReadOnlyDatabaseConnectionImpl.java:37)
at weblogic.security.providers.authentication.shared.DBMSSQLRuntimeQuery
Impl.passwordStringQuery(DBMSSQLRuntimeQueryImpl.java:82)
Truncated. see log file for complete stacktrace
>
<Jul 14, 2008 8:58:07 AM CDT> <Critical> <Security> <BEA-090402> <Authentication
denied: Boot identity not valid; The user name and/or password from the boot id
entity file (boot.properties) is not valid. The boot identity may have been chan
ged since the boot identity file was created. Please edit and update the boot id
entity file with the proper values of username and password. The first time the
updated boot identity file is used to start the server, these new values are enc
rypted.>
<Jul 14, 2008 8:58:07 AM CDT> <Critical> <WebLogicServer> <BEA-000386> <Server s
ubsystem failed. Reason: weblogic.security.SecurityInitializationException: Auth
entication denied: Boot identity not valid; The user name and/or password from t
he boot identity file (boot.properties) is not valid. The boot identity may have
been changed since the boot identity file was created. Please edit and update t
he boot identity file with the proper values of username and password. The first
time the updated boot identity file is used to start the server, these new valu
es are encrypted.
weblogic.security.SecurityInitializationException: Authentication denied: Boot i
dentity not valid; The user name and/or password from the boot identity file (bo
ot.properties) is not valid. The boot identity may have been changed since the b
oot identity file was created. Please edit and update the boot identity file wit
h the proper values of username and password. The first time the updated boot id
entity file is used to start the server, these new values are encrypted.
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.do
BootAuthorization(Unknown Source)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.in
itialize(Unknown Source)
at weblogic.security.service.SecurityServiceManager.initialize(Unknown S
ource)
at weblogic.security.SecurityService.start(SecurityService.java:141)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
Truncated. see log file for complete stacktrace
>
<Jul 14, 2008 8:58:08 AM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server sta
te changed to FAILED>I have located the <BEA_HOME>\weblogic92\samples\domains\workshop\pointbase.ini.
Now, replaced the . to my 10.2.0.3 database home. But, still get these errors while starting the Oracle SOA Server.:
database.home=E:/DB10203
documentation.home=C:/WLS923_BPEL10133/weblogic92/common/eval/pointbase/docs
pbembedded.lic=C:/WLS923_BPEL10133/weblogic92/common/eval/pointbase/lib/pbembedded.lic
transaction.isolationlevel=TRANSACTION_READ_COMMITTED
database.pagesize=4096
cache.size=2063
sort.size=1024
debug.log=false
Errors : \user_projects\domains\SOADomain\servers\OracleSOAServer\logs\OracleSOAServer.log
####<Nov 30, 2008 1:06:49 PM IST> <Critical> <WebLogicServer> <anirudhpucha> <OracleSOAServer> <Main Thread> <<WLS Kernel>> <> <> <1228030609672> <BEA-000386> <Server subsystem failed. Reason: weblogic.security.SecurityInitializationException: Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.
weblogic.security.SecurityInitializationException: Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:941)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1029)
at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:854)
at weblogic.security.SecurityService.start(SecurityService.java:141)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
>
Any clues ?
Regards
A -
Can't run java .class programs from Windows command line!
I have tried to get a program that I wrote with the JDK to run from the Windows command line, but it is not working. I typed:
java HelloWorld
Where my .class was HelloWorld.class, a compiled java program. I spelled the name correctly (and I am in the correct directory), yet I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
I think something is screwy with windows, but that's just me. Any ideas??Likely a CLASSPATH issue - try
java -classpath . HelloWorldGood Luck
Lee -
How can I run a a class file on the Apache server?
Hi Guys and Gurus,
I am seeking some favor all of experienced gurus, i.e.
How can I run a a class file on the Apache server?
Actually, I want to extract some records from a MySQL Database running on Apache Server. I wrote a program just to select the columns and show them. It is now a Class file, Now how can I run this class file from the Server???
Please advise...
VJcross posted
http://forum.java.sun.com/thread.jsp?thread=299137&forum=31&message=1184025 -
URGENT PLEASE:How can I run a a class file on the Apache server?
Hi Guys and Gurus,
I am seeking some favor all of experienced gurus, i.e.
How can I run a a class file on the Apache server? Can I run through an Applet?
How can I set Environment variables in Windows2000 Professional Environment?
Actually, I want to extract some records from a MySQL Database running on Apache Server. I wrote a program just to select the columns and show them. It is now a Class file, Now how can I run this class file from the Server???
The code is here
import java.sql.*;
public class RecordShow {
public static void main(String args[]) {
String url = "jdbc:mysql://localhost/myhost";
Connection con;
String query = "select mytable.column," +
"from mytable " +
"where mytable.column = 1";
Statement stmt;
try {
Class.forName("com.mysql.jdbc.Driver");
} catch(java.lang.ClassNotFoundException e) {
System.err.print("ClassNotFoundException: ");
System.err.println(e.getMessage());
try {
con = DriverManager.getConnection(url,
"myuser", "mypassword");
stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(query);
ResultSetMetaData rsmd = rs.getMetaData();
int numberOfColumns = rsmd.getColumnCount();
int rowCount = 1;
while (rs.next()) {
System.out.println("Row " + rowCount + ": ");
for (int i = 1; i <= numberOfColumns; i++) {
System.out.print(" Column " + i + ": ");
System.out.println(rs.getString(i));
System.out.println("");
rowCount++;
stmt.close();
con.close();
} catch(SQLException ex) {
System.err.print("SQLException: ");
System.err.println(ex.getMessage());
Please advise... THANKS
VJEhm, I wasn't referring to you at all... read up,
there's a comment by jschell saying that CGI might be
easier/better for his purposes.
Yep.
I know PHP/Perl/whatever might be easier for some
purposes, but only if you happen to know them and want
to/are able to use them. Ok. But you aren't the one asking the question are you. And the person who asked the question seems to have absolutely no familiarity with Apache or applets.
So whatever they do they are going to have to learn a lot.
And that does indeed suggest that in all likelyhood they have not investigated the alternatives.
And for the vast majority of internet applications, especially with smaller projects (obvious this person is not working with a large team), using perl, or something besides java, is going to be the best business solution. It is simpler, and more secure (probably due to the fact that it is simpler.)
Since this is a Java forum, I
answer under the assumption that people have made a
choice one way or another to use a Java solution to
their problem, so I try to solve it in Java first, and
only when that fails (very seldom) do I turn to other
solutions.You approach problems by arbritrarily deciding to try to solve it in java first and only if you fail do you then look to other solutions?
My first step is to try to figure out which of the various avenues is going to cost less. (And a secondary, but non-trivial concern, is then to convince the customer that just because they have heard of a buzz word like 'enterprise bean' that it doesn't mean that is a cost effective solution.) We must come from different worlds. -
How to run java .class file?
How can i run/view .class file in java?. is there tool/utilities in java that can do that.?. Thanks
Ednut wrote:
I'm sure you must have been taught using the command: java yourClassName after navigating to the location of your compiled class in the command prompt.I'm sure the OP does not need condescending remarks from someone who knows almost as little Java as s/he does. -
How I can compile a ejb3 class to a idl file by the weblogic.rmic command.
Now, I want create a idl file from a ejb3 class by the weblogic.rmic command.
I had written a sample case. but when I compile, I get a [Class not found] error, why?
Who can guide me or provide me with a sample?
There is a my sample code, below.
[Java Class/Source Path Diagram]
Ejb3ToIdlApp\
|---ejbModule
| |---hello
| | |---Hello.java (*Class implents)
| | IHello.java (*Interface)
| |---META-INF
| |--- MANIFEST.MF
| weblogic-ejb-jar.xml
|---build
|---classes
|---hello
| |---Hello.class
| IHello.class
|---META-INF
|--- MANIFEST.MF
weblogic-ejb-jar.xml
[Interface]
// IHello.java
package hello;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface IHello extends Remote {
String sayHello() throws RemoteException;
[Java Class]
// Hello.java
package hello;
import java.rmi.RemoteException;
public class Hello implements IHello {
private String name;
public Hello(String s) throws RemoteException {
this.name = s;
@Override
public String sayHello() throws RemoteException {
return "Hello ! From " + name;
* @param args
public static void main(String[] args) {
int i = 0;
try {
for(i = 0; i < 10; i++) {
Hello obj = new Hello("MutiHelloServer" + i);
//Context.rebind("//sample/MutiHelloServer" + i, obj);
} catch(Exception e) {
System.out.println("Hello Error: " + e.getMessage());
e.printStackTrace();
[MANIFEST.MF]
Manifest-Version: 1.0
Class-Path:
[weblogic-ejb-jar.xml]
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-ejb-jar xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-ejb-jar" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd http://xmlns.oracle.com/weblogic/weblogic-ejb-jar http://xmlns.oracle.com/weblogic/weblogic-ejb-jar/1.3/weblogic-ejb-jar.xsd">
<!--weblogic-version:12.1.1-->
</wls:weblogic-ejb-jar>
[EJB Jar]
ejbModule.jar (* Exported from a sample, above)
[Command Environment]
SET WEBLOGIC_SERVER=C:\Oracle\Middleware\wlserver_12.1\server
SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0_09
SET CLASSPATH=.;%JAVA_HOME%\jre\lib;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;%WEBLOGIC_SERVER%\lib;%WEBLOGIC_SERVER%\lib\weblogic.jar;
java weblogic.rmic -idl ejbModule.hello.Hello
[execution result]
Class not found : ejbModule.hello.Hello
ejbModule.hello.Hello
Help!Thanks for your replay.
Before I set the classpath, I had met the ClassNotFound problem.
My command : java -cp %WEBLOGIC_SERVER%\lib\weblogic.jar weblogic.rmic -idl ejbModule.hello.Hello
I was afraid to lost the class that the weblogic.rmic is required, I set the classpath(java library path/class ,weblogic library path/class).
I think the class what is not found is like my class(hello), not the class of the weblogic or java.
Now I don't know what is requred by weblogic.rmic. Is it a class or source of "Hello", and the package name of "Hello" is requred?
After the idl option is cut, when I execute the Command[java weblogic.rmic *---idl--* ejbModule.hello.Hello], I got the other error, below.
(*the Hello class is in ejbModule.jar)
C:\CORBA\test>java weblogic.rmic ejbModule.hello.Hello
java.lang.ClassNotFoundException: ejbModule.hello.Hello
at java.net.URLClassLoader$1.run(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.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at weblogic.rmi.rmic.Remote2Java.loadClassUsingSystemClasspath(Remote2Ja
va.java:765)
at weblogic.rmi.rmic.Remote2Java.loadClass(Remote2Java.java:757)
at weblogic.rmi.rmic.Remote2Java.checkIsNotInterface(Remote2Java.java:73
6)
at weblogic.rmi.rmic.Remote2Java.outputs(Remote2Java.java:518)
at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:262
at weblogic.rmic.runBody(rmic.java:64)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.rmic.main(rmic.java:142)
ejbModule.hello.Hello must be a remote interface implementation and should exist in the classpath
----------------------- -
How can i run a special name method of class?
i dynamic created a obj
and i don't know the method of class,
so i use a String parameter as the method's name
but how can i run the method?
please give me a copy of code, thanks!import java.lang.reflect.Method;
public class unknown{
public static void main(String[] args){
unknown thisObj = new unknown();
Class thisClass = thisObj.getClass();
// calling the method()
try{
Class[] allParamatersType = {};
Method mth = thisClass.getDeclaredMethod("method", allParamatersType);
String returnCallingAdd = (String)mth.invoke(thisObj, null);
System.out.println("calling add() : " + returnCallingAdd);
catch(Exception ex){
ex.printStackTrace();
// calling the method(int , string)
try{
String firstValue = "Testing";
Class[] allParamatersType = { firstValue.getClass() };
Object[] values = { firstValue };
Method mth = thisClass.getDeclaredMethod("method", allParamatersType);
String returnCallingAdd = (String)mth.invoke(thisObj,values );
System.out.println("calling add() : " + returnCallingAdd);
catch(Exception ex){
ex.printStackTrace();
public String method(){
return "method() called";
public String method(String two){
return "method(String) called"; -
Error getting while creating the custom pof serializer class
the error which i am getting is
2011-07-19 15:16:38.767/4.840 Oracle Coherence GE 3.7.0.0 <Error> (thread=main, member=1): Error while starting se
vice "AspNetSessionCache": (Wrapped) (Wrapped: error creating class "com.tangosol.io.pof.ConfigurablePofContext")
Wrapped: Unable to load class for user type (Config=pof-config.xml, Type-Id=1001, Class-Name=examples.testJavaClas
)) (Wrapped) java.lang.ClassNotFoundException: examples.testJavaClass
at com.tangosol.coherence.component.util.Daemon.start(Daemon.CDB:52)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:7)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:6)
at com.tangosol.coherence.component.util.SafeService.startService(SafeService.CDB:39)
at com.tangosol.coherence.component.util.safeService.SafeCacheService.startService(SafeCacheService.CDB:5)
at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:27)
at com.tangosol.coherence.component.util.SafeService.start(SafeService.CDB:14)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInternal(DefaultConfigurableCacheFactory.
ava:1102)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:934
at com.tangosol.net.DefaultCacheServer.startServices(DefaultCacheServer.java:81)
at com.tangosol.net.DefaultCacheServer.intialStartServices(DefaultCacheServer.java:250)
at com.tangosol.net.DefaultCacheServer.startAndMonitor(DefaultCacheServer.java:55)
at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:197)
Caused by: (Wrapped: error creating class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Unable to load c
ass for user type (Config=pof-config.xml, Type-Id=1001, Class-Name=examples.testJavaClass)) (Wrapped) java.lang.Cl
ssNotFoundException: examples.testJavaClass
at com.tangosol.io.ConfigurableSerializerFactory.createSerializer(ConfigurableSerializerFactory.java:46)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.instantiateSerializer(Service.CDB:1
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:32)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:4)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onEnter(Grid.CDB:26)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onEnter(Par
itionedService.CDB:19)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:14)
at java.lang.Thread.run(Thread.java:619)
Caused by: (Wrapped: Unable to load class for user type (Config=pof-config.xml, Type-Id=1001, Class-Name=examples.
estJavaClass)) (Wrapped) java.lang.ClassNotFoundException: examples.testJavaClass
at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
at com.tangosol.io.pof.ConfigurablePofContext.report(ConfigurablePofContext.java:1254)
at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:956)
at com.tangosol.io.pof.ConfigurablePofContext.initialize(ConfigurablePofContext.java:775)
at com.tangosol.io.pof.ConfigurablePofContext.setContextClassLoader(ConfigurablePofContext.java:319)
at com.tangosol.io.ConfigurableSerializerFactory.createSerializer(ConfigurableSerializerFactory.java:42)
... 7 more
Caused by: (Wrapped) java.lang.ClassNotFoundException: examples.testJavaClass
at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
at com.tangosol.util.Base.ensureRuntimeException(Base.java:269)
at com.tangosol.io.pof.ConfigurablePofContext.loadClass(ConfigurablePofContext.java:1198)
at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:952)
... 10 more
Caused by: java.lang.ClassNotFoundException: examples.testJavaClass
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:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.tangosol.util.ExternalizableHelper.loadClass(ExternalizableHelper.java:3056)
at com.tangosol.io.pof.ConfigurablePofContext.loadClass(ConfigurablePofContext.java:1194)
... 11 more
Exception in thread "main" (Wrapped) (Wrapped: error creating class "com.tangosol.io.pof.ConfigurablePofContext")
Wrapped: Unable to load class for user type (Config=pof-config.xml, Type-Id=1001, Class-Name=examples.testJavaClas
)) (Wrapped) java.lang.ClassNotFoundException: examples.testJavaClass
at com.tangosol.coherence.component.util.Daemon.start(Daemon.CDB:52)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:7)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:6)
at com.tangosol.coherence.component.util.SafeService.startService(SafeService.CDB:39)
at com.tangosol.coherence.component.util.safeService.SafeCacheService.startService(SafeCacheService.CDB:5)
at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:27)
at com.tangosol.coherence.component.util.SafeService.start(SafeService.CDB:14)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInternal(DefaultConfigurableCacheFactory.
ava:1102)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:934
at com.tangosol.net.DefaultCacheServer.startServices(DefaultCacheServer.java:81)
at com.tangosol.net.DefaultCacheServer.intialStartServices(DefaultCacheServer.java:250)
at com.tangosol.net.DefaultCacheServer.startAndMonitor(DefaultCacheServer.java:55)
at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:197)
Caused by: (Wrapped: error creating class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Unable to load c
ass for user type (Config=pof-config.xml, Type-Id=1001, Class-Name=examples.testJavaClass)) (Wrapped) java.lang.Cl
ssNotFoundException: examples.testJavaClass
at com.tangosol.io.ConfigurableSerializerFactory.createSerializer(ConfigurableSerializerFactory.java:46)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.instantiateSerializer(Service.CDB:1
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:32)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:4)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onEnter(Grid.CDB:26)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onEnter(Par
itionedService.CDB:19)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:14)
at java.lang.Thread.run(Thread.java:619)
Caused by: (Wrapped: Unable to load class for user type (Config=pof-config.xml, Type-Id=1001, Class-Name=examples.
estJavaClass)) (Wrapped) java.lang.ClassNotFoundException: examples.testJavaClass
at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
at com.tangosol.io.pof.ConfigurablePofContext.report(ConfigurablePofContext.java:1254)
at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:956)
at com.tangosol.io.pof.ConfigurablePofContext.initialize(ConfigurablePofContext.java:775)
at com.tangosol.io.pof.ConfigurablePofContext.setContextClassLoader(ConfigurablePofContext.java:319)
at com.tangosol.io.ConfigurableSerializerFactory.createSerializer(ConfigurableSerializerFactory.java:42)
... 7 more
Caused by: (Wrapped) java.lang.ClassNotFoundException: examples.testJavaClass
at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
at com.tangosol.util.Base.ensureRuntimeException(Base.java:269)
at com.tangosol.io.pof.ConfigurablePofContext.loadClass(ConfigurablePofContext.java:1198)
at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:952)
... 10 more
Caused by: java.lang.ClassNotFoundException: examples.testJavaClass
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:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.tangosol.util.ExternalizableHelper.loadClass(ExternalizableHelper.java:3056)
at com.tangosol.io.pof.ConfigurablePofContext.loadClass(ConfigurablePofContext.java:1194)
... 11 more
2011-07-19 15:16:38.825/4.898 Oracle Coherence GE 3.7.0.0 <D4> (thread=ShutdownHook, member=1): ShutdownHook: stop
ing cluster node
2011-07-19 15:16:38.826/4.899 Oracle Coherence GE 3.7.0.0 <D5> (thread=Cluster, member=1): Service Cluster left th
cluster
Press any key to continue . . .
coherence-pof-config.xml is
<?xml version="1.0"?>
<!DOCTYPE pof-config SYSTEM "pof-config.dtd">
<pof-config>
<user-type-list>
<user-type>
<type-id>1001</type-id>
<class-name>examples.testJavaClass</class-name>
<serializer>
<class-name>com.tangosol.io.pof.PortableObjectSerializer</class-name>
<init-params>
<init-param>
<param-type>string</param-type>
<param-value>1</param-value>
</init-param>
</init-params>
</serializer>
</user-type>
</user-type-list>
</pof-config>
testJavaClass.CLASS file is
package examples;
import com.tangosol.io.pof.PofReader;
import com.tangosol.io.pof.PofWriter;
import com.tangosol.io.pof.PortableObject;
import com.tangosol.util.Base;
import java.io.IOException;
public class testJavaClass implements PortableObject
private String MembershipId;
private String m_sStreet;
private String m_sCity;
public testJavaClass()
public testJavaClass(String sName, String sStreet, String sCity)
setName(sName);
setStreet(sStreet);
setCity(sCity);
public void readExternal(PofReader reader)
throws IOException
setName(reader.readString(0));
setStreet(reader.readString(1));
setCity(reader.readString(2));
public void writeExternal(PofWriter writer)
throws IOException
writer.writeString(0, getName());
writer.writeString(1, getStreet());
writer.writeString(2, getCity());
// accessor methods omitted for brevity
Thanks.Hi Wijk,
I have created java class with using NetBeans IDE .
and running with .NET client and i kept it in the folder (C:\Program Files\Oracle\Coherence for .NET\examples\ContactCache.Java\src\examples).
Thanks.... -
After installed osb, can't run config.exe to create a domain in windows7
Hi,
I am a newbie to weblogic and currently trying to learn it. I have installed weblogic 11.1.1.5.0, Oracle XE, and also create a schema. However, when I installed osb, I can't run config.exe(directory C:\oracle\Middleware\home_11gR1\wlserver_10.3\common\bin ) to create a domain. my computer is windows7, 64bit. I try to run config.exe as a administrator but no response. And there is another thing frustrating me, in the start menu, when I click the shortcut of config.exe or uninstall in the Oracle OSB 11g - Home1 folder, it just say I don't have access permissions.
when I installed SOA, I alse met the same problem like OSB. btw, I have installed these software in other PC which run windows XP, and there is no problem happen!
Here is the software I need to install
weblogic 11.1.1.5.0
Oracle XE
soa 11.1.1.3.0
osb 11.1.1.3.0
So anyone can help?
Thanks in advance.
DanielHi,
I am a newbie to weblogic and currently trying to learn it. I have installed weblogic 11.1.1.5.0, Oracle XE, and also create a schema. However, when I installed osb, I can't run config.exe(directory C:\oracle\Middleware\home_11gR1\wlserver_10.3\common\bin ) to create a domain. my computer is windows7, 64bit. I try to run config.exe as a administrator but no response. And there is another thing frustrating me, in the start menu, when I click the shortcut of config.exe or uninstall in the Oracle OSB 11g - Home1 folder, it just say I don't have access permissions.
when I installed SOA, I alse met the same problem like OSB. btw, I have installed these software in other PC which run windows XP, and there is no problem happen!
Here is the software I need to install
weblogic 11.1.1.5.0
Oracle XE
soa 11.1.1.3.0
osb 11.1.1.3.0
So anyone can help?
Thanks in advance.
Daniel
Maybe you are looking for
-
How do i create a list of frequencies +/- a peak output as ascii file?
I have an VI set up that reads in from a Spectrum Analyzer and searches for the peaks and outputs them along with there amplitudes as an ASCII file. A Macro has been created in Excel that reads the ASCII file and creates a list of 5 frequencies +/-
-
Pages Not Displaying In Older Versions Of Safari
Several people have told me that my new site does not display in versions 1 or 2 of Safari. It works in Window IE and Firefox and Firefox on the Mac. The Home page will display if they click anywhere on the blank page. Is this an iWeb or .Mac problem
-
Satellite L450D - voltage led on
hello everyone, i have this problem on my computer: when i shut down my computer, before leaving home early in the morning, all the led are off, and the computer is unplugged from the wall socket. the battery is not full charged every time. when i co
-
Read a Word/Excel doc and convert to PDF
Can any one suggest a way or source to read a word/excel document and convert it to an PDF.. using Java Thanks, Satya
-
Text for Professional Printing
I am preparing a newsletter that will be sent out for professional printing. Will Adobe's "Open Face" fonts work or do I need to download post script fonts from somewhere. I appreciate your help.