hari gutta

Ranch Hand
+ Follow
since Mar 03, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by hari gutta

Hi All,

I had NN.war application which is deploying fine in my local Machine in both Web Logic 10.3.5 and Web Logic 10.3.6. But in my dev box it has Web Logic 10.3.5, when I try to deploy the same app. I am getting the error mention below.

Caused By: java.lang.NoSuchMethodError: javax/el/ExpressionFactory.newInstance()Ljavax/el/ExpressionFactory;
at org.apache.jasper.runtime.JspApplicationContextImpl.getExpressionFactory(JspApplicationContextImpl.java:96)
at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(ConfigureListener.java:1570)

This class is present in two files - jsf which is deployed as a shared library and referenced from weblogic.xml since it is a war. It is also present in web-inf/lib in jsp-api.jar. Thought that may be conflict issue so removed one and tried with only one. But no success


The entire stack track is :

weblogic.application.ModuleException:
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:201)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:249)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:427)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:28)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:637)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:164)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:69)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused By: java.lang.NoSuchMethodError: javax/el/ExpressionFactory.newInstance()Ljavax/el/ExpressionFactory;
at org.apache.jasper.runtime.JspApplicationContextImpl.getExpressionFactory(JspApplicationContextImpl.java:96)
at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(ConfigureListener.java:1570)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:403)
at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)


Any clue what might be the issue??
10 years ago
Hello All,

I am unable to find Messaging under Services in Web Logic. I can find Data Sources under Services, earlier it was present next to Messaging. It was present previously and I also configured Queues in my Web Logic.

Does any one face the same issue?? Do you have idea of why I have this problem and/or the solution ??
10 years ago

Ramakanta Sahoo wrote:you can use the "deploy as library option" in weblogic console and target it to the particular cluster you want to deploy the jars




Thanks a lot for the reply.

I already tried to deploy it as a shared library and reference it in weblogic.xml since mine is jus war file..But I get the below exception

An error occurred during activation of changes, please see the log for details.
Failed to load webapp: 'DCGTools.war'
Error: Unresolved Webapp Library references for "ServletContext@23514323[app:DCGTools module:DCGTools.war path:/Monitor spec-version:null]", defined in weblogic.xml [Extension-Name: jwg, Specification-Version: 1, exact-match: false]

My web.xml has the following library embedded :

<wls:library-ref>
<wls:library-name>jwg</wls:library-name>
<wls:specification-version>1.0</wls:specification-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref>

Here jwg.jar is deployed in admin console, and it is deployed successfully (I believe)
The METAINF-MF file in jwg.jar is shown below :

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 20.1-b02 (Sun Microsystems Inc.)
Specification-Title: JWG
Specification-Version: 1.0
Implementation-Title: JWG Implementation
Implementation-Version: 1.0
Extension-Name: jwg
Built-By: XXXXXXX
Built-Date: Tue-May-14-2013-05:10:57:PM:Eastern Daylight Time
Release-Number: N/A
Build-Cycle: N/A

Name: common
Project: emailbuild
Organization: XXXXXXXXX
Context: jwg/jwg/jar

The location of jwg.jar is "C:\ Oracle\ Middleware\ wlserver_10. 3\ common\ deployable-libraries\ jwg. jar".

Could you help me in figuring out where I am facing an issue ?

I did the same for jstl, which worked. Do you think the reason I am observing the error is, jwg is manually created and does it need to be registered some where else??
10 years ago

Sorry it is not resolved. For a while when I added jconn3.jar path in Admin Server's classpath it worked fine.

Later again it is showing the same error.

Guys, do you have any idea??
10 years ago
Hello All,

When I try to add a new target to existing data source in weblogic, I get the following error :



But I am able to add oracle data sources.

All the data sources are working fine on Admin Server. I added the below lines in Server1's Classpath



I believe that jconn3.jar is the only jar that should be added if we get the above exception.

Could some one please help me ??

P.S : I am using the correct version of jconn3(Running fine on AdminServer confirms it).
Thanks,
Niharika
10 years ago

Hello,

I want to add libraries to the weblogic server cluster, but not to the domain. Since my domain has different clusters, and each cluster uses different versions of struts applications which other teams needs to deploy.

So how can I add libraries to the cluster alone? Is it the way we add shared libraries i.e deploying them like any other war/ear file in weblogic?
But there are many common libraries likes commons-beanutils,commons-lang etc which I added in weblogic_domain lib, without which my deployment shows some errors. So I need to move this jar files to cluster, do I need to add these basic libraries also as shared libraries?? Since other teams use different versions in these jar files also.

Thanks,
Niharika
10 years ago

Hey All,

Initially when I tried downloading web logic 10.3.6, it is linked with jdk 1.6 but I changed it to jdk 1.7. Which I feel is the main cause for many problems I am facing in WebLogic.

So I changed Web Logic Server -> Edit Server RunTime Environment -> Java home to
C:\Program Files\Java\jdk1.6.0_26

But still I get the below statement in log file.

starting weblogic with Java version:
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)

So Is there a way to change it??
10 years ago
Thanks for the reply Paul,
I am working on it. I will post when I found significant improvement.

Regards,
Niharika
10 years ago

Hey, when I am trying to deploy my war I am getting the below exception :

