Running Struts on Weblogic
Hi,
I've just started to explore Struts, and am trying to set up a very simple example with one simple Action, one Form Bean using the validate() method to manually validate inputs.
I've gotten the example working in Tomcat. However when I tried to run the same example on Weblogic, I ran into some problems with the message resources for the validation.
On Tomcat, if I trigger a validation error, I got this message on my form page:
Wrong Login NameHowever when I tried the same code on Weblogic, I got this instead.
???en_US.errors.wrongLoginName???The error key in my .properties file is errors.wrongLoginName. So it seems like Weblogic prefixes the key with the locale before it tries to look for the key. Any ideas how to stop Weblogic from doing that? Or are there better ways to code my application so that it works without modifications on both Tomcat and Weblogic?
Also anyone familiar with what I may need to take note of when developing Struts application for Weblogic?
I'm sorry if this is not exactly the right forum to post this, but I can't find a more appropriate one to post this. Anyone knows of any good Struts forum that I can join?
Thanks in advance for any replies!
Hi all,
Just found out what's wrong with this. Apparently the weblogic deploy script that I was using (I'm developing on Eclipse, and am using Ant deploy scripts to deploy to Tomcat and Weblogic) had some problems. It didn't deploy the .properties files.
Sorry, my bad :-(
I would still however hope to get some advice on the Struts forums and also if there are any known issues anyone has encountered when running Struts with Weblogic.
Similar Messages
-
Re: Running Struts on weblogic - more info
Below is a response that was snipped from the struts-user mail list. Yet
another case of BEA dis-information! When will you guys finally admit that you
don't totally support the JSP1.1/Servlet2.2 specification. SOS. (Same old
S..t)
The responses below are from Craig McClanahan who is one of the guys in involved
in struts. I believe he is responsible for the effort, but don't quote me on
that!
WebLogic wrote:
> You should be able to get past this point with service pack 5. One of the
> problems with struts is that some of
> the pages take advantage of non-standard behaviour in Tomcat, however. For
> example, in the bean-cookie.jsp
> test they attempt to set a property on a bean that was never useBeaned.
> Section 2.13.2, JSP 1.1 spec:
>
---------------------------- Begin Quote
The "bean-cookie.jsp" actually uses <jsp:getProperty>, not <jsp:setProperty>.
In this particular case the relevant spec language is Section 2.13.3:
"An <jsp:getProperty> action places the value of a Bean instance
property, converted to a String, into the implicit out object, from
which you can display the value as output. The Bean instance
must be defined as indicated in the name attribute before this point
in the page (usually via a useBean action).
Note the word "usually" -- the reason it is here is because custom tags can be
defining elements as well, as long as they use the corresponding TagExtraInfo
class and, in the tag, call pageContext.setAttribute() appropriately. In this
page, the call
<bean:cookie id="sess" name="JSESSIONID"/>
is the defining element that looks up the cookie named "JSESSIONID" (more on
that
name below) and exposes it as a JSP bean. This tag precedes the use of the bean
in statements like this:
<jsp:getProperty name="sess" property="domain"/>
which looks up the "domain" property of the cookie (i.e. it calls getDomain())
and
writes that to the output stream.
Thus, this page conforms to the JSP 1.1 spec requirements.
---------------------------- End Quote
>
> The name of a Bean instance defined by a <jsp:useBean> element or some other
> element. The Bean instance must contain the property you want to set. The
> defining element (in JSP 1.1 only a <jsp:useBean> element) must appear
> before the <jsp:setProperty> element in the same file.
>
---------------------------- Begin Quote
Note the phrase "or some other element" -- again, custom beans can be defining
elements, so this page would be valid even if it had been using
<jsp:setProperty>
instead. It is interesting to note that the corresponding paragraph in the JSP
1.2 draft specification (Section 4.2.2.1, p. 63) has been clarified to indicate
this:
"The name of a Bean instance defined by a <jsp:useBean>
or some other element. The Bean instance must contain the
property you want to set. The defining element must appear
before the <jsp:setProperty> element in the same file.
so the confusing parenthetical comment about <jsp:useBean> has been removed.
Even
if it's a little inconsistent in 1.1, the intent is clear -- custom tags can be
defining elements for JSP-accessible beans. That is the whole point of the
TagExtraInfo functionality.
---------------------------- End Quote
> They also hard-code the Tomcat session identifier into the tests. If you
> want them to work either change the weblogic cookie name to JSESSIONID or
> change the references to JSESSIONID to WebLogicSession.
>
---------------------------- Begin Quote
Servlet API Specification, Version 2.2, Section 7.1.2, p. 35:
"Session tracking through HTTP cookies is the most used
session tracking mechanism and is required to be supported
by all servlet containers. The container sends a cookie to the
client. The client will then return the cookie on each subsequent
request to the server unambiguously associating the request
with a session. The name of the session tracking cookie must
be JSESSIONID.
Prior to 2.2, the servlet container could use whatever cookie name it wanted.
However, for 2.2 onwards, the cookie name is fixed for all containers.
There may well be spec compliance issues with Struts that need to be fixed (such
as the current question over whether body content can be accessed in the
doEndTag() method of a custom tag). However, on these two issues, Struts
complies
with the specification.
---------------------------- End Quote
Sam, it interesting that OTHER application servers can support struts. It's
probably just a case that you don't handle the specification very well. Is this
also why your server has not passed the J2EE compatibility tests? Oh, I'm sure
that you guys will complain about SUN and licensing. I understand your
complaints and I agree, but that doesn't have to do with specification
compliance! ;^)
BTW, everyone, there is a serious ClassCastException that should be fixed in
service pack 6. This particular exception illustrates that BEA Weblogic 5.1 sp5
does not support web applications properly. I created an web application under
Tomcat3.1 and moved it to Weblogic5.1sp5. I was receiving ClassCastExceptions
when I was trying to access an object that was passed in my JSP request and
display it on a JSP page. I'm grateful that one of the support people finally
fixed the problem. However, this was only a temporary patch. I'm told the
"official patch" will be included with sp6.
Let's hope that some day BEA Weblogic will be compliant. BTW, why is it you are
charging so much. Oh it must be for the great support! ;-)
If you BEA Weblogic users would like some addition links to application servers
that support JSP1.1/Servlet2.2 specification better than Weblogic, here are two.
http://www.orionserver.com (This is actually a full J2EE class application
server. It has not passed the compatibility test, but they do a hell of a
better job than BEA Weblogic. BTW, it's much cheaper too.)
http://www.caucho.com/ (This is an open source effort. They are only in beta
with EJB support and they are using Servlets and XML to implement the EJB
specification. There is a charge for commercial use. Many people are using
this engine to do the JSP/Servlets and Weblogic to do EJBs. Wonder what will
happen when they provide EJB support?)
You know I thought this news group was to help solve problems with Weblogic. It
has turned into a newsgroup that tries to hide problems and respond with
dis-information. However, this is just my opinion, just as Sam expressed his
opinion about struts. That's assuming Sam's email was an opinion, I just
figured it was since he did not know the JSP1.1/Servlet2.2 specification. Sorry
if I was wrong.
Steve
> Sam
>
> "kevinx" <[email protected]> wrote in message
> news:[email protected]...
> > "kevinx" <[email protected]> wrote:
> > >
> > >I'm trying to get the Struts examples from Apache Group
> (http://jakarta.apache.org/struts) to run on Weblogic server but getting no
> where. The examples run perfectly on Tomcat 3.1.
> > >
> > >Has anyone successfully ported struts on Weblogic? Any hint is
> appreciated.
> > >
> > >Thanks
> > >Kevin
> >
Steven D. Wilkinson, [email protected]
President, Elkhorn Creek Software, Inc.
Co-author: Professional JSP, Wrox Press Inc.; ISBN: 1861003625
Silent author: Developing Java Servlets, Sams; ISBN: 0672316005
Has anyone had any luck getting struts to run with later service packs? I've got SP6 installed and now get the following when trying to run the struts-example app:javax.servlet.jsp.JspException: Missing resources attribute org.apache.struts.action.MESSAGE at org.apache.struts.taglib.MessageTag.doStartTag(MessageTag.java:360)
-
Can not run Struts-Faces in weblogic.. Any suggestions
Hi,
I had downloaded the struts-faces application from apache and was trying to run with tomcat, it is working fine but when I am trying to run it with weblogic 8.1 it gives this error,
Parsing of JSP File '/index.jsp' failed:
/index.jsp(5): Error in using tag library uri='http://struts.apache.org/tags-faces' prefix='s': The Tag class 'org.apache.struts.faces.taglib.CommandLinkTag' has no setter method corresponding to TLD declared attribute 'actionListener', (JSP 1.1 spec, 5.4.1)
probably occurred due to an error in /index.jsp line 5:
<%@ taglib prefix="s" uri="http://struts.apache.org/tags-faces" %>
Anybody has the same problem? Any help is appreciated.
Thanks,
SushantHi,
You have to add these 2 lines in your JSP.
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
By the way, weblogic8.1 (SP2) doesn't support JSF. You need to have a patch for that. But Weblogic8.1(SP3) supports.
-Nir -
Jakarta Struts in Weblogic?
Hi All,
I am trying to get Struts up and running inside of a version 5.1 weblogic
container. It seems that I am close, because some of the tags work (like
the link tag). However, any tag that depends on the presence of a resource
bundle (such as the message tag) fails with the following stack trace:
Wed Nov 29 10:54:07 PST 2000:<E> <ServletContext-struts-example> Servlet
failed
with Exception
javax.servlet.ServletException: runtime failure in custom tag 'message'
at jsp_servlet._index._jspService(_index.java:89)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:105)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:123)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:742)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:686)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:247)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)
Wed Nov 29 10:54:08 PST 2000:<E> <ServletContext-struts-example> root cause
of ServletException
java.lang.NullPointerException:
at
weblogic.servlet.jsp.PageContextImpl.getAttribute(PageContextImpl.java:156)
at
org.apache.struts.taglib.MessageTag.doStartTag(MessageTag.java:358)
at jsp_servlet._index._jspService(_index.java:81)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:105)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:123)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:742)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:686)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:247)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)
I looked at the source code for MessageTag.java and it fails at the point
where it is trying to get a "bundle" object (instance of MessageResources)
out of the PageContext application scope.
// Acquire the resources object containing our messages
MessageResources resources = (MessageResources)
pageContext.getAttribute(bundle, PageContext.APPLICATION_SCOPE);
If I'm not mistaken, the MessageResources object should contain name/value
pairs from ApplicationResources.properties. I have that file in its default
location
(/WEB-INF/classes/org/apache/struts/example/ApplicationResources.properties)
. I have not seen any FileNotFoundException's so I think it is finding it
OK. However, the MessageResources object is either not getting created, or
is not making it into the application scope. Is there something I need to
configure in weblogic.properties to insure that the application is
initializing properly?
By the way, this is the "struts-example" application that came with the
struts binary distribution. It works fine under my tomcat installation but
we use weblogic in production.
Any suggestions would be helpful.
Thanks,
Jeff
So this gets the example working but how do i begin to use it in my application?
I created a simple web application. - copy index.jsp from example
Modifed it.
Created a simple web.xml
Now when i try to run it i get
Thu Dec 14 15:25:06 GMT 2000:<E> <WebAppServletContext-mkb> Root cause of Servle
tException
javax.servlet.ServletException: runtime failure in custom tag 'message'
at jsp_servlet._index._jspService(_index.java:133)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:123)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:761)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:708)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:252)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:346)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
which seams to be back where i started - unless I'm expected to use the public-html for keeping my site?
Any help please.
P.S. does WL6.0 have this problem with struts!
"Gregory Bush" <[email protected]> wrote:
>
>Like everyone else, I had a hell of a time getting the Struts framework to work in Weblogic, but I'm committed to using it and I'm stuck with the Weblogic servlet engine (for now), so I kept with it until I got the demo app working nicely.
>
>Don't even bother attempting this unless you are familiar with Weblogic configuration.
>
>Here's how it can be done:
>
>1) Re-install Weblogic 5.1 in a clean directory and enable JSP support by uncommenting the JSP-related tags in the weblogic.properties file, and change the weblogic.system.listenPort to 80.
>
>2) Install service pack 6. Early versions of Weblogic 5.1 are packed with Servlet bugs, and you will get nowhere with them.
>
>3) Empty the public_html and serverclasses directories. You might as well clean out clientclasses and servletclasses and any straggling files in myserver while you are at it.
>
>4) Un-jar the struts-example.war file into a temporary directory. Weblogic claims to fully support Servlet 2.2 and .war files, etc., but as anyone who has actually tried to use them has found out, that support is so spotty one wonders how they ever get J2EE certification in the first place. WE WILL DEPLOY USING THE weblogic.properties FILE, NOT A web.xml FILE!
>
>5) Take the JSPs from the exploded .war file and copy them to your public_html directory.
>
>6) Create a WEB-INF directory under your public_html directory and copy action.xml, database.xml and *.tld from the example application's WEB-INF directory into it. DON'T COPY web.xml OR THE DIRECTORIES.
>
>7) Copy the org folder from the sample application's WEB-INF/classes directory into your serverclasses directory.
>
>8) Un-jar the example app's WEB-INF/lib/struts.jar file into your serverclasses directory and delete the META-INF directory it creates.
>
>9) From your Tomcat installation's lib directory, get jaxp.jar and parser.jar and un-jar them into your serverclasses directory, deleting the META-INF directories. If you haven't installed Tomcat, you can get these JARs from Sun.
>
>10) Add the following lines to your weblogic.properties file (up to the ****):
>
># Register the DatabaseServlet
>weblogic.httpd.register.db=org.apache.struts.example.DatabaseServlet
>weblogic.httpd.initArgs.db=\
> debug=2
>
># Register our Struts ActionServlet
>weblogic.httpd.register.*.do=org.apache.struts.action.ActionServlet
>weblogic.httpd.initArgs.*.do=\
> application=org.apache.struts.example.ApplicationResources,\
> config=/WEB-INF/action.xml,\
> debug=2,\
> detail=2
>
># Start these servlets when the app server starts
>weblogic.system.startupClass.StartDatabaseServlet=\
> weblogic.servlet.utils.ServletStartup
>weblogic.system.startupArgs.StartDatabaseServlet=\
> servlet=db
>
>weblogic.system.startupClass.StartActionServlet=\
> weblogic.servlet.utils.ServletStartup
>weblogic.system.startupArgs.StartActionServlet=\
> servlet=*.do
>
>****
>
>You should now be able to start Weblogic, connect to http://localhost, see the main page and explore the sample application.
>
>Note that the database servlet is now exposed to the world as /db, so I wouldn't use that kind of connection pool access in a real application.
>
>Also, you wouldn't have to un-jar the library files if you put them on your Weblogic classpath, but that can be painful.
>
>Now that you have a clean demo app running, you can integrate your existing application back into the clean installation. It's much easier doing it this way than trying it the other direction.
>
-
Exception running STRUTS examples from JAKARTA...
Hi,
I'm looking into the JAKARTA STRUTS framework for JSP. I saw the message
from Kevin X. about problems he has. I've downloaded service pack 5 and I
get the following error message:
javax.servlet.jsp.JspException: Missing resources attribute
org.apache.struts.action.MESSAGE
at
org.apache.struts.taglib.MessageTag.doStartTag(MessageTag.java:360)
at jsp_servlet._logon._jspService(_logon.java, Compiled Code)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
, Compiled Code)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
, Compiled Code)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:760)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:707)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:251)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:369)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)
Does anyone knows what's up with this?
Thanks in advance.
Regards,
HC.
As promised, here is the latest from Bea Customer Support....
Kevin, <load-on-startup> is not honored by WebLogic Server 5.1.0. It is scheduled to be implemented in our next major release. I will check on the feasability of adding this feature to a 5.1.0 service pack, but in the meantime, I wonder if you can accomplish what you need by setting up a startup class <http://www.weblogic.com/docs51/classdocs/API_startup.html>?
"kevinx" <[email protected]> wrote:
>
>Bea is looking into this as I've filed a support request. I will post the solutions, if available. In the mean time, you can subscribe to struts user group mailing list to get some inspiration. Unfortunately, no one has an easy solution for running Strats on Weblogic.
>
>Kevin
>
>"Henry Chin" <[email protected]> wrote:
>>Hi,
>> I'm looking into the JAKARTA STRUTS framework for JSP. I saw the message
>>from Kevin X. about problems he has. I've downloaded service pack 5 and I
>>get the following error message:
>>
>>javax.servlet.jsp.JspException: Missing resources attribute
>>org.apache.struts.action.MESSAGE
>> at
>>org.apache.struts.taglib.MessageTag.doStartTag(MessageTag.java:360)
>> at jsp_servlet._logon._jspService(_logon.java, Compiled Code)
>> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
>> at
>>weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
>>, Compiled Code)
>> at
>>weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
>>, Compiled Code)
>> at
>>weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
>>l.java:760)
>> at
>>weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
>>l.java:707)
>> at
>>weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
>>Manager.java:251)
>> at
>>weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:369)
>> at
>>weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
>>
>> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
>>Code)
>>
>>Does anyone knows what's up with this?
>>Thanks in advance.
>>Regards,
>>HC.
>>
>>
>
-
Any good site for learning struts using weblogic
Hi all,
Please tell me any good website for learning struts using weblogic. I mean how to creat page and deploy , run it .....
Thanks in advanceHi,
here is the link for RMI tutorial.
http://java.sun.com/docs/books/tutorial/rmi/index.html -
How to run struts in eclipse3.1.2
hi,
I have to know how to run struts project in Eclipse(lomboz-wtp-emf-gef-jem-eclipse-SDK-3.1.2-win32).How i will create struts-config.xml file here & how i will run this project. Is there anyone who can help me about this? where i will keep this config file. Please Help me.
With regards
BinaWhen u want to create Struts Application in Eclipse..
1. Select Project : Enterprise Project..
which will create u 1. StrutsConfig.xml
2. all tld files
3. Go for Project properties
1. add all jar files
2. select all lib files and then submit.
if u come to Application side
1. JSp - Java Script (Ajax optional)
|
2. Action Form
|
3. Action Class - Application Properties - Struts-config.xml
|
4. DTO
|
5. Facade
|
6. Home.
|
7. Session Bean
|
8. DAO
|
9. DB
This is heirarchy of the project......... -
How to run struts-1.2.7 with BigApache 1.06
I have installed BigApache 1.06 and I want to run struts application in BigApache. The version of struts is 1.2.7 , and the application is the sample application:struts-examples which comes with the installation
I had copied the war file in ..\BigApache\Jboss\server\all\deploy folder for deployment. The server is running i had checked the sample web applications of Big Apache . but when i tried to run my application through browser
it gave me following error on the browser:
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
Error 404
How can i solve this , do i need to restart the server , when i try to restart the server it gives me following error
[Mon Jun 27 09:22:11 2005] [alert] (OS 5)Access is denied. : FastCGI: CreateMut
ex() failed
Syntax error on line 86 of C:/BigApache/Apache/conf/httpd.conf:
failed to create FastCGI application accept mutex
Note the errors or messages above, and press the <ESC> key to exit. 28...
Can any body tell me how can I resolve this issue, do i need to do some configurationSascha,
I've sent an email to my colleague Ric who wrote the OTN whitepaper on how to install a 10.1.2 UIX application into OC4J 10.1.3. Hopefully he may be able to help me understand what are the issues with running UIX 10.1.2 with ADF 10.1.3. I'll post what I'm able to learn to this thread. -
Can i run struts in Jrun ?
Hi, i am a newbe in java and currently running in Jrun.My question is, can i run struts in Jrun ?
thanks
saumyaOf course. You can run Struts in any J2EE-compliant serlvet/JSP engine. Put the Struts JARs you need into the WEB-INF/lib for your app and off you go.
% -
WLS: Error running app in Weblogic 1035
I have an application created in JDeveloper using ADF ADF 11115-Security. successfully deployed in WLS 10.3.5. The JDBC configuration and myreal ConnectionGoldDS was created called ERPDaniela provider, and its configuration by using sql statements for what algortinmo indicated the SHA-1 and style PLAINTEXT password, and log all sql statements for users, groups and group members. When running the deployed application, I get the welcome screen asking for user name and password, you enter these data and does not display the system menu but it is looking for the site and the WLS throws the error mentioned in your console :
running app in Weblogic deployed ADF 10.3.5, error message:
<jdbc> <error> <bea-001112> "text select 1 from dual"set up for pool "ConnectionGold" failed with exception: java.lang.NullPointerException
in other file the directiry
E:\Oracle\Middleware\WebLogic10.3.5\user_projects\domains\ERPDaniela\servers\AdminServer\adr\diag\ofm\erpdaniela\adminserver\incident\incdir_8
display mesage:
Caused By: java.lang.NullPointerException
at daniela.backings.DanielaParam.getCapturarUsuario(DanielaParam.java:169)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.el.BeanELResolver.getValue(BeanELResolver.java:261)
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
at com.sun.el.parser.AstValue.getValue(Unknown Source)
at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)
at oracle.adfinternal.view.faces.renderkit.rich.ValueRenderer.getValue(ValueRenderer.java:184)
atI have developed an application which includes a jsp file using a java bean.
I am getting below error, and could not find what the error is. Could you please help me!!
My jsp file has the following line:
<jsp:useBean id = "sb" scope="session" class="cncExec.cncExecSelectionBean" />
Error: 500
Location: /wls/cncexec/jsp/cncExecSelection.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPc:\users\www\work\localhost_8080%2Fwls%2Fcncexec\_0002fjsp_0002fcncExecSelection_0002ejspcncExecSelection_jsp_0.java:63: Class jsp.cncExec. cncExecSelectionBean not found.
cncExec.cncExecSelectionBean sb = null;
^Looks like the class cncExec.cncExecSelectionBean is not deployed with your WAR file or is not otherwise available to the class loader for your WAR in tomcat. Make sure the JAR file is included in the WEB-INF/lib directory in your WAR archive.
Rob -
How to run Struts program with the help of tomcat
Hello Everybody
This is Adesh.I am a newcomer of java and facing a problem with struts, so if any one know how to set the path of struts and how to run struts program, so plz inform me.
THX in Advance.............................................struts-config.xml
<struts-config>
<action-mappings>
<action path = "/welcome"
type = "Welcome"
scope="session">
<forward name="success" path=".welcome"/>
<forward name="failure" path=".base.error"/>
</action>
</action-mappings>
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/>
<set-property property="definitions-debug" value="1"/>
<set-property property="definitions-parser-details" value="0"/>
<set-property property="definitions-parser-validate" value="true"/>
</plug-in>
</struts-config>tiles-defs.xml
<tiles-definitions>
<definition name = ".base" path = "/include/template.jsp">
<put name = "title" value = "${title}"/>
<put name = "header" value = "/include/top.jsp"/>
<put name = "body" value = "${body}"/>
<put name = "footer" value = "/include/footer.jsp"/>
</definition>
</tiles-definitions>web.xml
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>definitions-config</param-name>
<param-value>/WEB-INF/tiles-defs.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>init</servlet-name>
<servlet-class>Init</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<jsp-config>
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/wall.tld</taglib-uri>
<taglib-location>/WEB-INF/wall.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/c.tld</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/fn.tld</taglib-uri>
<taglib-location>/WEB-INF/fn.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/fmt.tld</taglib-uri>
<taglib-location>/WEB-INF/fmt.tld</taglib-location>
</taglib>
</jsp-config>
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/SQLServerDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>This should help.... -
How To Run OIM Under Weblogic As A Windows Service?
Hi
does anyone know how to run OIM under Weblogic as a windows service?
Many thanks in advance,
EvanelaHi
Does anyone know how to run OIM under Weblogic as a windows service?
I have used "Setting Up a WebLogic Server Instance as a Windows Service" (http://download.oracle.com/docs/cd/E12839_01/web.1111/e13708/winservice.htm#START143), but It doesn't work because OIM use the xlStartWLS.cmd file and not startWebLogic.cmd.
thanks!
Edited by: user13082223 on Sep 29, 2010 9:09 AM -
hi
Error to run Configuration Wizard weblogic 12.1.2
my system is windows xp by 2 gig ram
and jvm version
C:\Program Files\Java\jdk1.7.0_25\bin>java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode, sharing)
how resolve this problem and how find log file weblogic to this error?In user environments where the path to java is not already established as an system-level environment variable, the service is unable to determine where to find java and this error will occur.
This could occur, for example, in environments where there is more than one JDK installed, or where the default JDK is different from the JDK which needs to be used by WLS.
Try to set the environment variable in windows i.e JAVA_HOME=C:\Sun\Java\jdk1.7.xx.x. to point to jdk 1.7 and run the configuration wizard.
Hope it helps!!
Thanks,
Vijaya -
How to run Struts applications in NWDS?
Hi All,
I am new to SAP Netweaver developer studio.
I run the java applications like servlets and jsps.
But I want to know how to run Struts in netweaver.
I am using netweaver 2004.
Please can you tell me how to run Struts?
Thanks in AdvanceHi,
Check this Blog
/people/narayanaswamy.balasubramaniam/blog/2005/02/26/using-jakarta-struts-in-web-application-server-part-i
/people/narayanaswamy.balasubramaniam/blog/2005/02/26/using-jakarta-struts-in-web-application-server-part-ii
Regards
Ayyapparaj -
Weblogic wants me to disable cookies to run struts?!
Hi,
I woudl like to deploy a web application that use struts 1.1
in Weblogic 8.1 sp2 (windows)
The probelm is when I view a page that has struts code
it works fine for first time, but when I try to browse the same
or any other struts page again, it gives me this error:
java.lang.ClassCastException
at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:777)
Furthermore, I notced that when I disable cookies,
(<session-param>
<param-name>CookiesEnabled</param-name>
<param-value>false</param-value>
</session-param>
strust work fine, it seems it like to use URLRewriting instead, But if i disable
cookies, I have other JSP pages which uses normal "<jsp:useBean ..."
and now these pages are suffering becouse all of there session data are lost.
Also, I have been running this web application on weblogic 6.1 are it was working
fine.
any help please?
thanks in advance
Ahmed
"Ahmed" <[email protected]> wrote in message news:[email protected]...
> you are right, I did some mistake in class decleration
> which I think weblogic 6.1 was forgative enough and allow it
> but weblogic 8.1 didn't.
Glad to help.
Regards,
Slava Imeshev
>
> AHmed
>
>
>
>
> "Ahmed" <[email protected]> wrote:
> >
> >Slava,
> >
> >I didn't specify a cookie path, also this calls works for first
> >time, but it fails in the second time,
> >Futhermore, the error happned before it enter the perform action
> >method in my struts framework, so i didn't fail in the code I wrote.
> >(RequestUtils.java is - i think - is one of libraries that comes with
> >struts)
> >also, this web application has been working in weblogic 6.1
> >
> >I found a link in struts website which is mentioening
> >this class cast problem, but it refering to weblogic 5.1 not 8.1
> >http://www.mail-archive.com/[email protected]/msg00284.html
> >
> >Ahmed
> >
> >
> >
> >"Slava Imeshev" <[email protected]> wrote:
> >>Ahmed,
> >>
> >>
> >>I don't think it has anything to do with weblogic. It's likely you have
> >>code path that
> >>handles cookies and this path fails at RequestUtils.java:777
> >>
> >>Print a class name at line before 777 to see what is actually passed.
> >>
> >>Regards,
> >>
> >>Slava Imeshev
> >>
> >>"Ahmed" <[email protected]> wrote in message news:[email protected]...
> >>>
> >>> Hi,
> >>>
> >>> I woudl like to deploy a web application that use struts 1.1
> >>> in Weblogic 8.1 sp2 (windows)
> >>> The probelm is when I view a page that has struts code
> >>> it works fine for first time, but when I try to browse the same
> >>> or any other struts page again, it gives me this error:
> >>>
> >>> java.lang.ClassCastException
> >>> at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:777)
> >>>
> >>> Furthermore, I notced that when I disable cookies,
> >>> (<session-param>
> >>> <param-name>CookiesEnabled</param-name>
> >>> <param-value>false</param-value>
> >>> </session-param>
> >>>
> >>> strust work fine, it seems it like to use URLRewriting instead, But
> >>if i disable
> >>> cookies, I have other JSP pages which uses normal "<jsp:useBean ..."
> >>> and now these pages are suffering becouse all of there session data
> >>are lost.
> >>> Also, I have been running this web application on weblogic 6.1 are
> >>it was working
> >>>
> >>> fine.
> >>>
> >>> any help please?
> >>>
> >>> thanks in advance
> >>>
> >>> Ahmed
> >>>
> >>>
> >>
> >>
> >
>
Maybe you are looking for
-
GL display for inventory account which are not defined as line item display
Hi All, We have inventory gl accounts which are auto post accounts , these accounts get posted when grn is done. these accounts are not defined as line item display accounts, but if we execute the T code: FS10 we get the gl balance display and not li
-
Flash MX 2004 Patch / updates
Hi Hope this is in the right area. At the school where I work we use a package system to deploy software, and after deploying Flash MX 2004, we have found that it keeps asking us for the product key. From what I have been told and read this is a bug
-
CAN YOU USE A FLASH TEMPLATE IN IWEB?
I have recently created my website using iWeb....albeit with much help from this forum...and am very pleased with the results. I would like to, however, have my site open with a Flash introduction. I have seen many affordable Flash Templates for sale
-
Rules not saving in Mail Ver 3.6 (936)
Mail Ver 3.6 (936) Quick Altering/Creating new rules work OK when in Mail. but when you close/reload Mail, the rules have reverted back! More in-depth I have a rule to delete email from a specified address. This rules works. As do all the other rules
-
How to set no archive log in MS SQL
Dear Gurus, I'll already did the support package upgrade and need to run the SGEN.But before that I'll need to set the archive log in MS SQL 2005 database. Kindly please help me,how to set "no archive log " in MS SQL .Then I can run the SGEN.After th