Labels

Thursday, May 31, 2012

Wednesday, May 30, 2012

difference between WAR,JAR and EAR

WAR:-The war file is a zipped version of a web application which contains all jsp's, class files,Javascripts,css's images, deployment descriptor to run the web application for the server. A Java based web server is need to run the war file.
JAR:-The jar file contains the class files in zipped form and acts as a library and is usually supplied as third party libraries. But in case J2EE, a jar file can also contain the EJB class files.

EAR:-The ear file refers to Enterprise Application and contains reference to jar file containing the EJB classes, war file path and a descriptor named as application.xml


Tuesday, May 29, 2012

WebLogic Server StuckThreadMaxTime value is exceeded during configuration

If you are configuring WebLogic Server 9.2 MP2 or 10 using the Configurator and you take longer than 600 seconds to finish the configuration, the following error is returned to the terminal and WebLogic Server domain and server logs:
<Error> <WebLogicServer> <BEA-000337> <[STUCK] Exe
cuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy
for "681" seconds working on the request "Http Request: /opensso/setup/setSetup
Progress", which is more than the configured time (StuckThreadMaxTime) of "600"
seconds. Stack trace: ...
This error occurs because the WebLogic Server has exceeded its “Stuck Thread Max Time:” default value of 600 seconds.
Workaround. If the Configurator does not respond, restart it. Also, consider setting the WebLogic Server “Stuck Thread Max Time” value from its default 600 seconds to a larger value such as 1200 seconds. Use the WebLogic Console to change this value (base_domain > Environment > Servers > Admin Server > Configuration/Tuning).

at weblogic.servlet.jsp.BodyContentImpl.flush(BodyContentImpl.java:72)

java.io.IOException
      at weblogic.servlet.jsp.BodyContentImpl.flush(BodyContentImpl.java:72)
      at com.ge.med.websol.dyn.taglib.GetValueTag.doStartTag(GetValueTag.java:160)
      at jsp_servlet.__highlevelreport._jsp__tag21(__highlevelreport.java:1156)
      at jsp_servlet.__highlevelreport._jsp__tag9(__highlevelreport.java:694)
      at jsp_servlet.__highlevelreport._jspService(__highlevelreport.java:291)
      at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
      at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:505)
      at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:251)
      at com.ge.med.websol.controller.RequestProcessor.process(RequestProcessor.java:159)
      at com.ge.med.websol.controller.ControllerServlet.doPost(ControllerServlet.java:310)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(Unknown Source)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

PWC1231: Servlet.service() for servlet jsp threw exception java.lang.NullPointerException

at org.apache.jsp.eligibility_005fquestions_jsp._jspService(eligibility_005fquestions_jsp.java from :51)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
      at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:873)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:558)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:490)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:382)
      at com.ge.med.websol.webshop.servlet.OrderControllerServlet.action(OrderControllerServlet.java:1111)
      at com.ge.med.websol.webshop.servlet.WebshopBaseServlet.doPost(WebshopBaseServlet.java:75)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
      at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
      at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
      at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
      at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
      at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
      at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
      at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
      at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
      at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)


 If we get like this error we need to remove below code from particular jsp
<%@ page language = "java" isErrorPage="true" errorPage="shop_error_msg.jsp"%>

Monday, May 28, 2012

java.lang.NoClassDefFoundError: javax/xml/rpc/encoding/Deserializer

[#|2011-03-28T06:33:44.081+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=73;_ThreadName=Thread-81391;_RequestID=ff1b7ee6-c986-4ecb-8117-f7
878329199b;|Exception occured in J2EEC Phasejava.lang.ClassNotFoundException: javax.xml.rpc.encoding.Deserializer
java.lang.NoClassDefFoundError: javax/xml/rpc/encoding/Deserializer
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:300)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:300)
        at com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at com.sun.appserv.server.util.ClassLoaderChain.loadClass(ClassLoaderChain.java:158)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at com.sun.appserv.server.util.ClassLoaderChain.loadClass(ClassLoaderChain.java:158)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:300)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:300)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at com.sun.enterprise.util.TypeUtil.getMethod(TypeUtil.java:393)
        at com.sun.enterprise.deployment.MethodDescriptor.getMethod(MethodDescriptor.java:277)
        at com.sun.enterprise.security.application.EJBSecurityManager.convertEJBMethodPermissions(EJBSecurityManager.java:508)
        at com.sun.enterprise.security.application.EJBSecurityManager.loadPolicyConfiguration(EJBSecurityManager.java:257)
        at com.sun.enterprise.security.application.EJBSecurityManager.initialize(EJBSecurityManager.java:309)
        at com.sun.enterprise.security.application.EJBSecurityManager.<init>(EJBSecurityManager.java:191)
        at com.sun.enterprise.security.application.EJBSecurityManager.createManager(EJBSecurityManager.java:1093)
        at com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:412)
        at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
        at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
        at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)

If we get like this error we need to add  following libraries into your CLASSPATH environment variable.

  • commons-discovery.jar
  • commons-logging.jar
  • jaxrpc.jar
  • saaj.jar
  • wsdl4j.jar

