Possible for JRockit Mission Control to Monitor Multiple Web Applications
I have some questions regarding JRockit and Weblogic Server.
The JRockit Mission Control allows users to monitor JRockit JVMs.
If a JVM runs a Weblogic server instance which runs a couple of web aplications, is it possible to monitor individual web applications separately?
If it's possible, is there any kind soul who can guide me through the process in setting up.
Please assist. Many Thanks!
Thanks,
Benjamin
Hi,
You can use *"wlnav.war"* which is freely available on net. to monitor Servers along with some of the Application attributes like application state/ Session count/ ...etc
"wlnav.war" actually uses WebLogic MBeans to get the details of the Server and Applications...Same thing we can do using our own MBean JMX Codes as well... But still these JMX codes will not be able to tell exactly that which object belongs to which Application.
Thanks
Jay SenSharma
http://weblogic-wonders.com/weblogic/jmx_weblogic/ (WebLogic Wonders Are Here)
Similar Messages
-
ANNOUNCE: JRockit R27.1 and JRockit Mission Control 2.0 released!
New versions of JRockit and JRockit Mission Control are now available!
The following new products have been released:
- JRockit 1.4.2 R27.1
- JRockit 5.0 R27.1
- JRockit 6 R27.1 TECHNOLOGY PREVIEW
- JRockit Mission Control 2.0
JROCKIT R27.1
=============
The JRockit release is a major update from the previous version (R26.4) and includes a large set of enhancements including:
- A completely new version of JRockit Mission Control (see separate section below)
- Improved Monitoring and Diagnostics features
- Improved Supportability features
- Connect-on-Demand capability for JVMTI and JMX (JRockit 5.0 and 6)
- A new "Diagnostics Guide" with troubleshooting and performance tuning tips
- Full support for IPv6 on all platforms
- Expanded support for Solaris/SPARC
- Enhanced performance
The 1.4.2 and 5.0 versions of JRockit R27.1 are based on Sun 1.4.2_12 and 1.5.0_08 respectively, and contain all enhancements and fixes made to the Java class libraries from those Sun releases.
JRockit 6 R27.1 is a tech preview based on 1.6.0-rc-b97 from Sun. The public GA of JRockit 6 is expected to be in the first half of 2007, and will bring a larger set of performance enhancements. For feedback on this release, please use our user forums at forums.bea.com/bea/forum.jspa?forumID=2009.
The connect-on-demand capabilities in JRockit 5.0 and 6 are similar to those provided in Sun Java SE 6 and enable developers to connect to locally running JRockit processes without being forced to start JRockit with specific command line options. For JMX there is also an autodiscovery mechanism for remote connections which is very useful in development environments.
For Solaris/SPARC we have added a JRockit 1.4.2 version, which in internal measurements has shown to be very competetive to Sun's 1.4.2 implementation on Solaris/SPARC. Definitely worth checking out! (Note: WLS 8.1 does not officially support running on this JRockit version.)
On the performance side, there are enhancements for WLS applications (10-15%), memory-intensive applications (10-15%) and improved out-of-the-box performance (up to 25%), all based on internal measurements.
Release notes:
http://e-docs.bea.com/jrockit/releases/R27/relnotes/r27_notes.html
Docs home:
http://e-docs.bea.com/jrockit/webdocs/index.html
NEW! Diagnostics Guide:
http://e-docs.bea.com/jrockit/geninfo/diagnos/index.html
Download pages:
http://commerce.bea.com/products/weblogicjrockit/jrockit_prod_fam.jsp
JROCKIT MISSION CONTROL 2.0
===========================
Together with JRockit R27.1 we are releasing a completely new version of JRockit Mission Control. The separate tools in JMC 1.0 have been integrated into one single GUI based on Eclipse RCP, which means that any user of the Eclipse IDE should feel at home. All tools features from Mission Control 1.0 are of course still available, and we continue our drive towards exposing all data about your Java application that JRockit has access to. You will also find a large set of usability improvements, including:
- Drag-and-drop support
- Configurable views
- Online and (for the Runtime Analyzer) context-sensitive help
- Connect-on-demand to local JVMs and autodiscover remote JVMs
One particular area of interest is GC profiling, where much more detailed metrics are available, which can help drill down into the causes for long GC pause times and spikes.
Release notes:
http://edocs.bea.com/jrockit/tools/relnotestools/relnotestools2.html
There is no separate download for JRockit Mission Control, instead it is included in the JRockit R27.1 JDK downloads for Windows and Linux/x86. To start using the tools, install JRockit and select JRockit Mission Control from the Windows Start menu, or launch the $JROCKIT_HOME/bin/jrmc executable.
Documentation is bundled with the installation and available from the Help menu.
If you have any questions, comments or concerns, please visit our user forums at forums.bea.com/bea/forum.jspa?forumID=2009.
Happy holidays!
Henrik Stahl
Product ManagerHi,
I have tried and installed the version R27.1.0-109-73164-1.5.0_08-20061129-1415-linux-x86_64 on our 16GB RAM
with 4 dual-core Opteron processor.
JAVA_OPTS="-server -Xms800M -Xmx4000M -Djava.net.preferIPv4Stack=true -Xpausetarget=2500ms -Xverboselog:/var/log/javavm.log -Xverbose:gc,memory -Xverbosetimestamp -Xgcpause -Xgcreport -Xstrictfp -XXexitOnOutOfMemory -XXdumpFullState -XXstaticCompaction -XXcompactRatio:10 "
After 5 secs of jvm startup I receive the follwing trace (without any DUMP-file):
java.lang.OutOfMemoryError: class allocation JVM@check_alloc (src/jvm/model/classload/classalloc.c:1
22). 42216 bytes requested. Java heapsize=838860800, paged memory=0/0.
Probable cause: Too large java heap setting.
Try to reduce the Java heap size using -Xmx:<size> (e.g. "-Xmx128m")
at java/lang/Class.getDeclaredMethods0(Z)[Ljava/lang/reflect/Method;(Native Method)
at java/lang/Class.privateGetDeclaredMethods(Class.java:2395)
at java/lang/Class.getMethod0(Class.java:2642)
at java/lang/Class.getMethod(Class.java:1579)
at org/apache/xalan/processor/XSLTAttributeDef.setAttrValue(XSLTAttributeDef.java:1611)
at org/apache/xalan/processor/XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProces
sor.java:338)
at org/apache/xalan/processor/XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProces
sor.java:263)
at org/apache/xalan/processor/ProcessorTemplateElem.startElement(ProcessorTemplateElem.java:76)
at org/apache/xalan/processor/StylesheetHandler.startElement(StylesheetHandler.java:623)
at org/apache/xerces/parsers/AbstractSAXParser.startElement(Lorg/apache/xerces/xni/QName;Lorg/ap
ache/xerces/xni/XMLAttributes;Lorg/apache/xerces/xni/Augmentations;)V(Unknown Source)
at org/apache/xerces/impl/XMLNSDocumentScannerImpl.scanStartElement()Z(Unknown Source)
at org/apache/xerces/impl/XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Z)Z(
Unknown Source)
at org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.scanDocument(Z)Z(Unknown Source)
at org/apache/xerces/parsers/XML11Configuration.parse(Z)Z(Unknown Source)
at org/apache/xerces/parsers/XML11Configuration.parse(Lorg/apache/xerces/xni/parser/XMLInputSour
ce;)V(Unknown Source)
at org/apache/xerces/parsers/XMLParser.parse(Lorg/apache/xerces/xni/parser/XMLInputSource;)V(Unk
nown Source)
at org/apache/xerces/parsers/AbstractSAXParser.parse(Lorg/xml/sax/InputSource;)V(Unknown Source)
at org/apache/xerces/jaxp/SAXParserImpl$JAXPSAXParser.parse(Lorg/xml/sax/InputSource;)V(Unknown
Source)
at org/apache/xalan/processor/TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:92
0)
at org/jboss/deployment/XSLSubDeployer.createService(XSLSubDeployer.java:141)
at org/jboss/system/ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
at org/jboss/system/ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
at sun/reflect/GeneratedMethodAccessor2.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/
Object;(Unknown Source)
at sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java/lang/reflect/Method.invoke(Method.java:585)
at org/jboss/mx/interceptor/ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org/jboss/mx/server/Invocation.dispatch(Invocation.java:94)
at org/jboss/mx/server/Invocation.invoke(Invocation.java:86)
at org/jboss/mx/server/AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org/jboss/mx/server/MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org/jboss/system/ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.create()V(Unknown Source)
at org/jboss/system/ServiceController.create(ServiceController.java:330)
at org/jboss/system/ServiceController.create(ServiceController.java:273)
at sun/reflect/GeneratedMethodAccessor4.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/
Object;(Unknown Source)
at sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java/lang/reflect/Method.invoke(Method.java:585)
at org/jboss/mx/interceptor/ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org/jboss/mx/server/Invocation.dispatch(Invocation.java:94)
at org/jboss/mx/server/Invocation.invoke(Invocation.java:86)
at org/jboss/mx/server/AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org/jboss/mx/server/MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org/jboss/mx/util/MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.create(Ljavax/management/ObjectName;)V(Unknown Source)
at org/jboss/deployment/SARDeployer.create(SARDeployer.java:258)
at org/jboss/deployment/MainDeployer.create(MainDeployer.java:953)
at org/jboss/deployment/MainDeployer.deploy(MainDeployer.java:807)
at org/jboss/deployment/MainDeployer.deploy(MainDeployer.java:771)
at jrockit/vm/RNI.c2java(JJJJ)V(Native Method)
at jrockit/vm/Reflect.invokeMethod(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava
/lang/Object;(Native Method)
at sun/reflect/NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Lja
va/lang/Object;)Ljava/lang/Object;(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 org/jboss/mx/interceptor/ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org/jboss/mx/server/Invocation.dispatch(Invocation.java:94)
at org/jboss/mx/interceptor/AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org/jboss/mx/server/Invocation.invoke(Invocation.java:88)
at org/jboss/mx/interceptor/ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor
.java:142)
at org/jboss/mx/server/Invocation.invoke(Invocation.java:88)
at org/jboss/mx/server/AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org/jboss/mx/server/MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org/jboss/mx/util/MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy8.deploy(Ljava/net/URL;)V(Unknown Source)
at org/jboss/deployment/scanner/URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org/jboss/deployment/scanner/URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org/jboss/deployment/scanner/AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymen
tScanner.java:263)
at org/jboss/deployment/scanner/AbstractDeploymentScanner.startService(AbstractDeploymentScanner
.java:336)
at org/jboss/system/ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org/jboss/system/ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun/reflect/GeneratedMethodAccessor2.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/
Object;(Unknown Source)
at sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java/lang/reflect/Method.invoke(Method.java:585)
at org/jboss/mx/interceptor/ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org/jboss/mx/server/Invocation.dispatch(Invocation.java:94)
at org/jboss/mx/server/Invocation.invoke(Invocation.java:86)
at org/jboss/mx/server/AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org/jboss/mx/server/MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org/jboss/system/ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start()V(Unknown Source)
at org/jboss/system/ServiceController.start(ServiceController.java:417)
at sun/reflect/GeneratedMethodAccessor9.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/
Object;(Unknown Source)
at sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java/lang/reflect/Method.invoke(Method.java:585)
at org/jboss/mx/interceptor/ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org/jboss/mx/server/Invocation.dispatch(Invocation.java:94)
at org/jboss/mx/server/Invocation.invoke(Invocation.java:86)
at org/jboss/mx/server/AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org/jboss/mx/server/MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org/jboss/mx/util/MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Ljavax/management/ObjectName;)V(Unknown Source)
at org/jboss/deployment/SARDeployer.start(SARDeployer.java:302)
at org/jboss/deployment/MainDeployer.start(MainDeployer.java:1007)
at org/jboss/deployment/MainDeployer.deploy(MainDeployer.java:808)
at org/jboss/deployment/MainDeployer.deploy(MainDeployer.java:771)
at org/jboss/deployment/MainDeployer.deploy(MainDeployer.java:755)
at jrockit/vm/RNI.c2java(JJJJ)V(Native Method)
at jrockit/vm/Reflect.invokeMethod(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava
/lang/Object;(Native Method)
at sun/reflect/NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Lja
va/lang/Object;)Ljava/lang/Object;(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 org/jboss/mx/interceptor/ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org/jboss/mx/server/Invocation.dispatch(Invocation.java:94)
at org/jboss/mx/interceptor/AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org/jboss/mx/server/Invocation.invoke(Invocation.java:88)
at org/jboss/mx/interceptor/ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor
.java:142)
at org/jboss/mx/server/Invocation.invoke(Invocation.java:88)
at org/jboss/mx/server/AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org/jboss/mx/server/MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org/jboss/mx/util/MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Ljava/lang/String;)V(Unknown Source)
at org/jboss/system/server/ServerImpl.doStart(ServerImpl.java:482)
at org/jboss/system/server/ServerImpl.start(ServerImpl.java:362)
at org/jboss/Main.boot(Main.java:200)
at org/jboss/Main$1.run(Main.java:464)
at java/lang/Thread.run(Thread.java:595)
at jrockit/vm/RNI.c2java(JJJJ)V(Native Method)
-- end of trace
JRockit aborted: Out of memory (68)
Failed to acquire native memory. Try reducing Java heap size using -Xmx:<size> (i.e "-Xmx16m")
If I change the -Xmx parameter from -Xmx4000M to -Xmx3000M
than it didn't work, but
if I change the -Xmx parameter from -Xmx4000M to -Xmx2900M
than it works.
(The hint to change -Xmx to -Xmx16m is great on a 16GB RAM machine,.. :-) )
Any ideas?
How can I use 4GB java-heap ?
Greetings Martin -
Jrockit Mission Control for Sun JDK 1.5??
Hi,
Can JRockit Mission Control monitor non Jrockit JVM app?
Is it possible to monitor sun jdk app using Jrockit mission control?
If it is yes, How can I go it?
If there is document for it, that will be great.
Thanks.To connect to a Sun JDK 1.5, you will have to start your java application with jmxremote flags:
-Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=<port> -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
(http://download.oracle.com/javase/1.5.0/docs/guide/management/agent.html)
Then you create a new connection in the Mission Control JVM Browser, to localhost and <port>, and connect to it with Console.
You will have reconfigure the graphs and dials to use other MBeans, for instance java.lang.Memory instead, and some features (Method profiler etc) won't work at all.
I'm not aware of any specific documentation for this.
Klara, Mission Control QA -
Is is possible to run JRockit Mission Control as Jdeveloper plugin
Hi All
Is is possible to run JRockit Mission Control as Jdeveloper plugin
Thanks
AnbuThanks Klara,
Coulld you please tell me how can i use JRokit mission controll to find Memory leak in my web application running in weblogic on a remote machine.
Thanks
Anbu -
How to associate Jrockit Mission Control tool to Web logic server
Hi,
Could you please clarify me the following doubt
I have installed JRockit Mission Control tool in my local machine. I just want to know how can I associate Jrockit Mission Control tool to my applicatiion server (its weblogic) . So that the tool will analyze the CUP time, Memory the application is consuming etc..
Your timely reply is appreciated.
Thanks,
Gopi.Hi,
This is very easy to run Mission Control to analyze WebLogic JVMs runtime Informations...First of all enable -Xmanagement flag in the JAVA_OPTIONS of your Servers startScript. And then Mission control is ready to use...Just start Mission Control and follow the like: http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/tools/relnotestools/relnotestools3.html
for more information on -Xmanagement please refer to : http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/jrdocs/refman/optionX.html#wp1030433
Thanks
Jay SenSharma
http://jaysensharma.wordpress.com(WebLogic Wonders Are Here) -
Is there any way to switch between the following mission control preference "group windows by application" on the fly? I would like to turn this feature on and off quickly. OR have both readily available?
If osx 10.9 does not support this, does any one know if automater can be used to creat a short cut to turn this preferance on and off?
Current solution (not much of a solution)
I currently added the preferance control icon for mission control on my dock.4u2nv247 wrote:
Current solution (not much of a solution)
I currently added the preferance control icon for mission control on my dock.
Do you mean the general System Preferences icon? ...If so, it's possible to put the icon specifically for the Mission Control pane in the Dock:
I'm on Mountain Lion and that Preference Pane is in: Macintosh HD > System (not Users) > Library > PreferencePanes > Expose.prefPane
...Drag that Expose.prefPane to the right-hand side of the Dock, say, next to the Trash. Then you can simply click on the resulting Expose Prefs icon in the Dock to open its Prefs panel. -
Multiple Web Applications WLS 7.0
Hi,
I am trying to configure multiple web applications on the same WL 7.0 server and
am having trouble doing the following.
I would like to be able to use the following URLS:
Application #1:
http://myserver/st/aems - where st/aems maps to the path X:\SimpleTrade2\AEMS\ui\source\htdocs
Application #2:
http://myserver/st/acms - where st/aems maps to the path X:\SimpleTrade2\ACMS\ui\source\htdocs
Root - Default web application - This would be left empty with the idea that our
company could sell our web applications and we would deploy them on someone elses
WLS and we would not conflict in any way.
The problem with the above is that when I look at the DTD and try and configure
config.xml in the following way:
<Application Deployed="true" Name="AEMS"
Path="X:\SimpleTrade2\AEMS\ui\source\htdocs" TwoPhase="true">
<WebAppComponent DeploymentOrder="2000" Name="aems"
Targets="simpletradeserver" URI="st/aems"/>
WLS blows up on startup because it tries to POST-Pend the URI to the path... If
I change it to:
<Application Deployed="true" Name="AEMS"
Path="X:\SimpleTrade2\AEMS\ui\source" TwoPhase="true">
<WebAppComponent DeploymentOrder="2000" Name="aems"
Targets="simpletradeserver" URI="htdocs"/>
This will work but then my URL is not what I want it becomes http://myserver/htdocs
Is there anyway around this or a way to get what I want?
Another piece of information, I am developing in Exploded directory format when
we deploy it will be as an ear.
Thanks in advance for any ideas!!!
-Jerry RodgersThanks for the info Christian.
I thought I would pass along a bit more inforation for others who might be trying
to do something similar. In case they run across this message.
I did determine that if you are using a .WAR file the name attribute of the xml
node WebAppComponent will allow you to create a different context path than the
URI. I did not test to see if it allowed you to use a name like "st/aems" I am
sure "st.aems" would work or any name that may be different than the URI. The
weird thinhg is that when using the EXPLODED DIRECTORY format the URI is the name
of the folder under the path and the name property appears to be ignored no matter
what you change it to you can only get to your web app using the URI.
Hope this helps someone who comes after me and is looking for the same thing,
maybe they won't spend 6 hours on it like I did ;>
-Jerry
"Christian Plenagl" <[email protected]> wrote:
>
Hi,
this is not possible.
The URI field contains the directory name of the WebApplication, which
normally
is the same name as the directory where you put the webapplication in.
Christian Plenagl
Developer Relations Engineer
BEA Support
"Jerry Rodgers" <[email protected]> wrote:
Hi,
I am trying to configure multiple web applications on the same WL 7.0
server and
am having trouble doing the following.
I would like to be able to use the following URLS:
Application #1:
http://myserver/st/aems - where st/aems maps to the path X:\SimpleTrade2\AEMS\ui\source\htdocs
Application #2:
http://myserver/st/acms - where st/aems maps to the path X:\SimpleTrade2\ACMS\ui\source\htdocs
Root - Default web application - This would be left empty with the idea
that our
company could sell our web applications and we would deploy them onsomeone
elses
WLS and we would not conflict in any way.
The problem with the above is that when I look at the DTD and try and
configure
config.xml in the following way:
<Application Deployed="true" Name="AEMS"
Path="X:\SimpleTrade2\AEMS\ui\source\htdocs" TwoPhase="true">
<WebAppComponent DeploymentOrder="2000" Name="aems"
Targets="simpletradeserver" URI="st/aems"/>
WLS blows up on startup because it tries to POST-Pend the URI to the
path... If
I change it to:
<Application Deployed="true" Name="AEMS"
Path="X:\SimpleTrade2\AEMS\ui\source" TwoPhase="true">
<WebAppComponent DeploymentOrder="2000" Name="aems"
Targets="simpletradeserver" URI="htdocs"/>
This will work but then my URL is not what I want it becomes http://myserver/htdocs
Is there anyway around this or a way to get what I want?
Another piece of information, I am developing in Exploded directoryformat
when
we deploy it will be as an ear.
Thanks in advance for any ideas!!!
-Jerry Rodgers -
Pros & Cons of having multiple web applications under one EAR project
Could anybody let me know what are the advantages and disadvantages of having multiple web applications under one single EAR project?
Either this is homework, in which case, do it yourself, or you already think you have some pros for doing this. Share with us
-
Authentication Across Multiple Web Applications (Revisited)
Its been an ongoing battle, but I've made some insight into this situation. The problem stands as it seems impossible to authenticate against one web application deployed as a WAR archive and have that authentication carry across to another web application with the same security constraints. I've been told by BEA that, quote:
"It seems to me that we are violating section 11.6 of the servlet 2.2 spec which talks about webapps"
I've also been told that this is fixed in WLS 6.0, reference issue #38732.
For those of us building production environments using 5.1 instead of 6.0 XML based configuration, this does NOT solve our problem.
I've dug further into the bowels of 5.1 and found that if you manually set the realm name in the login-config of the security constraint in the web.xml file in each WAR deployment as such:
<login-config>
<auth-method> [whichever method] </auth-method>
<realm-name>WebLogic Server</realm-name>
</login-config>
Authentication will carry across web applications. However, I've noted that the session management then becomes unpredictable. For example:
I log into the application TESTAPP1 which contains a protected servlet that outputs the session ID and attempts to get the authenticated principal name from the "_wl_authuser_" session variable. Upon first load of the page (after the login dialog box), the session is null [can be fixed with .getSession(true) call instead] and the "_wl_authuser_" object does not exist. Reload the page and the session appears as well as the "_wl_authuser_" object. Strange.
I then move to TESTAPP2, which does not prompt me for authentication but also is missing the session in the same manner. Upon browser reload, the session is created with a different ID and the "_wl_authuser_" object is now available with the appropriate principal name.
Upon moving back to TESTAPP1, I am not prompted for authentication however, I am assigned yet another session ID after browser reload, different from the first.
So it seems that although authentication is carried across web applications, the session IDs as you move from TESTAPP1 to TESTAPP2 change, and then change again but not back to the original when going back to TESTAPP1.
This is a particular problem since we are using Vignette's V5 as our main client and tracking sessions through V5 - this would quickly become unmanageable if a single page view access three or four different application components with three or four different session ids.
I'm wondering if we can expect the same behavior from WLS 6.0?
Ideally, I'd like to see WebLogic use a single session ID to track users across multiple web applications but still have session independence between applications. So if I store something in session in TESTAPP1, its not available in TESTAPP2. Does this outline the behaviour in WLS 6.0? Can anyone verify this?
Some food for thought. Thanks!
./Chris
Senior Systems Anaylst
MassMutual Financial Group
Hello! I am searching an answer to this question too!!!
Did you get some news regarding this item?
Regards,
C.M. -
Mission Control Dual Monitors moving windows between desktops
So far I like the new Mission Control however I am having what I beleive to be an issue.
I have a dual monitor setup and multiple Desktops configured. If I want to move a window from Primary Monitor Desktop 1 to Primary Monitor Desktop 2 it works but if I want to move a window from Primary Monitor Desktop 1 to Secondary Monitor Desktop 2 it will not let me. I have to do the move in two steps. First I have to move it to Primary Monitor Desktop 2 and then from there I can move it to Secondary Monitor Desktop 2 ?
Please can someone verify this ? Is this a limitation or a bug ?Hehe, Linux+Compiz rulezzz. You can tweak it the way YOU need and not Apple think you should do 'cause they "just knows better what market needs"
My ideal setup on Linux workstation was: 2 Graphics Cards, 4 Monitors, 2 of them fixed, so I could put there applications and windows which should be permanently seen, for example -- Zenoss monitoring dashboard (screen 1) and stocks tickers (screen 2)
Screen 3 and 4 respectively were part of the Compiz Cube with Xinerama activated, e.g. one extra wide desktop across 2 monitors, seen as semi-transparent Cube during transitions between 4 virtual destops, so I could almost immediately see where all my windows are.
And now, Apple, could you tell me, If I've got Mac Pro with 2 Graphics Cards and 4 Monitors, is such a setup feasible with Mission Control?... OK, ok, you don't have such an eycandy as Transparent Compiz Cube, I could survive without, but having simultaneously 2 monitors as part of virtual desktop and 2 others fixed is absolut 'a must have', so, now's your turn... HOW? -
Stop Mission Control from re-arranging my applications
I am using a MacBook Air late 2013, (Mavericks 10.9) with 2 external screens.
I use Mission Control a lot and the OS is constantly re-arranging my opened apps based on most recent use.
I unchecked that option in the settings already, but it still doing it
Are there any other settings I need to take care of?
ThanksThere's a System Preference in Mission Control for that:
System Preferences > Mission Control > (uncheck) Automatically rearrange Spaces based on most recent use -
Storing SessionManager or Server for multiple web applications
We currently have one enterprise application with 2 web applications installed. These 2 web applications must share the same session cache.
Toplink is installed as a shared library for both of these web applications.
What I am wondering is how Server and SessionManager should be utilized.
In our servlet initialization of web application one we get an instance of the SessionManager and assign the SessionManager to a static instance variable.
static SessionManager sessionManager;
sessionManager = SessionManager.getManager();
Now whenever we want to get a client session from either web application we make the call
Server serverSession = (Server) sessionManager.getSession("XXX");
From looking at the code for the sessionManager.getSession("XXX") I see that this
results in a synchronized method invocation which is in turn bottlenecking our database access code.
My question is should we not just be storing the Server in a static instance variable to distribute client sessions to both web applications and not the SessionManager.Hi,
One SSA is ok, but you should think about access rights. If the access is clear cut between all the web apps you should be ok with one SSA. Multiple result sources limiting on content source also works, but could easily be bypassed.
Multiple SSA's will eat up RAM/CPU like a mother :)
As for popular etc.. it could be due to how those sources are set up, but haven't investigated or tested this much.
Thanks,
Mikael
Search Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
http://techmikael.blogspot.com/
Author of Working with FAST Search Server 2010 for SharePoint -
One Search service application for multiple web applications in a single server
We are planning to host 17 Web applications in a single Server. Do I need to create search service application for each web application or I need to create one Search service application , create a Content source for each web
application and create a Result source for filtering. Which is the best approach. And which approach takes more RAM memory.
In my application I am using Search web part, "Recently Changed Items", "Popular Items" web parts. when I created only one one Search Service application for all web applications and using Result sources ,
I am not getting the results. What could be the problem.Hi,
One SSA is ok, but you should think about access rights. If the access is clear cut between all the web apps you should be ok with one SSA. Multiple result sources limiting on content source also works, but could easily be bypassed.
Multiple SSA's will eat up RAM/CPU like a mother :)
As for popular etc.. it could be due to how those sources are set up, but haven't investigated or tested this much.
Thanks,
Mikael
Search Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
http://techmikael.blogspot.com/
Author of Working with FAST Search Server 2010 for SharePoint -
Crystal Reports Viewer Control - Visual Studio 2008 WEB Application
My question is this: Has ANYONE on this planet been able to get the ASP .NET CR Viewer control to actually work?
Why does this editor NOT recognize End-of-line or CR characters or any whitespace??
I have developed a Crystal Reports "Viewer" web application in VS2008 using C#.
It's a simple app, in that it's a single page with a treeview control (containing the grouped names of the reports to which the user has access) and the CR Viewer control.
The report files live on a network share, and permissions to them is controlled via a SQL Server database, which, for each report, stores the UserID and Logion for the oracle database, as well as any required parameter values.
The reports themselves are all hititng an Oracle 10g database.
I managed to do this in a Windows desktop applcation using Visual Studio 2005 and VB .net, but now, upon trying to make this a web application in VS2008, I have completely failed. The application works when run locally, but when deployed to the web server, I experience database login prompts when I should not, (the dreaded "Report requires further information" message) even thought the setdatabaselogin has already been set. I have tried saving the reportdocument in viewstate and re-assigning the viewer Datasource property to it, that also fails. However, it only does it on some reports, and not others. (admittedly, the reports may have been created using different CR versions)
The viewer also displays data it should not be displaying when I attempt to scroll, when I do manage to get a report to run.
I am setting parameters dynamically at run time, whose values are stored in the SQL database.
Code Sample:
protected void ShowReport(int ReportID)
SQLDataPortal2005.Common sql = new SQLDataPortal2005.Common();
Hashtable outParms = new Hashtable();
string sAccess;
IDataReader dr;
CrystalDecisions.CrystalReports.Engine.ReportDocument rptDocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
System.Security.Principal.WindowsPrincipal p = System.Threading.Thread.CurrentPrincipal as System.Security.Principal.WindowsPrincipal;
sAccess = p.Identity.Name;
int j = 0;
int i = -1;
if (!IsAdmin())
sql.ExecNonQuery("CrystalReports", outParms, "proc_CRM_Check_Permissions", sAccess, Convert.ToInt32(TreeView1.SelectedNode.Value));
if (outParms["@Allow"].ToString() != "True")
Response.Redirect("ErrorPage.aspx"); // redirect to error page
string sPath = System.Configuration.ConfigurationManager.AppSettings["WareHouse"].ToString();
sPath = sPath + TreeView1.SelectedNode.Text.Trim() + ".rpt";
rptDocument.Load(sPath);
dr = sql.GetDataReader("CrystalReports", "proc_CRM_Get_Report", Convert.ToInt32(TreeView1.SelectedNode.Value));
while (dr.Read() == true)
j += 1;
if (j < 2)
rptDocument.SetDatabaseLogon(dr["DB_Login"].ToString(), dr["DB_Pwd"].ToString(), "PLAW", "LAWDB", true);
pList = dr["ParmList"].ToString().Split(',');
dr.Close();
dr.Dispose();
if (pList.Length > 0 && pList[0].ToString().Trim() != "")
foreach (CrystalDecisions.Shared.ParameterField x in rptDocument.ParameterFields)
i++;
switch (x.ParameterValueType)
case CrystalDecisions.Shared.ParameterValueKind.BooleanParameter:
rptDocument.SetParameterValue(x.Name, Convert.ToBoolean(pList<i>));
break;
case CrystalDecisions.Shared.ParameterValueKind.CurrencyParameter:
rptDocument.SetParameterValue(x.Name, Convert.ToDouble(pList<i>));
break;
case CrystalDecisions.Shared.ParameterValueKind.DateParameter:
rptDocument.SetParameterValue(x.Name, Convert.ToDateTime(pList<i>));
break;
case CrystalDecisions.Shared.ParameterValueKind.DateTimeParameter:
rptDocument.SetParameterValue(x.Name, Convert.ToDateTime(pList<i>));
break;
case CrystalDecisions.Shared.ParameterValueKind.NumberParameter:
rptDocument.SetParameterValue(x.Name, Convert.ToInt32(pList<i>));
break;
case CrystalDecisions.Shared.ParameterValueKind.StringParameter:
rptDocument.SetParameterValue(x.Name, Convert.ToString(pList<i>));
break;
case CrystalDecisions.Shared.ParameterValueKind.TimeParameter:
rptDocument.SetParameterValue(x.Name, Convert.ToDateTime(pList<i>));
break;
Session["CReport"] = rptDocument;
CRV1.ReportSource = rptDocument;
CRV1.DisplayGroupTree = false;
CRV1.HasRefreshButton = true;
CRV1.ShowFirstPage();
Is there a better/different way of accomplishing this very simply process? All I need this application to do is to view a report, while setting it's parmeters (if required) dynamically at run time. I don't EVER want the user to be prompted for DB LOGIN INFO.
Edited by: RichardK on May 10, 2010 4:14 PM
Edited by: RichardK on May 10, 2010 4:14 PM
Edited by: RichardK on May 10, 2010 4:16 PM
Edited by: RichardK on May 10, 2010 4:18 PM
Edited by: RichardK on May 10, 2010 4:22 PM
Edited by: RichardK on May 10, 2010 4:23 PMTo answer you question; Yes, I suspect that most of the users in this community have managed to successfully create web apps. And this is the tiniest of sampling of the developers out there...
A few suggestions;
1) Keep the posts to under 1200 characters. Otherwise, the formatting is lost which makes it difficult to read.
2) Try out a few sample apps from here:
https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
Suggest; csharp_web_simplelogonengine.zip, csharp_web_simplelogonviewer.zip and csharp_web_subreport_logon.zip.
3) Start simple; one table, one field, no subreports. Hard code the database logon parameters. Convince your self that this does work. Increase the complexity - add fields, tables, subreports. Do not mix connection methods (e.g.; if ODBC for main, than ODBC for sub is a good idea, though not a requirement).
4) See the article [Troubleshooting Guide to Database Connectivity Issues with Crystal Reports in Visual Studio .NET Applications|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b0225775-88c4-2c10-bd80-8298769293de].
5) See [this|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/d05b3bb7-0f28-2c10-4ea3-84dbdc4e414e?quicklink=index&overridelayout=true] article.
6) Consider creating a phone case here:
http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300
Ludek
Follow us on Twitter
http://twitter.com/SAPCRNetSup -
Problem in synching multiple web applications
I have a domain called myDomain. In this domain I have 2 enterprise applications
say
ent1App with ent1App-project and ent2App with its ent2App-project. Each enterpsrise
application has one web application
(webApp1 and webApp2 respectively). I have the same set of webflow files (.wf
files) in both
ent1App-project/application-sync/web-apps/webApp1 and ent2App-project/application-sync/web-apps/webApp2
directories.
Now suppose I synchronize my webflows (using EBCC) for say ent1App. The synchronization
is accomplished without any problems
and this is confirmed when the entries get updated in the Master Data Repository
where all the webflows for ent1App get
stored. This is as viewd using the datasyncservlet.
If I now do a synchronization on the other enterprise application called ent2App,
the synchronization takes place
successfully but when viewed in the datasyncservlet, it shows up the entries for
the webflows of ent2App. i.e. the entries
for all the weblows of ent1App which were shown in the Master Data repository
are not shown.
We looked up the Cloudscape database to ensure that the entries for both the enterprise
applications are present and it does
contain the records for both the applications. This however does not show up in
the datasync servlet. Due to this we get a
namespace not found error whenever we try to access the application whose entries
are missing in the master data repository.
I have separate names for my datasync folder for each of the applications in my
config.xml as shown below
ent1App
<Application Deployed="true" Name="ent1App"
Path=".\config\myDomain\applications\ent1App" StagedTargets="iden_staging">
<WebAppComponent DeploymentOrder="1002" Name="datasync" Targets="iden_staging"
URI="datasync"/>
ent2App
<Application Deployed="true" Name="ent2App"
Path=".\config\myDomain\applications\ent2App" StagedTargets="iden_staging">
<WebAppComponent DeploymentOrder="1002" Name="datasyncDev"
Targets="iden_staging" URI="datasyncDev"/>
I am using WLS6.1 SP4 and WLP 4.0 SP3
Can someone please tell me what could be the problem?
Thanks
Shah JimmyWhen you peform a data sync you are updating the data_sync_item table
with the EBCC xml files. For those files that are not present in the
EBCC project they will be deleted from the table.
You can not use multiple enterprise applications that contain Portals.
Try using using multiple domains that contain separate databases for
datasyncs.
Here is a snippet I recently sent out in a support case:
Unfortunately there is not a documented best practice for maintaining
multiple projects and enterprise applications. In my opinion if you
plan to create multiple enterprise applications they will need to
maintain separate application components and web applications. The
enterprise applications will need to use the same portal resources
(pools) and therefore same tables. The synchronization modes documented
at http://e-docs.bea.com/wlp/docs40/deploygd/appdata.htm explain the
limitations in data sync -- either all files are deleted and updated or
only modified files are updated. Either mode will delete files from the
data_sync_item table that do not exist in the current project.
Therefore one project will need to be used per domain.
-- Jim
Jimmy Shah wrote:
I have a domain called myDomain. In this domain I have 2 enterprise applications
say
ent1App with ent1App-project and ent2App with its ent2App-project. Each enterpsrise
application has one web application
(webApp1 and webApp2 respectively). I have the same set of webflow files (.wf
files) in both
ent1App-project/application-sync/web-apps/webApp1 and ent2App-project/application-sync/web-apps/webApp2
directories.
Now suppose I synchronize my webflows (using EBCC) for say ent1App. The synchronization
is accomplished without any problems
and this is confirmed when the entries get updated in the Master Data Repository
where all the webflows for ent1App get
stored. This is as viewd using the datasyncservlet.
If I now do a synchronization on the other enterprise application called ent2App,
the synchronization takes place
successfully but when viewed in the datasyncservlet, it shows up the entries for
the webflows of ent2App. i.e. the entries
for all the weblows of ent1App which were shown in the Master Data repository
are not shown.
We looked up the Cloudscape database to ensure that the entries for both the enterprise
applications are present and it does
contain the records for both the applications. This however does not show up in
the datasync servlet. Due to this we get a
namespace not found error whenever we try to access the application whose entries
are missing in the master data repository.
I have separate names for my datasync folder for each of the applications in my
config.xml as shown below
ent1App
<Application Deployed="true" Name="ent1App"
Path=".\config\myDomain\applications\ent1App" StagedTargets="iden_staging">
<WebAppComponent DeploymentOrder="1002" Name="datasync" Targets="iden_staging"
URI="datasync"/>
ent2App
<Application Deployed="true" Name="ent2App"
Path=".\config\myDomain\applications\ent2App" StagedTargets="iden_staging">
<WebAppComponent DeploymentOrder="1002" Name="datasyncDev"
Targets="iden_staging" URI="datasyncDev"/>
I am using WLS6.1 SP4 and WLP 4.0 SP3
Can someone please tell me what could be the problem?
Thanks
Shah Jimmy
Maybe you are looking for
-
Widgets (aside from Calculator) not working after 10.4.7 update
Since updating my MacMini (Intel) OSX to 10.4.7 from 10.4.6, when I open up the widget pane, all are dead in the water other than the calculator. For example, the clocks show as clock faces but without any arms showing the time or words stating the g
-
Hi, Would there ever be a problem running a program compiled in Java 1.4.2_13 with JRE 1.4.2_08? Why or why not? No guesses please. Thanks
-
Reporting Score in Solo Learning LMS
I have read through the message thread and see that there are other folks having difficulty getting quiz scores to report on various LMS platforms. Does anyone have suggestions on how to get the score to report from a Captivate3 SCORM 1.2 course to t
-
Numbering table with parent grouping
Hi, i have a table that i grouped by email in ssrs, and i would like to insert a row number, that will be by the parent grouping i tried using a solution from another question. ;with cte as (select *,dense_rank() over(order by row1) as rowID from @ta
-
Platforms supported by JMS adapter
Hi , Can anybody tell which platform/OS the JMS adapter supports ? Regards, Tarang