GetRealm() throws ClassNotFound
Hi,
I'm trying to extend the examples/security/rdbmsrealm example by getting
an EJB to add a user to the realm using newUser() but I get a
ClassNotFound exception:
My EJB code:
import examples.security.rdbmsrealm.RDBMSRealm;
import weblogic.security.acl.Realm;
RDBMSRealm realm = (RDBMSRealm) Realm.getRealm("RDBMS Realm");
realm.newUser("fred", "password", null);
The exception that gets thrown:
java.lang.ClassNotFoundException:
weblogic.security.acl.DefaultRealmImpl
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.ClassNotFoundException.<init>(Compiled Code)
at weblogic.boot.ServerClassLoader.findLocalClass(Compiled
Code)
at weblogic.boot.ServerClassLoader.loadClass(Compiled Code)
at java.lang.ClassLoader.loadClass(Compiled Code)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName0(Compiled Code)
at java.lang.Class.forName(Compiled Code)
at weblogic.security.acl.Realm.getRealm(Compiled Code)
at weblogic.security.acl.Realm.getRealm(Compiled Code)
at cleo.account.AccountBean.ejbCreate(AccountBean.java:229)
at
cleo.account.AccountBeanEOImpl.create(AccountBeanEOImpl.java:55)
at
cleo.account.AccountBeanHomeImpl.create(AccountBeanHomeImpl.java:32)
at
cleo.account.AccountBeanHomeImpl_ServiceStub.create(Compiled Code)
at cleo.account.reg_servlet.service(reg_servlet.java:144)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
Code)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
Code)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled
Code)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled
Code)
at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
at weblogic.kernel.ExecuteThread.run(Compiled Code)
3 questions:
1) Is this a valid way to add users? - calling newUser() on the realm
from an EJB???
2) Am I using the right value for the name parameter in the call to
getRealm ("RDBMS Realm" - that's the unchanged value passed to super in
the RDBMSRealm constructor).
3) All I've been able to find on the ClassNotFound problem is notes on
search.beasys.com that say:
ISSUE 32633: Fixed ClassNotFoundException. The path to
'weblogic.security.acl.DefaultRealmImpl' was incorrect.
And this issue is fixed in Service Pack 7.
Am I barking up the right tree here? Do I need to install SP7?
Many thanks,
Dave
I'm running on - WLS5.1.0 SP5, Solaris
Hmmm, OK, I installed SP8. Now I get:
java.security.acl.NotOwnerException
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at
java.security.acl.NotOwnerException.<init>(NotOwnerException.java:29)
at
weblogic.security.acl.internal.DefaultRealmImpl.load(DefaultRealmImpl.java:214)
at weblogic.security.acl.Realm.getRealm(Compiled Code)
at weblogic.security.acl.Realm.getRealm(Compiled Code)
at cleo.account.AccountBean.ejbCreate(AccountBean.java:229)
at cleo.account.AccountBeanEOImpl.create(AccountBeanEOImpl.java:55)
at
cleo.account.AccountBeanHomeImpl.create(AccountBeanHomeImpl.java:32)
at cleo.account.AccountBeanHomeImpl_ServiceStub.create(Compiled
Code)
at cleo.account.reg_servlet.service(reg_servlet.java:144)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:106)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:907)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:851)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:252)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:364)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
at weblogic.kernel.ExecuteThread.run(Compiled Code)
java.rmi.RemoteException: java.lang.IllegalAccessError:
java.security.acl.NotOwnerException
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Error.<init>(Error.java:50)
at java.lang.LinkageError.<init>(LinkageError.java:43)
at java.lang.IncompatibleClassChangeError.<init>(Compiled Code)
at java.lang.IllegalAccessError.<init>(Compiled Code)
at weblogic.security.acl.Realm.getRealm(Compiled Code)
at weblogic.security.acl.Realm.getRealm(Compiled Code)
at cleo.account.AccountBean.ejbCreate(AccountBean.java:229)
at cleo.account.AccountBeanEOImpl.create(AccountBeanEOImpl.java:55)
at
cleo.account.AccountBeanHomeImpl.create(AccountBeanHomeImpl.java:32)
at cleo.account.AccountBeanHomeImpl_ServiceStub.create(Compiled
Code)
at cleo.account.reg_servlet.service(reg_servlet.java:144)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:106)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:907)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:851)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:252)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:364)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
at weblogic.kernel.ExecuteThread.run(Compiled Code)
I guess I need to set some permission/ACL on the security realm or call
something like doAsPrivileged() from the EJB.
Any help appreciated,
Dave
Dave Roxburgh wrote:
Hi,
I'm trying to extend the examples/security/rdbmsrealm example by getting
an EJB to add a user to the realm using newUser() but I get a
ClassNotFound exception:
My EJB code:
import examples.security.rdbmsrealm.RDBMSRealm;
import weblogic.security.acl.Realm;
RDBMSRealm realm = (RDBMSRealm) Realm.getRealm("RDBMS Realm");
realm.newUser("fred", "password", null);
The exception that gets thrown:
java.lang.ClassNotFoundException:
weblogic.security.acl.DefaultRealmImpl
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.ClassNotFoundException.<init>(Compiled Code)
at weblogic.boot.ServerClassLoader.findLocalClass(Compiled
Code)
at weblogic.boot.ServerClassLoader.loadClass(Compiled Code)
at java.lang.ClassLoader.loadClass(Compiled Code)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName0(Compiled Code)
at java.lang.Class.forName(Compiled Code)
at weblogic.security.acl.Realm.getRealm(Compiled Code)
at weblogic.security.acl.Realm.getRealm(Compiled Code)
at cleo.account.AccountBean.ejbCreate(AccountBean.java:229)
at
cleo.account.AccountBeanEOImpl.create(AccountBeanEOImpl.java:55)
at
cleo.account.AccountBeanHomeImpl.create(AccountBeanHomeImpl.java:32)
at
cleo.account.AccountBeanHomeImpl_ServiceStub.create(Compiled Code)
at cleo.account.reg_servlet.service(reg_servlet.java:144)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
Code)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
Code)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled
Code)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled
Code)
at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
at weblogic.kernel.ExecuteThread.run(Compiled Code)
3 questions:
1) Is this a valid way to add users? - calling newUser() on the realm
from an EJB???
2) Am I using the right value for the name parameter in the call to
getRealm ("RDBMS Realm" - that's the unchanged value passed to super in
the RDBMSRealm constructor).
3) All I've been able to find on the ClassNotFound problem is notes on
search.beasys.com that say:
ISSUE 32633: Fixed ClassNotFoundException. The path to
'weblogic.security.acl.DefaultRealmImpl' was incorrect.
And this issue is fixed in Service Pack 7.
Am I barking up the right tree here? Do I need to install SP7?
Many thanks,
Dave
I'm running on - WLS5.1.0 SP5, Solaris
Similar Messages
-
Weblogic 6.1 sp2 throws ClassNotFound exception in war files
Hi there,
I have a question related to Weblogic 6.1 SP2. I developed
a servlet app deployed as a war file. Inside the war file,
I included two jar files in WEB-INF\lib. One of the jar files
is a third party library. The other one is inhouse developed
client classes that will require access to the third party
libraries. This scheme works fine under Weblogic 6.0 sp2.
But, once I upgraded to 6.1 SP2, it throws ClassNotFound
exception. I suspect the class loader is different from
6.0. To test it out, I extract the third party library to
WEB-INF\classes. It finds the classes from the library.
My question is how could I make it work as the way it does
under 6.0?
Thank in advance.Hi Rock,
6.1 SP2 has a known bug in the servlet container.
If a jar file in the WEB-INF/lib has dots in it's name,
classloader will not find classes in the jar.
Example of such naming is common1.2.0.jar. The
solution is simple. The jar should be renamed to
not contain dots, like common.jar.
Regards,
Slava Imeshev
"Rock Wang" <[email protected]> wrote in message
news:3cc5d454$[email protected]..
>
Hi there,
I have a question related to Weblogic 6.1 SP2. I developed
a servlet app deployed as a war file. Inside the war file,
I included two jar files in WEB-INF\lib. One of the jar files
is a third party library. The other one is inhouse developed
client classes that will require access to the third party
libraries. This scheme works fine under Weblogic 6.0 sp2.
But, once I upgraded to 6.1 SP2, it throws ClassNotFound
exception. I suspect the class loader is different from
6.0. To test it out, I extract the third party library to
WEB-INF\classes. It finds the classes from the library.
My question is how could I make it work as the way it does
under 6.0?
Thank in advance. -
JMF Application Throwing ClassNotFound Exception
I have installed JMF 2.1.1 on Windows 2000 and JMStudio runs fine. However, when I try to run a custom application that uses JMF and the mediaplayer bean, it throws a ClassNotFound Exception:
java -cp C:\JMF2.1\lib\sound.jar;C:\JMF2.1\lib\jmf.jar;C:\JMF2.1\lib\me
diaplayer.jar -jar its.jar
Exception occurred during event dispatching:
java.lang.NoClassDefFoundError: jmapps/ui/JMFrame
Could someone explain to me why I'm getting this error when the classpath appears to be set correctly? (I have also tried using the CLASSPATH environment variable with no avail)Are you sure that the class in question is in the packages you specified in the classpath? To double-check, you can use the jar utility to view which files and packages are in a given jar file. The jmapps package might be in a completely different jar file.
Daniel Roth -
Ultrasearch portlet setup throws classnotfound exception
I'm trying to setup ultrasearch.
Would you happen to know why this link to the ultrasearch provider
http://localhost.domainname:7778/provider/ultrasearch/servlet/soaprouter
gives me this error.....
java.lang.NoClassDefFoundError: oracle/portal/provider/v2/personalize/NameValuePersonalizationObject
I have deployed the Nov JPDK and I have this class in pdkjava.jarHi,
Was the only change that was done a simple substitution of the .jar file? Were there any configuration changes? (ie editing of .xml config files?)
Did you also restart oc4j?
thanks
edward -
Any way (event) to call Java method after view created in JSF 2.0
Hi,
I am using JSF 2.0 Mojarra's implementation.
I am interested to know if there is a way to call Java methods before and/or after view has been restored.
I wanted to initialize data for my page in this Java method.
I could see there is an event class PostRestoreStateEvent added in JSF 2.0. How to use it?
I tired to use f:event element as below, but it does not work. Can anyone share anyother idea to achieve this behaviour?
<f:metadata>
<f:event type="postRestoreState" listener="#{employeeLoadBean.loadAfterRestoreView}"/>
</f:metadata>
Regards,
Kishore K SHi,
The problem is solved as below.
<f:metadata>
<f:event type="javax.faces.event.PostRestoreStateEvent" listener="#{employeeViewEventListener.postRestoreState}"/>
</f:metadata>
The above calls the Java method #{employeeViewEventListener.postRestoreState} whenever View has been restored.
It was not working when shortName of the event (ie., postRestoreState) is given and throwing ClassNotFound exception.
Regards,
Kishore K S -
ClassNotFoundException on Weblogic
Hi All,
We are trying to use coherence from BPEL (SOA Suite on Weblogic) - Single node
from my BPEL, I use WSIF to call a Java Class which is trying to read/write to cache. The bpel Jar has all the files required by the Java Class.
However while trying to write to cache I am getting - more stacktrace below -
(Wrapped) java.io.IOException: readObject failed: java.lang.ClassNotFoundException: com.schemas.ECRM.Customer.v1.CustomerQueryResultSet
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
I have coherence.jar and tangosol.jar in weblogic server classpath (downloaded as part of Oracle CoherenceTM for Java 3.4)
If we package these jar as part of the deployed bpel jar file, I get
Operation failed!; nested exception is:
(Wrapped: Failed to load the factory) java.lang.reflect.InvocationTargetException
Please help me letting me know whats going wrong. let me know if your would need more information.
thanks,
avijeet
(Wrapped) java.io.IOException: readObject failed: java.lang.ClassNotFoundException: com.schemas.ECRM.Customer.v1.CustomerQueryResultSet
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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
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:242)
at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:585)
at com.tangosol.io.ResolvingObjectInputStream.resolveClass(ResolvingObjectInputStream.java:68)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2135)
at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2262)
at com.tangosol.util.ExternalizableHelper.deserializeInternal(ExternalizableHelper.java:2643)
at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:256)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$ConverterFromBinary.convert(DistributedCache.CDB:4)
at com.tangosol.util.ConverterCollections$ConverterMap.put(ConverterCollections.java:1541)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$ViewMap.put(DistributedCache.CDB:1)
at com.tangosol.coherence.component.util.SafeNamedCache.put(SafeNamedCache.CDB:1)
at com.www.ECRM.PagingCache.v1.PagingCacheServiceImpl.cacheWrite(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.collaxa.cube.ws.wsif.providers.java.WSIFOperation_Java.executeRequestResponseOperation(WSIFOperation_Java.java:1073)
at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:478)
at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:437)
at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:251)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:826)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:402)
at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:199)
at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3698)
at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1655)
at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:217)
at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:314)
at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5765)
at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1087)
at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.createAndInvoke(CubeEngineBean.java:133)
at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.syncCreateAndInvoke(CubeEngineBean.java:162)
at com.collaxa.cube.engine.ejb.impl.CubeEngineBean_2rw8jy_ELOImpl.syncCreateAndInvoke(CubeEngineBean_2rw8jy_ELOImpl.java:855)
at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequestAnyType(DeliveryHandler.java:547)
at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequest(DeliveryHandler.java:464)
at com.collaxa.cube.engine.delivery.DeliveryHandler.request(DeliveryHandler.java:133)
at com.collaxa.cube.ejb.impl.DeliveryBean.request(DeliveryBean.java:95)
at com.collaxa.cube.ejb.impl.DeliveryBean_uhics8_EOImpl.request(DeliveryBean_uhics8_EOImpl.java:135)
at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:106)
at jsp_servlet.__ngdoinitiate_ws._jspService(__ngdoinitiate_ws.java:517)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:126)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:531)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:459)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:159)
at jsp_servlet.__displayprocess._jspService(__displayprocess.java:1851)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:126)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:531)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:266)
at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:222)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3242)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
ClassLoader: weblogic.utils.classloaders.GenericClassLoader@15c1ae3 finder: weblogic.utils.classloaders.CodeGenClassFinder@f4acd1 annotation:
at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2143)
at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2262)
at com.tangosol.util.ExternalizableHelper.deserializeInternal(ExternalizableHelper.java:2643)
at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:256)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$ConverterFromBinary.convert(DistributedCache.CDB:4)
at com.tangosol.util.ConverterCollections$ConverterMap.put(ConverterCollections.java:1541)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$ViewMap.put(DistributedCache.CDB:1)
at com.tangosol.coherence.component.util.SafeNamedCache.put(SafeNamedCache.CDB:1)
at com.www.ECRM.PagingCache.v1.PagingCacheServiceImpl.cacheWrite(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.collaxa.cube.ws.wsif.providers.java.WSIFOperation_Java.executeRequestResponseOperation(WSIFOperation_Java.java:1073)
at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:478)
at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:437)
at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:251)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:826)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:402)
at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:199)
at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3698)
at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1655)
at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:217)
at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:314)
at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5765)
at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1087)
at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.createAndInvoke(CubeEngineBean.java:133)
at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.syncCreateAndInvoke(CubeEngineBean.java:162)
at com.collaxa.cube.engine.ejb.impl.CubeEngineBean_2rw8jy_ELOImpl.syncCreateAndInvoke(CubeEngineBean_2rw8jy_ELOImpl.java:855)
at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequestAnyType(DeliveryHandler.java:547)
at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequest(DeliveryHandler.java:464)
at com.collaxa.cube.engine.delivery.DeliveryHandler.request(DeliveryHandler.java:133)
at com.collaxa.cube.ejb.impl.DeliveryBean.request(DeliveryBean.java:95)
at com.collaxa.cube.ejb.impl.DeliveryBean_uhics8_EOImpl.request(DeliveryBean_uhics8_EOImpl.java:135)
at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:106)
at jsp_servlet.__ngdoinitiate_ws._jspService(__ngdoinitiate_ws.java:517)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:126)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:531)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:459)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:159)
at jsp_servlet.__displayprocess._jspService(__displayprocess.java:1851)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:126)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:531)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:266)
at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:222)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3242)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)Hi David,
I deploy a Jar file for the BPEL, which has all the classes under BPEL-INF/classes
1. where (i.e. what jar/directory) is the com.schemas.ECRM.Customer.v1.CustomerQueryResultSet class in
in the same Jar file
2. what classloader loads com.schemas.ECRM.Customer.v1.CustomerQueryResultSet (e.g. application, web application, etc.)
I am not sure, from the log it seems weblogic.utils.classloaders.GenericClassLoader
I was trying to pass this to CahcheFactory.getCache - but could not create an instance of it (as it asked ClassFinder and that is a non public class). Do you have a example on how to pass it.
Actually When I am able to write to cache, and then on read it throws ClassNotFound, in the same class/thread - I am wondering if its able to find the class while put, how come its not getting on get.
Thanks,
avijeet
Edited by: avi2 on Jan 29, 2009 1:55 AM -
ClassNotFoundException while loading a class
Hello,
I have an application that having several servlet classes. I specified servlet name and corresponding class name(full) in web.xml
My problem is , I ended up with an exception when executing the following line of code for some of the files .
Class theClass = Class.forName(strServletClassname);
Actually above is working for some classes and not working for some classes in the same package.
I checked the folder where the class files are get saved. All the files are available there with same structure.
Here what may be the cause of this exception?
Any help would be appreciated.
Thanks.thanks for your reply.
Its working fine for the classes in the same package.
But I am using two projects. My project name is myPro and it referring another project named superPro .
If I execute the following line of code in a class in myPro it is working fine. not only, if I replaced class name in the following line by a class name from the superPro, it will work fine without any error.
But If I execute the same line in a class in the superPro , it will throw ClassNotFound exception.
SLRegistrationExtractServlet.java - class in superPro
TestServlet - class in myPro
Execution is as follows,
Class In myPro,
Class.forName("superPro.SLRegistrationExtractServlet"); //no error
Class.forName("myPro.TestServlet"); //no error
Class in superPro,
Class.forName("superPro.SLRegistrationExtractServlet"); //no error
Class.forName("myPro.TestServlet"); //throws error
Following is the stackTrace,
java.lang.ClassNotFoundException: myPro.TestServlet
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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
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:164)
at superPro.Test.main(Test.java:13)
I am using eclipse IDE for my development and in the properties of myPro , I set the project reference as superPro.
In superPro I can't set project reference as myPro, since superPro is referred by many other projects.
thanks
Message was edited by:
JavaXchanges -
Problem adding classpath for managed server in 10.3
Hi All,
I have a managed server that uses startup classes. According to the documentation, you have to put the absolute path to the startup classes in the server's classpath. I go to the server's configuration and the Server Startup tab to enter the classpath information. When I do this and try to start the managed server I receive the following message:
<Jun 30, 2009 8:24:47 AM PDT> <Error> <NodeManager> <BEA-300048> <Unable to star
t the server IntegrationServer : Exception while starting server 'IntegrationSer
ver': java.io.IOException: Server failed to start up. See server output log for
more details.>
The server output log shows:
<Jun 30, 2009 8:24:47 AM> <Debug> <NodeManager> <Waiting for the process to die: 4288>
<Jun 30, 2009 8:24:47 AM> <Info> <NodeManager> <Server failed during startup so will not be restarted>
<Jun 30, 2009 8:24:47 AM> <Debug> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters>
If I don't put the classpath in, the managed server will start up, but will throw classnotfound exceptions for the start classes.
I am not sure what I am doing wrong.
We are in a time crunch so any help would be greatly appreciated.
Thank you,
GregI've seen something like this before on a windows machine where the PATH environment variable had some additional values which contained spaces.
If it's a windows machine, could you check your path and see if there is more there then the default:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
In my case there where values like c:\program files\.... and WL couldnt handle that apparently.
when I removed them from my windows path it was fixed.
the logging you showed, is it the MS logging ?
Could you post the nodemanager logging as well, maybe it has more detailed information. -
Cannot load a Applet using Weblogic6.1
I am unable to load an applet. My application/web server is weblogic6.1. The problem is i am unable to set the right codebase.
any ideas..on how to set codebase when using weblogic 6.1.. my applet class files are in
c:/bea/applications/myApp/WEB-INF/classesthanx for the mail..
When this application was set as Default application, even though the applet class files were in /WEB-INF/classes, it worked.. but now this is no longer a default application and the applet throws classnotfound exception..
i guess i am missing some other settings ...
The applet needs to be publically accessible to the
client. Nothing in WEB-INF is going to be publically
accessible. You need to put the applet somewhere
else, such as where you'd normally put the referencing
HTML file. -
I have been trying to compile Openjdk7 on Ach64, but i have encountered an error which I cannot find help for:
make[5]: Entering directory `/home/jengajam2/openjdk/corba/make/sun/rmi/rmic'
../../../common/shared/Defs-linux.gmk:130: "WARNING: Value of JDK_IMPORT_PATH cannot be empty, check or set ALT_JDK_IMPORT_PATH"
if [ -s /home/jengajam2/openjdk/build/linux-amd64/corba/tmp/sun/sun.rmi.rmic/.classes.list ] ; then \
/bin/cat /home/jengajam2/openjdk/build/linux-amd64/corba/tmp/sun/sun.rmi.rmic/.classes.list; \
/usr/bin/java -XX:-PrintVMOptions -XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput -Xmx896m -Xms128m -XX:PermSize=32m -XX:MaxPermSize=160m "-Xbootclasspath/p:/home/jengajam2/openjdk/build/linux-amd64/langtools/dist/bootstrap/lib/javac.jar" -jar /home/jengajam2/openjdk/build/linux-amd64/langtools/dist/bootstrap/lib/javac.jar -XDignore.symbol.file=true -source 7 -target 7 -encoding ascii -classpath /usr/lib/tools.jar -Xprefer:source -sourcepath "/home/jengajam2/openjdk/build/linux-amd64/corba/gensrc:../../../../src/solaris/classes:../../../../src/share/classes" -d /home/jengajam2/openjdk/build/linux-amd64/corba/classes @/home/jengajam2/openjdk/build/linux-amd64/corba/tmp/sun/sun.rmi.rmic/.classes.list; \
fi
../../../../src/share/classes/sun/rmi/rmic/iiop/AbstractType.java
../../../../src/share/classes/sun/rmi/rmic/iiop/ArrayType.java
../../../../src/share/classes/sun/rmi/rmic/iiop/BatchEnvironment.java
../../../../src/share/classes/sun/rmi/rmic/iiop/ClassType.java
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java
../../../../src/share/classes/sun/rmi/rmic/iiop/Constants.java
../../../../src/share/classes/sun/rmi/rmic/iiop/DirectoryLoader.java
../../../../src/share/classes/sun/rmi/rmic/iiop/ClassPathLoader.java
../../../../src/share/classes/sun/rmi/rmic/iiop/Generator.java
../../../../src/share/classes/sun/rmi/rmic/iiop/Util.java
../../../../src/share/classes/sun/rmi/rmic/iiop/IDLGenerator.java
../../../../src/share/classes/sun/rmi/rmic/iiop/IDLNames.java
../../../../src/share/classes/sun/rmi/rmic/iiop/ImplementationType.java
../../../../src/share/classes/sun/rmi/rmic/iiop/InterfaceType.java
../../../../src/share/classes/sun/rmi/rmic/iiop/NCClassType.java
../../../../src/share/classes/sun/rmi/rmic/iiop/NCInterfaceType.java
../../../../src/share/classes/sun/rmi/rmic/iiop/NameContext.java
../../../../src/share/classes/sun/rmi/rmic/iiop/PrimitiveType.java
../../../../src/share/classes/sun/rmi/rmic/iiop/PrintGenerator.java
../../../../src/share/classes/sun/rmi/rmic/iiop/RemoteType.java
../../../../src/share/classes/sun/rmi/rmic/iiop/SpecialClassType.java
../../../../src/share/classes/sun/rmi/rmic/iiop/SpecialInterfaceType.java
../../../../src/share/classes/sun/rmi/rmic/iiop/StubGenerator.java
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java
../../../../src/share/classes/sun/rmi/rmic/iiop/ValueType.java
../../../../src/share/classes/sun/rmi/rmic/iiop/StaticStringsHash.java
../../../../src/share/classes/sun/rmi/rmic/iiop/ContextStack.java
../../../../src/share/classes/sun/rmi/rmic/iiop/ContextElement.java
../../../../src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:36: package sun.tools.java does not exist
import sun.tools.java.CompilerError;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:37: package sun.tools.java does not exist
import sun.tools.java.ClassNotFound;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:38: package sun.tools.java does not exist
import sun.tools.java.ClassDefinition;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/RemoteType.java:36: package sun.tools.java does not exist
import sun.tools.java.CompilerError;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/RemoteType.java:37: package sun.tools.java does not exist
import sun.tools.java.ClassDefinition;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/RemoteType.java:38: package sun.tools.java does not exist
import sun.tools.java.ClassNotFound;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/InterfaceType.java:36: package sun.tools.java does not exist
import sun.tools.java.CompilerError;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/InterfaceType.java:37: package sun.tools.java does not exist
import sun.tools.java.ClassDefinition;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/InterfaceType.java:38: cannot find symbol
import sun.rmi.rmic.IndentingWriter;
^
symbol: class IndentingWriter
location: package sun.rmi.rmic
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:36: package sun.tools.java does not exist
import sun.tools.java.Identifier;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:37: package sun.tools.java does not exist
import sun.tools.java.ClassNotFound;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:38: package sun.tools.java does not exist
import sun.tools.java.ClassDefinition;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:39: package sun.tools.java does not exist
import sun.tools.java.ClassDeclaration;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:40: package sun.tools.java does not exist
import sun.tools.java.MemberDefinition;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:41: package sun.tools.java does not exist
import sun.tools.java.CompilerError;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:42: package sun.tools.tree does not exist
import sun.tools.tree.Node;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:43: package sun.tools.tree does not exist
import sun.tools.tree.LocalMember;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:44: package sun.tools.tree does not exist
import sun.tools.tree.CharExpression;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:45: package sun.tools.tree does not exist
import sun.tools.tree.IntegerExpression;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:46: cannot find symbol
import sun.rmi.rmic.IndentingWriter;
^
symbol: class IndentingWriter
location: package sun.rmi.rmic
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:39: package sun.tools.java does not exist
import sun.tools.java.ClassDefinition;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:40: package sun.tools.java does not exist
import sun.tools.java.ClassDeclaration;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:41: package sun.tools.java does not exist
import sun.tools.java.Identifier;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:42: package sun.tools.java does not exist
import sun.tools.java.ClassNotFound;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:43: package sun.tools.java does not exist
import sun.tools.java.CompilerError;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:44: cannot find symbol
import sun.rmi.rmic.IndentingWriter;
^
symbol: class IndentingWriter
location: package sun.rmi.rmic
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:47: cannot find symbol
import sun.rmi.rmic.Names;
^
symbol: class Names
location: package sun.rmi.rmic
../../../../src/share/classes/sun/rmi/rmic/iiop/Constants.java:35: package sun.tools.java does not exist
import sun.tools.java.Identifier;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/Constants.java:37: cannot find symbol
public interface Constants extends sun.rmi.rmic.Constants {
^
symbol: class Constants
location: package sun.rmi.rmic
../../../../src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:61: cannot find symbol
public static AbstractType forAbstract(ClassDefinition classDef,
^
symbol: class ClassDefinition
location: class AbstractType
../../../../src/share/classes/sun/rmi/rmic/iiop/ContextStack.java:35: package sun.tools.java does not exist
import sun.tools.java.CompilerError;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:126: cannot find symbol
private AbstractType(ContextStack stack, ClassDefinition classDef) {
^
symbol: class ClassDefinition
location: class AbstractType
../../../../src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:135: cannot find symbol
private static boolean couldBeAbstract(ContextStack stack, ClassDefinition classDef,
^
symbol: class ClassDefinition
location: class AbstractType
../../../../src/share/classes/sun/rmi/rmic/iiop/RemoteType.java:61: cannot find symbol
public static RemoteType forRemote(ClassDefinition classDef,
^
symbol: class ClassDefinition
location: class RemoteType
../../../../src/share/classes/sun/rmi/rmic/iiop/RemoteType.java:126: cannot find symbol
protected RemoteType(ContextStack stack, ClassDefinition classDef) {
^
symbol: class ClassDefinition
location: class RemoteType
../../../../src/share/classes/sun/rmi/rmic/iiop/RemoteType.java:134: cannot find symbol
protected RemoteType(ContextStack stack, ClassDefinition classDef, int typeCode) {
^
symbol: class ClassDefinition
location: class RemoteType
../../../../src/share/classes/sun/rmi/rmic/iiop/RemoteType.java:144: cannot find symbol
ClassDefinition classDef) {
^
symbol: class ClassDefinition
location: class RemoteType
../../../../src/share/classes/sun/rmi/rmic/iiop/InterfaceType.java:59: cannot find symbol
public void print ( IndentingWriter writer,
^
symbol: class IndentingWriter
location: class InterfaceType
../../../../src/share/classes/sun/rmi/rmic/iiop/InterfaceType.java:100: cannot find symbol
protected InterfaceType(ContextStack stack, int typeCode, ClassDefinition classDef) {
^
symbol: class ClassDefinition
location: class InterfaceType
../../../../src/share/classes/sun/rmi/rmic/iiop/InterfaceType.java:114: cannot find symbol
ClassDefinition classDef,
^
symbol: class ClassDefinition
location: class InterfaceType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:63: cannot find symbol
protected ClassDefinition classDef;
^
symbol: class ClassDefinition
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:64: cannot find symbol
protected ClassDeclaration classDecl;
^
symbol: class ClassDeclaration
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:203: cannot find symbol
public ClassDeclaration getClassDeclaration() {
^
symbol: class ClassDeclaration
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:210: cannot find symbol
public ClassDefinition getClassDefinition() {
^
symbol: class ClassDefinition
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/ClassType.java:35: package sun.tools.java does not exist
import sun.tools.java.CompilerError;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/ClassType.java:36: package sun.tools.java does not exist
import sun.tools.java.ClassNotFound;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/ClassType.java:37: package sun.tools.java does not exist
import sun.tools.java.ClassDeclaration;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/ClassType.java:38: package sun.tools.java does not exist
import sun.tools.java.ClassDefinition;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/ClassType.java:39: cannot find symbol
import sun.rmi.rmic.IndentingWriter;
^
symbol: class IndentingWriter
location: package sun.rmi.rmic
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:263: cannot find symbol
public static CompoundType forCompound (ClassDefinition classDef,
^
symbol: class ClassDefinition
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:390: cannot find symbol
protected boolean printExtends (IndentingWriter writer,
^
symbol: class IndentingWriter
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:408: cannot find symbol
protected void printImplements (IndentingWriter writer,
^
symbol: class IndentingWriter
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:440: cannot find symbol
protected void printMembers ( IndentingWriter writer,
^
symbol: class IndentingWriter
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:479: cannot find symbol
protected void printMethods ( IndentingWriter writer,
^
symbol: class IndentingWriter
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:495: cannot find symbol
IndentingWriter writer,
^
symbol: class IndentingWriter
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:593: cannot find symbol
protected CompoundType(ContextStack stack, int typeCode, ClassDefinition classDef) {
^
symbol: class ClassDefinition
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:663: cannot find symbol
protected CompoundType(ContextStack stack, ClassDefinition classDef,
^
symbol: class ClassDefinition
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:798: package sun.tools.java does not exist
protected static Type makeType (sun.tools.java.Type theType,
^
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:799: cannot find symbol
ClassDefinition classDef,
^
symbol: class ClassDefinition
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/BatchEnvironment.java:35: cannot find symbol
import sun.rmi.rmic.Main;
^
symbol: class Main
location: package sun.rmi.rmic
../../../../src/share/classes/sun/rmi/rmic/iiop/BatchEnvironment.java:36: package sun.tools.java does not exist
import sun.tools.java.ClassPath;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/BatchEnvironment.java:38: package sun.tools.java does not exist
import sun.tools.java.ClassDefinition;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/BatchEnvironment.java:39: package sun.tools.java does not exist
import sun.tools.java.ClassDeclaration;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/BatchEnvironment.java:40: package sun.tools.java does not exist
import sun.tools.java.Identifier;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/BatchEnvironment.java:41: package sun.tools.java does not exist
import sun.tools.java.ClassNotFound;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/BatchEnvironment.java:51: cannot find symbol
public class BatchEnvironment extends sun.rmi.rmic.BatchEnvironment implements Constants {
^
symbol: class BatchEnvironment
location: package sun.rmi.rmic
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:981: cannot find symbol
throws ClassNotFound {
^
symbol: class ClassNotFound
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:1029: cannot find symbol
throws ClassNotFound {
^
symbol: class ClassNotFound
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:1163: cannot find symbol
private boolean isConformingConstantType (MemberDefinition member) {
^
symbol: class MemberDefinition
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:1170: package sun.tools.java does not exist
private boolean isConformingConstantType (sun.tools.java.Type theType,MemberDefinition member) {
^
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:1170: cannot find symbol
private boolean isConformingConstantType (sun.tools.java.Type theType,MemberDefinition member) {
^
symbol: class MemberDefinition
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:1224: cannot find symbol
protected Vector updateParentClassMethods(ClassDefinition current,
^
symbol: class ClassDefinition
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:1228: cannot find symbol
throws ClassNotFound {
^
symbol: class ClassNotFound
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:1295: cannot find symbol
protected Vector addAllMethods (ClassDefinition current, Vector directMethods,
^
symbol: class ClassDefinition
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:1299: cannot find symbol
throws ClassNotFound {
^
symbol: class ClassNotFound
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:1400: cannot find symbol
protected boolean inheritsFrom(ClassDefinition def, ClassDefinition otherDef) {
^
symbol: class ClassDefinition
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:1400: cannot find symbol
protected boolean inheritsFrom(ClassDefinition def, ClassDefinition otherDef) {
^
symbol: class ClassDefinition
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:1426: cannot find symbol
ContextStack stack) throws ClassNotFound {
^
symbol: class ClassNotFound
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:1483: cannot find symbol
ContextStack stack) throws ClassNotFound {
^
symbol: class ClassNotFound
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:1663: cannot find symbol
protected ValueType[] getMethodExceptions (MemberDefinition member,
^
symbol: class MemberDefinition
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/ValueType.java:35: package sun.tools.java does not exist
import sun.tools.java.ClassNotFound;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/ValueType.java:36: package sun.tools.java does not exist
import sun.tools.java.ClassDeclaration;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/ValueType.java:37: package sun.tools.java does not exist
import sun.tools.java.ClassDefinition;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/ValueType.java:38: package sun.tools.java does not exist
import sun.tools.java.MemberDefinition;
^
../../../../src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:1726: cannot find symbol
protected static String getVisibilityString (MemberDefinition member) {
^
symbol: class MemberDefinition
location: class CompoundType
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:127: cannot find symbol
private Identifier id;
^
symbol: class Identifier
location: class Type
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:218: cannot find symbol
public Identifier getIdentifier() {
^
symbol: class Identifier
location: class Type
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:489: cannot find symbol
public void print ( IndentingWriter writer,
^
symbol: class IndentingWriter
location: class Type
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:507: cannot find symbol
public static void print ( IndentingWriter writer,
^
symbol: class IndentingWriter
location: class Type
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:526: cannot find symbol
public void print ( IndentingWriter writer,
^
symbol: class IndentingWriter
location: class Type
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:540: cannot find symbol
public void println ( IndentingWriter writer,
^
symbol: class IndentingWriter
location: class Type
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:558: cannot find symbol
public void printTypeName ( IndentingWriter writer,
^
symbol: class IndentingWriter
location: class Type
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:582: cannot find symbol
protected void printPackageOpen ( IndentingWriter writer,
^
symbol: class IndentingWriter
location: class Type
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:601: package sun.tools.java does not exist
protected static Type getType (sun.tools.java.Type key, ContextStack stack) {
^
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:629: package sun.tools.java does not exist
protected static void removeType (sun.tools.java.Type key, ContextStack stack) {
^
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:638: package sun.tools.java does not exist
protected static void putType (sun.tools.java.Type key, Type value, ContextStack stack) {
^
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:754: cannot find symbol
protected void printPackageClose ( IndentingWriter writer,
^
symbol: class IndentingWriter
location: class Type
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:786: cannot find symbol
protected void setNames(Identifier id, String[] idlModuleNames, String idlName) {
^
symbol: class Identifier
location: class Type
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:821: cannot find symbol
ClassNotFound e) {
^
symbol: class ClassNotFound
location: class Type
../../../../src/share/classes/sun/rmi/rmic/iiop/Type.java:830: cannot find symbol
ClassNotFound e) {
^
symbol: class ClassNotFound
location: class Type
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
100 errors
make[5]: *** [.compile.classlist] Error 1
make[5]: Leaving directory `/home/jengajam2/openjdk/corba/make/sun/rmi/rmic'
make[4]: *** [build] Error 1
make[4]: Leaving directory `/home/jengajam2/openjdk/corba/make/sun/rmi'
make[3]: *** [build] Error 1
make[3]: Leaving directory `/home/jengajam2/openjdk/corba/make/sun'
make[2]: *** [build] Error 1
make[2]: Leaving directory `/home/jengajam2/openjdk/corba/make'
make[1]: *** [corba-build] Error 2
make[1]: Leaving directory `/home/jengajam2/openjdk'
make: *** [build_product_image] Error 2
If the output is not sufficient, please tell me.Awebb wrote:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Did you allready do this?
Here is the output with one of "AbstractType.java"
-Xlint:unchecked
[jengajam2@Luc openjdk]$ javac -Xlint:unchecked /home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:36: package sun.tools.java does not exist
import sun.tools.java.CompilerError;
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:37: package sun.tools.java does not exist
import sun.tools.java.ClassNotFound;
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:38: package sun.tools.java does not exist
import sun.tools.java.ClassDefinition;
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:48: cannot find symbol
symbol: class RemoteType
public class AbstractType extends RemoteType {
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:61: cannot find symbol
symbol : class ClassDefinition
location: class sun.rmi.rmic.iiop.AbstractType
public static AbstractType forAbstract(ClassDefinition classDef,
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:62: cannot find symbol
symbol : class ContextStack
location: class sun.rmi.rmic.iiop.AbstractType
ContextStack stack,
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:126: cannot find symbol
symbol : class ContextStack
location: class sun.rmi.rmic.iiop.AbstractType
private AbstractType(ContextStack stack, ClassDefinition classDef) {
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:126: cannot find symbol
symbol : class ClassDefinition
location: class sun.rmi.rmic.iiop.AbstractType
private AbstractType(ContextStack stack, ClassDefinition classDef) {
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:135: cannot find symbol
symbol : class ContextStack
location: class sun.rmi.rmic.iiop.AbstractType
private static boolean couldBeAbstract(ContextStack stack, ClassDefinition classDef,
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:135: cannot find symbol
symbol : class ClassDefinition
location: class sun.rmi.rmic.iiop.AbstractType
private static boolean couldBeAbstract(ContextStack stack, ClassDefinition classDef,
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:163: cannot find symbol
symbol : class ContextStack
location: class sun.rmi.rmic.iiop.AbstractType
private boolean initialize (boolean quiet,ContextStack stack) {
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:72: package sun.tools.java does not exist
sun.tools.java.Type theType = classDef.getType();
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:73: cannot find symbol
symbol : class Type
location: class sun.rmi.rmic.iiop.AbstractType
Type existing = getType(theType,stack);
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:104: cannot find symbol
symbol : class CompilerError
location: class sun.rmi.rmic.iiop.AbstractType
} catch (CompilerError e) {
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:127: cannot find symbol
symbol : variable TYPE_ABSTRACT
location: class sun.rmi.rmic.iiop.AbstractType
super(stack,classDef,TYPE_ABSTRACT | TM_INTERFACE | TM_COMPOUND);
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:127: cannot find symbol
symbol : variable TM_INTERFACE
location: class sun.rmi.rmic.iiop.AbstractType
super(stack,classDef,TYPE_ABSTRACT | TM_INTERFACE | TM_COMPOUND);
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:127: cannot find symbol
symbol : variable TM_COMPOUND
location: class sun.rmi.rmic.iiop.AbstractType
super(stack,classDef,TYPE_ABSTRACT | TM_INTERFACE | TM_COMPOUND);
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:143: cannot find symbol
symbol : class BatchEnvironment
location: class sun.rmi.rmic.iiop.AbstractType
BatchEnvironment env = stack.getEnv();
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:148: cannot find symbol
symbol : class ClassNotFound
location: class sun.rmi.rmic.iiop.AbstractType
} catch (ClassNotFound e) {
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:166: cannot find symbol
symbol : class ClassDefinition
location: class sun.rmi.rmic.iiop.AbstractType
ClassDefinition self = getClassDefinition();
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:166: cannot find symbol
symbol : method getClassDefinition()
location: class sun.rmi.rmic.iiop.AbstractType
ClassDefinition self = getClassDefinition();
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:186: cannot find symbol
symbol : class Method
location: class sun.rmi.rmic.iiop.AbstractType
if (! isConformingRemoteMethod((Method) directMethods.elementAt(i),true)) {
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:199: cannot find symbol
symbol : class ClassNotFound
location: class sun.rmi.rmic.iiop.AbstractType
} catch (ClassNotFound e) {
^
23 errors
-Xlint:deprecation
[jengajam2@Luc openjdk]$ javac -Xlint:deprecation /home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:36: package sun.tools.java does not exist
import sun.tools.java.CompilerError;
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:37: package sun.tools.java does not exist
import sun.tools.java.ClassNotFound;
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:38: package sun.tools.java does not exist
import sun.tools.java.ClassDefinition;
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:48: cannot find symbol
symbol: class RemoteType
public class AbstractType extends RemoteType {
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:61: cannot find symbol
symbol : class ClassDefinition
location: class sun.rmi.rmic.iiop.AbstractType
public static AbstractType forAbstract(ClassDefinition classDef,
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:62: cannot find symbol
symbol : class ContextStack
location: class sun.rmi.rmic.iiop.AbstractType
ContextStack stack,
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:126: cannot find symbol
symbol : class ContextStack
location: class sun.rmi.rmic.iiop.AbstractType
private AbstractType(ContextStack stack, ClassDefinition classDef) {
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:126: cannot find symbol
symbol : class ClassDefinition
location: class sun.rmi.rmic.iiop.AbstractType
private AbstractType(ContextStack stack, ClassDefinition classDef) {
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:135: cannot find symbol
symbol : class ContextStack
location: class sun.rmi.rmic.iiop.AbstractType
private static boolean couldBeAbstract(ContextStack stack, ClassDefinition classDef,
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:135: cannot find symbol
symbol : class ClassDefinition
location: class sun.rmi.rmic.iiop.AbstractType
private static boolean couldBeAbstract(ContextStack stack, ClassDefinition classDef,
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:163: cannot find symbol
symbol : class ContextStack
location: class sun.rmi.rmic.iiop.AbstractType
private boolean initialize (boolean quiet,ContextStack stack) {
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:72: package sun.tools.java does not exist
sun.tools.java.Type theType = classDef.getType();
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:73: cannot find symbol
symbol : class Type
location: class sun.rmi.rmic.iiop.AbstractType
Type existing = getType(theType,stack);
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:104: cannot find symbol
symbol : class CompilerError
location: class sun.rmi.rmic.iiop.AbstractType
} catch (CompilerError e) {
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:127: cannot find symbol
symbol : variable TYPE_ABSTRACT
location: class sun.rmi.rmic.iiop.AbstractType
super(stack,classDef,TYPE_ABSTRACT | TM_INTERFACE | TM_COMPOUND);
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:127: cannot find symbol
symbol : variable TM_INTERFACE
location: class sun.rmi.rmic.iiop.AbstractType
super(stack,classDef,TYPE_ABSTRACT | TM_INTERFACE | TM_COMPOUND);
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:127: cannot find symbol
symbol : variable TM_COMPOUND
location: class sun.rmi.rmic.iiop.AbstractType
super(stack,classDef,TYPE_ABSTRACT | TM_INTERFACE | TM_COMPOUND);
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:143: cannot find symbol
symbol : class BatchEnvironment
location: class sun.rmi.rmic.iiop.AbstractType
BatchEnvironment env = stack.getEnv();
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:148: cannot find symbol
symbol : class ClassNotFound
location: class sun.rmi.rmic.iiop.AbstractType
} catch (ClassNotFound e) {
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:166: cannot find symbol
symbol : class ClassDefinition
location: class sun.rmi.rmic.iiop.AbstractType
ClassDefinition self = getClassDefinition();
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:166: cannot find symbol
symbol : method getClassDefinition()
location: class sun.rmi.rmic.iiop.AbstractType
ClassDefinition self = getClassDefinition();
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:186: cannot find symbol
symbol : class Method
location: class sun.rmi.rmic.iiop.AbstractType
if (! isConformingRemoteMethod((Method) directMethods.elementAt(i),true)) {
^
/home/jengajam2/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/AbstractType.java:199: cannot find symbol
symbol : class ClassNotFound
location: class sun.rmi.rmic.iiop.AbstractType
} catch (ClassNotFound e) {
^
23 errors -
Work AJAX4JSP with Creator2?
Hi,
I am trying integrate A4J with Crator2,
I build a Simple AJAX Echo Project follow document(https://ajax4jsf.dev.java.net/nonav/documentation/ajax-documentation/developerGuide.html
) by Creator2
I drop two standard Components and add aj4 tag manually.
after compile, depoly to tomcat, and browse in IE
all behaviors are fine, all ajax function is correct just like A4J demo.
But after that, I back to design view in creator2.
Creator2 throw ClassNotFound exceiption, So I add apache-common-collection.jar to solve problem.
After that, Creator2 always throw NullPointException on mouse click.
So, I restart the Crator2.
Then, Crator2 is crashed.....
I can't start Crator2 anymore, It always throw a NullPointException in infinite loop at startup.
Fortunately, after trying, I save my other projects back to run in Crator2.
1.I undo the problem project.(remove all ajax4jsf sample code)
2.I clear config(keep org-netbeans-api-project-libraries folder for other project's complib) and var/cache
Is any one have a success way to integrate A4J with Crator2?
I think A4J is an amazing stuff for me to work in JSF by Creator2.
(Sorry I don't try my project on VWP because I don't have time to update my JSF component to VWP)Hi,
I have created 1 WC with 3 catogories and also i have 1 activity which is having 3 diff catogories of work tobe executed in the same WC. My question is how we can assign in PS.
While seeing the load details, it is showing the avilable capacity depends on the work timing we have given for the Diff Catogories, But how we can assign it for the activity.
Pls advsie.
Regards
Narayan Raju -
Can't load custom formatter class in eclipse plugin?
Hi All,
Basically the ClassLoader.getSystemClassLoader().loadClass call in LogManager.getFormatterProperty function is a trouble. I have a code that is using jdk logging. In logging properties file I am specifying my custom formatter class for one of the standard handlers (console). The propblem is that LogManager inside calls ClassLoader.getSystemClassLoader().loadClass to load my class, and throws classnotfound exception. Same code/setup works fine for standard java app. So, apparently Eclipse classloader hierarchy is a problem.
Is there a way to get around this?Are these Brushes for your version of PS?
Over the decades, Adobe has changed some things about Brushes (and Actions, etc.), so that some older versions will not work in later versions.
Do you have a version conflict?
What version of PS do you have? What version were the Brushes created for?
Good luck,
Hunt
PS - same thing happens with the "papers" and "brushes" in what is now Corel Painter. Many things are version specific. -
ClassNot found on Servlet in WASD.....?
Hi Guys,
I am working with WASD 5.0, with database mySQL. I have added jar the library. When I load the class through Java program it works fine, but when I load it through the servlet, it throws ClassNOtFound excetion...Any help
Thanks
ArbyRight click on your project name --> Go to Properties --> go to build path --> go to libraries --> add jar
-
Java.lang.ClassNotFound Exception whenever I include .send()
Everything runs fine, but when I add the .send(message); [it is in bold] I get a java.lang.ClassNotFound Exception.
It still compiles, it just won't allow me to launch the program in the emulator. If I take that one piece of code out, everything runs fine again. I've been messing with it, and searching for a long time in an attempt to solve the problem but I've yet to come across a solution.
I'm also using Bluej
import java.io.*;
import java.lang.*;
import javax.microedition.lcdui.*;
import javax.microedition.io.*;//Add SMS text, Map selection (upload image/altitude-scale)
import javax.microedition.lcdui.Font;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.game.GameCanvas;
import javax.wireless.messaging.*;
public class cardcanvas extends GameCanvas implements Runnable, CommandListener {
Image i, Mortar, Target, paintballcharleston, selectimg, Cursor;
SendSMS sendtext;
Thread t = new Thread(this);
Command cmdfire=new Command("Fire", Command.BACK, 1 );
Command cmdreset=new Command("Reset", Command.ITEM, 2 );
String text, message;
static Image Map;
MessageConnection messageConnection;
TextMessage textMessage;
int mortarX=5500, mortarY=5500, targetX=5500, targetY=5500, distanceX, distanceY, delay, mapx=-250, mapy=-250, xvel=115, yvel=130, gameAction=0, timer=0;
double A, B, C, b, degreeX, degreeY, degreeV, voltageX, voltageY, scale=1.4235, findDegree=90;//get scale of pixel:realtime feet
boolean paintdown=false, paintup=false, paintright=false, paintleft=false, left, finish, firemor, initiate, click, bottom=true, noYdegree, reset, sms=false;
public cardcanvas(){
super(false);
this.addCommand(cmdfire);
this.addCommand(cmdreset);
this.setCommandListener(this);
public void intit() {}
public void start() {
t.start() {}
public void run()
try{
while(true)
if(paintright) {
timer++;
if(timer>1&&timer<4) xvel=xvel+5;
if(timer>=4&&timer<6) xvel=xvel+10;
if(timer>=6) xvel=xvel+20;
if(paintleft) {
timer++;
if(timer>1&&timer<4) xvel=xvel-5;
if(timer>=4&&timer<6) xvel=xvel-10;
if(timer>=6) xvel=xvel-20;
if(paintup) {
timer++;
if(timer>1&&timer<4) yvel=yvel-5;
if(timer>=4&&timer<6) yvel=yvel-10;
if(timer>=6) yvel=yvel-20;
if(paintdown) {
timer++;
if(timer>1&&timer<4) yvel=yvel+5;
if(timer>=4&&timer<6) yvel=yvel+10;
if(timer>=6) yvel=yvel+20;
if(mapy<-320) mapy=-320;
if(mapx>0) mapx=0;
if(mapy>0) mapy=0;
if(mapx>197) mapx=197;
if(xvel>225)
mapx=mapx-5;
targetX=targetX-5;
mortarX=mortarX-5;
xvel=225;
if(xvel<5)
mapx=mapx+5;
targetX=targetX+5;
mortarX=mortarX+5;
xvel=5;
if(yvel>260)
mapy=mapy-5;
targetY=targetY-5;
mortarY=mortarY-5;
yvel=260;
if(yvel<5)
mapy=mapy+5;
targetY=targetY+5;
mortarY=mortarY+5;
yvel=5;
if(reset) {
mapx=-250;
mapy=-250;
xvel=115;
yvel=130;
left=false;
firemor=false;
finish=false;
initiate=false;
click=false;
bottom=true;
noYdegree=false;
reset=false;
targetX=5500;
targetY=5500;
mortarX=5500;
mortarY=5500;
A=0;
B=0;
C=0;
b=0;
degreeX=0;
if(initiate) {
distanceX=targetX-mortarX;
distanceY=targetY-mortarY;
A=distanceY;
B=distanceX;
if(distanceY<0)
A=distanceY*-1;
bottom=false;
if(distanceX<0)
B=distanceX*-1;
left=true;
A=A*scale;
B=B*scale;
C=Math.sqrt((A*A)+(B*B));
while(((A*(Math.tan(b)))<B+.00002))
b=b+.0001;
b=b*180/3.1415926535897932384626435;
degreeX=b;
if(bottom)
b=90-b;
b=b+90;
degreeX=b;
if(left)
degreeX=360-b;
initiate=false;
text=("DegreeX is "+degreeX+" Range is "+C);
sendTextMessage();
verifyGameState();
paint(getGraphics());
Thread.currentThread().sleep(1);
catch (Exception E) {}
private void verifyGameState() {}
public void sendTextMessage()
try
String message = " ";
MessageConnection messageConnection = (MessageConnection)Connector.open("sms://18433036060");
TextMessage textMessage = (TextMessage)messageConnection.newMessage(
MessageConnection.TEXT_MESSAGE, "18433036060");
textMessage.setPayloadText(message);
*messageConnection.send(textMessage);*
catch (Exception e) {}
}If I remove messageConnection.send(texstMessage); the error is gone.
Thanks in advance for your timecardmidlet:
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
import java.io.IOException;
import java.lang.*;
public class cardmidlet extends MIDlet implements CommandListener {
private Display display; Display map;
cardmidlet midlet;
private Form form; Form mapselection;
private List menuList ;
String[] elements=new String[]{"Initiate Program","Select Map","Help","About"};
private Command selectCommand;
Alert alert;
private Command fnext=new Command("NEXT",Command.ITEM,1);
private Command fback=new Command("BACK",Command.BACK,1);
private Command mapnext=new Command("Next",Command.ITEM,1);
private TextField uname; TextField mapchoice;
public String nname, nmap;
cardcanvas cd;
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
protected void pauseApp() {
public cardmidlet() {
menuList();
cd = new cardcanvas();
public void menuList(){
display = Display.getDisplay(this);
menuList = new List("Menu", List.IMPLICIT, elements, null);
selectCommand=new Command("open",Command.ITEM,1);
menuList.setSelectCommand(selectCommand);
menuList.setCommandListener(this);
protected void startApp() throws MIDletStateChangeException {
display.setCurrent(menuList);
public void about(){
alert = new Alert("Option Selected", "This program is created by"+"\n"+" Chris Furlong.", null, null);
alert.setTimeout(Alert.FOREVER);
alert.setType(AlertType.INFO);
display.setCurrent(alert);
public void help() {
alert = new Alert("Option Selected", "Use the 4 d-pad keys to move the cursor. Press the center button once to select the mortar position, and a second time to select the target position. When both the mortar and the target are on screen, press the upper left key to begin the firing process. If you place one on the map by mistake, simply reset the program with the upper right key and start over.", null, null);
alert.setTimeout(Alert.FOREVER);
alert.setType(AlertType.INFO);
display.setCurrent(alert);
public void InitiateProgram(){
display=Display.getDisplay(this);
uname=new TextField("Enter your name","",50,TextField.ANY);
form =new Form("New User");
form.append(uname);
form.addCommand(fnext);
form.addCommand(fback);
form.setCommandListener(this);
display.setCurrent(form);
public void selectmap()
/* display=map.getDisplay(this);
mapchoice=new TextField("Enter Map Name","",50,TextField.ANY);
mapselection=new Form("Map Selection");
mapselection.append(mapchoice);
mapselection.addCommand(mapnext);
mapselection.addCommand(fback);
mapselection.setCommandListener(this);
display.setCurrent(mapselection);*/
display = map.getDisplay(this);
map choose=new map();
public String name(){
nname=uname.getString();
return nname;
/* public String mapname() {
nmap=mapchoice.getString();
return nmap;
public void commandAction(Command com, Displayable arg1) {
if(com==selectCommand)
if(menuList.getSelectedIndex()==3)
about();
if(menuList.getSelectedIndex()==2)
help();
if(menuList.getSelectedIndex()==1)
selectmap();
if(menuList.getSelectedIndex()==0)
InitiateProgram();
if(com==fback)
display.setCurrent(menuList);
if(com==fnext){
display = Display.getDisplay(this);
cd.start();
display.setCurrent(cd);
if(com==mapnext)
display = map.getDisplay(this);
map choose=new map();
display.setCurrent(choose);
} -
KODO 2.5.3
I am trying to use the SchemaTool java class for schema manipulations. When
I try to construct a SchemaTool object I get the following exception:
com.solarmetric.kodo.runtime.FatalUserException:
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
NestedThrowables:
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
I am passing an instance of MultiLoaderClassResolver (constructed using a
custom URLClassLoader) as the ClassResolver argument to the SchemaTool
constructor. The orcale jar "classes12.jar" is one of the URLs in the
URLClassResolver. Before constructing a SchemaTool object, a call to
canResolveClass("oracle.jdbc.driver.OracleDriver") on the class resolver
returns true. So why is SchemaTool not able to find this class?
Thanks
VijayMarc,
It might well be problems with my custom class loader (which are a pain to
debug indeed) or my lack of understanding of some of your schema tool
classes, but the basic problem I encountered (before getting to the Logger
issue) is as follows:
I have an instance of MultiLoaderClassResolver constructed using my custom
class loader.
A call to resolveClass("orcale.jdbc.driver.OrcaleDriver") on this instance
returns the correct Class (does not throw a ClassNotFound exception).
The same MultiLoaderClassResolver instance is passed as an argument to
SchemaTool(). SchemaTool.refresh() throws an exception:
ClassNotFound: orcale.jdbc.driver.OrcaleDriver
So it seems to me that somewhere in the SchemaTool code you are trying to
resolve orcale.jdbc.driver.OrcaleDriver using something other than the
instance of MultiLoaderClassResolver that I passed in. From the stack trace
in my earlier message, it seems like that is happening in:
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.createPKColumns(ClassM
apping.java:1584)where an instance of ConfigurationConnector is constructed. BTW, this is how
I construct and pass a ConfigurationConnector to SchemaTool:
JDBCConfiguration conf = new JDBCSimpleConfiguration(someProps);
ClassResolver resolver = new MultiLoaderClassResolver(myCustomClassLoader);
Connector connector = new ConfigurationConnector(conf, resolver, false);
SchemaTool sTool = new SchemaTool(conf, resolver, connector);
Vijay
"Marc Prud'hommeaux" <[email protected]> wrote in message
news:[email protected]...
Vijay-
Custom ClassLoader problems are often very hairy to debug. The first
error message you are receiving indicates a problem:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Log4JLogger does not implement LogThis indicates to me that the
"org.apache.commons.logging.impl.Log4JLogger" and
"org.apache.commons.logging.Log" classes are being loaded in different
ClassLoaders, which is generally a bad thing. Is your URLClassLoader
deferring to the parent ClassLoader?
I think that the first step is to identify why the class loaders are
different for these two classes (which should be easy to do with some
printlns in a test program that uses your URLClassLoader).
Bear in mind that this isn't technicall a Kodo issue, but a general
ClassLoader issue. However, we are happy to try to provide hints and
guidance about how to isolate the source of the problem.
In article <[email protected]>, Vijay Ganesan wrote:
After trying out some combinations, the stack trace at the bottom of
this
message gives a better clue of what my problem is:
Looks like a new ConfigurationConnector is created in ClassMapping.javathat
ignores my class resolver (based on my custom class loader) that Icreated
as follows:
JDBCConfiguration conf = new JDBCSimpleConfiguration(someProps);
ClassResolver resolver = newMultiLoaderClassResolver(myCustomClassLoader);
>>
Connector connector = new ConfigurationConnector(conf, resolver, false);
SchemaTool sTool = new SchemaTool(conf, resolver, connector);
Adding the following line before the schema related code solves theproblem:
Thread.currentThread().setContextClassLoader(myCustomClassLoader);
However, that causes another error which, from a brief look at
LogFactoryImpl, seems surely related to custom class loaders. Don't knowhow
to get past this one:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Log4JLogger does not implement Log
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
va:532)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
va:272)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414)
at
com.solarmetric.kodo.impl.jdbc.runtime.ConfigurationConnector.createConnecti
onFactory(ConfigurationConnector.java:140)
--------Stack trace------------
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at
com.solarmetric.util.classes.LoaderClassResolver.resolveClass(LoaderClassRes
olver.java:34)
at
com.solarmetric.kodo.impl.jdbc.runtime.ConfigurationConnector.createConnecti
onFactory(ConfigurationConnector.java:113)
at
com.solarmetric.kodo.impl.jdbc.runtime.ConfigurationConnector.<init>(Configu
rationConnector.java:67)
at
com.solarmetric.kodo.impl.jdbc.runtime.ConfigurationConnector.<init>(Configu
rationConnector.java:59)
at
com.solarmetric.kodo.impl.jdbc.runtime.ConfigurationConnector.<init>(Configu
rationConnector.java:39)
at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.createPKColumns(ClassM
apping.java:1584)
at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.install(ClassMapping.j
ava:1416)
at
com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMapping(Mapping.java:
169)
at
com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMappings(Mapping.java
:116)
at
com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMappings(Mapping.java
:86)
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.createMappings(SchemaTool.j
ava:831)
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:333
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:321
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:311
"Stephen Kim" <[email protected]> wrote in message
news:[email protected]...
My guess is that your custom classloader is preventing instanceof. Can
you try using the system classloader or see if java.sql.Driver is
assignable from oracle.jdbc.dirver.OracleDriver?
Vijay Ganesan wrote:
KODO 2.5.3
I am trying to use the SchemaTool java class for schema
manipulations.
When
I try to construct a SchemaTool object I get the following exception:
com.solarmetric.kodo.runtime.FatalUserException:
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
NestedThrowables:
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
I am passing an instance of MultiLoaderClassResolver (constructed
using
a
custom URLClassLoader) as the ClassResolver argument to the
SchemaTool
constructor. The orcale jar "classes12.jar" is one of the URLs in the
URLClassResolver. Before constructing a SchemaTool object, a call to
canResolveClass("oracle.jdbc.driver.OracleDriver") on the classresolver
returns true. So why is SchemaTool not able to find this class?
Thanks
Vijay
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com
Maybe you are looking for
-
My number 5 key is not working and my password has a number 5 in it. How can I change my password when I'm signed in on another account or as guest user? I need help
-
TRANSFER OF DATA FROM DATABASE TO APPLICATION SERVER
I have to upload /transfer data from database to application server . I am not able to get it. If anyone have any solution to it, post it to me. thanks
-
Hi, We have ordered a base station and phone on october 25th off ebuy and have received a conifrmation of our order in early november, however to date -9th December 2012 - we have not received any goods. This is very frustrating! We have asked for fe
-
Connecting to network SQL Server from SQL Developer
Hi All, I am trying to connect to network SQL Server from SQLDeveloper but I am unable to connect( I am getting could not connect to SQL Server...). I have searched many sites but could not find the solution. I am giving HostName as MachineName\Insta
-
What could have happened to my Air Drop on Mini? It doesn't find my Iphone 5 anymore.