Persisting Configuration in Config.xml, Using Administration MBeans
Dear Friends,
I am facing a problem on persisting the configuration, using the administration
Mbeans.
I am using weblogic 6.1 sp1 version. And i am running weblogic in production mode.
i have made the AutoDeployEnabled=false in my config.xml file.
In my program i am setting a target to one my EJB component. But the entry in
the config.xml is not happening.
If anyone could help me in this problem, it would be greatful, thanx in advance.
I am attaching my code with here below.
import javax.naming.Context;
import java.util.Set;
import java.util.Iterator;
import java.util.Vector;
import weblogic.jndi.Environment;
import weblogic.management.MBeanHome;
import weblogic.management.WebLogicMBean;
import weblogic.management.WebLogicObjectName;
import weblogic.management.runtime.ServerRuntimeMBean;
import weblogic.management.configuration.ApplicationMBean;
import weblogic.management.configuration.ServerMBean;
import weblogic.management.configuration.ComponentMBean;
import weblogic.management.configuration.RepositoryMBean;
import weblogic.management.configuration.AdminMBean;
public class ListAllMbean{
public static void main(String args[]) {
String url = "t3://localhost:7001";
String username = "system";
String password = "security";
try {
//Obtaining an MBeanHome Using JNDI
Environment env = new Environment();
env.setProviderUrl(url);
env.setSecurityPrincipal(username);
env.setSecurityCredentials(password);
Context ctx = env.getInitialContext();
MBeanHome home = (MBeanHome)ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
ServerMBean serverMbean = null;
Set targetMBeans = home.getMBeansByType("Server");
for (Iterator itr = targetMBeans.iterator(); itr.hasNext(); ) {
serverMbean = (ServerMBean)itr.next();
Set allMBeans = home.getMBeansByType("Application");
for (Iterator itr = allMBeans.iterator(); itr.hasNext(); ) {
ApplicationMBean application = (ApplicationMBean)itr.next();
// Getting all the components in the application
ComponentMBean comp[] = application.getComponents();
for ( int i = 0; i < comp.length; i++ ) {
// Setting the target, to deploy the component
if(comp.getName().equalsIgnoreCase("startup_ejbs_1")){
comp[i].addTarget(serverMbean);
// Using the repositaryMBean to persist, not sure this the right way
RepositoryMBean repositorymbean = (RepositoryMBean)home.getMBean("Default",
"Repository", "weblogic");
repositorymbean.saveDomain(home.getActiveDomain().getName()) ;
}catch(Exception e){
System.out.println(e);
Regards,
Karthickraj.
Hi Karthik,
Why don't you post your question at http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.management.general_and_jmx&utag=
This is a portal server group and a remote chance of getting reply on JMX here.
Cheers
Syed
"Karthikraj" <[email protected]> wrote:
>
Dear Friends,
I am facing a problem on persisting the configuration, using the administration
Mbeans.
I am using weblogic 6.1 sp1 version. And i am running weblogic in production
mode.
i have made the AutoDeployEnabled=false in my config.xml file.
In my program i am setting a target to one my EJB component. But the
entry in
the config.xml is not happening.
If anyone could help me in this problem, it would be greatful, thanx
in advance.
I am attaching my code with here below.
import javax.naming.Context;
import java.util.Set;
import java.util.Iterator;
import java.util.Vector;
import weblogic.jndi.Environment;
import weblogic.management.MBeanHome;
import weblogic.management.WebLogicMBean;
import weblogic.management.WebLogicObjectName;
import weblogic.management.runtime.ServerRuntimeMBean;
import weblogic.management.configuration.ApplicationMBean;
import weblogic.management.configuration.ServerMBean;
import weblogic.management.configuration.ComponentMBean;
import weblogic.management.configuration.RepositoryMBean;
import weblogic.management.configuration.AdminMBean;
public class ListAllMbean{
public static void main(String args[]) {
String url = "t3://localhost:7001";
String username = "system";
String password = "security";
try {
//Obtaining an MBeanHome Using JNDI
Environment env = new Environment();
env.setProviderUrl(url);
env.setSecurityPrincipal(username);
env.setSecurityCredentials(password);
Context ctx = env.getInitialContext();
MBeanHome home = (MBeanHome)ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
ServerMBean serverMbean = null;
Set targetMBeans = home.getMBeansByType("Server");
for (Iterator itr = targetMBeans.iterator(); itr.hasNext();
serverMbean = (ServerMBean)itr.next();
Set allMBeans = home.getMBeansByType("Application");
for (Iterator itr = allMBeans.iterator(); itr.hasNext(); ) {
ApplicationMBean application = (ApplicationMBean)itr.next();
// Getting all the components in the application
ComponentMBean comp[] = application.getComponents();
for ( int i = 0; i < comp.length; i++ ) {
// Setting the target, to deploy the component
if(comp.getName().equalsIgnoreCase("startup_ejbs_1")){
comp[i].addTarget(serverMbean);
// Using the repositaryMBean to persist, not sure this the right
way
RepositoryMBean repositorymbean = (RepositoryMBean)home.getMBean("Default",
"Repository", "weblogic");
repositorymbean.saveDomain(home.getActiveDomain().getName())
}catch(Exception e){
System.out.println(e);
Regards,
Karthickraj.
Similar Messages
-
COnfiguring Struts-config.xml file for two level popup windows?
This is the code for 1st level
<action path="/search/advanced" scope="request" parameter="method"
type="org.fao.gilw.agris.action.AdvancedSearchAction" name="advancedForm" validate="false">
<forward name="failed" path="/search/advanced.jsp" redirect="false"/>
<forward name="success" path="/search/advanced.jsp" redirect="false"/>
</action>"search" is the main window, in this window I'm opening/loading a pop-up window called " advanced" ..the above code is for this
Now again i want to pop-up another window in "advanced" page
So how to configure for this in Struts-config.xml file...?Better post this question at a Struts related forum. There is a mailinglist at their own homepage and a forum at Nabble.com.
-
Managed Servers not starting with options configured in config.xml
Hi,
I Installed an Weblogic 10.3 on a Red Hat system and i configured an domain and 2 managed servers.
I configured the servers with some java arguments like this:
-XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/home/oracle/logs/managed-server{1,2}_gc.log -XX:NewSize=128m -XX:MaxNewSize=128m -Xms384m -Xmx384m -XX:PermSize=128m
I do see in the ${DOMAIN_HOME}/config/config.xml the managed servers with the settings that I have configured it via the Web Gui Admin Console.
Now I want to start the Managed Servers with the following command:
+cd ${DOMAIN_HOME}/bin+
+./startManagedWebLogic.sh managed-server1 http://admin:port+
When i check the console, I don't see the correct JVM settings! Also other options that I configured in the Web Gui Admin Console, don't appear in the logfile.
The JVM settings I see, are those from the AdminServer.
How can I change/fix this?
Please help.
Kind regards,
WernerHi,
Please add the changes to the startup script startManagedWeblogic.sh.
You can add the memory args settings as "-XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/home/oracle/logs/managed-server{1,2}_gc.log -XX:NewSize=128m -XX:MaxNewSize=128m -Xms384m -Xmx384m -XX:PermSize=128m"
Please let me know if it dosent fix. -
Configuring the config.xml file path
Hi All,
I am calling a startWebLogic script from another script as 'root'.When the other script calls the startWebLogic script it is reading config.xml path as /opt/bea/./config.xml and is giving errors.
It is taking the default path as /opt/bea .Where should I specify the correct path.
Thanks
sandhyaBetter post this question at a Struts related forum. There is a mailinglist at their own homepage and a forum at Nabble.com.
-
Unable to Persistent ConnPool & DS in config.xml created dynamically.
Here is my scenario.
I am trying to create JDBCConnectionPools and JDBCDataSources dynamically from a StartupClass. The StartupClass is creating the ConnectionPool and DataSources but it is not persisting it to the config.xml. I tried using setPersistentEnaabled on JDBCConnectionPoolMBean and also used RepositoryMBean to persistent the domain, even then it is not working.
If I run the same code out side the server JVM it is working fine. Creating all JDBCConnectionPools and their associated DataSources and they are all getting persisted to the config.xml.
I want to know whether it is a feature of webloigc server or it is a bug in weblogic server.
My ENV:
Weblogic 8.1 SP3
Windows 2000.
JAVA - jdk142_04(which comes along the weblogic 8.1 SP3)
Thanks -
SivaHi,
Pls try application-config tag like this
<application-config>
<property name="PrivateSharingReference" value="com.sap.portal.htmlb">
</property>
<property name="SharingReference" value="com.sap.portal.runtime.application.soap">
</property>
</application-config>
Also check component tag is in this order
<component name="AddAccounts">
<component-config>
<property name="ClassName" value="Test">
</property>
<property name="JSP" value="pagelet/test.jsp">
</property>
</component-config>
<component-profile>
<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld">
</property>
</component-profile>
</component>
regards,
Sujesh -
Hi,
I am trying to configure the config.xml file and printing the configured
output to a file. Can anybody recommend a utility to print the xml output
with the readable xml spacing (something akin to a pretty print).
Thanks,
TejUsing JDOM (http://www.jdom.org), I believe you can just toString() the
document object. I am not sure how it handles the various XML spacing
issues, or if that will even pose a problem for config.xml.
Our own XML package supports pretty vs. compact format as well, and avoids
the XML spacing issues even with pretty-printing option and multi-line text.
Peace,
Cameron Purdy
Tangosol, Inc.
http://www.tangosol.com
Tangosol Server: Enabling enterprise application customization
"Tej" <[email protected]> wrote in message
news:[email protected]..
Hi,
I am trying to configure the config.xml file and printing the configured
output to a file. Can anybody recommend a utility to print the xml output
with the readable xml spacing (something akin to a pretty print).
Thanks,
Tej -
Clarification on services-config.xml files for RemoteObject services
I am currently preparing an AMFPHP environment for exchanging
data with Flex and AIR applications. I can connect to the services
via Netconnection, but using RemoteObject won't work.
Documentation for the necessary configuration files
(services-config.xml, remoting-config.xml and the like) is, um,
sparse and seems to be slightly incorrect or misleading at times.
So I'm looking for clarification about
changes in the syntax of services-config.xml · in
examples for Flex 2.01, there are "class" attributes with values
beginning with "flex.", in Flex 3 examples the attribute name has
changed to "type", values beginning with "flex." have mostly
vanished and been replaced with similar looking values beginning
with "mx.". Are "flex." and "mx." prefixes interchangable?
correct syntax for linking other files into
services-config.xml · the livedocs state that Adobe
prefers linking files into services-config.xml (using something
like <service-include file-path="remoting-config.xml"/>)
instead of defining all service parameters there. But in the
example from the Flex 2.01 livedocs, the root element of the
service-config.xml file is <services> instead of
<services-config>. Assuming that <services> is meant as
a
child of the <services-config> root element, there
seems to be a mandatory <service> child element missing.
That's either intended, illogical, and misleading, or simply
erroneous.
which classes are still valid in Flex 3, which have changed?
· Most of the examples for using RemoteObjects out there are
for FlexBuilder 2 (e.g.
here)
and don't seem to work with FlexBuilder 3 Beta 2. But there is no
statement to be found in the Flex 3 documentation about what has
changed.
a meaningful example for services-config.xml · In the
Flex 3 Beta 2 documentation here are plenty of references to using
services-config.xml, as I can find even information about the
ServerConfig class in the ActionScript 3 Language Reference, a sort
of wrapper class for the information provided in
service-config.xml, but there is no information about what
constitutes a
working service-config.xml configuration (which XML tags of
what names containing what attributes need to be present).
As I'd really like to create cutting-edge Flex and AIR OCC
applications, I'm eager to have those ambiguities clarified.
Best regards,
CathnessFrom the docs it looks like this is used for web services as
well:
http://livedocs.adobe.com/flex/201/html/dataservices_config_100_3.html#260186
If this isn't the right config file, which file should I be
looking at?
Mike -
Help -- wls8.1 removes the applications in config.xml
We deployed three web applications to weblogic 8.1 express. After running fine
for about 4 days, there's an error logged, and weblogic 8.1 removed the applications
we configured in config.xml. When we started weblogic 8.1 again, the applications
are not loaded any more.
Could any one tell me why this is happening? Thanks a lot
-yuyu
Here's the error log.
####<Dec 23, 2003 7:57:56 PM PST> <Notice> <Security> <devlabsrv1> <epServer>
<main> <<WLS Kernel>> <> <BEA-090082> <Security initializing using security realm
myrealm.>
####<Dec 23, 2003 7:57:57 PM PST> <Notice> <WebLogicServer> <devlabsrv1> <epServer>
<main> <<WLS Kernel>> <> <BEA-000327> <Starting WebLogic Admin Server "epServer"
for domain "Everypath">
####<Dec 23, 2003 7:58:14 PM PST> <Warning> <HTTP> <devlabsrv1> <epServer> <main>
<<WLS Kernel>> <> <BEA-101247> <MTA: Public ID references the old version of the
Servlet DTD. You must change the public ID in web.xml file to "-//Sun Microsystems,
Inc.//DTD Web Application 2.3//EN".>
####<Dec 23, 2003 7:58:15 PM PST> <Warning> <HTTP> <devlabsrv1> <epServer> <main>
<<WLS Kernel>> <> <BEA-101247> <epadmin: Public ID references the old version
of the Servlet DTD. You must change the public ID in web.xml file to "-//Sun Microsystems,
Inc.//DTD Web Application 2.3//EN".>
####<Dec 23, 2003 7:58:15 PM PST> <Warning> <HTTP> <devlabsrv1> <epServer> <main>
<<WLS Kernel>> <> <BEA-101247> <ep: Public ID references the old version of the
Servlet DTD. You must change the public ID in web.xml file to "-//Sun Microsystems,
Inc.//DTD Web Application 2.3//EN".>
####<Dec 23, 2003 7:58:33 PM PST> <Warning> <Management> <devlabsrv1> <epServer>
<main> <<WLS Kernel>> <> <BEA-141130> <The domain configuration version was not
set for the domain Everypath that is being started. (The current server version
is 8.1.0.0.)>
####<Dec 23, 2003 7:58:34 PM PST> <Notice> <WebLogicServer> <devlabsrv1> <epServer>
<ListenThread.Default> <<WLS Kernel>> <> <BEA-000355> <Thread "ListenThread.Default"
listening on port 7001, ip address *.*>
####<Dec 23, 2003 7:58:34 PM PST> <Notice> <WebLogicServer> <devlabsrv1> <epServer>
<main> <<WLS Kernel>> <> <BEA-000365> <Server state changed to RUNNING>
####<Dec 23, 2003 7:58:34 PM PST> <Notice> <WebLogicServer> <devlabsrv1> <epServer>
<main> <<WLS Kernel>> <> <BEA-000360> <Server started in RUNNING mode>
####<Dec 23, 2003 9:38:03 PM PST> <Warning> <WebLogicServer> <devlabsrv1> <epServer>
<weblogic.health.CoreHealthMonitor> <<WLS Kernel>> <> <BEA-000337> <ExecuteThread:
'14' for queue: 'default' has been busy for "1,084" seconds working on the request
"Http Request: /MTA/Server", which is more than the configured time (StuckThreadMaxTime)
of "600" seconds.>
####<Dec 24, 2003 11:08:04 AM PST> <Warning> <WebLogicServer> <devlabsrv1> <epServer>
<weblogic.health.CoreHealthMonitor> <<WLS Kernel>> <> <BEA-000337> <ExecuteThread:
'14' for queue: 'default' has been busy for "801" seconds working on the request
"Http Request: /MTA/Server", which is more than the configured time (StuckThreadMaxTime)
of "600" seconds.>
####<Dec 24, 2003 11:40:09 AM PST> <Warning> <HTTP Session> <devlabsrv1> <epServer>
<ExecuteThread: '14' for queue: 'default'> <<anonymous>> <> <BEA-100061> <Web
application: ServletContext(id=12222848,name=epadmin,context-path=/epadmin) tried
to place a non-serializable attribute: schema into the session: 1pruOeafNuve6lfaVvZEkt2n19VVrY5wqVzmeJaq9HOK9qfI2ly4!634073209!1072294766531.
This attribute will be lost upon redeployment. This message is logged only once
per session.>
####<Dec 24, 2003 3:08:04 PM PST> <Warning> <WebLogicServer> <devlabsrv1> <epServer>
<weblogic.health.CoreHealthMonitor> <<WLS Kernel>> <> <BEA-000337> <ExecuteThread:
'13' for queue: 'default' has been busy for "1,159" seconds working on the request
"Http Request: /MTA/Server", which is more than the configured time (StuckThreadMaxTime)
of "600" seconds.>
####<Dec 24, 2003 3:18:04 PM PST> <Warning> <WebLogicServer> <devlabsrv1> <epServer>
<weblogic.health.CoreHealthMonitor> <<WLS Kernel>> <> <BEA-000337> <ExecuteThread:
'14' for queue: 'default' has been busy for "881" seconds working on the request
"Http Request: /MTA/Server", which is more than the configured time (StuckThreadMaxTime)
of "600" seconds.>
####<Dec 24, 2003 5:58:04 PM PST> <Warning> <WebLogicServer> <devlabsrv1> <epServer>
<weblogic.health.CoreHealthMonitor> <<WLS Kernel>> <> <BEA-000337> <ExecuteThread:
'14' for queue: 'default' has been busy for "1,104" seconds working on the request
"Http Request: /MTA/Server", which is more than the configured time (StuckThreadMaxTime)
of "600" seconds.>
####<Dec 29, 2003 4:28:28 AM PST> <Error> <Deployer> <devlabsrv1> <epServer> <ExecuteThread:
'1' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149201> <Failed
to complete the deployment task with ID 0 for the application appsdirepadmin_dir.
java.lang.NullPointerException
at weblogic.utils.FileUtils.remove(FileUtils.java:172)
at weblogic.utils.FileUtils.remove(FileUtils.java:185)
at weblogic.servlet.internal.WebAppModule.remove(WebAppModule.java:902)
at weblogic.j2ee.J2EEApplicationContainer.remove(J2EEApplicationContainer.java:2206)
at weblogic.j2ee.J2EEApplicationContainer.remove(J2EEApplicationContainer.java:2192)
at weblogic.j2ee.J2EEApplicationContainerFactory.removeApplicationContainer(J2EEApplicationContainerFactory.java:143)
at weblogic.management.deploy.slave.SlaveDeployer$RemoveTask.perform(SlaveDeployer.java:2608)
at weblogic.management.deploy.slave.SlaveDeployer$RemoveTask.doCommit(SlaveDeployer.java:2581)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2308)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2390)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2302)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
--------------- nested within: ------------------
weblogic.management.DeploymentException: [Deployer:149233]An unexpected error
was encountered during the deployment process. - with nested exception:
[java.lang.NullPointerException]
at weblogic.management.deploy.slave.SlaveDeployer.throwUnexpected(SlaveDeployer.java:2181)
at weblogic.management.deploy.slave.SlaveDeployer.access$700(SlaveDeployer.java:132)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2323)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2390)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2302)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
>
####<Dec 29, 2003 4:28:28 AM PST> <Notice> <Deployer> <devlabsrv1> <epServer>
<ExecuteThread: '0' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149063>
<There seems to be some configuration error with application appsdirepadmin_dir.
See previous errors for details. The application appsdirepadmin_dir will be
removed since its target list is empty.>
####<Dec 29, 2003 4:28:28 AM PST> <Warning> <Deployer> <devlabsrv1> <epServer>
<ExecuteThread: '0' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149004>
<Failures were detected while initiating Remove task for application appsdirepadmin_dir.>
####<Dec 29, 2003 4:28:28 AM PST> <Error> <Management> <devlabsrv1> <epServer>
<ExecuteThread: '0' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149306>
<Deployment update failed. Update Failed due to any one of the servers not up
Server epServer failed in respond>
####<Dec 29, 2003 4:28:32 AM PST> <Warning> <DRS> <devlabsrv1> <epServer> <ExecuteThread:
'0' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-002506> <The current
version 6 for DataIdentifier DataIdentifierID: 1 does not match with incoming
version 7 for a one-phase update.>
####<Dec 29, 2003 4:28:32 AM PST> <Error> <Deployer> <devlabsrv1> <epServer> <ExecuteThread:
'0' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149201> <Failed
to complete the deployment task with ID 1 for the application appsdirep_dir.
java.lang.NullPointerException
at weblogic.utils.FileUtils.remove(FileUtils.java:172)
at weblogic.utils.FileUtils.remove(FileUtils.java:185)
at weblogic.servlet.internal.WebAppModule.remove(WebAppModule.java:902)
at weblogic.j2ee.J2EEApplicationContainer.remove(J2EEApplicationContainer.java:2206)
at weblogic.j2ee.J2EEApplicationContainer.remove(J2EEApplicationContainer.java:2192)
at weblogic.j2ee.J2EEApplicationContainerFactory.removeApplicationContainer(J2EEApplicationContainerFactory.java:143)
at weblogic.management.deploy.slave.SlaveDeployer$RemoveTask.perform(SlaveDeployer.java:2608)
at weblogic.management.deploy.slave.SlaveDeployer$RemoveTask.doCommit(SlaveDeployer.java:2581)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2308)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2390)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2302)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
--------------- nested within: ------------------
weblogic.management.DeploymentException: [Deployer:149233]An unexpected error
was encountered during the deployment process. - with nested exception:
[java.lang.NullPointerException]
at weblogic.management.deploy.slave.SlaveDeployer.throwUnexpected(SlaveDeployer.java:2181)
at weblogic.management.deploy.slave.SlaveDeployer.access$700(SlaveDeployer.java:132)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2323)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2390)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2302)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
>
####<Dec 29, 2003 4:28:32 AM PST> <Notice> <Deployer> <devlabsrv1> <epServer>
<ExecuteThread: '1' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149063>
<There seems to be some configuration error with application appsdirep_dir.
See previous errors for details. The application appsdirep_dir will be removed
since its target list is empty.>
####<Dec 29, 2003 4:28:32 AM PST> <Warning> <Deployer> <devlabsrv1> <epServer>
<ExecuteThread: '1' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149004>
<Failures were detected while initiating Remove task for application appsdirep_dir.>
####<Dec 29, 2003 4:28:32 AM PST> <Error> <Management> <devlabsrv1> <epServer>
<ExecuteThread: '1' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149306>
<Deployment update failed. Update Failed due to any one of the servers not up
Server epServer failed in respond>
####<Dec 29, 2003 4:28:36 AM PST> <Warning> <DRS> <devlabsrv1> <epServer> <ExecuteThread:
'1' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-002506> <The current
version 6 for DataIdentifier DataIdentifierID: 1 does not match with incoming
version 8 for a one-phase update.>
####<Dec 29, 2003 4:28:37 AM PST> <Error> <Deployer> <devlabsrv1> <epServer> <ExecuteThread:
'1' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149201> <Failed
to complete the deployment task with ID 2 for the application appsdirMTA_dir.
java.lang.NullPointerException
at weblogic.utils.FileUtils.remove(FileUtils.java:172)
at weblogic.utils.FileUtils.remove(FileUtils.java:185)
at weblogic.servlet.internal.WebAppModule.remove(WebAppModule.java:902)
at weblogic.j2ee.J2EEApplicationContainer.remove(J2EEApplicationContainer.java:2206)
at weblogic.j2ee.J2EEApplicationContainer.remove(J2EEApplicationContainer.java:2192)
at weblogic.j2ee.J2EEApplicationContainerFactory.removeApplicationContainer(J2EEApplicationContainerFactory.java:143)
at weblogic.management.deploy.slave.SlaveDeployer$RemoveTask.perform(SlaveDeployer.java:2608)
at weblogic.management.deploy.slave.SlaveDeployer$RemoveTask.doCommit(SlaveDeployer.java:2581)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2308)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2390)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2302)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
--------------- nested within: ------------------
weblogic.management.DeploymentException: [Deployer:149233]An unexpected error
was encountered during the deployment process. - with nested exception:
[java.lang.NullPointerException]
at weblogic.management.deploy.slave.SlaveDeployer.throwUnexpected(SlaveDeployer.java:2181)
at weblogic.management.deploy.slave.SlaveDeployer.access$700(SlaveDeployer.java:132)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2323)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2390)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2302)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
>
####<Dec 29, 2003 4:28:37 AM PST> <Notice> <Deployer> <devlabsrv1> <epServer>
<ExecuteThread: '0' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149063>
<There seems to be some configuration error with application appsdirMTA_dir.
See previous errors for details. The application appsdirMTA_dir will be removed
since its target list is empty.>
####<Dec 29, 2003 4:28:37 AM PST> <Warning> <Deployer> <devlabsrv1> <epServer>
<ExecuteThread: '0' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149004>
<Failures were detected while initiating Remove task for application appsdirMTA_dir.>
####<Dec 29, 2003 4:28:37 AM PST> <Error> <Management> <devlabsrv1> <epServer>
<ExecuteThread: '0' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149306>
<Deployment update failed. Update Failed due to any one of the servers not up
Server epServer failed in respond>
####<Dec 29, 2003 4:44:22 AM PST> <Warning> <DRS> <devlabsrv1> <epServer> <ExecuteThread:
'2' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-002506> <The current
version 6 for DataIdentifier DataIdentifierID: 1 does not match with incoming
version 9 for a one-phase update.>
####<Dec 29, 2003 4:44:22 AM PST> <Warning> <Deployer> <devlabsrv1> <epServer>
<ExecuteThread: '2' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149004>
<Failures were detected while initiating Deploy task for application appsdirepadmin_dir.>
####<Dec 29, 2003 4:44:22 AM PST> <Error> <Deployer> <devlabsrv1> <epServer> <ExecuteThread:
'2' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149201> <Failed
to complete the deployment task with ID 3 for the application appsdirepadmin_dir.
javax.management.InstanceAlreadyExistsException: Everypath:Location=epServer,Name=epServer__appsdir_epadmin_dir,ServerRuntime=epServer,Type=ApplicationRuntime
at com.sun.management.jmx.RepositorySupport.addMBean(RepositorySupport.java:134)
at com.sun.management.jmx.MBeanServerImpl.internal_addObject(MBeanServerImpl.java:2371)
at com.sun.management.jmx.MBeanServerImpl.registerMBean(MBeanServerImpl.java:876)
at weblogic.management.internal.RemoteMBeanServerImpl.registerMBean(RemoteMBeanServerImpl.java:457)
at weblogic.management.runtime.RuntimeMBeanDelegate.register(RuntimeMBeanDelegate.java:166)
at weblogic.management.runtime.RuntimeMBeanDelegate.<init>(RuntimeMBeanDelegate.java:122)
at weblogic.management.runtime.RuntimeMBeanDelegate.<init>(RuntimeMBeanDelegate.java:85)
at weblogic.management.runtime.RuntimeMBeanDelegate.<init>(RuntimeMBeanDelegate.java:62)
at weblogic.management.runtime.RuntimeMBeanDelegate.<init>(RuntimeMBeanDelegate.java:74)
at weblogic.j2ee.J2EEApplicationRuntimeMBeanImpl.<init>(J2EEApplicationRuntimeMBeanImpl.java:42)
at weblogic.j2ee.J2EEApplicationContainer.initRuntimeMBean(J2EEApplicationContainer.java:776)
at weblogic.j2ee.J2EEApplicationContainer.<init>(J2EEApplicationContainer.java:447)
at weblogic.j2ee.J2EEApplicationContainerFactory.createApplicationContainer(J2EEApplicationContainerFactory.java:131)
at weblogic.j2ee.J2EEApplicationContainerFactory.getOrCreateApplicationContainer(J2EEApplicationContainerFactory.java:113)
at weblogic.management.deploy.slave.SlaveDeployer$Application.getContainer(SlaveDeployer.java:2976)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2518)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2450)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
--------------- nested within: ------------------
weblogic.management.ManagementException: - with nested exception:
[javax.management.InstanceAlreadyExistsException: Everypath:Location=epServer,Name=epServer__appsdir_epadmin_dir,ServerRuntime=epServer,Type=ApplicationRuntime]
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2459)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
>
####<Dec 29, 2003 4:44:26 AM PST> <Warning> <DRS> <devlabsrv1> <epServer> <ExecuteThread:
'1' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-002506> <The current
version 6 for DataIdentifier DataIdentifierID: 1 does not match with incoming
version 10 for a one-phase update.>
####<Dec 29, 2003 4:44:26 AM PST> <Warning> <Deployer> <devlabsrv1> <epServer>
<ExecuteThread: '1' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149004>
<Failures were detected while initiating Deploy task for application appsdirep_dir.>
####<Dec 29, 2003 4:44:26 AM PST> <Error> <Deployer> <devlabsrv1> <epServer> <ExecuteThread:
'1' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149201> <Failed
to complete the deployment task with ID 4 for the application appsdirep_dir.
javax.management.InstanceAlreadyExistsException: Everypath:Location=epServer,Name=epServer__appsdir_ep_dir,ServerRuntime=epServer,Type=ApplicationRuntime
at com.sun.management.jmx.RepositorySupport.addMBean(RepositorySupport.java:134)
at com.sun.management.jmx.MBeanServerImpl.internal_addObject(MBeanServerImpl.java:2371)
at com.sun.management.jmx.MBeanServerImpl.registerMBean(MBeanServerImpl.java:876)
at weblogic.management.internal.RemoteMBeanServerImpl.registerMBean(RemoteMBeanServerImpl.java:457)
at weblogic.management.runtime.RuntimeMBeanDelegate.register(RuntimeMBeanDelegate.java:166)
at weblogic.management.runtime.RuntimeMBeanDelegate.<init>(RuntimeMBeanDelegate.java:122)
at weblogic.management.runtime.RuntimeMBeanDelegate.<init>(RuntimeMBeanDelegate.java:85)
at weblogic.management.runtime.RuntimeMBeanDelegate.<init>(RuntimeMBeanDelegate.java:62)
at weblogic.management.runtime.RuntimeMBeanDelegate.<init>(RuntimeMBeanDelegate.java:74)
at weblogic.j2ee.J2EEApplicationRuntimeMBeanImpl.<init>(J2EEApplicationRuntimeMBeanImpl.java:42)
at weblogic.j2ee.J2EEApplicationContainer.initRuntimeMBean(J2EEApplicationContainer.java:776)
at weblogic.j2ee.J2EEApplicationContainer.<init>(J2EEApplicationContainer.java:447)
at weblogic.j2ee.J2EEApplicationContainerFactory.createApplicationContainer(J2EEApplicationContainerFactory.java:131)
at weblogic.j2ee.J2EEApplicationContainerFactory.getOrCreateApplicationContainer(J2EEApplicationContainerFactory.java:113)
at weblogic.management.deploy.slave.SlaveDeployer$Application.getContainer(SlaveDeployer.java:2976)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2518)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2450)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
--------------- nested within: ------------------
weblogic.management.ManagementException: - with nested exception:
[javax.management.InstanceAlreadyExistsException: Everypath:Location=epServer,Name=epServer__appsdir_ep_dir,ServerRuntime=epServer,Type=ApplicationRuntime]
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2459)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
>
####<Dec 29, 2003 4:44:30 AM PST> <Warning> <DRS> <devlabsrv1> <epServer> <ExecuteThread:
'2' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-002506> <The current
version 6 for DataIdentifier DataIdentifierID: 1 does not match with incoming
version 11 for a one-phase update.>
####<Dec 29, 2003 4:44:31 AM PST> <Warning> <Deployer> <devlabsrv1> <epServer>
<ExecuteThread: '2' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149004>
<Failures were detected while initiating Deploy task for application appsdirMTA_dir.>
####<Dec 29, 2003 4:44:31 AM PST> <Error> <Deployer> <devlabsrv1> <epServer> <ExecuteThread:
'2' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149201> <Failed
to complete the deployment task with ID 5 for the application appsdirMTA_dir.
javax.management.InstanceAlreadyExistsException: Everypath:Location=epServer,Name=epServer__appsdir_MTA_dir,ServerRuntime=epServer,Type=ApplicationRuntime
at com.sun.management.jmx.RepositorySupport.addMBean(RepositorySupport.java:134)
at com.sun.management.jmx.MBeanServerImpl.internal_addObject(MBeanServerImpl.java:2371)
at com.sun.management.jmx.MBeanServerImpl.registerMBean(MBeanServerImpl.java:876)
at weblogic.management.internal.RemoteMBeanServerImpl.registerMBean(RemoteMBeanServerImpl.java:457)
at weblogic.management.runtime.RuntimeMBeanDelegate.register(RuntimeMBeanDelegate.java:166)
at weblogic.management.runtime.RuntimeMBeanDelegate.<init>(RuntimeMBeanDelegate.java:122)
at weblogic.management.runtime.RuntimeMBeanDelegate.<init>(RuntimeMBeanDelegate.java:85)
at weblogic.management.runtime.RuntimeMBeanDelegate.<init>(RuntimeMBeanDelegate.java:62)
at weblogic.management.runtime.RuntimeMBeanDelegate.<init>(RuntimeMBeanDelegate.java:74)
at weblogic.j2ee.J2EEApplicationRuntimeMBeanImpl.<init>(J2EEApplicationRuntimeMBeanImpl.java:42)
at weblogic.j2ee.J2EEApplicationContainer.initRuntimeMBean(J2EEApplicationContainer.java:776)
at weblogic.j2ee.J2EEApplicationContainer.<init>(J2EEApplicationContainer.java:447)
at weblogic.j2ee.J2EEApplicationContainerFactory.createApplicationContainer(J2EEApplicationContainerFactory.java:131)
at weblogic.j2ee.J2EEApplicationContainerFactory.getOrCreateApplicationContainer(J2EEApplicationContainerFactory.java:113)
at weblogic.management.deploy.slave.SlaveDeployer$Application.getContainer(SlaveDeployer.java:2976)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2518)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2450)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
--------------- nested within: ------------------
weblogic.management.ManagementException: - with nested exception:
[javax.management.InstanceAlreadyExistsException: Everypath:Location=epServer,Name=epServer__appsdir_MTA_dir,ServerRuntime=epServer,Type=ApplicationRuntime]
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2459)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)>
Please help me find the error and eliminate it.
I am disgusted with it as i am stuck at this position for last 15 days.15 days on "Hello Anything" should never happen.
Even the demo sample projects given in NetBeans are generating error messages.Somebody explain to me how JSF is making life "easy".
There's a lot here.
% -
WLS6.0 config.xml documentation?
I've found the "documentation" for the config.xml, and the accompanying DTD.
However, these documents don't actually explain what the tags represent and,
more
importantly, how they interact with each other.
Where can I find this information?
Thanks
Jim Garrison
[email protected]Why have bea designed WebLogic 6.0 in such a way that makes editing the
config.xml file so awkward? It is farcical that I have to boot up a server,
deploy the console.war and then open up a browser just to change a few
values. Do bea discourage developing Java in the same way too? Ie. only
use an IDE and not a text editor?
It is very hard to develop a standard config.xml to store in source code
control when WebLogic insists on modifying it automatically and being very
picky about accepting manually edited changes. WebLogic 5.1 was a breeze in
comparison.
If bea really wanted to stop config.xml being modified manually then they
should have serialized data to it in binary format. They really haven't
thought about the impact of the config.xml and their MBean architecture very
well at all.
Just my opinion!
Myles
Viresh Garg wrote:
You should prefer using console instead of editing config.xml wherever
possible.
However, if you have some specific questions for some specific tags,post them.
>>
Viresh Garg
Principal Develeoper Relations Engineer
BEA Systems
Jim Garrison wrote:
I've found the "documentation" for the config.xml, and the
accompanying DTD.
However, these documents don't actually explain what the tagsrepresent and,
more
importantly, how they interact with each other.
Where can I find this information?
Thanks
Jim Garrison
[email protected] -
Configure remote-config for calling java class
Hi...all
i'm newbie, i got trouble for configure remote-config in flex project
how to configure remote-config.xml, if i have java class like below
package org.springframework.flex.samples.secured;
import java.util.Map;
import org.springframework.flex.security.AuthenticationResultUtils;
public class SecurityHelper {
public Map<String, Object> getAuthentication() {
return AuthenticationResultUtils.getAuthenticationResult();
please help me.....i'm newbie and wanna learnin
thanksHi,
May be this could be of good help to you
http://livedocs.adobe.com/blazeds/1/blazeds_devguide/
Thanks,
Balaji -
Revision: 8910
Author: [email protected]
Date: 2009-07-29 14:22:26 -0700 (Wed, 29 Jul 2009)
Log Message:
Bug: LCDS-936 - Should have better error message in servlet log if server in services-config.xml is configured to use wrong class.
QA: Yes
Doc: No
Checkintests: Pass
Ticket Links:
http://bugs.adobe.com/jira/browse/LCDS-936
Modified Paths:
blazeds/trunk/modules/core/src/flex/messaging/MessageBrokerServlet.javaAfter many hard working days.i finally found the error cause,i needed to make weblogic datasource also ADF doesnt work on internet explorer browser,it works on safary.hope it helps somebody
-
Error regarding to the configuration of "Data Source" in Struts-config.xml
Hi,
Any 1 just help me out. I am using NetBeans 4.1 bundeled with Sun App server 8.1. Now I wanted to make the database connectivity with the front -end using"Data-source" tag in the struts-config.xml file . I am using the Oracle 9i as database.But I am not able to do it , it's showing me again and again error.I got realy fed up with this. I have checked the code as well as the the struts-config.xml file syntaxes with many other books and online resources, I couldn't find any sort of anomaly over here.So some 1 plzz help me regarding this as early as possible.I am attaching the Struts-config .xml file code as well as the error messaage over here.
Struts-config.xml file code is...
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<!-- ============================================ Data Source Configuration -->
<data-sources>
<data-source type="org.apache.commons.dbcp.BasicDataSource" key="RoseKey">
<set-property
property="driverClassName"
value="oracle.jdbc.driver.OracleDriver" />
<set-property
property="url"
value="jdbc:oracle:thin://10.31.8.49:1521:USGFS" />
<set-property
property="username"
value="EPTP2DEV" />
<set-property
property="password"
value="EPTP2DEV" />
<set-property
property="maxActive"
value="10" />
<set-property
property="maxWait"
value="5000" />
<set-property
property="defaultAutoCommit"
value="false" />
<set-property
property="defaultReadOnly"
value="false" />
<!--set-property
property="validationQuery"
value="SELECT COUNT(*) FROM address" /-->
</data-source>
</data-sources>
<!-- ======================================== Form Bean Definitions -->
<form-beans>
<form-bean
name="AddressForm"
type="app.AddressForm"/>
<form-bean
name="DVDForm"
type="app.DVD"/>
</form-beans>
<!-- =================================== Global Forward Definitions -->
<!--global-forwards>
<forward
name="logoff"
path="/Logoff.do"/>
<forward
name="logon"
path="/Logon.do"/>
<forward
name="welcome"
path="/Welcome.do"/>
</global-forwards-->
<!--global-forward>
<forward
name="Address1"
path="/pages/Address.jsp"/>
</global-forward-->
<!-- =================================== Action Mapping Definitions -->
<action-mappings>
<!--action
path="/Welcome"
type="org.apache.struts.actions.ForwardAction"
parameter="/pages/Welcome.jsp"/>
<action
path="/Logon"
type="org.apache.struts.actions.ForwardAction"
parameter="/pages/Logon.jsp"/-->
<action
path="/Address"
type="app.AddressAction"
name="AddressForm"
scope="request"
validate="true"
input="/pages/Address.jsp">
<forward
name="success"
path="/pages/success.jsp"/>
</action>
<action
path="/TestAction"
type="app.TestAction">
<forward
name="testAction"
path="/pages/TestAction.jsp"/>
</action>
<action
path="/TestDVD"
type="app.DVDAction"
name="DVDForm">
<forward
name="testDVD"
path="/pages/Movie.jsp"/>
</action>
<action
path="/DataSource"
type="app.TestDataSource">
<forward
name="joy"
path="/pages/joy.jsp"/>
</action>
</action-mappings>
<message-resources parameter="resources.ApplicationResources"/>
</struts-config>
And the error I am getting in the Server console is ..
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Io exception: The Network Adapter could not establish the connection)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
at org.apache.commons.dbcp.BasicDataSource.setLogWriter(BasicDataSource.java:598)
at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:808)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:335)
at javax.servlet.GenericServlet.init(GenericServlet.java:261)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:118)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1093)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:931)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4183)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4536)
at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:827)
at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:125)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:147)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:809)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1279)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1006)
at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:160)
at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:238)
at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:918)
at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:905)
at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:427)
at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:139)
at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:288)
at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:155)
at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:258)
at com.sun.enterprise.deployment.phasing.StartPhase.runPhase(StartPhase.java:87)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:633)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:361)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:396)
at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:702)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:302)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:357)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)
at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)
at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:92)
at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:69)
at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
Caused by: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:404)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
... 92 more
AND..
javax.servlet.UnavailableException: Initializing application data source RoseKey
at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:812)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:335)
at javax.servlet.GenericServlet.init(GenericServlet.java:261)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:118)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1093)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:931)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4183)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4536)
at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:827)
at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:125)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:147)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:809)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1279)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1006)
at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:160)
at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:238)
at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:918)
at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:905)
at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:427)
at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:139)
at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:288)
at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:155)
at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:258)
at com.sun.enterprise.deployment.phasing.StartPhase.runPhase(StartPhase.java:87)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:633)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:361)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:396)
at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:702)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:302)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:357)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)
at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)
at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:92)
at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:69)
at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
Plz some1 help me as soon as possible with some ideas so that I can resolve the issue.Hi Amit Garg,
<data-sources>
<data-source type = "org.apache.commons.dbcp.BasicDataSource" key = "DBA">
</data-source>
<data-sources>
<data-source type = "org.apache.commons.dbcp.BasicDataSource" key = "AISDEV">
</data-source>
</data-sources>
u just configure ur struts-config.xml file in the above manner and use the following steps in ur action servlet to retrive the DataSource object
getDatasource(request,"DBA") for accessing first datasource
getDatasource(request,"AISDEV") for accessing second datasource.
byeeeeee -
Today I tried to configure JAVA APM on a CentOS 6.4 server with tomcat6 installed through the normal RPM package. Adding this server to SCOM was no problem and it shows itself as a 'Deep Monitored Configuration'. The last part of enabling
JAVA APM fails. I have followed the following process:
1. Imported the JAVA APM MP's
2. Extracted the JAVA APM Files
3. Copied those files to my CentOS server
4. Added the JAVA_OPTS to my tomcat configuration file
5. Restarted Tomcat
When I look for the log file which needs to be created through the installation of the APM agent it cannot be find. When I look into my Catalina.out file I see the following errors:
Mar 05, 2014 7:05:16 PM com.microsoft.ManagementServices.APMAgent.Log.SystemLogger error
SEVERE: Java APM Agent initialization failed: SEAgent.config.xml does not have a valid event sender configured
com.microsoft.ManagementServices.APMAgent.Exception.ApmException: SEAgent.config.xml does not have a valid event sender configured
at com.microsoft.ManagementServices.APMAgent.AgentThreadManager.<init>(Unknown Source)
at com.microsoft.ManagementServices.APMAgent.AgentThreadManager.<init>(Unknown Source)
at com.microsoft.ManagementServices.APMAgent.Agent.Monitor.AgentContext.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at com.microsoft.ManagementServices.APMAgent.Agent.Startup.AgentContextLoader.loadContext(Unknown Source)
at com.microsoft.ManagementServices.APMAgent.Agent.Startup.Agent.premain(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:397)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
... 15 more
Caused by: com.microsoft.ManagementServices.APMAgent.Exception.ApmException: Error registering MBean: com.microsoft.ManagementServices.APMAgent:type=COUNTER
at com.microsoft.ManagementServices.APMAgent.EventSender.MBeanEventLog.registerMetricMBeans(Unknown Source)
at com.microsoft.ManagementServices.APMAgent.EventSender.MBeanEventLog.<init>(Unknown Source)
at com.microsoft.ManagementServices.APMAgent.EventSender.MBeanEventLog.<init>(Unknown Source)
at com.microsoft.ManagementServices.APMAgent.AgentThreadManager.<init>(Unknown Source)
at com.microsoft.ManagementServices.APMAgent.AgentThreadManager.<init>(Unknown Source)
at com.microsoft.ManagementServices.APMAgent.Agent.Monitor.AgentContext.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at com.microsoft.ManagementServices.APMAgent.Agent.Startup.AgentContextLoader.loadContext(Unknown Source)
at com.microsoft.ManagementServices.APMAgent.Agent.Startup.Agent.premain(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:397)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
... 15 more
Caused by: com.microsoft.ManagementServices.APMAgent.Exception.ApmException: Error registering MBean: com.microsoft.ManagementServices.APMAgent:type=COUNTER
at com.microsoft.ManagementServices.APMAgent.EventSender.MBeanEventLog.registerMetricMBeans(Unknown Source)
at com.microsoft.ManagementServices.APMAgent.EventSender.MBeanEventLog.<init>(Unknown Source)
at com.microsoft.ManagementServices.APMAgent.EventSender.MBeanEventLog.<init>(Unknown Source)
... 19 more
Mar 05, 2014 7:05:16 PM com.microsoft.ManagementServices.APMAgent.Log.SystemLogger info
INFO: Java APM Agent loading failed (Build: 1.10.100.15, Label: NotFromLabel, BuildDate: 20131112)
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at com.microsoft.ManagementServices.APMAgent.Agent.Startup.AgentContextLoader.loadContext(Unknown Source)
at com.microsoft.ManagementServices.APMAgent.Agent.Startup.Agent.premain(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:397)
Caused by: java.lang.InstantiationException: Monitor initialization failed: SEAgent.config.xml does not have a valid event sender configured
at com.microsoft.ManagementServices.APMAgent.Agent.Monitor.AgentContext.<init>(Unknown Source)
... 12 more
Does anyone have seen this error before? Can someone help me with this one?
Thnx,I'm running tomcat on a CentOS release 6.4 (Final) server. I installed Tomcat 6 through an RPM from the CentOS sources. I have installed Apache Tomcat/6.0.24 wit JVM version 1.7.0_09-icedtea-mockbuild_2013_01_16_18_52-b00, the JVM Vendor is Oracle Corporation.
My tomcat configuration needs to be done in '/etc/tomcat6/tomcat6.conf'
I installed the APM Agent in the path '/opt/apm/' with the rights 40755 (root/root). The files have the following rights:
-rw-rw-r-- 1 root tomcat 32046 Mar 3 15:38 apm_facade.jar
-rw-rw-r-- 1 root tomcat 244819 Mar 3 15:38 apm_monitor.jar
-rw-rw-r-- 1 root tomcat 38110 Mar 3 15:38 apm_producers.jar
-rw-rw-r-- 1 root tomcat 207006 Mar 3 15:38 asm-all-3.3.1.jar
-rw-rw-r-- 1 root tomcat 4157 Mar 3 15:38 ASM_Third_Party_Notices.txt
-rw-rw-r-- 1 root tomcat 241368 Mar 3 15:38 DispatcherStub.dll
-rw-rw-r-- 1 root tomcat 36880 Mar 3 15:38 pmonitor.config.xml
-rw-rw-r-- 1 root tomcat 2625 Mar 3 15:38 SEAgent.config.xml
-rw-rw-r-- 1 root tomcat 830 Mar 5 15:19 Starter.properties
The above rights are equal to the /etc/tomcat6 directory with the tomcat configuration files.
In the tomcat6.conf I have added the following entries:
#Microsoft SCOM APM
JAVA_OPTS="${JAVA_OPTS} -Djava.library.path=/opt/apm"
JAVA_OPTS="${JAVA_OPTS} -javaagent:/opt/apm/apm_facade.jar -Xbootclasspath/p:/opt/apm/apm_producers.jar -Xbootclasspath/p:/opt/apm/apm_facade.jar"
When I look into the running tomcat process I see the following:
tomcat 17401 1 0 Mar05 ? 00:00:39 /usr/lib/jvm/jre/bin/java -Djava.library.path=/opt/apm -javaagent:/opt/apm/apm_facade.jar -Xbootclasspath/p:/opt/apm/apm_producers.jar -Xbootclasspath/p:/opt/apm/apm_facade.jar
-Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory -Djava.library.path=/opt/apm -javaagent:/opt/apm/apm_facade.jar -Xbootclasspath/p:/opt/apm/apm_producers.jar -Xbootclasspath/p:/opt/apm/apm_facade.jar -Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory
-classpath :/usr/share/tomcat6/bin/bootstrap.jar:/usr/share/tomcat6/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcatalina.base=/usr/share/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat6/temp
-Djava.util.logging.config.file=/usr/share/tomcat6/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start
My Starter.Properties looks like this:
# Jars to load by inner classloader.
# Use semicolons to separate the JAR entries
ClassPath=apm_monitor.jar;asm-all-3.3.1.jar;apm_producers.jar
# Path to pmonitor.config
MonitorConfigFileName=pmonitor.config.xml
# Path to SEAgent.config
AgentConfigFileName=SEAgent.config.xml
# Log file name
# Example for full-path location:
# LogFileName=c:\\tracelog\\apm-java-agent.log
# Example for relative path (to agent jar files):
# LogFileName=apm-java-agent.log
LogFileName=apm-java-agent.log
# Log level (SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST)
# A level of FINER or FINEST may expose Personally identifiable
# information (PII) in the log file. The levels below INFO are
# intended for debugging and diagnostic use only.
LogLevel=FINEST
The 'apm-java-agent.log' is not created on the system. The only logging is done in the catalina.out. When restarting tomcat I see the following entries in te log file:
INFO: Initializing Java APM Agent (Build: 1.10.100.15, Label: NotFromLabel, BuildDate: 20131112)
Mar 06, 2014 9:35:21 AM com.microsoft.ManagementServices.APMAgent.Log.SystemLogger info
INFO: Java APM Agent loading succeeded (Build: 1.10.100.15, Label: NotFromLabel, BuildDate: 20131112)
Mar 06, 2014 9:35:21 AM com.microsoft.ManagementServices.APMAgent.Log.SystemLogger info
INFO: Initializing Java APM Agent (Build: 1.10.100.15, Label: NotFromLabel, BuildDate: 20131112)
Mar 06, 2014 9:35:21 AM com.microsoft.ManagementServices.APMAgent.Log.SystemLogger warning
WARNING: Failed registering the COUNTER MBean
Mar 06, 2014 9:35:21 AM com.microsoft.ManagementServices.APMAgent.Log.SystemLogger error
SEVERE: Java APM Agent initialization failed: SEAgent.config.xml does not have a valid event sender configured
Mar 06, 2014 9:35:21 AM com.microsoft.ManagementServices.APMAgent.Log.SystemLogger info
INFO: Java APM Agent loading failed (Build: 1.10.100.15, Label: NotFromLabel, BuildDate: 20131112)
Hope this gives your some more background around my problem, I double checked the permissions.. -
How to configure for struts-config.xml
Hi
I am having a JSp which is Mapped to anothr action through the registration.The registartion is mapped to action
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="org.apache.struts.validator.ValidatorPlugIn" session="true" %>
<%@ page import="org.apache.struts.Globals" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<html:html locale="true">
<head>
<title><bean:message key="index.title"/></title>
<html:base/>
</head>
<body bgcolor="white">
<logic:notPresent name="<%= Globals.MESSAGES_KEY %>" >
<font color="red">
ERROR: Application resources not loaded -- check servlet container
logs for error messages.
</font>
</logic:notPresent>
<%-- :TODO: Need code to do this with moudles
<logic:notPresent name="<%= ValidatorPlugIn.VALIDATOR_KEY %>" >
<font color="red">
ERROR: Validator resources not loaded -- check Commons Logging
logs for error messages.
</font>
</logic:notPresent>
--%>
<h3><bean:message key="registrationForm.title"/>1222AAAAAAAAAAAAA</h3>
<ul>
<li><html:link action="Test.jsp">Test212121.jsp</html:link >
<li><html:link action="/registration"><bean:message key="registrationForm.title"/></html:link></li>
<%System.out.println("hellooooooooooooo");%>
<!-- :TODO: Should have a non-JaveScript message-by-field example -->
<li>
<html:link action="/jsRegistration"><bean:message key="jsRegistrationForm.title"/></html:link> -
<bean:message key="jsRegistrationForm.description"/>
</li>
<li>
<html:link action="/multiRegistration"><bean:message key="multiRegistrationForm.title"/></html:link> -
<bean:message key="multiRegistrationForm.description"/>
</li>
</ul>
<a href="registration.jsp">Registration Test</a>
<p> </p>
<h3><bean:message key="typeForm.title"/></h3>
<ul>
<li>
<html:link action="/type"><bean:message key="typeForm.title"/></html:link> -
<bean:message key="typeForm.description"/>
</li>
<li>
<html:link action="/editJsType"><bean:message key="jsTypeForm.title"/></html:link> -
<bean:message key="jsTypeForm.description"/>
</li>
</ul>
<p> </p>
<h3>Change Language | Changez Le Langage</h3>
<ul>
<li><html:link action="/locale?language=en">English | Anglais</html:link></li>
<li>
<html:link action="/locale?language=fr">French | Francais</html:link> -
<bean:message key="localeForm.fr"/>
</li>
<li>
<html:link action="/locale?language=fr&country=CA">French Canadian | Francais Canadien</html:link> -
<bean:message key="localeForm.frCA"/>
</li>
<li>
<html:link action="/locale?language=ja" useLocalEncoding="true">Japanese | Japonais</html:link> -
<bean:message key="localeForm.ja"/>
</li>
</ul>
<p> </p>
==============struts-config.xml=================\<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<!--============================================== Form Bean Definitions -->
<form-beans>
<!-- Registration form bean -->
<form-bean name="registrationForm" type="validator.RegistrationForm" />
<!-- Multi-Part Registration form bean -->
<form-bean name="multiRegistrationForm" type="validator.RegistrationForm" />
<!-- Type form bean -->
<form-bean name="typeForm" type="validator.TypeForm" />
<!-- JavaScript Type form bean -->
<form-bean name="jsTypeForm" type="validator.TypeForm" />
</form-beans>
<!-- ======================================== Global Forward Definitions -->
<global-forwards>
<forward name="home" path="/index.jsp" />
</global-forwards>
<!-- ========================================= Action Mapping Definitions -->
<action-mappings>
<action path="/welcome" forward="/index.jsp" />
<!-- Registration Action
-->
<forward name="registration" path="/registration.do" /> //// ==========>here it is mapped
<action path="/registration" forward="/registration.jsp" />
<action path="/registration-submit" type="validator.RegistrationAction" name="registrationForm" scope="request" validate="true" input="input">
<forward name="input" path="/registration.do" />
<forward name="success" path="/index.jsp" />
</action>
<action path="/jsRegistration" forward="/jsRegistration.jsp" />
<!-- Multi-Part Registration Action -->
<action path="/multiRegistration" forward="/multiRegistration1.jsp" />
<action path="/multiRegistration-submit" type="validator.MultiRegistrationAction" name="multiRegistrationForm" scope="request" validate="false">
<forward name="success" path="/welcome.do" />
<forward name="input1" path="/multiRegistration1.jsp" />
<forward name="input2" path="/multiRegistration2.jsp" />
</action>
<!-- Type Action -->
<action path="/type" forward="/type.jsp" />
<action path="/type-submit" type="validator.TypeAction" name="typeForm" scope="request" validate="true" input="input">
<forward name="input" path="/type.do" />
<forward name="success" path="/welcome.do" />
</action>
<!-- JavaScript Type Action -->
<action path="/editJsType" type="validator.EditTypeAction" scope="request" validate="false">
<forward name="success" path="/jsType.do" />
</action>
<action path="/jsType" forward="/jsType.jsp" />
<action path="/jsType-submit" type="validator.TypeAction" name="jsTypeForm" scope="request" validate="true" input="input">
<forward name="input" path="/editJsType-submit.do?typeForm.reset=false" />
<forward name="success" path="/welcome.do" />
</action>
<!-- Locale Action -->
<action path="/locale" type="validator.LocaleAction" name="localeForm" scope="request">
<forward name="success" path="/welcome.do" />
</action>
</action-mappings>
<!-- ============================================= Controller Definition -->
<controller inputForward="true" />
<!-- ===================================== Message Resources Definitions -->
<message-resources parameter="validator.MessageResources" />
<!-- ============================================ Plug Ins Configuration -->
<!--
Add multiple validator resource files by setting the pathnames property
with a comma delimitted list of resource files to load.
-->
<plug-in className="validator.ValidatorPlugIn">
<set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validator/validation.xml" />
<set-property property="stopOnFirstError" value="true" />
</plug-in>
</struts-config>
<html:img page="/struts-power.gif" altKey="index.powered"/>
</body>
</html:html>Hey,
U can do it the way u want. Use DispatchAction Class instead of Action Class. Just go through the documentation for this. If u still have problem let me know.
Thanks
KM
Hi,
I am new to struts and when i am doing my application i find some >>difficulty i.e,
I have two buttons on a jsp page Save,Delete.when I click on >>save ,saveAction must be called.if we click delete deleteAction to be >>called.
for this how can I configure in struts-config.xml file. and how it >>knows which button has been clicked.
Can any one please guid me.
Thanks -
How to configure multiple jsp files with diff beans in faces-config.xml??
Hi All,
I have 2 seperate jsp pages one is a login page and the other is the main application page.Now i am handling both the pages with seperate Bean class with respective setter and getter methods.How can i state the same in faces-config.xml file???..
Is the below way correct???
<?xml version='1.0' encoding='UTF-8'?>
<!-- =========== FULL CONFIGURATION FILE ================================== -->
<faces-config version="1.2"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
<managed-bean>
<managed-bean-name>LoginForm</managed-bean-name>
<managed-bean-class>useraccess.LoginForm</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/login.jsp</from-view-id>
<navigation-case>
<from-action>#{LoginForm.CheckValidUser}</from-action>
<from-outcome>success</from-outcome>
<to-view-id>/success.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-action>#{LoginForm.CheckValidUser}</from-action>
<from-outcome>fail</from-outcome>
<to-view-id>/fail.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name>DSRApplication</managed-bean-name>
<managed-bean-class>DSRApplication.LoginForm</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/DSR.jsp</from-view-id>
<navigation-case>
<from-action>#{DSRApplication.checkValidDateInAllFields}</from-action>
<from-outcome>alldatasuccess</from-outcome>
<to-view-id>/success.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-action>#{DSRApplication.checkValidDateInAllFields}</from-action>
<from-outcome>datafail</from-outcome>
<to-view-id>/fail.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>Thanks in advance to all.
regards,
Viswanadh.Thanks ejp for the reply.
Since i am a beginner even i dont know the exact reason to answer you for why am i using JSP with Facelets.Kindly provide me the suggestion and valuable information you have so that i can learn.
Apart from this i want to know whether the way provided in that faces-config.xml is possible or do we have a way to make that possible???
regards,
Viswanadh.
Maybe you are looking for
-
I am unable to click on a layer mask for editing. CS6 OS10.10
I have been working on a file and all of a sudden I am unable to click on a layer mask in order to edit that mask. I am still able to do the following things: Create a new adjustment layer. When I do this a new mask is formed for that layer and autom
-
What are the settings to manually setup icloud in outlook??
My outlook keeps informing me my IMAP has moved and requests password- this just repeats over and over.
-
Running Disk Cleanup: Windows 8
Sometimes in troubleshooting it is a good idea to run the Disk Cleanup feature built into the Windows OS. This is one of the advised steps to perform if one receives a Fatal Error when installing printers and is good to know how to do. The Printer S
-
Required DG4ODBC related info for Oracle 10 - 10.2.0.1.0
Hello All, I am using Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod I would like to know if it is possible to integrate DG4ODBC driver with Oracle 10g coz most of help seem to be available for Oracle 11g. And in case it is availabl
-
ITunes stops working Windows 7 64
I have Windows 7 64 and iTunes 10.7 and since I downloaded 10.7 I have been having problems downloading albums and watching videos. I can go to the iTunes store, buy the album, but once the download starts I get a message that "iTunes has stopped wo