New Here: Application to monitor status of Weblogic queues and bridges
hi
I'm new to weblogic and I have to build a small tool/application to monitor status of Weblogic queues and bridges.
I want to know if there is any API that I can use or any script in Java or any other language?
Thank you
for that kind of stuff maybe the easiest choice is using WLST
there are a number of scripts published on the excellent middlewaremagic.com site
if you google
site:middlewaremagic.com monitoring jms
you will find plenty of stuff
Similar Messages
-
Hello. I am new here and have suddenly developed problems with my 2011 imac. Mac osx 10.7.5
The spinning ball keeps coming up with everything I do and eveverything is slow. Even my keyboard and mouse are acting up. I have 12gb memory and lots of storage space left.
Thank youJanis500 wrote:
Thank you so much. I will do that in the morning before I take any further steps. I really appreciate your help.
J
If you try to access Spotlight in the morning and it is still indexing, reindex it by following these steps.
http://support.apple.com/kb/HT2409
Sometimes the index is corrupted, or something it is trying to index is, and it hangs up like that.
Re-indexing may free that up and let it work correctly. -
Here's A Question Using A Priority Queue and a DLL
Ifm trying to make a method that compares two objects that go into a DLL using a priority Queue. SO in other words lets say i have "5" go ino the DLL and then i have "2" that goes in i need to swap the 2 and the 5. And this goes on for any other objects inserted
private Comparable minPosition() throws EmptyPriorityQueueException {
if (size() == 0)
throw new EmptyPriorityQueueException ("No Elements In The Queue");
else
now this is what i got so far....but i know that i have toi make to vaiables and compare them? little help please?
ThanksUm, well im using the adapter class, List. so ive gone a bit further, but im not sure on what to do.....
private Comparable minPosition() throws EmptyPriorityQueueException {
if (size() == 0)
throw new EmptyPriorityQueueException ("No Elements In The Queue");
while (isEmpty()==false)
r = ((Comparable)elements.first());
s = ((Comparable)elements.next(elements));
then i can make r=s and make s serach for the next element,?
Can the experienced programmers help me out? Doesn't seem to be a tuff question. -
Runtime error and unable to create new web application
Hi
when i create new web application i faced this error Runtime error and unable to create new web application.
in this farm we have
2 wfe servers
2 application servers.
adilAdil,
There could be many reason like IIS issue, Space issue, Permission issue, SQL issue which is not possible us to guess rather
you need to jump in the SharePoint log(Program Files\Common files\Microsoft Shared\Web Server Extensions\14\LOGS) and find out the specific error log its throwing after which trouble shoot can be start.
You can refer few similar threads here -
Link
Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply. -
Hello all, new here to MSI, some overclocking questions
Hey everyone, new here to MSI products (a mobo, P45 Platinum) and forum. I recently came from the 680i chipset and decided to try out these P45. From reading a lot of things from various forums and here at https://forum-en.msi.com/index.php?topic=119345.0, it seems that there is a challenge (and the rewards !!) to overclocking the P45.
In any case, my questions are:
1. I know this has probably been answered somewhere but I've yet to concisely concluded, do you need to remove the on-board jumpers to overclock if you are trying to achieve over 1600 Mhz FSB? I currently have the jumpers off.
2. I've notice that the GTLREF voltage is not within 63% of the CPU VTT using the latest beta bios A7512IMS.153 [v1.5b3]. Is that right?
3. Anyone have any experience using the RAM modules I have? See sig for details.
4. Green Power Center crashes in Vista when making changes. Is there a unknown compatibility issue? I've have installed fresh copy of Vista.Quote
do you need to remove the on-board jumpers to overclock if you are trying to achieve over 1600 Mhz FSB? I currently have the jumpers off.
Removing the jumpers will set the FSB Frequency to 400 MHz and force the system into a default-400 MHz Strap. You should also be able to overclock manually in BIOS starting from other jumper position. Just test and see which one works best for you. It may be the default position or the 400 MHz position (jumper removal).
Quote
2. I've notice that the GTLREF voltage is not within 63% of the CPU VTT using the latest beta bios A7512IMS.153 [v1.5b3]. Is that right?
How did you notice that? What percentage does the BIOS set in your case?
Quote
3. Anyone have any experience using the RAM modules I have? See sig for details.
That is more or less standard DDR2-800 memory which should not make any problems. In terms of overclocking it, you have to see what can be achieved. Memory OC Results usually vary from system to system.
Quote
4. Green Power Center crashes in Vista when making changes. Is there a unknown compatibility issue? I've have installed fresh copy of Vista.
Are you using the latest version? -
I have a L7680 All in with two new print heads but the new cyan/magenta shows yellow monitor status. Ink status, cyan more than 50% and magenta is a 25% w/no low ink warnings... Just ran a clean print head again, print out looks good now but the status of the new cyan/magenta shows yellow monitor status. Is it time to buy another..When I purchased this printer it had to be replaced 3 times because of problems... Just a lemon?
thx for your help in advance...
JimCould you share a link to the page?
Seeing it in context and in our browsers is much easier to debug.
If not, make sure to run the validator here The W3C Markup Validation Service and clear out any problems. HTML errors, especially structural ones, will cause all kinds of display problems in various browsers/versions/platforms. -
Hi Team
We would like to monitor 12 url,s which requires Authentication. Hence i have added the same in one Single Web application transcation template.
i have added the below info to the get the Stats code displayed in Alert
Status code is $Data/Context/RequestResults/RequestResult["1"]/BasePageData/StatusCode$
when i recived a alert it gave the Status code of the 1st Request
hence i changed the same as
Status code is $Data/Context/RequestResults/RequestResult["12"]/BasePageData/StatusCode$
But still i am facing the same issue .
My first request shows me a status code of 200, and my 12th Request comes with 500 but in the alert i get 200 but it should be 500.
Kindly help me in how i can get the Status code for the multiple Request.
Regards
SriramHi Sriram,
Please run the test of your 12th Request, view full result and check if Status Code is 200.
Meanwhile, you can run the URL manually to check the result.
Niki Han
TechNet Community Support -
How to pull application names & version numbes from weblogic servers ??
Hi Friends,
I have situation that I need to display the application names and version number of ear/war/jar files that got deployed on weblogic servers using WLST or any simple way to do that.
Scenario: I have 2 manged servers MNG1 & MNG2 and I had deployed google.1.4.5.ear, web.4.514.war & xxx.jar files and targeted to MSG1 & MSG2.
++++++
Now I want to pull the applications names and the version numbers associated with it and display to some kind of dashboard page like below.
| Application Name | Dev Environment | TEST Environment | PROD Environmnet |
google 1.4.5 1.4.5 1.4.5
web 4.514 4.514 4.514
Like this .....
can any one tell me the best way for achieving this task
Thanks in advance,
newbee
Edited by: user11140631 on Dec 23, 2009 11:18 PMHI,
Here i have developed a Simple JMX Code which displays the Application Name, It's Current Status and The Application Version. Please let me know this is what u wanted?
import java.util.*;
import java.util.Enumeration;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.management.ObjectName;
import weblogic.jndi.Environment;
import weblogic.management.*;
import weblogic.management.runtime.*;
import javax.management.*;
public class ApplicationStatusChecker
MBeanServer server = null; // MBeanServer
MBeanHome mbeanHome=null;
Hashtable inStart = new Hashtable();
public ApplicationStatusChecker()
try {
Environment env = new Environment();
env.setProviderUrl("t3://localhost:7001");
env.setSecurityPrincipal("weblogic"); // username
env.setSecurityCredentials("weblogic"); // password
Context myCtx = env.getInitialContext();
mbeanHome =(MBeanHome)myCtx.lookup("weblogic.management.home.localhome");
server = mbeanHome.getMBeanServer();
catch (Exception ex)
System.err.println("\n\n\tCannot get MBeanServer: "+ex);
public void getAllMBeans()
Set set=mbeanHome.getAllMBeans();
Iterator it=set.iterator();
while(it.hasNext())
System.out.println("\n\t "+it.next());
public void getMBeanByType(String type)
Set set=mbeanHome.getMBeansByType(type);
Iterator it=set.iterator();
while(it.hasNext())
ApplicationRuntimeMBean appRun=(ApplicationRuntimeMBean)it.next();
int n=appRun.getActiveVersionState();
String status="";
if(n==0) status="UNPREPARED";
if(n==1) status="PREPARED";
if(n==2) status="ACTIVATED";
System.out.println("Application Name : "+appRun.getApplicationName());
System.out.println("Application Status : "+status);
System.out.println("Application Version : "+appRun.getApplicationVersion());
System.out.println("---------------------------------------");
public static void main(String ar[]) throws Exception
ApplicationStatusChecker sm=new ApplicationStatusChecker();
sm.getMBeanByType("ApplicationRuntime");
OUTPUT
C:\DELETE>java ApplicationStatusChecker
Application Name : UsernameTokenEar
Application Status : ACTIVATED
Application Version : null
Application Name : consoleapp
Application Status : ACTIVATED
Application Version : null
Application Name : bea_wls_internal
Application Status : ACTIVATED
Application Version : null
Application Name : complexServiceEar+
Application Status : ACTIVATED+
Application Version : VesionB+
Application Name : bea_wls9_async_response
Application Status : ACTIVATED
Application Version : null
Application Name : mejb
Application Status : ACTIVATED
Application Version : null
Application Name : SystemModuleA
Application Status : ACTIVATED
Application Version : null
Thanks
Jay SenSharma
http://jaysensharma.wordpress.com (WebLogic JMX And Wonders Are Here) -
Deploy web application in jbuilder 9 with weblogic 7 problem
when i create a web application and a servlet, and deploy it in jbuilder 9 with weblogic 7.0 ,jbuilder 9 showed me the error,please tell me why, when i choose "redeploy" ,it can be normally work..
E:\bea\jdk131_02\bin\javaw -classpath E:\bea\weblogic700\server\lib\weblogic.jar;E:\bea\weblogic700\server\lib\webservices.jar;E:\bea\weblogic700\server\lib\weblogic_sp.jar; weblogic.Deployer -user system -adminurl http://localhost:7001 -password 12345678 -deploy -name firstWebApp -upload -source E:/J2EE/servlet/firstWebApp.war -targets myserver
WebLogic Application Deployment Utility
Usage: java weblogic.Deployer [options] [-activate|-deactivate|-remove|-unprepare|-cancel|-list] [files]
where options include:
-help Print this help message.
-version Print version information.
-adminurl <https://<server>:<port>> The URL of the administration server: default
http://localhost:7001
-user <user> A user other than the default of
"installadministrator"
-password <password> Specifies the password on the command line.
If this option is absent the user is
prompted.
-verbose Displays additional status during the
deployment process, including notifications
when the application is prepared and
activated on each target.
-debug Displays debug level messages to the standard
output.
-examples Display example usage of this tool.
-upload Causes the specified source file(s) to be
transferred to the adminstration server. This
is used when the Deployer tools is not being
used on the same machine as the adminstration
server and the user does not otherwise have
access to place the targeted files on the
adminstration server.
-delete_files Causes the server to remove the files that
are specified in the file list and leave the
application activated. This option is valid
only for unarchived web applications.
-remote Signals that the tools is not runnning on the
same machine as the adminstration server and
that the source path should be made passed
through unchanged as it represents the path
on the remote server.
-nostage Sets the stagingMethod attribute on the
application mbean when it is created so that
the application will not be staged and the
original source is be used.
-external_stage Sets the stagingMethod attribute on the
application mbean when it is created so that
the application will not be staged but the
value of the staging path will be used when
preparing the application.
-stage Sets the stagingMethod staging attribute on
the application when it is created so that
the application will always be staged. This
value will override the stagingMethod
attribute on any targeted servers.
-nowait Once the action is initiated the tool will
print the task id and exit. This is used to
initiate multiple tasks and then monitor them
later using the -list action.
-timeout <seconds> The maximum time in seconds to wait for the
completion of the deployment task. When the
time expires the current status is printed
and the program exits.
-source <archive file or directory> Location of the file or directory that
represents the enterprise component or
application tha is being (re)activated. If
the source file is relative it is relative to
the current directory, unless the -remote
option is used. To specify individual files
within an application for reployment or
addition list them at the end of the command
line.
-name <application name> The name of the application being deployed.
-targets <<server 1>,...<component>@<server N>> A comma separated list of the server and/or
cluster names. Each target may be qualified
with a J2EE component name. This enables
different components of the archive to
deployed on different servers.
-id <task identifier> Optional client supplied unique identifier
for the deployment task. The id is first
specified to -activate, -deactivate,
-unprepare or -remove. It is then used later
as an argument to -cancel or -list.
-activate (Re)activates the <source> application on the
<targets> with the <name>.
-deactivate Deactivates the application <name> on the
<targets> leaving an staged application files
in a state where the may be quickly
reactivated.
-unprepare Deactivates and unloads classes for the
application <name> on the <targets> leaving
an staged application files in a state where
the may be quickly reloaded.
-remove Deactivates the application <name> on the
<target> and removes any files that were
staged for this application. If there are no
longer any targets for the application, the
associated configuration is completely
removed.
-cancel Atempts to cancel the task <id> if it is has
not yet completed.
-list Lists the target status of each task <id>
-deploy a convenient alias for activate.
-undeploy a convenient alias for unprepare.
Optionally a list of the specific files in the archive that are to be
redeployed may be specified. If a directory is specified the entire subtree is
redeployed.
Full documentation on this tool is available at:
http://edocs.beasys.com/wls/docs70/adminguide/utils.html#1138475
No actions was specified. Please specify one and only one of:
-activate, -deactivate, -cancel, -remove, -unprepare, or -list.
Type java weblogic.Deployer -examples for example usage.you use "deploy" under DOS-Mode to deploy your web application?
i found some differences between "deploy" and "redeploy" function in jbuilder 9.
when i choose "deploy" ,jbuilder shows me the commond below:
E:\bea\jdk131_02\bin\javaw -classpath E:\bea\weblogic700\server\lib\weblogic.jar;E:\bea\weblogic700\server\lib\webservices.jar;E:\bea\weblogic700\server\lib\weblogic_sp.jar; weblogic.Deployer -user system -adminurl http://localhost:7001 -password 12345678 -deploy -name firstWebApp -upload -source E:/J2EE/servlet/firstWebApp.war -targets myserver
WebLogic Application Deployment Utility
when i choose redeploy,it shows me: (the -deploy parameter has changed to -activate) ,maybe it's a bug.
E:\bea\jdk131_02\bin\javaw -classpath E:\bea\weblogic700\server\lib\weblogic.jar;E:\bea\weblogic700\server\lib\webservices.jar;E:\bea\weblogic700\server\lib\weblogic_sp.jar; weblogic.Deployer -user system -adminurl http://localhost:7001 -password 12345678 -activate -name firstWebApp -upload -source E:/J2EE/servlet/firstWebApp.war -targets myserver
WebLogic Application Deployment Utility -
How can I monitor Status word From the other side of the GPIB bus
I develop Thermal system control that should be operate thru the GPIB IEE 488.2 bus , my instrument application already written in Visual Basic ,The system knowes to do basic operation such as SETPOINT ,AIRDUT , BEGIN , STOP and more but I have do a problem , any time that I capture command from the controller the status word stuck at listener mode and I can not send another command again because my loop is waiting for the other side (the controller ) to tallk by monitor the IBSTA word .
There is anyway to reset ,clear ,initialize STATUS word again to his default value ?
Note : I am using VB 6 , the Samples that you have here for Non-controller is good so far if I want to send and recive data manualy (c
omputer to computer)
What if I have A system that work and always waiting for capture command and do somthing ?
I will be very greatful if anyone can help me , send me sample code for Status checking loop.
MIKI-AVIHello Miki-Avi,
I'm having a little bit of trouble understanding what you're trying to do. It seems that you have an instrument application that you have written and works in some instances but gets into an infinite loop in other cases. I think that your loop is waiting for something in the Status byte to change, and you're wondering how you can get it to change.
I'm not sure what bit you're waiting for, but I would assume that it is the LACS bit 2. You do not want to simply reset the IBSTA byte because this byte tells you what is happening on the GPIB interface. So, if you're waiting for the LACS bit to change, then you are waiting for the board to be addressed as a listener. Your controller would address the non-controller as a listener once you sent it da
ta with an IBDEV and an IBWRT call.
If you are looking for code for a status checking loop, check the following resources. Remember that you must call ibwait 0 to update your IBSTA byte. The 488.2 Function Reference is very useful in figuring out what you need to do.
http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3EF8D56A4E034080020E74861&p_node=DZ52353&p_submitted=N&p_rank=&p_answer=&p_source=Internal
http://ae.natinst.com/operations/ae/public.nsf/fca7838c4500dc10862567a100753500/9cc0939663f1c5de862565d70082e89e?OpenDocument
Please let me know if you need more assistance.
Scott B.
National Instruments
Applications Engineer -
Unexpected error when configure a new web application
hello,
I'm trying to create a new web application ( under Deployments in console). I
just manually create an sub-dir under ".\config\<active-domain>\applications"
directory, say WebAppDir. Then I went to the console and right-click on the "Web
Applications" and select "Configure a new Web Application", then I filled out
the Name, URI, and Path as follows:
Name: WebAppDir URI: WebAppDir Path: .\config\<active-domain>\applications
then click "Create" , I then got the following error message, I don't know why
and what i did wrong... please let me know what did i do wrong ? I don't have
any things under the new dir i created, but I thought i would be fine, but it
didn't.
Here is the error message:
An unexpected error was encountered in processing your request.
Exception java.lang.NullPointerException at weblogic.management.console.pages._panels._mbean._webappcomponent._jspService(_webappcomponent.java:212)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1127)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1529)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Current Date Wed Jun 06 17:01:25 CDT 2001
thanks so much...i really appreciate your helps.
-KieuHi Kieu,
Perhaps you can try moving the webapp dir outside config/mydomain/applications.
The webapp should be configurable from anywhere besides the applications directory.
Any archives placed in the applications directory will be deployed automatically.
I'm not sure why you are seeing the webapp as an app below your Applications node
in the console though. Which version of wls are you using?
Vi
"Kieu Tram" <[email protected]> wrote:
>
I guess the problem happened because we can't deploy the exploded directory
format
using the console.
but when i follow the instruction in
http://e-docs.bea.com/wls/docs60/adminguide/config_web_app.html#122155
, to create
the web applications, i turned out the sub-dir "myWebApp" that i created
under
".\config\mydomain\applications" will appear in "Applications" node instead
of
under "Web Applications" node, even though i put all the "web.xml", "weblogic.xml"
under the dir "myWebApp\WEB-INF" already.
I would really appreciate your help...
thanks,
Kieu
"Kieu Tram" <[email protected]> wrote:
hello,
I'm trying to create a new web application ( under Deployments in console).
I
just manually create an sub-dir under ".\config\<active-domain>\applications"
directory, say WebAppDir. Then I went to the console and right-click
on the "Web
Applications" and select "Configure a new Web Application", then I filled
out
the Name, URI, and Path as follows:
Name: WebAppDir URI: WebAppDir Path: .\config\<active-domain>\applications
then click "Create" , I then got the following error message, I don't
know why
and what i did wrong... please let me know what did i do wrong ? I don't
have
any things under the new dir i created, but I thought i would be fine,
but it
didn't.
Here is the error message:
An unexpected error was encountered in processing your request.
Exception java.lang.NullPointerException at weblogic.management.console.pages._panels._mbean._webappcomponent._jspService(_webappcomponent.java:212)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1127)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1529)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137) atweblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Current Date Wed Jun 06 17:01:25 CDT 2001
thanks so much...i really appreciate your helps.
-Kieu -
My new Imac 21 - i7 - Lion - dual monitor (connected with thund-hdmi adaptor) has a strange behavior.
Everything works fine, but when the system goes in power saving mode, on coming back sometimes the second monitor becomes gray (working but no wallpaper), sometimes comes back normally, but ALWAYS all applications windows goes back to the main imac monitor.
I've tried to switch of the 2nd monitor and the behavior is the same. So is not a power saving problem.
It seems that the imac always autodetect monitor situation on the fly and moves windows back to the main monitor.
The problem is that the "moving windows back function" seem to be faster than monitor detection.
Is there a way to say to lion: "I always have two monitor, please don't change"?!?
thank you for help.I suspect it may be the adapter. I would recommend trying the one Apple recommends here or trying another connections such as a VGA or DVI assuming the monitor has that type of connection.
-
Now I have 3 questions:
1. I can not use the EJB's local interface, although I have define local interface
in config file and query code in the programe perfectly. What additional work
has I not done;
2. I have to compile my program into a .jar, .ear or .war file(s) to debug, that
is a unhandy way, even I change only one line of one page, I have to redeploy
the whole application package once more. Is there any way else to deal with the
work? Not a .jar, .war or .ear file(s) in the design time, just one page or class
file, and I need not deploy and compile the whole application;
3. If I use the JBuilder9's Run command boot the WebLogic Server, the application
deploied anteriorly becomes unavailable. But when the WebLogic Server is boot
from console, everything is O.K.. Any advice?
Thanks in advance for any help you offer!Hey Daniel.
1. What specific problems are you having? What is your EJB architecture?
You can find an EJB example that uses Local Interfaces here:
http://dev2dev.bea.com/codelibrary/code/examples_ejb20.jsp
Also, our end-to-end sample application called MedRec, found in WebLogic
Server 8.1, uses Local EJBs.
2. Not sure which WebLogic server you are running, but 8.1 has the ability
to deploy ears and wars as exploded applications where non-compiled files
remain within your source location. This feature eliminates the need to
jar, war, or ear while also eliminating copying of source code. This
feature is called Split Development Directory Structure. Split Development
Directory Structure is accompanied by new Ant tasks to aid in application
development.
You can find more on Split Development Directory Structure here:
http://edocs.bea.com/wls/docs81/programming/environment.html#1092719.
Ant tasks:
http://edocs.bea.com/wls/docs81/programming/environment.html#1093779
An example is here:
http://dev2dev.bea.com/codelibrary/code/examples_splitdir.jsp
MedRec also uses the Split Development Directory Structure and Ant tasks.
3. Dunno. ;-)
-Chris
<[email protected]> wrote in message news:[email protected]...
>
Now I have 3 questions:
1. I can not use the EJB's local interface, although I have define localinterface
in config file and query code in the programe perfectly. What additionalwork
has I not done;
2. I have to compile my program into a .jar, .ear or .war file(s) todebug, that
is a unhandy way, even I change only one line of one page, I have toredeploy
the whole application package once more. Is there any way else to dealwith the
work? Not a .jar, .war or .ear file(s) in the design time, just one pageor class
file, and I need not deploy and compile the whole application;
3. If I use the JBuilder9's Run command boot the WebLogic Server, theapplication
deploied anteriorly becomes unavailable. But when the WebLogic Server is boot
from console, everything is O.K.. Any advice?
Thanks in advance for any help you offer! -
New Web Application not creating correctly
I'm having an odd occurrence happen about 50% of the time right now when creating new web applications during my migration from SP2010 to SP2013.
During creating a web application in Central Admin, I can get through the first setup page, then get to the "This shouldn't take long" page and will sit there for 30+ minutes. I end up closing the window and will see that the Web application is there in
Central admin, and sometimes the DB will be created, other times not, not a big issue since I'm mounting a sp2010 database to this web application.
What I do notice is that either a IIS site will either not be created at all, or it will be created, but the Virtual Folder is empty. When trying to delete the Web Application through central admin or PowerShell it will hang for hours until the next day
when it's finally deleted. During this time I am not able to create any other web applications. It's usually at this time that I can successfully create a new web applications but even that is unreliable.
Has anyone ran into this issue or can suggest any workarounds to get this working? I'm wondering if copying the contents of another web application's virtual directory to the failed web application's virtual directory will be a workaround. I still need to
verify if creating a web application through PowerShell gives me the same headache but at the moment I'm currently waiting for a web application to delete.Finally got this resolved after an 8 hour call with Microsoft. After finally getting the Microsoft SharePoint Foundation Web Application service to restart (took 4 hours) We found that changing the Shutdown time in the Web Application Pool for the Central
Admin pool to 400 allowed for the Web Application to complete successfully.
I'm still confused to why everything is taking so long now to complete so i'll have to look into that next.
Folks, this is a minor problem that seems to be creeping up more and more. I personally have performed over 8 installs in various environments. I have seen this issue in 6 out of the 8 environments I have created. All servers I have tried a variation of
software. In MOST of my tests, this seems to be a problem. Not sure why they decide to recycle the App Pool just before they perform an "Virtual Directory Copy." Here are the results of my tests. I was very methodical in my testing and made sure these were
clean downloads every time. As you will see, I tried variations of hardware increases, physical to virtual, database versions and patch levels...etc.
Test #
Hardware
Software
Server Type
Install Type
Problems Creating Web Apps
Work Around
Resolution
1
HP Proliant DL360 G6, 16gb memory, 146gb - C, 146gb D (Pagefile), 146gb E, 2 Quad Procs
Windows 2008R2 (All Patches), SQL 2012 w/SP1, SharePoint 2013 Server
Physical
Clean Install and downloads
Yes
Copy Contents of Central Admin Virtual Directory to new Web Application
Increase Shutdown time to 400
2
Host Server = Dell R900 256gb Mem, 146gb C, 300gb D (Pagefile), 2tb E, 4 Quad Procs; Virtual Guest =
100gb - C, 2 Logical Procs, 8gb memory
Windows 2008R2 (All Patches), SQL 2012, SharePoint 2013 Server
Virtual
Clean Install and downloads
Yes
Copy Contents of Central Admin Virtual Directory to new Web Application
Increase Shutdown time to 400
3
Host Server = Dell R900 256gb Mem, 146gb C, 300gb D (Pagefile), 2tb E, 4 Quad Procs; Virtual Guest =
100gb - C, 2 Logical Procs, 8gb memory
Windows 2008R2 (All Patches), SQL 2012 w/SP1, SharePoint 2013 Server
Virtual
Clean Install and downloads
No
4
Host Server = Dell R900 256gb Mem, 146gb C, 300gb D (Pagefile), 2tb E, 4 Quad Procs; Virtual Guest =
100gb - C, 2 Logical Procs, 8gb memory
Windows 2008R2 (All Patches), SQL 2012 w/SP1, SharePoint 2013 Server
Virtual
Clean Install and downloads
Yes
Copy Contents of Central Admin Virtual Directory to new Web Application
Increase Shutdown time to 400
5
Host Server = Dell R900 256gb Mem, 146gb C, 300gb D (Pagefile), 2tb E, 4 Quad Procs; Virtual Guest =
100gb - C, 4 Logical Procs, 16gb memory
Windows 2008R2 (All Patches), SQL 2008 R2 w/SP1, SharePoint 2013 Server
Virtual
Clean Install and downloads
Yes
Copy Contents of Central Admin Virtual Directory to new Web Application
Increase Shutdown time to 400
6
Host Server = Dell R900 256gb Mem, 146gb C, 300gb D (Pagefile), 2tb E, 4 Quad Procs; Virtual Guest =
100gb - C, 4 Logical Procs, 16gb memory
Windows 2008R2 (All Patches), SQL 2008 R2 w/SP2, SharePoint 2013 Server
Virtual
Clean Install and downloads
No
7
Host Server = Dell R900 256gb Mem, 146gb C, 300gb D (Pagefile), 2tb E, 4 Quad Procs; Virtual Guest =
100gb - C, 4 Logical Procs, 16gb memory
Windows 2008R2 (All Patches), SQL 2008 R2 w/SP2, SharePoint 2013 Server
Virtual
Clean Install and downloads
Yes
Copy Contents of Central Admin Virtual Directory to new Web Application
Increase Shutdown time to 400
8
Host Server = Dell R900 256gb Mem, 146gb C, 300gb D (Pagefile), 2tb E, 4 Quad Procs; Virtual Guest =
100gb - C, 4 Logical Procs, 32gb memory
Windows 2008R2 (All Patches), SQL 2008 R2 w/SP2, SharePoint 2013 Server
Virtual
Clean Install and downloads
Yes
Copy Contents of Central Admin Virtual Directory to new Web Application
Increase Shutdown time to 400 -
Create a new web application, how shall I update the file server.xml
Hi,
I will create a new web application, i.e named newApp. Then I create a file structure as follows:
- <server-root>/newApp
- <server-root>/newApp/WEB-INF
- <server-root>/newApp/WEB-INF/classes
Then I must tell the server that I have created a new web application. Then I must update my file server.xml, How shall I do this and where in the file shall I type in the new information?
I use windows XP Pro, and Tomcat 4.1.27.
My server.xml file looks like below:
<!-- Example Server Configuration File -->
<!-- Note that component elements are nested corresponding to their
parent-child relationships with each other -->
<!-- A "Server" is a singleton element that represents the entire JVM,
which may contain one or more "Service" instances. The Server
listens for a shutdown command on the indicated port.
Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<!-- Comment these entries out to disable JMX MBeans support -->
<!-- You may also configure custom components (e.g. Valves/Realms) by
including your own mbean-descriptor file(s), and setting the
"descriptors" attribute to point to a ';' seperated list of paths
(in the ClassLoader sense) of files to add to the default list.
e.g. descriptors="/com/myfirm/mypackage/mbean-descriptor.xml"
-->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
debug="0"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
debug="0"/>
<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved">
</Resource>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams>
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" (and therefore the web applications visible
within that Container). Normally, that Container is an "Engine",
but this is not required.
Note: A "Service" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Tomcat-Standalone">
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Each Connector passes requests on to the
associated "Container" (normally an Engine) for processing.
By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
You can also enable an SSL HTTP/1.1 Connector on port 8443 by
following the instructions below and uncommenting the second Connector
entry. SSL support requires the following steps (see the SSL Config
HOWTO in the Tomcat 4.0 documentation bundle for more detailed
instructions):
* Download and install JSSE 1.0.2 or later, and put the JAR files
into "$JAVA_HOME/jre/lib/ext".
* Execute:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
with a password value of "changeit" for both the certificate and
the keystore itself.
By default, DNS lookups are enabled when a web application calls
request.getRemoteHost(). This can have an adverse impact on
performance, so you can disable it by setting the
"enableLookups" attribute to "false". When DNS lookups are disabled,
request.getRemoteHost() will return the String version of the
IP address of the remote client.
-->
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8080" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="100" debug="0" connectionTimeout="20000"
useURIValidationHack="false" disableUploadTimeout="true" />
<!-- Note : To disable connection timeouts, set connectionTimeout value
to -1 -->
<!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
<!--
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8443" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="100" debug="0" scheme="https" secure="true"
useURIValidationHack="false" disableUploadTimeout="true">
<Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
clientAuth="false" protocol="TLS" />
</Connector>
-->
<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8009" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="0"
useURIValidationHack="false"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
<!-- Define an AJP 1.3 Connector on port 8009 -->
<!--
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>
-->
<!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
<!-- See proxy documentation for more information about using this. -->
<!--
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8082" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="100" debug="0" connectionTimeout="20000"
proxyPort="80" useURIValidationHack="false"
disableUploadTimeout="true" />
-->
<!-- Define a non-SSL legacy HTTP/1.1 Test Connector on port 8083 -->
<!--
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8083" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" />
-->
<!-- Define a non-SSL HTTP/1.0 Test Connector on port 8084 -->
<!--
<Connector className="org.apache.catalina.connector.http10.HttpConnector"
port="8084" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" />
-->
<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and passes them
on to the appropriate Host (virtual host). -->
<!-- You should set jvmRoute to support load-balancing via JK/JK2 ie :
<Engine name="Standalone" defaultHost="localhost" debug="0" jmvRoute="jvm1">
-->
<!-- Define the top level container in our container hierarchy -->
<Engine name="Standalone" defaultHost="localhost" debug="0">
<!-- The request dumper valve dumps useful debugging information about
the request headers and cookies that were received, and the response
headers and cookies that were sent, for all requests received by
this instance of Tomcat. If you care only about requests to a
particular virtual host, or a particular application, nest this
element inside the corresponding <Host> or <Context> entry instead.
For a similar mechanism that is portable to all Servlet 2.3
containers, check out the "RequestDumperFilter" Filter in the
example application (the source for this filter may be found in
"$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
Request dumping is disabled by default. Uncomment the following
element to enable it. -->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
-->
<!-- Global logger unless overridden at lower levels -->
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt"
timestamp="true"/>
<!-- Because this Realm is here, an instance will be shared globally -->
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
debug="0" resourceName="UserDatabase"/>
<!-- Comment out the old realm but leave here for now in case we
need to go back quickly -->
<!--
<Realm className="org.apache.catalina.realm.MemoryRealm" />
-->
<!-- Replace the above Realm with one of the following to get a Realm
stored in a database and accessed via JDBC -->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/authority"
connectionName="test" connectionPassword="test"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
connectionName="scott" connectionPassword="tiger"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:odbc:CATALINA"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!-- Define the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<!-- Normally, users must authenticate themselves to each web app
individually. Uncomment the following entry if you would like
a user to be authenticated the first time they encounter a
resource protected by a security constraint, and then have that
user identity maintained across all web applications contained
in this virtual host. -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn"
debug="0"/>
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
-->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
-->
<!-- Logger shared by all Contexts related to this virtual host. By
default (when using FileLogger), log files are created in the "logs"
directory relative to $CATALINA_HOME. If you wish, you can specify
a different directory with the "directory" attribute. Specify either a
relative (to $CATALINA_HOME) or absolute path to the desired
directory.-->
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/>
<!-- Define properties for each web application. This is only needed
if you want to set non-default properties, or have web application
document roots in places other than the virtual host's appBase
directory. -->
<DefaultContext reloadable="true"/>
<!-- Tomcat Root Context -->
<Context path="" docBase="ROOT" debug="0"/>
<!-- Tomcat Examples Context -->
<Context path="/examples" docBase="examples" debug="0"
reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_examples_log." suffix=".txt"
timestamp="true"/>
<Ejb name="ejb/EmplRecord" type="Entity"
home="com.wombat.empl.EmployeeRecordHome"
remote="com.wombat.empl.EmployeeRecord"/>
<!-- If you wanted the examples app to be able to edit the
user database, you would uncomment the following entry.
Of course, you would want to enable security on the
application as well, so this is not done by default!
The database object could be accessed like this:
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
UserDatabase database =
(UserDatabase) envCtx.lookup("userDatabase");
-->
<!--
<ResourceLink name="userDatabase" global="UserDatabase"
type="org.apache.catalina.UserDatabase"/>
-->
<!-- PersistentManager: Uncomment the section below to test Persistent
Sessions.
saveOnRestart: If true, all active sessions will be saved
to the Store when Catalina is shutdown, regardless of
other settings. All Sessions found in the Store will be
loaded on startup. Sessions past their expiration are
ignored in both cases.
maxActiveSessions: If 0 or greater, having too many active
sessions will result in some being swapped out. minIdleSwap
limits this. -1 or 0 means unlimited sessions are allowed.
If it is not possible to swap sessions new sessions will
be rejected.
This avoids thrashing when the site is highly active.
minIdleSwap: Sessions must be idle for at least this long
(in seconds) before they will be swapped out due to
activity.
0 means sessions will almost always be swapped out after
use - this will be noticeably slow for your users.
maxIdleSwap: Sessions will be swapped out if idle for this
long (in seconds). If minIdleSwap is higher, then it will
override this. This isn't exact: it is checked periodically.
-1 means sessions won't be swapped out for this reason,
although they may be swapped out for maxActiveSessions.
If set to >= 0, guarantees that all sessions found in the
Store will be loaded on startup.
maxIdleBackup: Sessions will be backed up (saved to the Store,
but left in active memory) if idle for this long (in seconds),
and all sessions found in the Store will be loaded on startup.
If set to -1 sessions will not be backed up, 0 means they
should be backed up shortly after being used.
To clear sessions from the Store, set maxActiveSessions, maxIdleSwap,
and minIdleBackup all to -1, saveOnRestart to false, then restart
Catalina.
-->
<!--
<Manager className="org.apache.catalina.session.PersistentManager"
debug="0"
saveOnRestart="true"
maxActiveSessions="-1"
minIdleSwap="-1"
maxIdleSwap="-1"
maxIdleBackup="-1">
<Store className="org.apache.catalina.session.FileStore"/>
</Manager>
-->
<Environment name="maxExemptions" type="java.lang.Integer"
value="15"/>
<Parameter name="context.param.name" value="context.param.value"
override="false"/>
<Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/EmployeeAppDb">
<parameter><name>username</name><value>sa</value></parameter>
<parameter><name>password</name><value></value></parameter>
<parameter><name>driverClassName</name>
<value>org.hsql.jdbcDriver</value></parameter>
<parameter><name>url</name>
<value>jdbc:HypersonicSQL:database</value></parameter>
</ResourceParams>
<Resource name="mail/Session" auth="Container"
type="javax.mail.Session"/>
<ResourceParams name="mail/Session">
<parameter>
<name>mail.smtp.host</name>
<value>localhost</value>
</parameter>
</ResourceParams>
<ResourceLink name="linkToGlobalResource"
global="simpleValue"
type="java.lang.Integer"/>
</Context>
</Host>
</Engine>
</Service>
</Server>To use servlets u have indeed to update your web.xml...Well I'm not sure this is relevant to your case anyway.
You have to add a <servlet> element to this file.
Something like this:
<servlet>
<servlet-name>blabla</servlet-name>
<servlet-class>blablapackage.Blablaclass</servlet-class>
<init-param>...</init-param>
</servlet>
Now this may not solve your problem. Make sure you refer to your servlets using their full qualified names.btw, just to be sure, what is your definition of "servlet"? (i mean: any java class or only javax.servlet.Servlet)
Maybe you are looking for
-
Metro PCS 8530 No Longer Connects to Blackberry Servers
I have the Q10 which I love. Wife has a 8530 which she loves. She basically just wants voice, BBM, and email. It works great for her. Her 8530 went wacked the other day. Phone turned on and worked fine except it would connect to nothing. We got Metro
-
How do you change the Default Font setting for a HP 6310 all-in-one?
I've had this printer for a couple of years and has worked great, but just recently, the main body of text is shadowed, like a shadow font. If i print from MS word and select my font it prints great, but the default font for printing emails and anyth
-
How to activate or import playlists from newly moved iTunes library on an external hard drive?
I have just moved my whole iTunes library from my notebook to an external HDD, due to space constraints. I followed the Apple steps to do so, and finally got all my songs and the rest to appear in the player. However, my custom playlists do not appea
-
Oracle 11g 2, Windows Service OracleDBConsole doesn't start.
Hi! I installed ORACLE 11.2 database (11.2.0.1.0) On Windows XP SP3. Global database name: orcl SID : orcl11g2 At the end of installation I got the error : +01.12.2010 14:50:17 oracle.sysman.emcp.EMDBPostConfig invoke+ WARNING: Error starting Databas
-
SVM equivalent command for veritas volume manager "VXEVAC" command
Hi All I am working on a major migration project , where servers are heterogenous with part of servers with Veritas volume manager and rest with Solaris volume manager. Migration is quite easy on Veritas servers using "VXEVAC COMMAND " i can easily m