Class weblogic.management.WeblogicMBean not found
Hi all
I meet this problem when I try to run Junit test case in fork mode (starting each test in a separate JVM) using Build ant file.
[junit] Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/management/WebLogicMBean
[junit] at java.lang.ClassLoader.defineClass1(Native Method)
[junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
[junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
[junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
[junit] at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
[junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
[junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
[junit] at java.lang.ClassLoader.defineClass1(Native Method)
[junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
[junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
[junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
[junit] at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
[junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
[junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
[junit] at java.lang.ClassLoader.defineClass1(Native Method)
[junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
[junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
[junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
[junit] at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
[junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
I have the library weblogic.jar in my build library folders, which is set as classpath for the junit task. I look at this file and can't find the WeblogicMBean.class inside.
However, in Jdev, I can import weblogic.management.WeblogicMBean into my class if I set library reference to this weblogic.jar file and compile my class without problem.
Any suggestion of what really goes wrong?
Thanks a lot.
The Class is Physically present inside : <b> <BEA_HOME>\modules\com.bea.core.management.core_2.3.0.0.jar </b>.
So you need to add this JAR separately in your Classpath.
The Best and Recommended way to do this is Make *"wlfullclient.jar"* which contains almost all the required classes which is needed to interact with WebLogic. So By Adding this Single Jar you can easily do this. to make this Jar please refer to: http://jaysensharma.wordpress.com/2010/02/03/building-wlfullclient-jar/
Similar Messages
-
Weblogic.utils.StackTraceUtils not found
Platform: Sun OS 5.7 (Solaris 2.7?), Weblogic 5.1 SP6.
I have an application that contains some JSPs and Servlets. I'm using
SilkPerformer to simulate multiple users. It was fine if I used only 200
virtual users, but I ran into the following problem when I used 250 (240
too).
It complained some kind of NullPointerException (see below) which never
happened for under 200 users. And then it complained this
weblogic.utils.StackTraceUtils not found. This class belongs to
/weblogic/classes which is in my weblogic.class.path when the server is
started.
I'm guess weblogic server ran into some unexpected exception and the
logger wanted to call this class to report the error. So I need to find
out 2 things:
1. how to reveal the real exception/error.
2. what to do to avoid the exception (since it worked fine for 200
virtual users).
For 1, I have no clue. Hope someone out there can help me.
For 2, I remember seeing "Too many opened files" at some run which may
indicating that, when handling too many users (250) at one time, WL
server has opened one copy of certain file (JSP/html) for each user and
used up system allowed file handles. If this is true, I may be able to
get rid of this problem by increasing the allowed number of file
handles. But I'd like to see a better solution (say, configure the
server certain way to share the files). By the way, this is not
happening on NT. Maybe NT has more allowed file handles and I can only
run as many as 250 users.
Anyway comments are appreciated.
-Wayne
----------------------- extract of server output --------------------
The errorIndices is currently: []
Hints validated.java.lang.NullPointerException
at weblogic.boot.ServerClassLoader.findLocalClass(Compiled
Code)
at weblogic.boot.ServerClassLoader.loadClass(Compiled Code)
at java.lang.ClassLoader.loadClass(Compiled Code)
at java.lang.ClassLoader.loadClassInternal(Compiled Code)
at
weblogic.logging.TextStreamLogger.log(TextStreamLogger.java:77)
at weblogic.logging.LogManager.log(Compiled Code)
at weblogic.logging.LogOutputStream.error(Compiled Code)
at weblogic.t3.srvr.ListenThread.run(Compiled Code)
java.lang.NullPointerException
at weblogic.boot.ServerClassLoader.findLocalClass(Compiled
Code)
at weblogic.boot.ServerClassLoader.loadClass(Compiled Code)
at java.lang.ClassLoader.loadClass(Compiled Code)
at java.lang.ClassLoader.loadClassInternal(Compiled Code)
at
weblogic.logging.TextStreamLogger.log(TextStreamLogger.java:77)
at weblogic.logging.LogManager.log(Compiled Code)
at weblogic.logging.LogOutputStream.alert(Compiled Code)
at weblogic.t3.srvr.ListenThread.run(Compiled Code)
Wed Nov 22 15:25:09 MST 2000:<!> <ListenThread> **** The WebLogic Server
is n\
o longer listening for connections.
Wed Nov 22 15:25:09 MST 2000:<!> <ListenThread> **** You should probably
rest\
art it.
Wed Nov 22 15:25:09 MST 2000:<I> <WebLogicServer> Server shutdown by
system
Wed Nov 22 15:25:09 MST 2000:<I> <WebLogicServer> Server shutdown
commencing \
NOW
Wed Nov 22 15:25:09 MST 2000:<A> <SSLListenThread> ListenThread.run()
failed:\
java.lang.ThreadDeath
Wed Nov 22 15:25:09 MST 2000:<!> <SSLListenThread> **** The WebLogic
Server i\
s no longer listening for connections.
Wed Nov 22 15:25:09 MST 2000:<!> <SSLListenThread> **** You should
probably r\
estart it.
Wed Nov 22 15:25:09 MST 2000:<I> <WebLogicServer> Server shutdown by
system
java.lang.NoClassDefFoundError: weblogic/utils/StackTraceUtils
at
weblogic.logging.TextStreamLogger.log(TextStreamLogger.java:77)
at weblogic.logging.LogManager.log(Compiled Code)
at weblogic.logging.LogOutputStream.alert(Compiled Code)
at weblogic.t3.srvr.ListenThread.run(Compiled Code)
hints are: [Ljava.lang.String;@1646d1e
hints are: [Ljava.lang.String;@ef3ad1
hints are: [Ljava.lang.String;@a43826
Thanks Sumanth and Cameron. I have 64 descriptors when I do "limit". I'm
not sure if that's my limit coz I could successfully simulate 200 users
at a time. I only have a few JSPs and a couple of HTMLs. Maybe Weblogic
is already sharing the files. Or maybe even for 200 users, at one time
no more than 64 descriptors are used.
I don't have super-user privileges. But I'll ask the admins to increase
the limit for me and see how that affects my results.
Appreciate your help.
-Wayne
Sumanth Yamala wrote:
>
> lsof gives the number of file descriptors open
>
> A common setting for high-load systems is a soft limit of 1024 and a hard
> limit of 4096.
>
> On Solaris, add the following to /etc/system:
>
> set rlim_fd_max=4096
> set rlim_fd_cur=1024
>
> And reboot with -r.
>
> You should not raise it past 1024 without first finding some
> documentation that confirms that it is safe to do so. Any number
> below that is safe.
>
> To add to the above Weblogic documentation has to say this:
>
> We have seen this situation when the user account runs out of file
> descriptors. On Solaris, each user account has a certain limited number of
> file descriptors. You can find out how many file descriptors you have with
> the limit command in csh.
>
> You can increase file descriptors if you have enough privileges with the
> unlimit command in the csh. Otherwise, you'll need to ask your system
> administrator to increase the file descriptors available to your processes.
>
> Another solution is to create a .zip file with all of the WebLogic classes,
> since a .zip file only requires a single file descriptor. If you do this,
> please note that there may be other problems associated with loading files
> from a .zip file, particularly with versions of the JDK before 1.1.3.
> (Previous to version 2.5, WebLogic has not distributed its classes in .zip
> format because of limitations in the JVM
>
> -Sumanth
>
> Wayne Xin wrote:
>
> > Platform: Sun OS 5.7 (Solaris 2.7?), Weblogic 5.1 SP6.
> >
> > I have an application that contains some JSPs and Servlets. I'm using
> > SilkPerformer to simulate multiple users. It was fine if I used only 200
> > virtual users, but I ran into the following problem when I used 250 (240
> > too).
> >
> > It complained some kind of NullPointerException (see below) which never
> > happened for under 200 users. And then it complained this
> > weblogic.utils.StackTraceUtils not found. This class belongs to
> > /weblogic/classes which is in my weblogic.class.path when the server is
> > started.
> >
> > I'm guess weblogic server ran into some unexpected exception and the
> > logger wanted to call this class to report the error. So I need to find
> > out 2 things:
> >
> > 1. how to reveal the real exception/error.
> > 2. what to do to avoid the exception (since it worked fine for 200
> > virtual users).
> >
> > For 1, I have no clue. Hope someone out there can help me.
> >
> > For 2, I remember seeing "Too many opened files" at some run which may
> > indicating that, when handling too many users (250) at one time, WL
> > server has opened one copy of certain file (JSP/html) for each user and
> > used up system allowed file handles. If this is true, I may be able to
> > get rid of this problem by increasing the allowed number of file
> > handles. But I'd like to see a better solution (say, configure the
> > server certain way to share the files). By the way, this is not
> > happening on NT. Maybe NT has more allowed file handles and I can only
> > run as many as 250 users.
> >
> > Anyway comments are appreciated.
> >
> > -Wayne
> >
> > ----------------------- extract of server output --------------------
> > ...
> > The errorIndices is currently: []
> > Hints validated.java.lang.NullPointerException
> > at weblogic.boot.ServerClassLoader.findLocalClass(Compiled
> > Code)
> > at weblogic.boot.ServerClassLoader.loadClass(Compiled Code)
> > at java.lang.ClassLoader.loadClass(Compiled Code)
> > at java.lang.ClassLoader.loadClassInternal(Compiled Code)
> > at
> > weblogic.logging.TextStreamLogger.log(TextStreamLogger.java:77)
> > at weblogic.logging.LogManager.log(Compiled Code)
> > at weblogic.logging.LogOutputStream.error(Compiled Code)
> > at weblogic.t3.srvr.ListenThread.run(Compiled Code)
> > java.lang.NullPointerException
> > at weblogic.boot.ServerClassLoader.findLocalClass(Compiled
> > Code)
> > at weblogic.boot.ServerClassLoader.loadClass(Compiled Code)
> > at java.lang.ClassLoader.loadClass(Compiled Code)
> > at java.lang.ClassLoader.loadClassInternal(Compiled Code)
> > at
> > weblogic.logging.TextStreamLogger.log(TextStreamLogger.java:77)
> > at weblogic.logging.LogManager.log(Compiled Code)
> > at weblogic.logging.LogOutputStream.alert(Compiled Code)
> > at weblogic.t3.srvr.ListenThread.run(Compiled Code)
> > Wed Nov 22 15:25:09 MST 2000:<!> <ListenThread> **** The WebLogic Server
> > is n\
> > o longer listening for connections.
> > Wed Nov 22 15:25:09 MST 2000:<!> <ListenThread> **** You should probably
> > rest\
> > art it.
> > Wed Nov 22 15:25:09 MST 2000:<I> <WebLogicServer> Server shutdown by
> > system
> > Wed Nov 22 15:25:09 MST 2000:<I> <WebLogicServer> Server shutdown
> > commencing \
> > NOW
> > Wed Nov 22 15:25:09 MST 2000:<A> <SSLListenThread> ListenThread.run()
> > failed:\
> >
> > java.lang.ThreadDeath
> >
> > Wed Nov 22 15:25:09 MST 2000:<!> <SSLListenThread> **** The WebLogic
> > Server i\
> > s no longer listening for connections.
> > Wed Nov 22 15:25:09 MST 2000:<!> <SSLListenThread> **** You should
> > probably r\
> > estart it.
> > Wed Nov 22 15:25:09 MST 2000:<I> <WebLogicServer> Server shutdown by
> > system
> > java.lang.NoClassDefFoundError: weblogic/utils/StackTraceUtils
> > at
> > weblogic.logging.TextStreamLogger.log(TextStreamLogger.java:77)
> > at weblogic.logging.LogManager.log(Compiled Code)
> > at weblogic.logging.LogOutputStream.alert(Compiled Code)
> > at weblogic.t3.srvr.ListenThread.run(Compiled Code)
> > hints are: [Ljava.lang.String;@1646d1e
> > hints are: [Ljava.lang.String;@ef3ad1
> > hints are: [Ljava.lang.String;@a43826
> > ....
-
Error:Class java.util.date not found
i have installed 9iAS on my computer.And i want to develop program on JSP.i tried the url below
http://eyuksel/servlet/IsItWorking
and i got "it is working" message.when i try to execute my first jsp file i get the error:
Errors compiling:d:\ias\apache\apache\htdocs\_pages\\_first.java
d:\ias\apache\apache\htdocs\_pages\_first.java:55: Class java.util.date not found.
out.print( new java.util.date() );
^
1 error
what must i do or how can i install the java classes.
kind regards...
nullThank you very much.It worked:)
Java is case-sensitive.
try
java.util.Date
instead of
java.util.date
null -
When compiling I get msg: Class java.io.* not found in import.
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.IOException;
public class CheckNumber {
//program that checks the input buffer has valid integer value
public static void main(String[] args) {
String inLine = null;
int checkInteger = 0;
try {
BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in) );
System.out.print("Enter a valid Integer and hit <ENTER>: ");
inLine = inStream.readLine();
checkInteger = Integer.parseInt(inLine);
} catch (NumberFormatException nfe) {
System.out.println("You did not enter a valid Integer: " + nfe);
return;
} catch (IOException e) {
System.out.println("IOException: " + e);
return;
System.out.println("You entered a valid Integer: " + checkInteger);
Compiling produced the following output:
C:\jdk\work1>javac CheckNumber.java
CheckNumber.java:1: Class java.io.InputStreamReader not found in import.
import java.io.InputStreamReader;
^
CheckNumber.java:2: Class java.io.BufferedReader not found in import.
import java.io.BufferedReader;
^
CheckNumber.java:12: Class java.io.BufferedReader not found in type declaration.
BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in) );
^
CheckNumber.java:12: Class java.io.InputStreamReader not found in new.
BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in) );
^
CheckNumber.java:15: Class java.io.BufferedReader not found in void main(java.lang.String[]).
inLine = inStream.readLine();
^
CheckNumber.java:21: Exception java.io.IOException is never thrown in the body of the corresponding try statement.
} catch (IOException e) {
^
6 errorsI recently did a standard installation of jdk 1.5.
This is the first time I am trying import.
I set the path:
set path=c:\jdk\bin
Hmm...
C:\jdk\bin>java -version
java version "1.5.0_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
Java HotSpot(TM) Client VM (build 1.5.0_15-b04, mixed mode, sharing)
C:\jdk\bin>javac -J-version
'javac' is not recognized as an internal or external command,
operable program or batch file.
There's no javac.exe file.
I have javaw.exe and java.exe. -
Class javax.rmi.PortableRemoteObject not found in import
I have successfully tested test1.jsp calling stateful ejb test1ejb under JDEV9032. On deploying to standalone OC4J903, the following error occurred on accessing the jsp:
500 Internal Server Error
OracleJSP: oracle.jsp.provider.JspCompileException:
Errors compiling:D:\O9IAS\j2ee\home\application-deployments\test\testWEB\persistence\_pages\\_test1.java
Line # Error 10
Class javax.rmi.PortableRemoteObject not found in import. import javax.rmi.PortableRemoteObject;
Appreciate some pointers on how to troubleshoot this problem. Thanks. William Chew.This error is due to the c:\windows\system32\java.exe being first on the path instead of the d:\jdev9i\jdk\bin\java.exe being picked up.
-
Class javax.crypto.SecretKey not found in import.
While compilation i am getting this error.
Class javax.crypto.SecretKey not found in import.
I am not able to figure it out . Please help me for that.
Is it related to some classpath setting.This error is due to the c:\windows\system32\java.exe being first on the path instead of the d:\jdev9i\jdk\bin\java.exe being picked up.
-
Hi,
Im getting: MyApplet.java:2: Class netscape.javascript.JSObject not found in import.
import netscape.javascript.JSObject;
Where can i get this package. Someone said jaws.jar, but its not to be found. Im new on this project and I dont know how the old people compiled this applet.
JDK version is:
Solaris VM (build Solaris_JDK_1.2.2_10, native threads, sunwjit)
ThanksThanks man!
I installed the jdk1.4 on my workstation. I then compiled the program via JDeveloper and pumped the class over to my server.
Thanks again. -
Class oracle.sql.OPAQUE not found in class oracle.xdb.XMLType
I have the following code written in java in a unix box and this is the error I get when compiling the code. I am not able to find which specific jar or class file I need, Kindly help.
XMLHelper.java:0: Class oracle.sql.OPAQUE not found in class oracle.xdb.XMLType.
^
1 error
OracleResultSet orst = .... some code to get data
orst.next();
//either of the following 2 lines give the same error
//XMLType dXml = XMLType.createXML(orst.getOPAQUE(1)) ;
XMLType dXml = (XMLType)orst.getObject(i);
xmlDoc = dXml.getDOM();
Please helpHello,
from the little information in your post i would say try to import oracle.sql.*, oracle.jdbc.* and oracle.xdb.*. Make sure your project can access the following libraries ojdbc14.jar and xdb.jar.
Regards, Marc -
CIM.bat giving error that weblogic lib path not found
I am using atg 9.1 and weblogic 10.3.2. Installed both s/w and started weblogic server. I am using cim.bat to configure and I am stuck at a point where it asks for the app server I am using and I selected 'Weblogic' and when it asked for the path..I gave the correct path where weblogic is installed...but it says Weblogic lib path not found...even though I can see the server/lib directory...could you please help ?
Yes, I did that...my weblogic is installed in c:\Oracle\Middleware\wlserver_10.3.2 and CIM gives a message that [c:/Oracle/Middleware/wlserver_10.3.2/server/lib] weblogic lib path not found
Also I see c:\Oracle\Middleware\wlserver_10.3.2\server\lib directory and all the required weblogic files available in that directory. -
Error code "A valid key code to use the Business View Manager is not found"
Hello.
I am trying to resolve this message in the Business View Manager. The message of " A valid key code to use the Business View Manager is not found" appears when accessing a folder in the Repositiry Explorer. I have admin rights for View, Edit and Set Security.
What am I doing wrong?Try running this query in the CMS Query Builder tool:
Select * from CI_SystemObjects where si_id = 4
When the query returns, look for the attribute "SI_CAN_USE_METADATA" and see if its set to false. Or see if something else in there is set to false that looks more suitable. Your keycode might have the BusinessView manager locked out. The error sounds more like a keycode restriction than a permissions issue with security. -
Class oracle.disco.DiscoApplet not found ?????
Hi,
I'm unable to open disco plus 10.1.2.2 today and it was working fine for me till yesterday.
what i getting in console i pasted below.
Any suggestions ????
Java Plug-in 1.6.0_01
Using JRE version 1.6.0_01 Java HotSpot(TM) Client VM
load: class oracle.disco.DiscoApplet not found.
java.lang.ClassNotFoundException: oracle.disco.DiscoApplet
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 moreHi,
This looks more to me like it was an applet conflict with the newer 10.1.2.2 jar files and the older applet that was cached.
I say this because I have used the 1.6 plugin without issue (not that it is officially certified :-) ) with versions 10.1.2.0.2 and 10.1.2.2 and I have seen that conflict before when applying patches that udpate the Discoverer Plus applet jar files.
If you have this occur again, try to clear your JRE cache (start >> control panel >> java) and then reconnect, it will force the download of the new udpated applet. Likely why it started working when you deninstalled and reinstalled. Not sure if that would be considered a Discoverer bug/issue or a JRE issue when a new applet doesn't overwrite the old one.
Hope that helps,
Steve. -
I am using c# wmi calls to connect to connect to ISCSI LUN through ISCSI initiator. I am using windows server 2012 r2. From server manager I am able to connect through ISCSI initiator. From GUI every thing is working fine. I am able to list ISCSISessions
through ISCSISession.GetInstances() in c# code. WmiExplorer is also showing that connect method is there. Generated class contains the connect() method.
System.Management.ManagementException was unhandled by user code
HResult=-2146233087
Message=Not found
Source=System.Management
StackTrace:
at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
at System.Management.ManagementObject.Initialize(Boolean getObject)
at System.Management.ManagementObject.get_ClassPath()
at System.Management.ManagementObject.GetMethodParameters(String methodName, ManagementBaseObject& inParameters, IWbemClassObjectFreeThreaded& inParametersClass, IWbemClassObjectFreeThreaded& outParametersClass)
at System.Management.ManagementObject.GetMethodParameters(String methodName)
at ROOT.MICROSOFT.WINDOWS.STORAGE.ISCSITarget.Connect(String AuthenticationType, String ChapSecret, String ChapUsername, String InitiatorInstanceName, String InitiatorPortalAddress, Boolean IsDataDigest, Boolean IsHeaderDigest,
Boolean IsMultipathEnabled, Boolean IsPersistent, String NodeAddress, Boolean ReportToPnP, String TargetPortalAddress, UInt16 TargetPortalPortNumber, ManagementBaseObject& CreatediSCSISession) at ROOT.Microsoft.Windows.Storage.MSFT_iSCSITarget.cs:line
402Hi,
The issue is related to C# language, I suggest you ask for help from MSDN forum for better and accurate answer to the question.
http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral
Regards,
Mandy
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Spring + weblogic. NamedQuery not found
I've posted this at the [Spring forum|http://forum.springframework.org/showthread.php?t=67389] as well(, just wanted to try here too...
We're new to about all of the technology we're working with, and we're having a hard time to get it all right. Please bear with us...
We are developing a web application in JDeveloper 11g, using the integrated WebLogic Server and trying to configure Spring correctly. We don't have any experience with Spring, so we're just looking at examples and trying to figure it out. When running the application on the server, it seems that we get a connection to the database, but there are no Spring instances visible in the console...and when loading a jsf page, we get this error:
12.feb.2009 10:51:16 oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
WARNING: ADFc: Det oppstod et uventet unntak: javax.ejb.EJBException, mld=EJB Exception: : java.lang.IllegalArgumentException: NamedQuery of name: CseAnalysis.findAll not found.
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getDatabaseQuery(EJBQueryImpl.java:454)
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.setAsSQLReadQuery(EJBQueryImpl.java:117)
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getResultList(EJBQueryImpl.java:503)
at no.csam.plexus.configmanager.lab.dao.LabDAOImpl.queryCseAnalysisFindAll(LabDAOImpl.java:166)
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:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy110.queryCseAnalysisFindAll(Unknown Source)
at no.csam.plexus.configmanager.lab.service.LabEJBBean.queryCseAnalysisFindAll(LabEJBBean.java:111)
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:597)
Here are some snippets of code:
EntityBean:
@Entity
@NamedQueries({
@NamedQuery(name = "CseAnalysis.findAll", query = "select o from CseAnalysis o")
@Table(name = "CSE_ANALYSIS")
@IdClass(CseAnalysisPK.class)
public class CseAnalysis implements Serializable {
DAO:
@Transactional
@Repository
public class LabDAOImpl implements LabDAO{
@PersistenceContext
private EntityManager em;
/** <code>select o from CseLabAnalysis o</code> */
public List<CseLabAnalysis> queryCseLabAnalysisFindAll() {
return em.createNamedQuery("CseLabAnalysis.findAll").getResultList();
SessionBean:
@Stateless(name = "LabEJB", mappedName = "LabEJBBean")
@PersistenceContext(name="CM_Service/EntityManager",unitName="CM_Service")
@Remote
@Local
public class LabEJBBean extends AbstractStatelessSessionBean implements LabEJB, LabEJBLocal {
private LabDAO labDAO;
public LabEJBBean(){}
protected void onEjbCreate() {
labDAO = (LabDAO)getBeanFactory().getBean("labDAO");
public List<CseLabAnalysis> queryCseLabAnalysisFindAll() {
return labDAO.queryCseLabAnalysisFindAll();
Spring config:
<jee:jndi-lookup id="entityManagerFactory"
jndi-name="java:comp/env/persistenceUnit"/>
<bean id="transactionManager"
class="org.springframework.transaction.jta.WebLogicJtaTransactionManager"/>
<bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/>
<bean id="LabEJB" class="no.csam.plexus.configmanager.lab.service.LabEJBBean">
<property name="labDAO" ref="labDAO"/>
</bean>
<bean id="labDAO" class="no.csam.plexus.configmanager.lab.dao.LabDAOImpl"></bean>
<tx:annotation-driven/>
persistence.xml:
<persistence-unit name="CM_Service" transaction-type="JTA">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<jta-data-source>jdbc/ODSDS</jta-data-source>
<properties>
<property name="eclipselink.logging.level" value="FINE"/>
<property name="javax.persistence.jtaDataSource"
value="jdbc/ODSDS"/>
<property name="eclipselink.target-server" value="WebLogic_10"/>
</properties>
</persistence-unit>
Any hints or guidance will be appriciated.
Thanks in advanceHi,
if you have no experience with Spring, how did you get your application developed ? Anyway, I suggest you try the WLS forum here on OTN since the server configuration is not in the domain of JDeveloper
WebLogic Server - General
Frank -
[SOLVED] network-manager-applet not found
Hi, I'm quite noob here, and I'm trying to install network-manager-applet with no luck;
So far I've done
# pacman -S network-manager-applet
and I got
resolving dependencies...
looking for inter-conflicts...
Targets (1): network-manager-applet-0.8-1
Total Download Size: 1.01 MB
Total Installed Size: 4.35 MB
Proceed with installation? [Y/n] y
:: Retrieving packages from extra...
error: failed retrieving file 'network-manager-applet-0.8-1-x86_64.pkg.tar.gz' from mi.mirror.garr.it : Not Found
error: failed retrieving file 'network-manager-applet-0.8-1-x86_64.pkg.tar.gz' from ftp.nluug.nl : Not Found
error: failed retrieving file 'network-manager-applet-0.8-1-x86_64.pkg.tar.gz' from ftp.hosteurope.de : Not Found
error: failed retrieving file 'network-manager-applet-0.8-1-x86_64.pkg.tar.gz' from ftp-stud.hs-esslingen.de : Not Found
error: failed retrieving file 'network-manager-applet-0.8-1-x86_64.pkg.tar.gz' from archlinux.puzzle.ch : Not Found
error: failed retrieving file 'network-manager-applet-0.8-1-x86_64.pkg.tar.gz' from ftp.surfnet.nl : Not Found
warning: failed to retrieve some files from extra
error: failed to commit transaction (Not Found)
Errors occurred, no packages were upgraded.
so I tried to download the package itself and install it with
pacman -U network-manager-applet-0.8-2-x86_64.pkg.tar.xz
and the answer was
loading package data...
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: network-manager-applet: requires mobile-broadband-provider-info
what to do?
i cannot find in the repos the package mobile-broadband-provider-info
thank you in advance
Last edited by lsk (2010-03-10 10:15:21)Update your system - "pacman -Syu". The clue is that the file you manually downloaded is different to the one pacman is trying to get.
-
SQL Server 2012 Reporting Services, Report Manager - Page not found
Hi all,
I am working on migrating reports to a new server so we can upgrade to a new machine and to SQL Server 2012 SP2. The machine is up and running on Windows Server 2012 and I have installed SQL Server EE 2012 SP2. I have imported the three databases
from 2008R2
* Report Server
* ReportServer TempDB
* RSSubscribers
I have re-applied the encryption keys and I was thinking that everything was good to go until I went to try and manage the subscriptions on a report. I select a report, use the drop arrow to get to manage
and then try to select any of the options such as subscriptions and I get a "Page Not Found Error"
If I take the URL and paste it in another browser, putting the previous server name in, it works fine. So, the URL works fine... I have no idea as to what I should do to figure out the problem. I am considering rebuilding the whole install
just to see if that would fix it.
ThanksHi SqlDude,
According to your description, you have bind SSL to a Reporting Services URL Reservation. Now you find in your Report Manager, the Subscription page still start with "http://". Right?
In this scenario, we need to change setting in rsreportserver.config file. Go to rsreportserver.config in "\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer". Find <Add Key="SecureConnectionLevel" Value="0"/>.
Change the value into "3".
Acceptable values are:
3 Most secure—Use SSL for absolutely everything.
2 Secure—Use SSL for rendering and methods that pass credentials but don't insist on it for all SOAP calls.
1 Basic Security—Accepts http but rejects any calls that might be involved in the passing of credentials.
0 Least Secure—Don't use SSL at all.
Besides, if you want to submit a feedback to Microsoft, please feel free to submit
your situation on our product to the following link:
https://connect.microsoft.com/SQLServer/Feedback.
If you have any other questions, please feel free to ask.
Regards,
Katherine Xiong
Katherine Xiong
TechNet Community Support
Maybe you are looking for
-
Error while creating WBS element.. regarding source structure
I am creating a project and then a WBS element. Its a investment project. While creating WBS element XXX, it gives me error that "WBS element XXX: SOurce assignments for source structure A1 missing in Investment Profile ZZZZZ." What shall I check? wh
-
Photomerge fails to complete on CS5
Hey there! I have the latest version of Photoshop installed: Adobe Photoshop Version: 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch]) x64 OS: Mac OS 10.7.1 Intel CPU-Familie:6, Modell:42, Stepping:7mit MMX, SSE (ganze Zahl)
-
Purchase price variance program
Good after, Am quiet new in MM....I would t have a program that can interogate a price variance account, find an amount that exceeds a user inpu threshold amount, then send via email document details, PO details, amount to the buyer Regards, Gigi
-
How to extract cpio file ?
Hi all, We are trying to install application server and download file is .cpio file. How do we extract this file. I have tried the following command and its just hanging. cpio -i (Filename) cpio -idmv (file_name) cpio -idcmv (filename) cpio -Hhpodc -
-
hai to al. iam creating transaction screens . in that i want to create , change and display the screen . for that iam creating a screen . what are the function modules to save the data . can any body suggest the module pool tip