{http://xml.apache.org/axis/}HttpErrorCode:404

13:43:15,125 ERROR [STDERR]   at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:665)
13:43:15,125 ERROR [STDERR]   at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:94)
13:43:15,125 ERROR [STDERR]   at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
13:43:15,125 ERROR [STDERR]   at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
13:43:15,125 ERROR [STDERR]   at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
13:43:15,125 ERROR [STDERR]   at org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)
13:43:15,125 ERROR [STDERR]   at org.apache.axis.client.Call.invokeEngine(Call.java:2737)
13:43:15,125 ERROR [STDERR]   at org.apache.axis.client.Call.invoke(Call.java:2720)
13:43:15,125 ERROR [STDERR]   at org.apache.axis.client.Call.invoke(Call.java:2396)
13:43:15,125 ERROR [STDERR]   at org.apache.axis.client.Call.invoke(Call.java:2319)
13:43:15,125 ERROR [STDERR]   at org.apache.axis.client.Call.invoke(Call.java:1776)
13:43:15,125 ERROR [STDERR]   at com.gehc.sf.task.axis.SawfishCreateTaskServiceSoapBindingStub.createTask(Unknown Source)
13:43:15,125 ERROR [STDERR]   at com.ge.hc.mytasks.util.MyTasksUtil.creatTask(MyTasksUtil.java:79)
13:43:15,125 ERROR [STDERR]   at com.ge.med.websol.webshop.servlet.OrderControllerServlet.action(OrderControllerServlet.java:446)
13:43:15,125 ERROR [STDERR]   at com.ge.med.websol.webshop.servlet.WebshopBaseServlet.doPost(WebshopBaseServlet.java:75)
13:43:15,125 ERROR [STDERR]   at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
13:43:15,125 ERROR [STDERR]   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
13:43:15,125 ERROR [STDERR]   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
13:43:15,125 ERROR [STDERR]   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
13:43:15,125 ERROR [STDERR]   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
13:43:15,125 ERROR [STDERR]   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
13:43:15,125 ERROR [STDERR]   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
13:43:15,125 ERROR [STDERR]   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
13:43:15,140 ERROR [STDERR]   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
13:43:15,140 ERROR [STDERR]   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
13:43:15,140 ERROR [STDERR]   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
13:43:15,140 ERROR [STDERR]   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
13:43:15,140 ERROR [STDERR]   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
13:43:15,140 ERROR [STDERR]   at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
13:43:15,140 ERROR [STDERR]   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
13:43:15,140 ERROR [STDERR]   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
13:43:15,140 ERROR [STDERR]   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
13:43:15,140 ERROR [STDERR]   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
13:43:15,140 ERROR [STDERR]   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
13:43:15,140 ERROR [STDERR]   at java.lang.Thread.run(Thread.java:595)

If we get like this error we need to add  following libraries into your CLASSPATH environment variable.
  • axis.jar
  • commons-discovery.jar
  • commons-logging.jar
  • jaxrpc.jar
  • log4j-1.2.8.jar
  • saaj.jar
  • wsdl4j.jar


Error automatically reporting license information to Jive Software

After log in JIVE with Admin access follow below steps.

1.             Click on System >>License Information
2.             Click on the Manual Reporting and Confirmation TAB
3.             Click download license report
a.                   Save it as license.txt
4.             Click step 2 to upload license report file
a.                   Click on the browse button and choose the license.txt file
b.                  Highlight the information in the box and copy
c.                   Click the back browse button of IE
5.             Paste into 'license confirmation' area on right of 3 steps for manual license reporting (make sure you remove the extra space at the end)
6.             Click the confirm button

Connection could not be allocated because: Io exception: Connection refused(DESCRIPTION=(ERR=1153)(VSNNUM=169870336)(ERROR_STACK=(ERROR=(CODE=1153)(EMFI=4)(ARGS='(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oxxxxx(PORT=1521))(CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))null))'))(ERROR=(CODE=303)(EMFI=1))))

Nov 14, 2011 11:29:02 AM com.sun.enterprise.resource.LocalTxConnectorAllocator createResource
WARNING: RAR5038:Unexpected exception while creating resource for pool jdbc/xxx/xxx_ds. Exception : Connection could not be allocated because: Io exception: Connection refused(DESCRIPTION=(ERR=1153)(VSNNUM=169870336)(ERROR_STACK=(ERROR=(CODE=1153)(EMFI=4)(ARGS='(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ora-xxx.com)(PORT=1521))(CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))null))'))(ERROR=(CODE=303)(EMFI=1))))
Nov 14, 2011 11:29:02 AM com.sun.enterprise.resource.AbstractResourcePool resizePool
WARNING: RAR5058: Error while Resizing pool jdbc/xx/xx_ds. Exception : Connection could not be allocated because: Io exception: Connection refused(DESCRIPTION=(ERR=1153)(VSNNUM=169870336)(ERROR_STACK=(ERROR=(CODE=1153)(EMFI=4)(ARGS='(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ora-xxxx.com)(PORT=1521))(CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))null))'))(ERROR=(CODE=303)(EMFI=1))))
Nov 14, 2011 11:34:13 AM com.sun.enterprise.resource.LocalTxConnectorAllocator createResource
WARNING: RAR5038:Unexpected exception while creating resource for pool jdbc/xxx_ds. Exception : Connection could not be allocated because: Io exception: Connection refused(DESCRIPTION=(ERR=1153)(VSNNUM=169870336)(ERROR_STACK=(ERROR=(CODE=1153)(EMFI=4)(ARGS='(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ora-xxx.com)(PORT=1521))(CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))null))'))(ERROR=(CODE=303)(EMFI=1))))
Nov 14, 2011 11:34:13 AM com.sun.enterprise.resource.AbstractResourcePool resizePool
WARNING: RAR5058: Error while Resizing pool jdbc/xxx_ds. Exception : Connection could not be allocated because: Io exception: Connection refused(DESCRIPTION=(ERR=1153)(VSNNUM=169870336)(ERROR_STACK=(ERROR=(CODE=1153)(EMFI=4)(ARGS='(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx.com)(PORT=1521))(CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))null))'))(ERROR=(CODE=303)(EMFI=1))))


If we get like this error we need to use ojdbc6.jar for java code compilation