Deployment problem - Weblogic 8.1 SP2
I've created a simple, one-page project to test deployment to Weblogic 8.1 SP2.
I followed the instructions in http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/weblogicdeploy.html except for the database related parts (my project does not access a database).
On startup, Weblogic fails to proload the FacesServlet for my app:
####<May 18, 2006 2:45:42 PM PDT> <Error> <HTTP> <hqp-vs-hypdev01> <ProtivitiServer> <main> <<WLS Kernel>> <> <BEA-101216> <Servlet: "Faces Servlet" failed to preload on startup in Web application: "HelloTest".
javax.servlet.ServletException
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:884)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:848)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:787)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3252)
and when I try to access my Page1.jsp, Weblogic throws another (related?) exception:
<BEA-101017> <[ServletContext(id=1830320,name=HelloTest,context-path=/HelloTest)] Root cause of ServletException.
java.lang.NullPointerException
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:993)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:869)
Any help with this? Do I need Weblogic 8.1 SP4?
hi,
0. Check WLS classpath in startWeblogic.{cmd.sh} for JSF jars
1. Check your web.xml with section conserning FacesServlet
it shoul look like:
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
2. Try to find any other servlet and look at its <load-on-startup> section.
Final Java Servlet Specification Ver. 2.4 page 127:
" The load-on-startup element indicates that this
servlet should be loaded (instantiated and have
its init() called) on the startup of the web
application. The optional contents of these
element must be an integer indicating the order in
which the servlet should be loaded. If the value
is a negative integer, or the element is not
present, the container is free to load the servlet
whenever it chooses. If the value is a positive
integer or 0, the container must load and
initialize the servlet as the application is
deployed. The container must guarantee that
servlets marked with lower integers are loaded
before servlets marked with higher integers. The
container may choose the order of loading of
servlets with the same load-on-start-up value "
Kind regards,
Alex
Message was edited by:
AKlimenko
Similar Messages
-
Error deploying on weblogic 8.1 SP2
Any help with the following would be greatly appreciated.
java.lang.reflect.InvocationTargetException
at COM.jrockit.reflect.NativeMethodInvoker.invoke0(ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Native Method)
at COM.jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at COM.jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
at weblogic.management.console.actions.RequestableActionSupport.setParam(Ljava.beans.PropertyDescriptor;[Ljava.lang.String;)V(RequestableActionSupport.java:140)
at weblogic.management.console.actions.RequestableActionSupport.setParams(Lweblogic.management.console.utils.RequestParams;)V(RequestableActionSupport.java:88)
at weblogic.management.console.actions.internal.ActionServlet.doAction(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ActionServlet.java:149)
at weblogic.management.console.actions.internal.ActionServlet.doGet(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ActionServlet.java:91)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(Optimized Method)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(Optimized Method)
at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:170)
at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
Caused by: java.lang.IllegalArgumentException: component can't be null.
at weblogic.management.console.actions.mbean.DeployerAction.setApplication(Lweblogic.management.configuration.ApplicationMBean;)V(DeployerAction.java:104)
... 21 more
--------------- nested within: ------------------
weblogic.management.console.actions.ActionException - with nested exception:
[java.lang.reflect.InvocationTargetException - with target exception:
[java.lang.IllegalArgumentException: component can't be null.]]
at weblogic.management.console.actions.ErrorAction.(Ljava.lang.Throwable;)V(ErrorAction.java:38)
at weblogic.management.console.actions.internal.ActionServlet.doAction(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ActionServlet.java:200)
at weblogic.management.console.actions.internal.ActionServlet.doGet(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ActionServlet.java:91)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(Optimized Method)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(Optimized Method)
at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:170)
at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
Current Date
Tue Jan 10 11:37:25 EST 2006
Console Release Build
null
Console Build
null
Server Release Build
8.1.2.0
Server Build
WebLogic Temporary Patch for CR214774 03/02/2005 21:54:08
All Server Product Versions
WebLogic Temporary Patch for CR214774 03/02/2005 21:54:08
WebLogic Server 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284
WebLogic XMLX Module 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284
Request Info
Protocol: HTTP/1.1
ServerName: ipsad1qa-e26.ops.aol.com
ServerPort: 15165
Secure: false
ContextPath: /console
ServletPath: /common/error.jsp
QueryString: actionType=0&application=domains%3AName%3Daol-bt-acctservice-V2_0-weblogic81%2CType%3DApplication
PathInfo: null
PathTranslated: null
RequestURI: /console/common/error.jsp
AuthType: null
ContentType: null
CharacterEncoding: null
Locale: en_US
Method: GET
Session: weblogic.servlet.internal.session.MemorySessionData@816f03f
RequestedSessionId: DDgM1PuReh2Cdy4ZDBIcyTvSSdHCnQV2Ujoy2hEfkPU1czoHeO6C!756207268!1136910540824
RequestedSessionIdFromCookie: true
RequestedSessionIdFromURL: false
Parameters
actionType = 0 application = domains:Name=aol-bt-acctservice-V2_0-weblogic81,Type=Application
Attributes
wlinternalaction = weblogic.management.console.actions.internal.InternalActionContext@9bbc74a weblogic.management.console.catalog.Catalog = weblogic.management.console.catalog.XmlCatalog@82946eb weblogic.management.console.helpers.DebugHelper = weblogic.management.console.helpers.DebugHelper@9bbc769 weblogic.management.console.helpers.UrlHelper = weblogic.management.console.helpers.UrlHelper@9bbd2d0 weblogic.servlet.network_channel.port = 15165
Headers
Accept = text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Charset = ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding = gzip,deflate Accept-Language = en-us,en;q=0.5 Connection = keep-alive Cookie = testcookie=; RSP_COOKIE=type=0&name=RGF2aWRvY2ll; ADMINCONSOLESESSION=DDgM1PuReh2Cdy4ZDBIcyTvSSdHCnQV2Ujoy2hEfkPU1czoHeO6C!756207268 Host = ipsad1qa-e26.ops.aol.com:15165 Keep-Alive = 300 Referer = http://ipsad1qa-e26.ops.aol.com:15165/console/actions/mbean/DoMBeanWizardAction?parentMBean=domains%3AName%3Ddomains%2CType%3DDomain&attributes=weblogic.management.configuration.ApplicationMB ean.Name%3Daol-bt-acctservice-V2_0-weblogic81&attributes=weblogic.management.configuration.ApplicationMBean.Targets%3Ddomains%3AName%3Dipsqa-Cluster%2CType%3DCluster&attributes=weblogic.management.configuration.ApplicationMBean.Path%3D%2Fusr%2Fweb%2Fbea%2F8.1.2%2Fdomains%2Fipsqa-adm%2Fupload%2Faol-bt-acctservice-V2_0-weblogic81.ear&attributes=Path.currentPath%3D%2Fusr%2Fweb%2Fbea%2F8.1.2%2Fdomains%2Fipsqa-adm%2Fupload%2F&reloadNav=false&message=&wizardName=ApplicationAssistant&step=Configure&MBeanClass=weblogic.management.configuration.ApplicationMBean User-Agent = Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
BrowserInfo
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
IE: false
Netscape: true
Supported: true
JavscriptHrefs: true
TableCellClick: false
DocumentReloadedOnResize: true
DropdownStretchable: false
CellSpacingBlank: true
EmptyCellBlank: true
ImgOnclickSupported: false
TableBorderFancy: false
PartialToWideTables: true
DisabledControlSupported: falseThat appears to be a bug in the console. You might try the command-line tool java weblogic.Deployer for deploying apps. java weblogic.Deployer -examples will give detailed usage info.
-- Rob
WLS Blog http://dev2dev.bea.com/blog/rwoollen/ -
Can't deploy a SINGLE bean in weblogic 6.1 SP2 w/o application reload
Anyone know how to update a single bean in an application without
redeploying the entire application?
We have a project containing 101 beans (session and entity) and 372
jsps which we are deploying on weblogic 6.1, SP2 as a single
application. The project is deployed in an exploded directory format
as follows:
trader/
META-INF/application.xml
lib/
third-party.jar
third-party.jar (etc.)
SessionBean.jar
EntityBean.jar (etc.)
trader/
WEB-INF/web.xml
META-INF/MANIFEST.MF (contains Class-Path: entry to lib dir)
jsp/html/gif's reside below this point.
Each bean jar has a META-INF/MANIFEST.MF to resolve third-party
library dependencies through the use of the Class-Path entry.
When we we try to update a single bean's implementation, the
entire application reloads, which can take between 10 - 30 minutes.
We have tried using the weblogic.deploy tool as well as undeploying
and redeploying the bean from the console. In both cases, the
entire application reloads.
When we use weblogic.deploy, we've tried the following:
weblogic.deploy
-url T3://localhost:7001
update weblogicpwd trader ~/trader/build/SessionBean.jar
and
weblogic.deploy
-url T3://localhost:7001
-component SessionBean:srvr1
update weblogicpwd trader ~/trader/build/SessionBean.jarAnyone know how to update a single bean in an application without
redeploying the entire application?
We have a project containing 101 beans (session and entity) and 372
jsps which we are deploying on weblogic 6.1, SP2 as a single
application. The project is deployed in an exploded directory format
as follows:
trader/
META-INF/application.xml
lib/
third-party.jar
third-party.jar (etc.)
SessionBean.jar
EntityBean.jar (etc.)
trader/
WEB-INF/web.xml
META-INF/MANIFEST.MF (contains Class-Path: entry to lib dir)
jsp/html/gif's reside below this point.
Each bean jar has a META-INF/MANIFEST.MF to resolve third-party
library dependencies through the use of the Class-Path entry.
When we we try to update a single bean's implementation, the
entire application reloads, which can take between 10 - 30 minutes.
We have tried using the weblogic.deploy tool as well as undeploying
and redeploying the bean from the console. In both cases, the
entire application reloads.
When we use weblogic.deploy, we've tried the following:
weblogic.deploy
-url T3://localhost:7001
update weblogicpwd trader ~/trader/build/SessionBean.jar
and
weblogic.deploy
-url T3://localhost:7001
-component SessionBean:srvr1
update weblogicpwd trader ~/trader/build/SessionBean.jar -
JSF and weblogic 8.1 sp2?? Please help!
Hello All -
We are part of a small team here in SF at a biotech company... they have given us the green light to use JSF on a small project.
Only problem is that we must deploy to Weblogic 8.1 SP2 & I can't get JSF to work on Weblogic 8.1 SP2.
I get strange errors -- an inability to control navigation. The simple "hello world" app that comes with the Manning book "Javaserver faces in Action" does not work on WL 8.1 SP2. It does however work on Tomcat.
I have even written a hack servlet that starts the listener manually that is needed for JSF to work. (http://forum.java.sun.com/thread.jspa?threadID=499690&start=15&tstart=30)
Any ideas on this? We are getting desperate with a deadline looming Thursday. Want to make this work & not have to go back to Struts.
One blog I saw said that what is needed is a Weblogic patch. Anyone know anything about this? (http://jroller.com/page/RickHigh/20040929)
Thank you-
MattI'm trying to get a JSF web app I have working on
tomcat ported to weblogic 8.1 sp2.
When I deploy the webapp I get the following
exception.
I get the same exception when I try to deploy the JSF
sample cardemo.war. (I've tried both JSF1.0 and JSF
1.1, both result in the same error).Hello Kieth,
Have you considered this content from the README:
* Some web containers (Notably BEA WebLogic Server) don't follow the
JSP 1.2 Spec rule of calling ServletContextListeners listeners defined
in tld files in the META-INF directory of a jar. Running a faces
webapp in such a container requires you to manually declare the
ServletContextListener. The listener-class you need to specify is
com.sun.faces.config.ConfigureListener
Ed (EG Member) -
I am not able to invoke a web service deployed on WebLogic 8.1 SP2 via a client using the proxy jar provided by WebLogic's JWS > Overview > Generate Java Proxy tool.
I am getting a java.net.ConnectException.
Both the client and the WebService are on the same server.
Thanks!!
Inder./Please see the instructions below. If this does not help, please open a case with customer support and tell them it may be related to CR235479
DESCRIPTION:
When a platform domain is created, the admin server can be started without
any issues and a managed server can also be started without any errors if
using startManagedWebLogic.sh. But when a managed server is started using the
nodemanager, the managed server fails to start with the following error.
The WebLogic Server did not start up properly.
java.lang.NoClassDefFoundError: com/bea/wsrp/util/debug/Debug
(Complete stack trace with be added as a note)
The reason for this is that:
startWebLogic.sh(cmd) and startManagedWebLogic.sh(cmd) for platform domains
call <User domain>/setDomainEnv.sh which includes all the jars necessary for
a platform domain in the CLASSPATH.
Whereas startNodeManager.sh calls <WL_HOME>/common/bin/commEnv.sh, which is
the same for both platform and server installations of weblogic and has only
weblogic.jar in the CLASSPATH.
Looking at historical cases, the steps to start NodeManager successfully in a
platform domain are:
1.
a. Copy admin server classpath (from <user Domain>/startWebLogic.sh) to
that of all managed servers in the 'Remote Start' tab of the WLS Console
OR
b. Copy admin server classpath to <WL_HOME>/server/bin/startNodeManager.sh
(If the same nodemanager is used to manage server domain servers and platform
domain servers, will there be any issue with this approach??)
2. Copy the wsrpKeystore.jks file from your domain directory to the
nodemanager directory (the parent of the directory where all the server
directories are replicated in the node manager. By default: <WL
HOME>/common/nodemanager)
But these steps are not publicly documented in edocs.
CONFIGURATION:
Weblogic Platform Domain 8.1 (all service packs)
WORKAROUND:
Steps 1 and 2 above. -
Hot deployment problems with weblogic 7.0 sp2
Hi Guys
I am trying out hot deplyment of a j2ee application on WebLogic Server 7.0 SP2
Approach 1
The application is deployed in exploded ear format from the folder
d:/work/testbed/ear. The appropriate entry in config.xml looks like this.
<Application Deployed="true" Name="Testbed"
Path="D:\tools\bea702\projects\testbed\applications\testbed"
StagedTargets="" TwoPhase="false">
<EJBComponent Name="SessionBeans" Targets="myserver" URI="SessionBeans.jar"/>
</Application>
Creating or touching the REDEPLOY file in META-INF folder doesnt cause hot
deployment to occur
Approach 2
Copied the ear file to the applications folder. Creating or touching the
REDEPLOY file in META-INF file caused the application to be redeployed.
However the weblogic console is constantly spitting out this message.
Undeploying EJB Component SessionBeans
<Sep 29, 2003 9:53:46 PM IST> <Notice> <Application Poller> <149400> <Activating application: Testbed>
<Sep 29, 2003 9:53:46 PM IST> <Notice> <Application Poller> <149404> <Activate application Testbed on myserver - Completed>
Undeploying EJB Component SessionBeans
<Sep 29, 2003 9:53:51 PM IST> <Notice> <Application Poller> <149400> <Activating application: Testbed>
<Sep 29, 2003 9:53:52 PM IST> <Notice> <Application Poller> <149404> <Activate application Testbed on myserver - Completed>
Undeploying EJB Component SessionBeans
<Sep 29, 2003 9:53:57 PM IST> <Notice> <Application Poller> <149400> <Activating application: Testbed>
<Sep 29, 2003 9:53:57 PM IST> <Notice> <Application Poller> <149404> <Activate application Testbed on myserver - Completed>
It seems that the application is getting undeployed and reactivated every 5
seconds.
Questions
1) Any reasons why approach 1 didnt work
2) What could be causing this constant undeployment and reactivation
Thanks for your time
anandI think I figured out what is causing the application to be redployed every 5
seconds. It seems that if the application is deployed in the weblogic domains
applications folder you should NOT create a <Application element. Weblogic
automatically recognizes all applications in this folder and deploys them.
Removing the application entry (as shown in Approach 1) from the config.xml
and hot deploying by touching the REDEPLOY file did the trick.
One question still remains. Is hot deployment only possible when I copy the
exploded ear to the domain "applications" folder
Thanks for your time
anand
ps : The idea of trying it without the <Application element came from trying
out hot deployment in Weblogic 8. WLS8 first deploys the application in the
applications folder, followed by the application configured in the
<Application element. Since both the applications were essentially the same it
gave me a JNDIException saying that some entity is already bound with the same
name. Weblogic 7 however doesnt complain at this point.
- anand
In article <[email protected]>, Anand Raman wrote:
Hi Guys
I am trying out hot deplyment of a j2ee application on WebLogic Server 7.0 SP2
Approach 1
The application is deployed in exploded ear format from the folder
d:/work/testbed/ear. The appropriate entry in config.xml looks like this.
<Application Deployed="true" Name="Testbed"
Path="D:\tools\bea702\projects\testbed\applications\testbed"
StagedTargets="" TwoPhase="false">
<EJBComponent Name="SessionBeans" Targets="myserver" URI="SessionBeans.jar"/>
</Application>
Creating or touching the REDEPLOY file in META-INF folder doesnt cause hot
deployment to occur
Approach 2
Copied the ear file to the applications folder. Creating or touching the
REDEPLOY file in META-INF file caused the application to be redeployed.
However the weblogic console is constantly spitting out this message.
Undeploying EJB Component SessionBeans
<Sep 29, 2003 9:53:46 PM IST> <Notice> <Application Poller> <149400> <Activating application: Testbed>
<Sep 29, 2003 9:53:46 PM IST> <Notice> <Application Poller> <149404> <Activate application Testbed on myserver - Completed>
Undeploying EJB Component SessionBeans
<Sep 29, 2003 9:53:51 PM IST> <Notice> <Application Poller> <149400> <Activating application: Testbed>
<Sep 29, 2003 9:53:52 PM IST> <Notice> <Application Poller> <149404> <Activate application Testbed on myserver - Completed>
Undeploying EJB Component SessionBeans
<Sep 29, 2003 9:53:57 PM IST> <Notice> <Application Poller> <149400> <Activating application: Testbed>
<Sep 29, 2003 9:53:57 PM IST> <Notice> <Application Poller> <149404> <Activate application Testbed on myserver - Completed>
It seems that the application is getting undeployed and reactivated every 5
seconds.
Questions
1) Any reasons why approach 1 didnt work
2) What could be causing this constant undeployment and reactivation
Thanks for your time
anand -
WLS 7.0 SP2 Cluster deployment problems
I am having problems deploying our application to a weblogic cluster. Environment is
windows 2000/XP and weblogic 7.0 SP2.
Here's a simplified version of the cluster.
I have 2 managed servers that are part of the cluster.I have defined the managed server
configuration in the admin server's config.xml as below.
<Server Cluster="myCluster" ExpectedToRun="false" ListenPort="7771"
Machine="machine1" Name="Server1" ServerVersion="7.0.2.0"
WeblogicPluginEnabled="false" XMLEntityCache="XMLCacheMBean_Server1">
<COM Name="Server1"/>
<ExecuteQueue Name="default" ThreadCount="15"/>
<IIOP Name="Server1"/>
<JTAMigratableTarget Cluster="myCluster" Name="Server1" UserPreferred
er="Server1"/>
<JTARecoveryService Name="Server1"/>
<KernelDebug Name="Server1"/>
<Log Name="Server1"/>
<SSL Enabled="false" ListenPort="7772" Name="Server1"/>
<ServerDebug Name="Server1"/>
<ServerStart Name="Server1"/>
<WebServer Name="Server1"/>
</Server>
<Server Cluster="myCluster" ExpectedToRun="false" ListenPort="7771"
Machine="machine2" Name="Server2" ServerVersion="7.0.2.0"
WeblogicPluginEnabled="false" XMLEntityCache="XMLCacheMBean_Server2">
<COM Name="Server2"/>
<ExecuteQueue Name="default" ThreadCount="15"/>
<IIOP Name="Server2"/>
<JTAMigratableTarget Cluster="myCluster" Name="Server2" UserPreferred
er="Server2"/>
<JTARecoveryService Name="Server2"/>
<KernelDebug Name="Server2"/>
<Log Name="Server2"/>
<SSL Enabled="false" ListenPort="7772" Name="Server2"/>
<ServerDebug Name="Server2"/>
<ServerStart Name="Server2"/>
<WebServer Name="Server2"/>
</Server>
<Server AcceptBacklog="50" HelpPageURL="c:/public/as"
InstrumentStackTraceEnabled="true"
JDBCLogFileName="myserver\jdbc.log" JDBCLoggingEnabled="false"
ListenPort="7770" LogRemoteExceptionsEnabled="true"
LoginTimeout="1000" Machine="MyMachine" Name="myserver"
NativeIOEnabled="false" ReverseDNSAllowed="false"
ServerVersion="7.0.2.0" StdoutDebugEnabled="true"
StdoutEnabled="true" StdoutSeverityLevel="32"
SystemPassword="{3DES}2LwBLCayHcc="
ThreadPoolPercentSocketReaders="99" TunnelingClientPingSecs="45"
TunnelingClientTimeoutSecs="40" TunnelingEnabled="false"
WorkspaceShowUserKeysOnly="false"
XMLEntityCache="XMLCacheMBean_myserver" XMLRegistry="company XMLRegist
<COM Name="myserver"/>
<ExecuteQueue Name="default" ThreadCount="15"/>
<IIOP Name="myserver"/>
<JTAMigratableTarget Cluster="" Name="myserver" UserPreferredServer="
rver"/>
<JTARecoveryService Name="myserver"/>
<KernelDebug Name="myserver"/>
<Log FileMinSize="4096" FileName="myserver\company.log"
FileTimeSpan="24" Name="myserver"
NumberOfFilesLimited="true" RotationType="bySize"/>
<SSL ListenPort="7775" Name="myserver"/>
<ServerDebug Name="myserver"/>
<ServerStart Name="myserver"/>
<WebServer DefaultWebApp="go" LogFileName="myserver\access.log"
LoggingEnabled="true" Name="myserver" Targets="myserver"/>
</Server>
<ShutdownClass ClassName="company.appserver.weblogic.companyStartup"
DeploymentOrder="600" Name="companyShutdown2"
Targets="myCluster,Server1,Server2,myserver"/>
<ShutdownClass
ClassName="company.appserver.weblogic.WLTaskManagerInit"
DeploymentOrder="675" Name="TaskManagerShutdown" Targets="Server2"/>
<StartupClass ClassName="company.appserver.weblogic.ContextHandler"
DeploymentOrder="105" FailureIsFatal="true"
Name="ContextHandlerStartup1" Targets="myserver"/>
<XMLEntityCache Name="XMLCacheMBean"/>
<XMLEntityCache Name="XMLCacheMBean_Server1"/>
<XMLEntityCache Name="XMLCacheMBean_Server2"/>
<XMLEntityCache Name="XMLCacheMBean_myserver"/>
<XMLRegistry
DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactory
Name="company XMLRegistry"
SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl" Transf
rFactory="org.apache.xalan.processor.TransformerFactoryImpl"/>
/Domain>
The managed server config.xml looks like below.
$ cat config.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--Last updated on: Fri Nov 12 15:46:28 CET 2004, If your domain is active, ple
ase do not edit the config.xml file. Any changes made to that file while the dom
ain is active will not have any effect on the domain's configuration and are lik
ely to be lost. If your domain is inactive, you may edit this file with an XML e
ditor. If you do so, please refer to the BEA Weblogic Server Configuration Refer
ence documentation available from http://edocs.bea.com/wls/docs70/config_xml.
In general, we recommend that changes to your configuration file be made through
the Administration Console.-->
<Domain ConfigurationVersion="7.0.2.0" Name="company">
<Application Deployed="true" Name="AGENTMANAGER"
Path=".\deployments\activity" TwoPhase="false">
<EJBComponent DeploymentOrder="20" Name="AGENTMANAGER"
Targets="Server2" URI="AGENTMANAGER.jar"/>
</Application>
<Application Deployed="true" Name="MDBERT1"
Path=".\deployments\service" TwoPhase="false">
<EJBComponent DeploymentOrder="46" Name="MDBERT1"
Targets="Server2" URI="MDBERT1.jar"/>
</Application>
<Application Deployed="true" Name="TM" Path=".\deployments\service" TwoPhase
="false">
<EJBComponent DeploymentOrder="15" Name="TM.jar"
Targets="Server2" URI="TM.jar"/>
</Application>
</Application>
<Application Deployed="true" Name="go" Path=".\applications"
StagedTargets="" TwoPhase="false">
<WebAppComponent Name="go" Targets="Server2" URI="go"/>
</Application>
<Application Deployed="true" Name="im" Path=".\applications"
StagedTargets="" TwoPhase="false">
<WebAppComponent Name="im" Targets="Server2" URI="im"/>
</Application>
<Application Deployed="true" Name="pmcl" Path=".\applications"
StagedTargets="" TwoPhase="false">
<WebAppComponent Name="pmcl" Targets="Server2" URI="pmcl"/>
</Application>
<ApplicationManager Name="company"/>
<CachingRealm ACLCacheEnable="true" ACLCacheSize="2000"
ACLCacheTTLNegative="60" ACLCacheTTLPositive="60"
AuthenticationCacheEnable="false" AuthenticationCacheSize="211"
AuthenticationCacheTTLNegative="10"
AuthenticationCacheTTLPositive="60" BasicRealm="companyRealm"
CacheCaseSensitive="true" GroupCacheEnable="true"
GroupCacheSize="100" GroupCacheTTLNegative="60"
GroupCacheTTLPositive="60" GroupMembershipCacheTTL="17700"
Name="companyCacheRealm" PermissionCacheEnable="true"
PermissionCacheSize="211" PermissionCacheTTLNegative="10"
PermissionCacheTTLPositive="60" UserCacheEnable="true"
UserCacheSize="2000" UserCacheTTLNegative="60" UserCacheTTLPositive="60"
/>
<CustomRealm Name="companyRealm" Password="{3DES}2LwBLCayHcc=" RealmClassName
="company.appserver.weblogic.WLRealmStub"/>
<EmbeddedLDAP
Credential="{3DES}VW4H4+7OUny8Er78dGhHbIqbB6w7l9btTnLbz4Cu1jE=" Name="Cy
gent"/>
<FileRealm Name="myFileRealm"/>
<JDBCConnectionPool CapacityIncrement="2"
DriverName="weblogic.jdbc.oci.Driver" InitialCapacity="5"
MaxCapacity="100" Name="Geneva0"
PreparedStatementCacheSize="100"
Properties="user=admin;password=;server=LSUP1"
Targets="Server2" URL="jdbc:weblogic:oracle"/>
<JDBCConnectionPool CapacityIncrement="2"
DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="5"
MaxCapacity="100" Name="JMSDBConnectionPool"
PreparedStatementCacheSize="100"
Properties="user=admin;password=gent;url=jdbc:oracle:thin:@x.x.x.179:1521:SUP1;dll=ocijdbc8;dataSourceName=ejbPool;protocol=thin"
Targets="Server2" URL="jdbc:oracle:thin:@x.x.x.x:1521:LSUP1"/>
<JDBCConnectionPool CapacityIncrement="2"
DriverName="oracle.jdbc.xa.client.OracleXADataSource"
InitialCapacity="5" MaxCapacity="100" Name="ejbPool"
PreparedStatementCacheSize="100"
Properties="user=company_admin;url=jdbc:oracle:thin:@10.28.138.179:1521:P
MCLSUP1;password=company;dll=ocijdbc8;dataSourceName=ejbPool;protocol=thin"
SupportsLocalTransaction="true" Targets="Server2,Server2" URL="jdbc:orac
le:thin:@x.x.x.x:1521:LSUP1"/>
<JDBCDataSource JNDIName="geneva.jdbc.GenevaNonTrans0"
Name="GenevaNonTrans0" PoolName="Geneva0" Targets="Server2"/>
<JDBCTxDataSource EnableTwoPhaseCommit="true"
JNDIName="geneva.jdbc.Geneva0" Name="Geneva0" PoolName="Geneva0" Targets
="Server2"/>
<JDBCTxDataSource EnableTwoPhaseCommit="false"
JNDIName="authJtsDataSource" Name="authJtsDataSource"
PoolName="ejbPool" Targets="Server2"/>
<JMSConnectionFactory DefaultRedeliveryDelay="5000"
DefaultTimeToDeliver="3000" JNDIName="company.ctm.QCFactory"
Name="CTMQCFactory" Targets="Server2"
UserTransactionsEnabled="true" XAConnectionFactoryEnabled="true"/>
<JMSConnectionFactory DefaultRedeliveryDelay="5000"
DefaultTimeToDeliver="3000" JNDIName="company.im.QCFactory"
Name="QCFactory" Targets="Server2"/>
<JMSConnectionFactory DefaultRedeliveryDelay="5000"
DefaultTimeToDeliver="3000" JNDIName="company.im.TCFactory"
Name="TCFactory" Targets="Server2"/>
<JMSJDBCStore ConnectionPool="JMSDBConnectionPool"
Name="companyCTMJDBCStore" PrefixName="CTM"/>
<JMSJDBCStore ConnectionPool="JMSDBConnectionPool"
Name="companyJMSJDBCStore" PrefixName="IM"/>
<JMSServer Name="CIM JMSServer-0" Store="companyJMSJDBCStore" Targets="Server
2">
<JMSQueue JNDIName="javax.jms.inRequestQueue" Name="inRequestQueue"/>
<JMSQueue JNDIName="javax.jms.inResponseQueue" Name="inResponseQueue"/>
<JMSQueue JNDIName="javax.jms.logQueue" Name="logQueue"/>
<JMSQueue JNDIName="javax.jms.outRequestQueue" Name="outRequestQueue"/>
<JMSQueue JNDIName="javax.jms.outResponseQueue" Name="outResponseQueue"/
>
<JMSSessionPool ConnectionFactory="company.im.QCFactory"
ListenerClass="company.service.mg.impl.InboundMsgListener"
Name="InboundRequestSessionPool" SessionsMaximum="5">
<JMSConnectionConsumer
Destination="javax.jms.inRequestQueue"
MessagesMaximum="10" Name="InboundRequestSessionPool" Selector="
TRUE"/>
</JMSSessionPool>
<JMSSessionPool ConnectionFactory="company.im.QCFactory"
ListenerClass="company.service.mg.impl.InboundMsgListener"
Name="InboundResponseSessionPool" SessionsMaximum="5">
<JMSConnectionConsumer
Destination="javax.jms.inResponseQueue"
MessagesMaximum="10"
Name="InboundResponseConnectionConsumer" Selector="TRUE"/>
</JMSSessionPool>
<JMSSessionPool ConnectionFactory="company.im.QCFactory"
ListenerClass="pmcl.company.service.mg.impl.PmclOutboundMsgListener"
Name="OutboundRequestSessionPool" SessionsMaximum="5">
<JMSConnectionConsumer
Destination="javax.jms.outRequestQueue"
MessagesMaximum="10"
Name="OutboundRequestConnectionPool" Selector="TRUE"/>
</JMSSessionPool>
<JMSSessionPool ConnectionFactory="company.im.QCFactory"
ListenerClass="pmcl.company.service.mg.impl.PmclOutboundMsgListener"
Name="OutboundResponseSessionPool" SessionsMaximum="5">
<JMSConnectionConsumer
Destination="javax.jms.outResponseQueue"
MessagesMaximum="10"
Name="OutboundResponseConnectionConsumer" Selector="TRUE"/>
</JMSSessionPool>
<JMSTopic JNDIName="javax.jms.CreateOfferTopic" Name="createOfferTopic"/
>
<JMSTopic JNDIName="javax.jms.CreateProductTopic" Name="createProductTop
ic"/>
</JMSServer>
<JMSServer Name="JMSServer-0">
<JMSQueue JNDIName="javax.jms.logQueue" Name="logQueue"/>
</JMSServer>
<JMSServer DeploymentOrder="1" Name="Task Manager Server-1"
Store="companyCTMJDBCStore" Targets="Server2">
<JMSQueue ErrorDestination="ERT1 Queue" JNDIName="activate_task"
Name="AT1 Queue" RedeliveryLimit="5"/>
<JMSQueue JNDIName="complete_process_flow" Name="CPF1 Queue" RedeliveryL
imit="5"/>
<JMSQueue ErrorDestination="ERT1 Queue" JNDIName="complete_task"
Name="CT1 Queue" RedeliveryLimit="5"/>
<JMSQueue JNDIName="error_task" Name="ERT1 Queue" RedeliveryLimit="1"/>
<JMSQueue ErrorDestination="ERT1 Queue" JNDIName="escalate_task"
Name="ET1 Queue" RedeliveryLimit="5"/>
<JMSQueue JNDIName="recover_process_flow" Name="RPF1 Queue" RedeliveryLi
mit="5"/>
<JMSQueue JNDIName="terminate_process_flow" Name="TPF1 Queue" Redelivery
Limit="5"/>
<JMSQueue ErrorDestination="ERT1 Queue"
JNDIName="terminate_task" Name="TT1 Queue" RedeliveryLimit="5"/>
</JMSServer>
<JTA Name="company" TimeoutSeconds="3600"/>
<Log FileName="./logs/company.log" Name="company"/>
<Machine Name="MyMachine">
<NodeManager Name="MyMachine"/>
</Machine>
<PasswordPolicy MinimumPasswordLength="8" Name="mypasswordpolicy"/>
<Realm CachingRealm="companyCacheRealm" FileRealm="myFileRealm" Name="myRealm
"/>
<SNMPAgent Name="company"/>
<Security CompatibilityMode="true" Name="company"
PasswordPolicy="mypasswordpolicy" Realm="myRealm" RealmSetup="true"/>
<SecurityConfiguration Credential="{3DES}Osb3tCLDbyc="
CredentialGenerated="false" Name="company"/>
<Server HelpPageURL="c:/public/as" InstrumentStackTraceEnabled="true"
JDBCLogFileName="Server2\jdbc.log" JDBCLoggingEnabled="false"
ListenPort="7771" LogRemoteExceptionsEnabled="true"
LoginTimeout="1000" Machine="MyMachine" Name="Server2"
NativeIOEnabled="true" ReverseDNSAllowed="false"
ServerVersion="7.0.2.0" StdoutDebugEnabled="true"
StdoutEnabled="true" StdoutSeverityLevel="32"
SystemPassword="{3DES}2LwBLCayHcc="
ThreadPoolPercentSocketReaders="99" TunnelingClientPingSecs="45"
TunnelingClientTimeoutSecs="40" TunnelingEnabled="false"
WorkspaceShowUserKeysOnly="false"
XMLEntityCache="XMLCacheMBean_Server2" XMLRegistry="company XMLRegistry">
<COM Name="Server2"/>
<ExecuteQueue Name="default" ThreadCount="15"/>
<IIOP Name="Server2"/>
<JTAMigratableTarget Cluster="myCluster" Name="Server2" UserPreferredSer
ver="Server2"/>
<JTARecoveryService Name="Server2"/>
<KernelDebug Name="Server2"/>
<Log FileMinSize="4096" FileName="Server2\company.log"
FileTimeSpan="24" Name="Server2"
NumberOfFilesLimited="true" RotationType="bySize"/>
<SSL ListenPort="7772" Name="Server2"/>
<ServerDebug Name="Server2"/>
<ServerStart Name="Server2"/>
<WebServer DefaultWebApp="go" LogFileName="Server2\access.log"
LoggingEnabled="true" Name="Server2" Targets="Server2"/>
</Server>
<ShutdownClass ClassName="company.appserver.weblogic.companyStartup"
DeploymentOrder="200" Name="companyShutdown2" Targets="Server2"/>
<ShutdownClass
ClassName="company.appserver.weblogic.WLTaskManagerInit"
DeploymentOrder="175" Name="TaskManagerShutdown" Targets="Server2"/>
<StartupClass ClassName="company.appserver.weblogic.ContextHandler"
DeploymentOrder="105" FailureIsFatal="true"
Name="ContextHandlerStartup1" Targets="Server2"/>
<StartupClass ClassName="company.appserver.weblogic.companyStartup"
DeploymentOrder="100" FailureIsFatal="true"
Name="companyStartup1" Targets="Server2,Server2"/>
<StartupClass
ClassName="company.appserver.weblogic.WLTaskManagerInit"
DeploymentOrder="125" FailureIsFatal="true"
Name="TaskManagerStartup" Targets="Server2"/>
<XMLEntityCache Name="XMLCacheMBean"/>
<XMLEntityCache Name="XMLCacheMBean_Server2"/>
<XMLRegistry
DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImp
l"
Name="company XMLRegistry"
SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl" Transform
erFactory="org.apache.xalan.processor.TransformerFactoryImpl"/>
</Domain>
I start the admin server first followed by one of the managed servers. The admin server
starts fine. When I start the managed server 1, it is not deploying the application on the
managed server and I am getting the following exception on the managed server.
Setting custom initial context factory<Nov 25, 2004 11:54:44 PM CET> <Notice> <Management> <141053> <Application Polle
r not started for production server.>
<Nov 25, 2004 11:54:45 PM CET> <Notice> <Management> <141030> <Starting discover
y of Managed Server... This feature is on by default, you may turn this off by p
assing -Dweblogic.management.discover=false>
<Nov 25, 2004 11:54:45 PM CET> <Notice> <WebLogicServer> <000354> <Thread "Liste
nThread.Default" listening on port 7770>
<Nov 25, 2004 11:55:06 PM CET> <Warning> <RJVM> <000519> <Unable to connect to a
remote server on address x.x.x.x and port 7771 with protocol t3. The Exce
ption is java.net.ConnectException: Connection refused: connect>
<Nov 25, 2004 11:55:06 PM CET> <Warning> <Management> <141028> <Unable to locate
Managed server Server2 on listen address x.x.x.223 listen port 7771. Ignore
this message if the Managed server was shutdown intentionally. The Managed serv
er will connect to the Admin server when it is re-started.>
<Nov 25, 2004 11:55:08 PM CET> <Warning> <RJVM> <000519> <Unable to connect to a
remote server on address x.x.x.222 and port 7771 with protocol t3. The Exce
ption is java.net.ConnectException: Connection refused: connect>
<Nov 25, 2004 11:55:08 PM CET> <Warning> <Management> <141028> <Unable to locate
Managed server Server1 on listen address x.x.x.222 listen port 7771. Ignore
this message if the Managed server was shutdown intentionally. The Managed serv
er will connect to the Admin server when it is re-started.>
<Nov 25, 2004 11:55:08 PM CET> <Notice> <WebLogicServer> <000329> <Started WebLo
gic Admin Server "myserver" for domain "company" running in Production Mode>
<Nov 25, 2004 11:55:09 PM CET> <Notice> <WebLogicServer> <000365> <Server state
changed to RUNNING>
<Nov 25, 2004 11:55:09 PM CET> <Notice> <WebLogicServer> <000360> <Server starte
d in RUNNING mode>
<Nov 25, 2004 11:56:57 PM CET> <Warning> <rmi> <080005> <Exception thrown by rmi
server: weblogic.management.internal.AdminMBeanHomeImpl.getMBean(Ljava.lang.Str
ing;Ljava.lang.String;)
javax.management.InstanceNotFoundException: company:Name=Server1,Type=Migratable
Target
javax.management.InstanceNotFoundException: company:Name=Server1,Type=MigratableT
arget
at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
a:144)
at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
a:268)
at weblogic.management.internal.AdminMBeanHomeImpl.getMBean(AdminMBeanHo
meImpl.java:288)
at weblogic.management.internal.AdminMBeanHomeImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:821)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:308)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
>
<Nov 25, 2004 11:56:57 PM CET> <Warning> <rmi> <080005> <Exception thrown by rmi
server: weblogic.management.internal.AdminMBeanHomeImpl.getMBean(Ljava.lang.Str
ing;Ljava.lang.String;)
javax.management.InstanceNotFoundException: company:Name=Server2,Type=Migratable
Target
javax.management.InstanceNotFoundException: company:Name=Server2,Type=MigratableT
arget
at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
a:144)
at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
a:268)
at weblogic.management.internal.AdminMBeanHomeImpl.getMBean(AdminMBeanHo
meImpl.java:288)
at weblogic.management.internal.AdminMBeanHomeImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:821)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:308)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
>
<Nov 25, 2004 11:56:57 PM CET> <Warning> <rmi> <080005> <Exception thrown by rmi
server: weblogic.management.internal.AdminMBeanHomeImpl.getMBean(Ljava.lang.Str
ing;Ljava.lang.String;)
javax.management.InstanceNotFoundException: company:Name=Server2,Type=Migratable
Target
javax.management.InstanceNotFoundException: company:Name=Server2,Type=MigratableT
arget
at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
a:144)
at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
a:268)
at weblogic.management.internal.AdminMBeanHomeImpl.getMBean(AdminMBeanHo
meImpl.java:288)
at weblogic.management.internal.AdminMBeanHomeImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:821)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:308)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
>
Can somebody help me find out why this problem is occuring..?I am having problems deploying our application to a weblogic cluster. Environment is
windows 2000/XP and weblogic 7.0 SP2.
Here's a simplified version of the cluster.
I have 2 managed servers that are part of the cluster.I have defined the managed server
configuration in the admin server's config.xml as below.
<Server Cluster="myCluster" ExpectedToRun="false" ListenPort="7771"
Machine="machine1" Name="Server1" ServerVersion="7.0.2.0"
WeblogicPluginEnabled="false" XMLEntityCache="XMLCacheMBean_Server1">
<COM Name="Server1"/>
<ExecuteQueue Name="default" ThreadCount="15"/>
<IIOP Name="Server1"/>
<JTAMigratableTarget Cluster="myCluster" Name="Server1" UserPreferred
er="Server1"/>
<JTARecoveryService Name="Server1"/>
<KernelDebug Name="Server1"/>
<Log Name="Server1"/>
<SSL Enabled="false" ListenPort="7772" Name="Server1"/>
<ServerDebug Name="Server1"/>
<ServerStart Name="Server1"/>
<WebServer Name="Server1"/>
</Server>
<Server Cluster="myCluster" ExpectedToRun="false" ListenPort="7771"
Machine="machine2" Name="Server2" ServerVersion="7.0.2.0"
WeblogicPluginEnabled="false" XMLEntityCache="XMLCacheMBean_Server2">
<COM Name="Server2"/>
<ExecuteQueue Name="default" ThreadCount="15"/>
<IIOP Name="Server2"/>
<JTAMigratableTarget Cluster="myCluster" Name="Server2" UserPreferred
er="Server2"/>
<JTARecoveryService Name="Server2"/>
<KernelDebug Name="Server2"/>
<Log Name="Server2"/>
<SSL Enabled="false" ListenPort="7772" Name="Server2"/>
<ServerDebug Name="Server2"/>
<ServerStart Name="Server2"/>
<WebServer Name="Server2"/>
</Server>
<Server AcceptBacklog="50" HelpPageURL="c:/public/as"
InstrumentStackTraceEnabled="true"
JDBCLogFileName="myserver\jdbc.log" JDBCLoggingEnabled="false"
ListenPort="7770" LogRemoteExceptionsEnabled="true"
LoginTimeout="1000" Machine="MyMachine" Name="myserver"
NativeIOEnabled="false" ReverseDNSAllowed="false"
ServerVersion="7.0.2.0" StdoutDebugEnabled="true"
StdoutEnabled="true" StdoutSeverityLevel="32"
SystemPassword="{3DES}2LwBLCayHcc="
ThreadPoolPercentSocketReaders="99" TunnelingClientPingSecs="45"
TunnelingClientTimeoutSecs="40" TunnelingEnabled="false"
WorkspaceShowUserKeysOnly="false"
XMLEntityCache="XMLCacheMBean_myserver" XMLRegistry="company XMLRegist
<COM Name="myserver"/>
<ExecuteQueue Name="default" ThreadCount="15"/>
<IIOP Name="myserver"/>
<JTAMigratableTarget Cluster="" Name="myserver" UserPreferredServer="
rver"/>
<JTARecoveryService Name="myserver"/>
<KernelDebug Name="myserver"/>
<Log FileMinSize="4096" FileName="myserver\company.log"
FileTimeSpan="24" Name="myserver"
NumberOfFilesLimited="true" RotationType="bySize"/>
<SSL ListenPort="7775" Name="myserver"/>
<ServerDebug Name="myserver"/>
<ServerStart Name="myserver"/>
<WebServer DefaultWebApp="go" LogFileName="myserver\access.log"
LoggingEnabled="true" Name="myserver" Targets="myserver"/>
</Server>
<ShutdownClass ClassName="company.appserver.weblogic.companyStartup"
DeploymentOrder="600" Name="companyShutdown2"
Targets="myCluster,Server1,Server2,myserver"/>
<ShutdownClass
ClassName="company.appserver.weblogic.WLTaskManagerInit"
DeploymentOrder="675" Name="TaskManagerShutdown" Targets="Server2"/>
<StartupClass ClassName="company.appserver.weblogic.ContextHandler"
DeploymentOrder="105" FailureIsFatal="true"
Name="ContextHandlerStartup1" Targets="myserver"/>
<XMLEntityCache Name="XMLCacheMBean"/>
<XMLEntityCache Name="XMLCacheMBean_Server1"/>
<XMLEntityCache Name="XMLCacheMBean_Server2"/>
<XMLEntityCache Name="XMLCacheMBean_myserver"/>
<XMLRegistry
DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactory
Name="company XMLRegistry"
SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl" Transf
rFactory="org.apache.xalan.processor.TransformerFactoryImpl"/>
/Domain>
The managed server config.xml looks like below.
$ cat config.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--Last updated on: Fri Nov 12 15:46:28 CET 2004, If your domain is active, ple
ase do not edit the config.xml file. Any changes made to that file while the dom
ain is active will not have any effect on the domain's configuration and are lik
ely to be lost. If your domain is inactive, you may edit this file with an XML e
ditor. If you do so, please refer to the BEA Weblogic Server Configuration Refer
ence documentation available from http://edocs.bea.com/wls/docs70/config_xml.
In general, we recommend that changes to your configuration file be made through
the Administration Console.-->
<Domain ConfigurationVersion="7.0.2.0" Name="company">
<Application Deployed="true" Name="AGENTMANAGER"
Path=".\deployments\activity" TwoPhase="false">
<EJBComponent DeploymentOrder="20" Name="AGENTMANAGER"
Targets="Server2" URI="AGENTMANAGER.jar"/>
</Application>
<Application Deployed="true" Name="MDBERT1"
Path=".\deployments\service" TwoPhase="false">
<EJBComponent DeploymentOrder="46" Name="MDBERT1"
Targets="Server2" URI="MDBERT1.jar"/>
</Application>
<Application Deployed="true" Name="TM" Path=".\deployments\service" TwoPhase
="false">
<EJBComponent DeploymentOrder="15" Name="TM.jar"
Targets="Server2" URI="TM.jar"/>
</Application>
</Application>
<Application Deployed="true" Name="go" Path=".\applications"
StagedTargets="" TwoPhase="false">
<WebAppComponent Name="go" Targets="Server2" URI="go"/>
</Application>
<Application Deployed="true" Name="im" Path=".\applications"
StagedTargets="" TwoPhase="false">
<WebAppComponent Name="im" Targets="Server2" URI="im"/>
</Application>
<Application Deployed="true" Name="pmcl" Path=".\applications"
StagedTargets="" TwoPhase="false">
<WebAppComponent Name="pmcl" Targets="Server2" URI="pmcl"/>
</Application>
<ApplicationManager Name="company"/>
<CachingRealm ACLCacheEnable="true" ACLCacheSize="2000"
ACLCacheTTLNegative="60" ACLCacheTTLPositive="60"
AuthenticationCacheEnable="false" AuthenticationCacheSize="211"
AuthenticationCacheTTLNegative="10"
AuthenticationCacheTTLPositive="60" BasicRealm="companyRealm"
CacheCaseSensitive="true" GroupCacheEnable="true"
GroupCacheSize="100" GroupCacheTTLNegative="60"
GroupCacheTTLPositive="60" GroupMembershipCacheTTL="17700"
Name="companyCacheRealm" PermissionCacheEnable="true"
PermissionCacheSize="211" PermissionCacheTTLNegative="10"
PermissionCacheTTLPositive="60" UserCacheEnable="true"
UserCacheSize="2000" UserCacheTTLNegative="60" UserCacheTTLPositive="60"
/>
<CustomRealm Name="companyRealm" Password="{3DES}2LwBLCayHcc=" RealmClassName
="company.appserver.weblogic.WLRealmStub"/>
<EmbeddedLDAP
Credential="{3DES}VW4H4+7OUny8Er78dGhHbIqbB6w7l9btTnLbz4Cu1jE=" Name="Cy
gent"/>
<FileRealm Name="myFileRealm"/>
<JDBCConnectionPool CapacityIncrement="2"
DriverName="weblogic.jdbc.oci.Driver" InitialCapacity="5"
MaxCapacity="100" Name="Geneva0"
PreparedStatementCacheSize="100"
Properties="user=admin;password=;server=LSUP1"
Targets="Server2" URL="jdbc:weblogic:oracle"/>
<JDBCConnectionPool CapacityIncrement="2"
DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="5"
MaxCapacity="100" Name="JMSDBConnectionPool"
PreparedStatementCacheSize="100"
Properties="user=admin;password=gent;url=jdbc:oracle:thin:@x.x.x.179:1521:SUP1;dll=ocijdbc8;dataSourceName=ejbPool;protocol=thin"
Targets="Server2" URL="jdbc:oracle:thin:@x.x.x.x:1521:LSUP1"/>
<JDBCConnectionPool CapacityIncrement="2"
DriverName="oracle.jdbc.xa.client.OracleXADataSource"
InitialCapacity="5" MaxCapacity="100" Name="ejbPool"
PreparedStatementCacheSize="100"
Properties="user=company_admin;url=jdbc:oracle:thin:@10.28.138.179:1521:P
MCLSUP1;password=company;dll=ocijdbc8;dataSourceName=ejbPool;protocol=thin"
SupportsLocalTransaction="true" Targets="Server2,Server2" URL="jdbc:orac
le:thin:@x.x.x.x:1521:LSUP1"/>
<JDBCDataSource JNDIName="geneva.jdbc.GenevaNonTrans0"
Name="GenevaNonTrans0" PoolName="Geneva0" Targets="Server2"/>
<JDBCTxDataSource EnableTwoPhaseCommit="true"
JNDIName="geneva.jdbc.Geneva0" Name="Geneva0" PoolName="Geneva0" Targets
="Server2"/>
<JDBCTxDataSource EnableTwoPhaseCommit="false"
JNDIName="authJtsDataSource" Name="authJtsDataSource"
PoolName="ejbPool" Targets="Server2"/>
<JMSConnectionFactory DefaultRedeliveryDelay="5000"
DefaultTimeToDeliver="3000" JNDIName="company.ctm.QCFactory"
Name="CTMQCFactory" Targets="Server2"
UserTransactionsEnabled="true" XAConnectionFactoryEnabled="true"/>
<JMSConnectionFactory DefaultRedeliveryDelay="5000"
DefaultTimeToDeliver="3000" JNDIName="company.im.QCFactory"
Name="QCFactory" Targets="Server2"/>
<JMSConnectionFactory DefaultRedeliveryDelay="5000"
DefaultTimeToDeliver="3000" JNDIName="company.im.TCFactory"
Name="TCFactory" Targets="Server2"/>
<JMSJDBCStore ConnectionPool="JMSDBConnectionPool"
Name="companyCTMJDBCStore" PrefixName="CTM"/>
<JMSJDBCStore ConnectionPool="JMSDBConnectionPool"
Name="companyJMSJDBCStore" PrefixName="IM"/>
<JMSServer Name="CIM JMSServer-0" Store="companyJMSJDBCStore" Targets="Server
2">
<JMSQueue JNDIName="javax.jms.inRequestQueue" Name="inRequestQueue"/>
<JMSQueue JNDIName="javax.jms.inResponseQueue" Name="inResponseQueue"/>
<JMSQueue JNDIName="javax.jms.logQueue" Name="logQueue"/>
<JMSQueue JNDIName="javax.jms.outRequestQueue" Name="outRequestQueue"/>
<JMSQueue JNDIName="javax.jms.outResponseQueue" Name="outResponseQueue"/
>
<JMSSessionPool ConnectionFactory="company.im.QCFactory"
ListenerClass="company.service.mg.impl.InboundMsgListener"
Name="InboundRequestSessionPool" SessionsMaximum="5">
<JMSConnectionConsumer
Destination="javax.jms.inRequestQueue"
MessagesMaximum="10" Name="InboundRequestSessionPool" Selector="
TRUE"/>
</JMSSessionPool>
<JMSSessionPool ConnectionFactory="company.im.QCFactory"
ListenerClass="company.service.mg.impl.InboundMsgListener"
Name="InboundResponseSessionPool" SessionsMaximum="5">
<JMSConnectionConsumer
Destination="javax.jms.inResponseQueue"
MessagesMaximum="10"
Name="InboundResponseConnectionConsumer" Selector="TRUE"/>
</JMSSessionPool>
<JMSSessionPool ConnectionFactory="company.im.QCFactory"
ListenerClass="pmcl.company.service.mg.impl.PmclOutboundMsgListener"
Name="OutboundRequestSessionPool" SessionsMaximum="5">
<JMSConnectionConsumer
Destination="javax.jms.outRequestQueue"
MessagesMaximum="10"
Name="OutboundRequestConnectionPool" Selector="TRUE"/>
</JMSSessionPool>
<JMSSessionPool ConnectionFactory="company.im.QCFactory"
ListenerClass="pmcl.company.service.mg.impl.PmclOutboundMsgListener"
Name="OutboundResponseSessionPool" SessionsMaximum="5">
<JMSConnectionConsumer
Destination="javax.jms.outResponseQueue"
MessagesMaximum="10"
Name="OutboundResponseConnectionConsumer" Selector="TRUE"/>
</JMSSessionPool>
<JMSTopic JNDIName="javax.jms.CreateOfferTopic" Name="createOfferTopic"/
>
<JMSTopic JNDIName="javax.jms.CreateProductTopic" Name="createProductTop
ic"/>
</JMSServer>
<JMSServer Name="JMSServer-0">
<JMSQueue JNDIName="javax.jms.logQueue" Name="logQueue"/>
</JMSServer>
<JMSServer DeploymentOrder="1" Name="Task Manager Server-1"
Store="companyCTMJDBCStore" Targets="Server2">
<JMSQueue ErrorDestination="ERT1 Queue" JNDIName="activate_task"
Name="AT1 Queue" RedeliveryLimit="5"/>
<JMSQueue JNDIName="complete_process_flow" Name="CPF1 Queue" RedeliveryL
imit="5"/>
<JMSQueue ErrorDestination="ERT1 Queue" JNDIName="complete_task"
Name="CT1 Queue" RedeliveryLimit="5"/>
<JMSQueue JNDIName="error_task" Name="ERT1 Queue" RedeliveryLimit="1"/>
<JMSQueue ErrorDestination="ERT1 Queue" JNDIName="escalate_task"
Name="ET1 Queue" RedeliveryLimit="5"/>
<JMSQueue JNDIName="recover_process_flow" Name="RPF1 Queue" RedeliveryLi
mit="5"/>
<JMSQueue JNDIName="terminate_process_flow" Name="TPF1 Queue" Redelivery
Limit="5"/>
<JMSQueue ErrorDestination="ERT1 Queue"
JNDIName="terminate_task" Name="TT1 Queue" RedeliveryLimit="5"/>
</JMSServer>
<JTA Name="company" TimeoutSeconds="3600"/>
<Log FileName="./logs/company.log" Name="company"/>
<Machine Name="MyMachine">
<NodeManager Name="MyMachine"/>
</Machine>
<PasswordPolicy MinimumPasswordLength="8" Name="mypasswordpolicy"/>
<Realm CachingRealm="companyCacheRealm" FileRealm="myFileRealm" Name="myRealm
"/>
<SNMPAgent Name="company"/>
<Security CompatibilityMode="true" Name="company"
PasswordPolicy="mypasswordpolicy" Realm="myRealm" RealmSetup="true"/>
<SecurityConfiguration Credential="{3DES}Osb3tCLDbyc="
CredentialGenerated="false" Name="company"/>
<Server HelpPageURL="c:/public/as" InstrumentStackTraceEnabled="true"
JDBCLogFileName="Server2\jdbc.log" JDBCLoggingEnabled="false"
ListenPort="7771" LogRemoteExceptionsEnabled="true"
LoginTimeout="1000" Machine="MyMachine" Name="Server2"
NativeIOEnabled="true" ReverseDNSAllowed="false"
ServerVersion="7.0.2.0" StdoutDebugEnabled="true"
StdoutEnabled="true" StdoutSeverityLevel="32"
SystemPassword="{3DES}2LwBLCayHcc="
ThreadPoolPercentSocketReaders="99" TunnelingClientPingSecs="45"
TunnelingClientTimeoutSecs="40" TunnelingEnabled="false"
WorkspaceShowUserKeysOnly="false"
XMLEntityCache="XMLCacheMBean_Server2" XMLRegistry="company XMLRegistry">
<COM Name="Server2"/>
<ExecuteQueue Name="default" ThreadCount="15"/>
<IIOP Name="Server2"/>
<JTAMigratableTarget Cluster="myCluster" Name="Server2" UserPreferredSer
ver="Server2"/>
<JTARecoveryService Name="Server2"/>
<KernelDebug Name="Server2"/>
<Log FileMinSize="4096" FileName="Server2\company.log"
FileTimeSpan="24" Name="Server2"
NumberOfFilesLimited="true" RotationType="bySize"/>
<SSL ListenPort="7772" Name="Server2"/>
<ServerDebug Name="Server2"/>
<ServerStart Name="Server2"/>
<WebServer DefaultWebApp="go" LogFileName="Server2\access.log"
LoggingEnabled="true" Name="Server2" Targets="Server2"/>
</Server>
<ShutdownClass ClassName="company.appserver.weblogic.companyStartup"
DeploymentOrder="200" Name="companyShutdown2" Targets="Server2"/>
<ShutdownClass
ClassName="company.appserver.weblogic.WLTaskManagerInit"
DeploymentOrder="175" Name="TaskManagerShutdown" Targets="Server2"/>
<StartupClass ClassName="company.appserver.weblogic.ContextHandler"
DeploymentOrder="105" FailureIsFatal="true"
Name="ContextHandlerStartup1" Targets="Server2"/>
<StartupClass ClassName="company.appserver.weblogic.companyStartup"
DeploymentOrder="100" FailureIsFatal="true"
Name="companyStartup1" Targets="Server2,Server2"/>
<StartupClass
ClassName="company.appserver.weblogic.WLTaskManagerInit"
DeploymentOrder="125" FailureIsFatal="true"
Name="TaskManagerStartup" Targets="Server2"/>
<XMLEntityCache Name="XMLCacheMBean"/>
<XMLEntityCache Name="XMLCacheMBean_Server2"/>
<XMLRegistry
DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImp
l"
Name="company XMLRegistry"
SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl" Transform
erFactory="org.apache.xalan.processor.TransformerFactoryImpl"/>
</Domain>
I start the admin server first followed by one of the managed servers. The admin server
starts fine. When I start the managed server 1, it is not deploying the application on the
managed server and I am getting the following exception on the managed server.
Setting custom initial context factory<Nov 25, 2004 11:54:44 PM CET> <Notice> <Management> <141053> <Application Polle
r not started for production server.>
<Nov 25, 2004 11:54:45 PM CET> <Notice> <Management> <141030> <Starting discover
y of Managed Server... This feature is on by default, you may turn this off by p
assing -Dweblogic.management.discover=false>
<Nov 25, 2004 11:54:45 PM CET> <Notice> <WebLogicServer> <000354> <Thread "Liste
nThread.Default" listening on port 7770>
<Nov 25, 2004 11:55:06 PM CET> <Warning> <RJVM> <000519> <Unable to connect to a
remote server on address x.x.x.x and port 7771 with protocol t3. The Exce
ption is java.net.ConnectException: Connection refused: connect>
<Nov 25, 2004 11:55:06 PM CET> <Warning> <Management> <141028> <Unable to locate
Managed server Server2 on listen address x.x.x.223 listen port 7771. Ignore
this message if the Managed server was shutdown intentionally. The Managed serv
er will connect to the Admin server when it is re-started.>
<Nov 25, 2004 11:55:08 PM CET> <Warning> <RJVM> <000519> <Unable to connect to a
remote server on address x.x.x.222 and port 7771 with protocol t3. The Exce
ption is java.net.ConnectException: Connection refused: connect>
<Nov 25, 2004 11:55:08 PM CET> <Warning> <Management> <141028> <Unable to locate
Managed server Server1 on listen address x.x.x.222 listen port 7771. Ignore
this message if the Managed server was shutdown intentionally. The Managed serv
er will connect to the Admin server when it is re-started.>
<Nov 25, 2004 11:55:08 PM CET> <Notice> <WebLogicServer> <000329> <Started WebLo
gic Admin Server "myserver" for domain "company" running in Production Mode>
<Nov 25, 2004 11:55:09 PM CET> <Notice> <WebLogicServer> <000365> <Server state
changed to RUNNING>
<Nov 25, 2004 11:55:09 PM CET> <Notice> <WebLogicServer> <000360> <Server starte
d in RUNNING mode>
<Nov 25, 2004 11:56:57 PM CET> <Warning> <rmi> <080005> <Exception thrown by rmi
server: weblogic.management.internal.AdminMBeanHomeImpl.getMBean(Ljava.lang.Str
ing;Ljava.lang.String;)
javax.management.InstanceNotFoundException: company:Name=Server1,Type=Migratable
Target
javax.management.InstanceNotFoundException: company:Name=Server1,Type=MigratableT
arget
at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
a:144)
at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
a:268)
at weblogic.management.internal.AdminMBeanHomeImpl.getMBean(AdminMBeanHo
meImpl.java:288)
at weblogic.management.internal.AdminMBeanHomeImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:821)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:308)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
>
<Nov 25, 2004 11:56:57 PM CET> <Warning> <rmi> <080005> <Exception thrown by rmi
server: weblogic.management.internal.AdminMBeanHomeImpl.getMBean(Ljava.lang.Str
ing;Ljava.lang.String;)
javax.management.InstanceNotFoundException: company:Name=Server2,Type=Migratable
Target
javax.management.InstanceNotFoundException: company:Name=Server2,Type=MigratableT
arget
at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
a:144)
at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
a:268)
at weblogic.management.internal.AdminMBeanHomeImpl.getMBean(AdminMBeanHo
meImpl.java:288)
at weblogic.management.internal.AdminMBeanHomeImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:821)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:308)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
>
<Nov 25, 2004 11:56:57 PM CET> <Warning> <rmi> <080005> <Exception thrown by rmi
server: weblogic.management.internal.AdminMBeanHomeImpl.getMBean(Ljava.lang.Str
ing;Ljava.lang.String;)
javax.management.InstanceNotFoundException: company:Name=Server2,Type=Migratable
Target
javax.management.InstanceNotFoundException: company:Name=Server2,Type=MigratableT
arget
at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
a:144)
at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
a:268)
at weblogic.management.internal.AdminMBeanHomeImpl.getMBean(AdminMBeanHo
meImpl.java:288)
at weblogic.management.internal.AdminMBeanHomeImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:821)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:308)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
>
Can somebody help me find out why this problem is occuring..? -
Weblogic 6.0 sp2: War deployment not working !!
Hi,
I'm using weblogic 6.0 sp2, and it seems as though the war deployment is not
working. My war consists of jsps, images, and under the WEB-INF/classes
directory, Struts classes (i.e. Form and Action classes). When I try to run
a jsp, i get the following error :
<Jul 30, 2001 11:48:10 AM PDT> <Error> <HTTP>
<[WebAppServletContext(4655498,ati
nera)] Root cause of ServletException
javax.servlet.jsp.JspException: Exception creating bean of class
com.atinera.log
in.web.LoginForm: java.lang.ClassNotFoundException:
com.atinera.login.web.LoginF
orm
But if you look in the war, that class is in there.
What gives ?
Thanks,
JamieThat's right - ActionServlet does Class.forName(actionClass) to load action
class, and this uses ClassLoader which loaded the current class (ActionServlet)
ClassLoaders always delegate to their parent before attempting to load
the class themselves, so it wasn't working until you moved struts.jar to your
WEB-INF/lib.
BTW, Struts doc mentions this problem:
lib/struts.jar - This JAR file contains all of the Java classes included
in Struts. It should be copied into the WEB-INF/lib directory of your web
application. WARNING - If you are going to be hosting multiple Struts based
applications on the same servlet container, you will be tempted to place the
struts.jar file into the shared repository supported by your container. Be
advised that this will like cause you to encounter ClassNotFoundException
problems unless all of your application classes are stored in the shared
repository.
Jamie Tsao <[email protected]> wrote:
So I found the solution to this problem, but it doesn't really make sense to
me.
I originally had struts.jar outside of the WAR file, but in my CLASSPATH.
Weblogic was able to load Strut's ActionServlet (controller), but when the
ActionServlet was looking for the LoginForm (which was inside the WAR), it
couldn't find it.
I solved the problem by putting struts.jar inside the WAR (under
WEB-INF/lib) instead that other directory. Now it works cause apparently
ActionServlet is now in the same classloader as LoginForm, the classloader
which loaded the WAR.
I'm confused because original way should have worked since the classloader
that loaded struts.jar from outside the war is the parent classloader for
the classloader that loaded the WAR. did that make any sense ?
anyone know why ?
thanks,
jamie
"Jamie Tsao" <[email protected]> wrote in message
news:[email protected]...
Hi,
I'm using weblogic 6.0 sp2, and it seems as though the war deployment isnot
working. My war consists of jsps, images, and under the WEB-INF/classes
directory, Struts classes (i.e. Form and Action classes). When I try torun
a jsp, i get the following error :
<Jul 30, 2001 11:48:10 AM PDT> <Error> <HTTP>
<[WebAppServletContext(4655498,ati
nera)] Root cause of ServletException
javax.servlet.jsp.JspException: Exception creating bean of class
com.atinera.log
in.web.LoginForm: java.lang.ClassNotFoundException:
com.atinera.login.web.LoginF
orm
But if you look in the war, that class is in there.
What gives ?
Thanks,
Jamie
Dimitri -
Hi all,
In our production environment, we're getting the following exception when client requesting the transaction from EJB but it is not happening all the time. It just happens a couple time on day. I assume that it happens 5 out 100 requests.
Here is the exception...<br>
<b>================================<br>
Exception occurred during commit of transaction Name=[EJB com.xxx.xxx.ejb.MappingTrlsBean.getTranslation(java.math.BigDecimal,java.math.BigDecimal,java.math.BigDecimal,java.sql.Date,java.sql.Date)],Xid=BEA1-48F084989933A1C25F07(31980664),Status=Rolled back. [Reason=oracle.jdbc.xa.OracleXAException],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=76,seconds left=60,XAServerResourceInfo[DS35Pool]=(ServerResourceInfo[DS35Pool]=(state=rolledback,assigned=TTMsvr),xar=DS35Pool),XAServerResourceInfo[DS11Pool]=(ServerResourceInfo[DS11Pool]=(state=rolledback,assigned=TTMsvr),xar=DS11Pool),SCInfo[TTM+TTMsvr]=(state=rolledback),properties=({weblogic.transaction.name=[EJB com.bcbsmn.mappingtrls.ejb.MappingTrlsBean.getTranslation(java.math.BigDecimal,java.math.BigDecimal,java.math.BigDecimal,java.sql.Date,java.sql.Date)]}),local properties=({}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=TTMsvr+172.16.208.50:6333+TTM+t3+, XAResources={},NonXAResources={})],CoordinatorURL=TTMsvr+172.16.208.50:6333+TTM+t3+): oracle.jdbc.xa.OracleXAException
<br>...............<br><br>
--------------- nested within: ------------------
weblogic.transaction.RollbackException: Could not prepare resource 'DS35Pool - with nested exception:
[oracle.jdbc.xa.OracleXAException]
<br>==============================</b><br>
I have a couple of connection pools setup called DS35Pool and DS11Pool.
The configuration of the both driver is
1)Driver Classname:oracle.jdbc.xa.client.OracleXADataSource
using ojdbc14.jar from weblogic 8.1 sp2
2)Remove Infected Connections Enabled is checked
3)Allow Shrinking is checked with 900 seconds
4)Test Reserved Connections is checked
5)Keep XA Connection Till Transaction Complete is checked
6)Supports Local Transaction is checked.
Thank you in advance for any help!!!That appears to be a bug in the console. You might try the command-line tool java weblogic.Deployer for deploying apps. java weblogic.Deployer -examples will give detailed usage info.
-- Rob
WLS Blog http://dev2dev.bea.com/blog/rwoollen/ -
Deploying to Weblogic -Problem
while mkin a new connection ie.deploying to weblogic its giving me "success" but then it gives an error Java Virtual Machine Launcher :cudnt find the main class
ruchiThis windows encoding problem is a bug in WebLogic6.1.
The workaround is to change the encoding to 'UTF-8' similarly
like you did in your case.
1. Go to Tools | Preferences | Environment
2. Unselect 'Default Encoding'
3. Choose 'UTF-8' from the combobox
4. ReCreate your project, this time IDE will generate all XML files in UTF-8 encoding -
Double submission problem in J2EE application under Weblogic 8.1 SP2 server
Hi,
We are facing double submission problem in our J2EE application which is running under Weblogic 8.1 SP2 and for the same we already implemented or added the below preventive solutions.
1. We disable the SUBMIT button once the user clicks it.
2. We preventated pressing 'F5' button and clicking 'Refresh' button in the browser.
3. Also we tried to prevent by declaring the idempotent is 'true' under weblogic-ejb-jar.xml as below.
<stateless-bean-methods-are-idempotent>true</stateless-bean-methods-are-idempotent>
So please somebody help us on this issue like how to prevent in some other way.
Regards,
Dinesh.I have no idea why you would think changing your EJB configuration would have anything to do with preventing double submission at your servlet layer.
One technique I've seen for preventing double submission was first used in the Struts framework several years ago. When a page is "prepared" for display, a token value is created and stored in the session. The page is displayed with a hidden field containing that value. When the page is submitted, the value of the hidden field is compared with the value stored in the session. If they're not equal, the submission is ignored. -
Problem with Weblogic 8.1 Sp2 and Struts 1.1 + tiles
I am using weblogic 8.1 sp2 with struts and tiles.
I am getting the follwing error in my web pages, which is not consistent.
The error stack trace is as below.
[java] <Oct 6, 2005 12:23:53 PM GMT+05:30> <Error> <HTTP> <BEA-101309> <[ServletContext(id=3212
195,name=awmweb,context-path=/awm)] could not deserialize the context attribute "org.apache.struts.
iles.DEFINITIONS_FACTORY"
[java] java.io.NotSerializableException: com.awm.awm.controllers.layout.BaseLayoutControll
r
[java] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
[java] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
[java] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
[java] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
[java] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
[java] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
[java] at java.util.HashMap.writeObject(HashMap.java:978)
[java] at sun.reflect.GeneratedMethodAccessor140.invoke(Unknown Source)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
25)
[java] at java.lang.reflect.Method.invoke(Method.java:324)
[java] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809)
[java] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296)
[java] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
[java] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
[java] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
[java] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
[java] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
[java] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
[java] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
[java] at java.util.HashMap.writeObject(HashMap.java:978)
[java] at sun.reflect.GeneratedMethodAccessor140.invoke(Unknown Source)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
25)
[java] at java.lang.reflect.Method.invoke(Method.java:324)
[java] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809)
[java] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296)
[java] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
[java] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
[java] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
[java] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
[java] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
[java] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
[java] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
[java] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
[java] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
[java] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
[java] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
[java] at weblogic.servlet.internal.AttributeWrapper.convertObjectToBytes(AttributeWrapper.
ava:136)
[java] at weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:112)
[java] at weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:69)
[java] at weblogic.servlet.internal.WebAppServletContext.getAttribute(WebAppServletContext.
ava:619)
[java] at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.getDefinitionsFactory(TilesUti
StrutsModulesImpl.java:145)
[java] at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.getDefinitionsFactory(TilesUti
StrutsModulesImpl.java:133)
[java] at org.apache.struts.tiles.TilesUtil.getDefinitionsFactory(TilesUtil.java:186)
[java] at org.apache.struts.tiles.TilesUtil.getDefinition(TilesUtil.java:224)
[java] at org.apache.struts.taglib.tiles.util.TagUtils.getComponentDefinition(TagUtils.java
339)
[java] at org.apache.struts.taglib.tiles.DefinitionTag.doStartTag(DefinitionTag.java:261)
[java] at com.awm.awm.jsp._errors.__500_45_servererror._jspService(__500_45_servererro
.java:208)
[java] at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
[java] at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStub
mpl.java:971)
[java] at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
[java] at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:446)
[java] at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
[java] at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
[java] at com.awm.awm.filters.AWMBaseFilter.doFilter(AWMBaseFilter.java:97)
[java] at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
[java] at com.awm.awm.quote.QuoteUsageFilter.doFilter(QuoteUsageFilter.java:70)
[java] at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
[java] at com.awm.awm.filters.AWMBaseFilter.doFilter(AWMBaseFilter.java:97)
[java] at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
[java] at com.awm.awm.filters.FrontFilter.doFilter(FrontFilter.java:160)
[java] at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
[java] at com.awm.awm.filters.JTidyFilter.doFilter(JTidyFilter.java:152)
[java] at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
[java] at com.awm.awm.filters.PerfLogFilter.doFilter(PerfLogFilter.java:211)
[java] at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
[java] at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.jav
:305)
[java] at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:
23)
[java] at weblogic.servlet.internal.WebAppServletContext.handleException(WebAppServletConte
t.java:3908)
[java] at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext
java:3683)
[java] at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585
[java] at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
[java] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
[java] >
Can any one comment on why I am getting this error? Is it related to the hot deployment issue? Please comment.
Thanks in advance,
KHi,
Generally this type of exception raised by a class or the serialization runtime when a class may not be serialized.The argument should be the name of the class.
You might be forgot to implement the serializable interface for the class in struts frame work.
check it properly.
Regards
Anilkumar kari -
BEA WLS 6.1 SP2: Deploy problems (JDBCConnectionPool/JDBCTxDataSource)
Hello anybody,
learnt XA being necessary if more than one sql command in transaction, so I changed
my entries to the following:
<JDBCConnectionPool
DriverName="oracle.jdbc.xa.client.OracleXADataSource"
Name="OracleDB"
Password="{3DES}iKOCmvzSc6g="
Properties="user=osv"
Targets="osvServer"
TestConnectionsOnReserve="false"
URL="jdbc:oracle:thin:@pegnitz:1526:ora1"/>
<JDBCTxDataSource
JNDIName="JNDINameOracleOSV-DB"
Name="OracleDataSource"
PoolName="OracleDB"
Targets="osvServer"/>
We set up on a database ORACLE 8.3.2.
Now, with the non-XA-driver there was no deployment problem, but now I receive the
following error message on the server output:
Unable to deploy EJB: CourseDateEJB from osv.jar:
The Container-Managed Persistence Entity EJB failed while creating its SQL Type Map.
The error was:
XA error: XAER_RMERR : A resource manager error has occured in the transaction branch
start() failed on resource 'OracleDB' Unexpected error during start for XAResource
'OracleDB': null
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:1019)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:30)
at weblogic.j2ee.Application.deploy(Application.java:247)
at weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:185)
at weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.java:362)
at weblogic.management.mbeans.custom.Application.setDeployed(Application.java:296)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.java:1388)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:881)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:295)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:392)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:298)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
at weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Many thanks if s.b. could help me.
KlausHi Klaus,
if you want to implement a global transaction over two different JDBC Resource Managers
(update on both + 2PC) they have to be both XA compliant.
Or you could have only one of them XA compliant(i.e: one 8.1.6 or higher Oracle instance):
for the other one (i.e.: one 7.3.2 Oracle instance) you could use a non XA-driver
and configuring a TXDataSource with "enable two-phase commit" = true (but only one
non-XA JDBC driver at a time can participate in a distributed transaction).
Well, XA transactions are not a pre-requisite for EJB: you could use simple "local"
transactions or distributed transactions without XA drivers as well (using a single
resource manager).
But if you want to update multiple resource managers in the same transaction using
EJBs, this is a "global" transaction, and WL server fully supports it.
But the partecipants must be XA compliant to be able to "talk" to WL coordinator.
Sergi
Sergi
"Klaus Dirlewanger" <[email protected]> wrote:
>
Hi Sergi, hello world,
thanks a lot for this message. So the conclusion is that I hava no chance
at all
to use this oracle version (7.3.2) with BEA WLS (or more common EJB), cause
a prerequisite
for EJB are XA-transactions.
Is this conclusion correct.
Many thanks again
Klaus
"Sergi Vaz" <[email protected]> wrote:
Hi Klaus,
distributed transaction (XA) features require version
Oracle8i release 8.1.6 or later of the Oracle server.
Sergi
"Klaus Dirlewanger" <[email protected]> wrote:
Hi Sergi,
1.) sorry, that was a typing error with the oracle version, I meant 7.3.2.
2.) I didn´t use a special driver but that that was delivered with thewls
server
in the package "weblogic.jar".
Could I enable you helping me with this information?
Best wishes
Klaus
"Sergi Vaz" <[email protected]> wrote:
Hi Klaus,
which
1) Oracle server version (I don't think it's a 8.3.2.)
2) Oracle JDBC driver version
are you you using ?
Sergi
"Klaus Dirlewanger" <[email protected]> wrote:
Hello anybody,
learnt XA being necessary if more than one sql command in transaction,so
I changed
my entries to the following:
<JDBCConnectionPool
DriverName="oracle.jdbc.xa.client.OracleXADataSource"
Name="OracleDB"
Password="{3DES}iKOCmvzSc6g="
Properties="user=osv"
Targets="osvServer"
TestConnectionsOnReserve="false"
URL="jdbc:oracle:thin:@pegnitz:1526:ora1"/>
<JDBCTxDataSource
JNDIName="JNDINameOracleOSV-DB"
Name="OracleDataSource"
PoolName="OracleDB"
Targets="osvServer"/>
We set up on a database ORACLE 8.3.2.
Now, with the non-XA-driver there was no deployment problem, but now
I
receive
the
following error message on the server output:
Unable to deploy EJB: CourseDateEJB from osv.jar:
The Container-Managed Persistence Entity EJB failed while creating itsSQL
Type Map.
The error was:
XA error: XAER_RMERR : A resource manager error has occured in the transaction
branch
start() failed on resource 'OracleDB' Unexpected error during start
for
XAResource
'OracleDB': null
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:1019)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:30)
at weblogic.j2ee.Application.deploy(Application.java:247)
at weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:185)
at weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.java:362)
at weblogic.management.mbeans.custom.Application.setDeployed(Application.java:296)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.java:1388)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:881)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:295)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:392)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:298)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
at weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Many thanks if s.b. could help me.
Klaus -
Error deploying Struts 1.1 on weblogic 6.1 sp2
Hello,
I am trying to deploy the struts-documentation.war that comes with struts 1.1
on weblogic 6.1 sp2.
I already have xerces.jar , xalan.jar and crimson.jar in WEB-INF/lib. I have also
tired giving the files in the weblogic classpath.
It does not deploy the application and it gives the following error:
####<Jul 13, 2004 2:26:44 PM IST> <Debug> <HTTP> <phinwo-w00206>
<myserver> <ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'>
<system> <> <101158> <Exception thrown while loading struts-documentation:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1>
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1525)
at
weblogic.utils.jars.ManifestEntry.stream(ManifestEntry.java:166)
at weblogic.utils.jars.Manifest.stream(Manifest.java:78)
at
weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java:398)
at
weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:177)
at
weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServletContext.java:3405)
at
weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:3376)
at
weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:862)
at
weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:815)
at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:163)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
at
weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy29.addWebDeployment(Unknown Source)
at
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_CachingStub.java:1121)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:315)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:491)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:361)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:984)
at
weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:971)
at
weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.java:956)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:648)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy64.addTarget(Unknown Source)
at
weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(ApplicationManager.java:867)
at
weblogic.management.mbeans.custom.ApplicationManager.addApplication(ApplicationManager.java:966)
at
weblogic.management.mbeans.custom.ApplicationManager.addApplication(ApplicationManager.java:886)
at
weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:802)
at
weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:733)
at
weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:206)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy5.update(Unknown Source)
at
weblogic.management.console.webapp._domain.__upload_app._jspService(__upload_app.java:149)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:241)
at
weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112)
at
weblogic.management.console.actions.ForwardAction.perform(ForwardAction.java:35)
at
weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at
weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
####<Jul 13, 2004 2:26:44 PM IST> <Error> <J2EE> <phinwo-w00206>
<myserver> <ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'>
<system> <> <160001> <Error deploying application struts-documentation:
Could not load struts-documentation>
####<Jul 13, 2004 2:26:44 PM IST> <Error> <Management> <phinwo-w00206>
<myserver> <ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'>
<system> <> <141042> <Error deploying application
.\config\mydomain\applications\struts-documentation.war:
java.lang.reflect.UndeclaredThrowableException>
Any help in this regard will be highly appreciated.I'm also running Weblogic 6.1 SP2 and getting a very similar error during startup when trying to deploy JSTL (Apache's version 1.0.6 from here http://jakarta.apache.org/taglibs/) in an exploded application that starts up fine if I remove the JSTL jars from WEB-INF/lib.
The exact stack trace in my case is this:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1525)
at weblogic.utils.jars.ManifestEntry.stream(ManifestEntry.java:166)
at weblogic.utils.jars.Manifest.stream(Manifest.java:78)
at weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java:398)
at weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:234)
at weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServletContext.java:3407)
at weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:3376)
at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:862)
at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:815)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:163)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy31.addWebDeployment(Unknown Source)
at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_CachingStub.java:1121)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:315)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:279)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:233)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:193)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy30.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2761)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:370)
at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:160)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy41.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:480)
at weblogic.management.Admin.startApplicationManager(Admin.java:1180)
at weblogic.management.Admin.finish(Admin.java:590)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:518)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
at weblogic.Server.main(Server.java:35) -
Problems with Config.xml in weblogic 6.1 sp2
I?ve got a web application that runs under weblogic 6.1 sp1 but it doesn?t work under weblogic 6.1 sp2. It seems that the problem is that i?ve got 3 libraries (jdom.jar, xerces.jar,xalam.jar) in the lib directory under WEB-INF directory.
Can anybody help me?
Thanks in advanceHi
Can you send the error you are getting.
Send the Stack Trace if you are getting any.
What version of xerces are inluding the web application
Ajay
Agustin <[email protected]> wrote in message
news:3d2c743d$[email protected]..
I?ve got a web application that runs under weblogic 6.1 sp1 but it doesn?twork under weblogic 6.1 sp2. It seems that the problem is that i?ve got 3
libraries (jdom.jar, xerces.jar,xalam.jar) in the lib directory under
WEB-INF directory.
Can anybody help me?
Thanks in advance
Maybe you are looking for
-
I cannot print form my Ipad. The remote printer app cannot find the printer. The printer is HP Photosmart wireless all-in-one B110a. Ipad and printer are on the same network and both have an IP adress. I have got a new router with 802.11n. With the
-
Service instance q-in-q for xconnect
Topology: ce1---- g0/1 PE1 ---- PE2 g2/2---- Switch---- ce2 and other CE's 1.1.1.1 2.2.2.2 Ive never done service instances, so considering the above topology, how can i use service instance to xconnect one of gig2/2 vlans on PE2 t
-
Time_out - Time limit exceed - Error
Hi, The following code gives the Time_out run time error. LOOP AT i_outtab. IF p_cust = 'X'. Select single kunnr from vbak into sales_cust where kunnr = i_outtab-kunnr and ERDAT GE date. IF sy-subrc NE
-
Getting error in implementing Train.
Hi, I am just trying my hand in implementing simple train. What I am doing is - 1) I have created one train region 2) Added two links in that with destination url mentioned. 3) Created two pages which extends this train region(mentioned these pages i
-
Hi. Please help. How can I find out SCORM version/release number within OLM e-business suite 11.5.10? Are web authoured SCORM files produced in other versions compatible with version of SCORM within OLM e-business suite 11.5.10? Thanks.