Unable to access the selected application.
Exception in AppMerge flows' progression
Exception in AppMerge flows' progression
VALIDATION PROBLEMS WERE FOUND problem: cvc-complex-type.2.4a: Expected elements 'description@http://xmlns.oracle.com/weblogic/weblogic-web-app weblogic-version@http://xmlns.oracle.com/weblogic/weblogic-web-app security-role-assignment@http://xmlns.oracle.com/weblogic/weblogic-web-app run-as-role-assignment@http://xmlns.oracle.com/weblogic/weblogic-web-app resource-description@http://xmlns.oracle.com/weblogic/weblogic-web-app resource-env-description@http://xmlns.oracle.com/weblogic/weblogic-web-app ejb-reference-description@http://xmlns.oracle.com/weblogic/weblogic-web-app service-reference-description@http://xmlns.oracle.com/weblogic/weblogic-web-app message-destination-descriptor@http://xmlns.oracle.com/weblogic/weblogic-web-app session-descriptor@http://xmlns.oracle.com/weblogic/weblogic-web-app jsp-descriptor@http://xmlns.oracle.com/weblogic/weblogic-web-app auth-filter@http://xmlns.oracle.com/weblogic/weblogic-web-app container-descriptor@http://xmlns.oracle.com/weblogic/weblogic-web-app charset-params@http://xmlns.oracle.com/weblogic/weblogic-web-app virtual-directory-mapping@http://xmlns.oracle.com/weblogic/weblogic-web-app url-match-map@http://xmlns.oracle.com/weblogic/weblogic-web-app security-permission@http://xmlns.oracle.com/weblogic/weblogic-web-app context-root@http://xmlns.oracle.com/weblogic/weblogic-web-app wl-dispatch-policy@http://xmlns.oracle.com/weblogic/weblogic-web-app servlet-descriptor@http://xmlns.oracle.com/weblogic/weblogic-web-app work-manager@http://xmlns.oracle.com/weblogic/weblogic-web-app component-factory-class-name@http://xmlns.oracle.com/weblogic/weblogic-web-app logging@http://xmlns.oracle.com/weblogic/weblogic-web-app library-ref@http://xmlns.oracle.com/weblogic/weblogic-web-app fast-swap@http://xmlns.oracle.com/weblogic/weblogic-web-app coherence-cluster-ref@http://xmlns.oracle.com/weblogic/weblogic-web-app' instead of 'resource-env-ref@http://xmlns.oracle.com/weblogic/weblogic-web-app' here in element weblogic-web-app@http://xmlns.oracle.com/weblogic/weblogic-web-app:<null>


I get this error after adding the below statements in weblogic.xml :



I added the below lines in web.xml too :

<resource-ref>
<res-ref-name>jms/QCF/H</res-ref-name>
<res-type>javax.jms.QueueConnectionFactory</res-type>
<res-auth>Application</res-auth>
</resource-ref>

Before this the application gets deployed without any exceptions.

Thanks,
Niharika
10 years ago
This may be helpful :

From Servlet 2.3, sec 5.1
Servlets can do buffering to the clients for efficiency purpose, for which servlet request the size for buffering by using setBufferSize(). But this must happen before any content is written using Writer or ServletOutputStream or it results in IllegalStateException
10 years ago
Hey I am getting the below exception when running my huge application :

java.lang.IllegalStateException: Cannot resize buffer - 319 bytes have already been written (Servlet 2.3, sec. 5.1)
at weblogic.servlet.internal.ServletResponseImpl.setBufferSize(ServletResponseImpl.java:357)
at weblogic.servlet.jsp.PageContextImpl.initialize(PageContextImpl.java:74)
at weblogic.servlet.jsp.PageContextImpl.<init>(PageContextImpl.java:110)
at weblogic.servlet.jsp.JspFactoryImpl.getPageContext(JspFactoryImpl.java:40)
at jsp_servlet.__index._jspService(__index.java:62)
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:301)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:416)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:327)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:428)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at gov.hud.tool.web.controller.ServletFilter.doFilter(ServletFilter.java:108)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at gov.hud.tool.web.controller.LoginFilter.doFilter(LoginFilter.java:109)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
>

All I can figure out from this exception is, the error is caused from index.jsp.

But my code works this way :

web.xml -> index.jsp [ <META HTTP-EQUIV="Refresh" CONTENT="0;URL=index.action">] -> calls index.action mapping from ind-serv.xml (which is included in struts.xml) -> Action mapping calls another class, and passes arguments to this class, using <param> in action mapping.

So it is kinda hard to debug, since all classes are interrelated.

Any idea guys, why this error is occuring?
10 years ago

Action class is a part of Controller.

The first thing that makes me confirm this is, "Struts handle with Controller and Views only, but not with Models(EJBs/COBRA/whatever should handle model) in Struts MVC framework".

It tries to do the communication before business logic, and ActionForm is a view data Transfer Object - that merely transfers the data to various classes within the controller.
10 years ago

The tutorial added the tag at the top, but didn't use
<s: form>..

Looks like it's some silly point I am missing..

I am unable to run with form tag, I developed a simple app that just displays some data and it is working fine.

So looks like the prob is with form, might be passing parameter to setX() or whatever.

Here is my struts.xml :
10 years ago