Servlet tag not working
Hi,
I was using the servlet tag in my html files to call servlets, enabled by
Server Side Includes, which was working fine with Weblogic4.03 but since
I've migrated to 4.5.1 this is broken, has the syntax for invocation changed
to something else from
<servlet name="VirtualServletNameFromWeblogicPropertyFile">
</servlet>
Now I'm seenig some funky behaviour, also my </servlet>s are returned to the
browser as is.
Also, I have a servlet which is calling making calls to an ejbobject proxy,
which returns a Serializable object, whose class file is available in a jar
which is on the Windows NT System ClassPath. Weblogic throws a
ClassNotFoundException, saying that this class cannot be loaded even though
it is using the same jar file to load the EJB's from.
In other words, I have a class file in a jar which is on the CLASSPATH,
but Weblogic does not seem to find it.
All this used to work with 4.03,
help needed,
Abhi
Hi --
Abhishek Begerhotta wrote:
>
> Hi,
> I was using the servlet tag in my html files to call servlets, enabled by
> Server Side Includes, which was working fine with Weblogic4.03 but since
> I've migrated to 4.5.1 this is broken, has the syntax for invocation changed
> to something else from
> <servlet name="VirtualServletNameFromWeblogicPropertyFile">
> </servlet>
>
> Now I'm seenig some funky behaviour, also my </servlet>s are returned to the
> browser as is.
Are you doing it like this?
1. <servlet name=foo></servlet>
like this:
2. <servlet name=foo> </servlet>
or like this:
3. <servlet name=foo>
</servlet>
2. and 3. should work. 1. will not because of a bug -- that is, you need to
have a space or a return before the closing tag. This should be fixed in
4.5.2.
> Also, I have a servlet which is calling making calls to an ejbobject proxy,
> which returns a Serializable object, whose class file is available in a jar
> which is on the Windows NT System ClassPath. Weblogic throws a
> ClassNotFoundException, saying that this class cannot be loaded even though
> it is using the same jar file to load the EJB's from.
> In other words, I have a class file in a jar which is on the CLASSPATH,
> but Weblogic does not seem to find it.
> All this used to work with 4.03,
Classpath stuff has changed quite a bit (for the better) in 4.5.1. -- check
out the classpath docs, and if you're still confused, post again.
http://www.weblogic.com/docs45/admindocs/classpath.html
http://www.weblogic.com/docs45/techdeploy/hotdeploy.html
>
> help needed,
>
> Abhi
Hope this helps,
-jg
John Greene BEA WebXpress
Developer Relations Engineer 550 California Street, 10th floor
415.364.4559 San Francisco, CA 94104-1006
mailto:[email protected] http://weblogic.beasys.com
Similar Messages
-
ScriptLink tag not working for application page sharepoint 2010
<ScriptLink> tag not working for application page sharepoint 2010 for including javascript in application page, it appends either 1033 or _layout to path specified for javascript.But javascripts are located in custom document library on site and not
in _layouts folder.
Please help and explain in details as I tried lot on this.Hi,
Use the following line of code
<SharePoint:Scriptlink runat="server" Name="~sitecollection/Style Library/[YOUR SITE]/js/functions.js" Language="javascript" />
Thanks,
Vivek
Please vote or mark your question answered, if my reply helps you -
Revision: 3921
Author: [email protected]
Date: 2008-10-28 06:23:00 -0700 (Tue, 28 Oct 2008)
Log Message:
Fix for - @inheritDoc tag not working for get/set overrides when you only override the setter of a base class
QE Notes: Baselines for framework test will need to be updated.
Doc Notes: None
Reviewer: Paul
Bugs: SDK-17304
tests: checkintests
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-17304
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ASDocExtension.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ClassTable.javaRevision: 3921
Author: [email protected]
Date: 2008-10-28 06:23:00 -0700 (Tue, 28 Oct 2008)
Log Message:
Fix for - @inheritDoc tag not working for get/set overrides when you only override the setter of a base class
QE Notes: Baselines for framework test will need to be updated.
Doc Notes: None
Reviewer: Paul
Bugs: SDK-17304
tests: checkintests
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-17304
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ASDocExtension.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ClassTable.java -
JSPs and Servlets do not work on Apache HTTP- Procesor Intel P4
Computer description: Intel Pentium 4 processor with 20GB HD
drive, 1GB RAM, Windows 2000Pro, Service pack II
Before installation:
We created a temporary directory on our Intel Pentium. 4
processor server (e.g. \TEMP).
Copied the contents of the Oracle* Server CD to the temporary
directory.
Renamed each copy of the SYMCJIT.DLL to SYMCJIT.OLD.
Set the java_compiler=none environment variable.
Installation:
We run the SETUP.EXE from the \TEMP\install\win32 directory and
install Oracle 8.1.7 EE Rel 3 Typical
Configuration tool Net8 Configuration Assistant succeeded
Configuration tool Oracle Database Configuration Assistant
succeeded
Configuration tool Starting Oracle HTTP service: 7 times error
message (java.exe has generated errors and will be closed by
Windows, You will need to restart the
program, An error log is being created)
HTTP server responses.
All Java programs do not respond (e.g. IsItWorking does not work)
After installation:
Open the jserv.conf file chack that ApJServManual is set to Off.
set ApJServLogLevel debug (will give more informative errors for
debugging)
set ApJServDefaultHost www.in.oracle.com (to your machine name
with the
domain name or IP address)
set ApjServDefaultPort 80000
Open the jserv.properties files and make the following changes:
bindaddress=www.in.oracle.com (Same name as ApJServDefaultHost
in jserv.conf)
port=80000 (same port as in the jserv.conf)
Enable all log options in jserv.properties:
log=true
log.file=/usr/local/apache/var/log/jserv.trace
log.timestamp=true
log.dateFormat=[yyyyMMdd HHmmss:SSS]
log.channel.init=true
log.channel.terminate=true
log.channel.serviceRequest=true
log.channel.authentication=true
log.channel.requestData=true
log.channel.responseHeaders=true
log.channel.signal=true
log.channel.exceptionTracing=true
log.channel.servletManager=true
Java servlets and JSP still do not redspond.
If we try to start HTTP server from Windows service, we always
get message: unable to locate dll: The dynamic link
library Perl.dll could not be found in the secified path (our
path: C:\oracle\ora81\bin;C:\oracle\ora81\Apache\Perl\5.00503
\bin\mswin32-x86;
C:\Program Files\Oracle\jre\1.1.7
\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;) and
error message: Could not start
OracleOraHome81HTTPServer service on local computer. The service
did not respond to the start or control request in a
timely fashion.
Starting Oracle HTTP service from Start/Programs/Oracle: 7 times
error message (java.exe has generated errors and will be closed
by Windows, You will need to restart the
program, An error log is being created)
We tested also modifications of oraparam.ini
a. Copy only the install directory from the CD to the hard
disk ,say, e:\temp.
b. Open oraparam.ini and make the following modifications
(Assuming CD
drive is f:)
* Change the "SOURCE=" line to use the full path to the CD
instead of a
relative path. (i.e., SOURCE=f:\stage\products.jar)
* Change the "JRE_LOCATION" line to use the full path to the CD
instead of a
relative path. (i.e.,
JRE_LOCATION=f:\stage\Components\oracle\swd\jre\1.1.7\1
\DataFiles\Expanded)
* Change the "OUI_LOCATION" line to use the full path to the CD
instead of a
relative path. (i.e.,
OUI_LOCATION=f:\stage\Components\oracle\swd\oui\1.6.0.9.0\1
\DataFiles\Expanded
* Change the "JRE_MEMORY_OPTIONS" line to add "-nojit" as the
first argument.
(i.e., JRE_MEMORY_OPTIONS=-nojit -ms16m -mx32m)
^^^^^^
* Other entries should remain the same
c. Launch setup.exe from the temporary location on your hard
drive (i.e.
e:\temp\install\ win32\setup.exe). This will use the modified
oraparam.ini and pick up the information from the CD since the
absolute
locations are specified.
After that modification of oraparam.ini, the HTTPServer does not
respond at all.
So we undo changes on oraparam.ini and reinstall HTTP.
We copied SYMCJIT.DLL and jvm.dll from JDK 1.1.8_008 to
Apache\jdk\..
Since then at least the demo IsItWorking responses, but database
connection can not be established. But jsp demo still do not?
THX in advance
NejaI'm still having problems with Portal config (as part of 9iAS) on
a P4 but i have cleared the hurdle of the HTTP listener (i
think).
I downloaded and installed the JRE that is P4 compatible from
www.sun.com (it puts it under c:\program files)
then overwrote all the files in the jre directories in the cd
staging area with the files from Sun (i.e. all symcjit.dll
locations). I also had to put a file "javai.dll" in the same
directory as the file "java.exe". This got the install all
working.
The service will fail first time because the install creates
another set of incompatible jre files. You must again search for
symcjit and repeat the above procedure.
You must also overwrite the files in the c:\program
files\oracle\inventory\jre directories (sorry cant remember exact
path).
Hope this helps.
Mark Gornicki
PS if anyone knows why Portal config hangs at 67%
(before/during/after processing "bulkload.jar" section) please
let me know :-) -
Servlet reloading not working with WLS 5.1 sp8
I downloaded and installed WLS 5.1's sp8 to fix the "java.net.SocketException: Connection aborted by peer: socket write error"
problem. Although that problem is fixed, I have found that, however, the servlet (automatic) reloading does not
work anymore. If I remove the sp8 from my Java system classpath and WL classpath (i.e. not using sp8), then
the servler reloading works fine.
Does anybody experience similar problem or have I forgot to do something?
WLS properties/env vars setting:
- weblogic.httpd.servlet.reloadCheckSecs=0
- WEBLOGIC_CLASSPATH=%WEBLOGIC_HOME%\lib\weblogic510sp8.jar;...
- JAVA_CLASSPATH=%WEBLOGIC_HOME%\lib\weblogic510sp8boot.jar;...
Thanks in advance for any help.
I've experienced the same problem with both sp6 and sp8. In both cases I performed several test, including
- varied the value of weblogic.httpd.servlet.reloadCheckSecs
- changes to the package depth the servlet belonged to
- changes to the string length of the package names the servlet belonged to
At best, the servlet would reload sometimes. I've moved back to sp5 and the problem has subsided.
Note: I did not try registering the servlet to see how that would effect the dynamic reloading.
Hope this helps
- Dave
"Michel Dinh" <[email protected]> wrote:
>
>I downloaded and installed WLS 5.1's sp8 to fix the "java.net.SocketException: Connection aborted by peer: socket write error"
>problem. Although that problem is fixed, I have found that, however, the servlet (automatic) reloading does not
>work anymore. If I remove the sp8 from my Java system classpath and WL classpath (i.e. not using sp8), then
>the servler reloading works fine.
>
>
>Does anybody experience similar problem or have I forgot to do something?
>
>WLS properties/env vars setting:
>
>- weblogic.httpd.servlet.reloadCheckSecs=0
>- WEBLOGIC_CLASSPATH=%WEBLOGIC_HOME%\lib\weblogic510sp8.jar;...
>- JAVA_CLASSPATH=%WEBLOGIC_HOME%\lib\weblogic510sp8boot.jar;...
>
>Thanks in advance for any help.
-
8.1-beta servlets do not work?
Hello,
I'm using a web.xml file with 2 servlets in it that works fine
in WLS 6.x and 7.x. Yet, it does not work in 8.1.
If I delete the servlet and servlet-mapping elements I can
deploy my webapp (in an ear) and it deploys. Otherwise it
will not work.
Has anyone else seen this with 8.1-beta?
Thanks.
Are you getting any exceptions / error messages?
--Vinod.
"Mark Swanson" <[email protected]> wrote in message
news:[email protected]..
> Hello,
>
> I'm using a web.xml file with 2 servlets in it that works fine
> in WLS 6.x and 7.x. Yet, it does not work in 8.1.
>
> If I delete the servlet and servlet-mapping elements I can
> deploy my webapp (in an ear) and it deploys. Otherwise it
> will not work.
>
> Has anyone else seen this with 8.1-beta?
>
> Thanks.
>
>
-
ORACLE tags not working after 1.5.1 patch
I have some logic in my template the looks up information from some Oracle tables. This logic worked fine in 1.5.0, however, after applying the 1.5.1 patch it does not perform the Oracle logic, but shows the Oracle code as HTML on the page. Here is the code in question: (This is not the entire code, but one HTML TD that comes before the Oracle code, and one HTML TD that comes after it)
<TD align="center" valign="top"><A
href="/pls/portal/PORTAL.home"><IMG src="#WORKSPACE_IMAGES#ihome.gif" alt="Home" border="0"></A></TD>
<ORACLE>
BEGIN htp.tableData(htf.anchor2('javascript:help_openTopic(''/insitehelp/Insite_Help.htm'', ''' || pkg_insite_general.help_link(v('APP_ID'), v('APP_PAGE_ID')) || ''')', '', '', '', '><IMG src="#WORKSPACE_IMAGES#ihelpl.gif" alt="Help" border=0'), 'center');
END;
</ORACLE>
<TD align="center" valign="top"><IMG src="#WORKSPACE_IMAGES#ilogout.gif" alt="Logout" border="0"></TD>
This is what displays on the web page:
BEGIN htp.tableData(htf.anchor2('javascript:help_openTopic(''/insitehelp/Insite_Help.htm'', ''' || pkg_insite_general.help_link(v('APP_ID'), v('APP_PAGE_ID')) || ''')', '', '', '', '>Your removal of functionality in a bug fix has broken a production application for us. This does not seem like something that should have been done with a "patch"
I have just read all that I can find on "shortcuts" and am not finding what I need.
Here is what we are doing:
We are using RoboHelp for our help content. We have a help icon and a help link on the header of the page. This is defined in our template. We have to have the name of the module (Page Alias) to link the page being run to the help content for that page. Since you do not have a system variable for page name or page alias, I have had to put this information into an Oracle table. I was looking that up with a function within the Oracle Tags.
Can I create a shortcut that would create the following code pl/sql code into a PL/SQL function body:
BEGIN
htp.tableData(htf.anchor2('javascript:help_openTopic(''/insitehelp/Insite_Help.htm'', ''' || pkg_insite_general.help_link(v('APP_ID'), v('APP_PAGE_ID')) || ''')', '', '', '', '><IMG src="#WORKSPACE_IMAGES#ihelpl.gif" alt="Help" border=0'), 'center');
END;
and call this shortcut where this help icon needs to appear like:
<TD align="center" valign="top">
"CALLHELPWITHICON"
</TD>
I have done the above, but it does not work. What am I doing wrong, how can I get this to work? We have had to remove our help icons because of this patch.
I thank you so for your research on this. -
Servlet Filter not working in Oracel9iAS(9.2.0.3)
Hi,
May i know what cause the servlet filter not workinng in Oracle9iAS? Is there any library files missing? I have tried deploy the war file in Tomcat but is working fine but when i try to deploy in Oracle9iAS, the application seems like can't call the servlet filter.
Please advice.
Thanks.
Regards,
Ming JadeI'm not exactly sure what version you are using.
Servlet Filters were introduced in Servlet 2.3 which was part of J2EE 1.3.
Oracle9iAS 9.0.2.3 is J2EE 1.2 compatible .
Oracle Application Server 10g 9.0.4.x and 10.1.2 is J2EE 1.3 compatible
Oracle Application Server 10g 10.1.3 is J2EE 1.4 compatible.
So the problem could be that the version of the product you are using does does not support the version of the servlet spec that covers Servlet Filters.
Can you upgrade to/install the 10.1.2 release as a minimum?
cheers
-steve- -
CFQUERYPARAM tag not working in GROUP BY clause
I am getting an error whenever I put a CFQUERYPARAM tag in a
GROUP BY clause. I saw on another message board someone was having
a similar problem with the ORDER BY clause
Here is a sample of what my code might look like
select x, y, z from abc
group by <cfqueryparam value="x"
cfsqltype="cf_sql_float">
Here is the error I receive.
Error Executing Database Query.
[Macromedia][Oracle JDBC Driver][Oracle]ORA-00979: not a
GROUP BY expression
Any insight?The cachedwithin and cachedafter functions store the query
results in the server's RAM. That means, while it's cached,
whenever you run it, you get the cached result instead of going to
the database to run it again. This increases speed of course, but
if the data changes during the cache period, you have accuracy
problems.
It does not create memory issues. In the administrator you
reserve a certain amount of memory for query caching. If you exceed
that amount, the last query in pushes the first query out, or
something like that.
With regards to what you are trying to do about binding
variables in your group by clause, that's not what cfqueryparam was
designed for. It was designed for
where clauses (where this = <cfqueryparam etc>
or insert queries (insert into my table (field) values
(<cfqueryparam>
and things like that.
You are trying to use it for something other than what it was
designed for, which explains why it's not working for you. -
ITunes Explicit tag not working correctly
Hello, I have a problem with manually added 'explicit' tag in iTunes. iTunes show tag correctly near the song, but there is no red 'E' label in the ''now playing'' box.
How can I fix this problem?
I tried to re-add a song into the library, it's not helps.
I think, that this is the different tags in the file, how can I check the second tag? Maybe someone have a script to manually add that tag to AAC file?Same for me. I don't know why that happens. I restarted my Macbook, quit iTunes, and it still did not work.
-
In Web.xml welcome file tag not works
Hi All ,
I am developing simple web application using spring framework
when i am try to add welcome file tag in web.xml with respective welcome page path but it not works.
but when use jsp page without to having any property it works.
what the problem with me
ThanksHi Frank
Thank you for your reply.
This is how I registered the session filter in web.xml
<filter>
<filter-name>SessionFilter</filter-name>
<filter-class>com.avery.view.filter.SessionFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>SessionFilter</filter-name>
<url-pattern>/faces/*.jsf</url-pattern>
</filter-mapping>
I'll try to use phaselisenter as you suggested.
Also, one more thing please, in the session filter, I have something like this.
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
System.out.println("JF--- Calling the Filter");
if (request instanceof HttpServletRequest) {
HttpServletRequest httpRequest = (HttpServletRequest)request;
HttpServletResponse httpResponse = (HttpServletResponse)response;
HttpSession session = httpRequest.getSession();
String url = httpRequest.getPathTranslated();
String path = httpRequest.getContextPath() + httpRequest.getServletPath();
if (httpRequest.getRequestURI().equals(path+"/Login")) {
System.out.println(" the request path is" + httpRequest.getRequestURI().toString());
session.setAttribute("WELCOME", Boolean.TRUE);
chain.doFilter(request, response);
else if (session.getAttribute("WELCOME") == null){
httpResponse.sendRedirect(path+"/Login");
else {
chain.doFilter(request, response);
else {
chain.doFilter(request, response);
Do you think it looks right ?
thanks
Edited by: Lang on Apr 13, 2012 1:41 AM -
MenuBar tag not working?
I finally got FB4L working on Fedora 6. Now I am trying some
sample applications. I managed to get a small test application
working with a label tag. Compiling and viewing in FireFox went
smoothly.
Now I took the next step: the MenuBar tag. This one is not
working well. I used the sample code of
http://livedocs.adobe.com/flex/15/asdocs_en/mx/controls/MenuBar.html
I do not get a menubar, but a "textbox" with the content of
my XML text as it appears in my source code.
Anyone else has more luck with this MenuBar tag?
I suppose we can post these kind of bugs as the FB4L is still
alpha?
Regards,
FrankThe problem is not with Flex Builder, it's with the sample :)
In the menubar MXML tag, you need to specify the labelField
property. Otherwise, the menubar does not know what to display. Use
this and it should work:
<mx:MenuBar id="menubar" labelField="@label"
dataProvider="{myMenuData}"/> -
Hi, I am trying to create a web page that links to an audio file. I have added the <audio> tag which works in my Safari browser on my Mac but does not work on the i-phone. If I save the page by bookmarking and adding to my Home Screen I have more success. This is not a desirable option.
Does anyone have any ideas?
Glennwell for anyone else.
my html was fine. in fact the server nginx was returning the wrong content-type and so i had to add the MIME types into my nginx config file. -
XMII Query Selected tags not working
I am using a query template for tag list against a UDS PI server and the "Selected Tags" dos not seem to wok. It retuns all tags or masked ones even when the check box "Use Group.Mask .....' is unchecked.
The UDS does not have groups since the alias tool doesn't seem to allow wildcarding accomadating future tags.
Product Version: 11.5.3 b66
Thanks, Ed (for Shari)Hi,
As Jeremy said, 'Use Group or Mask for Tag selection' is used for Current, History, HistoryEvent, and Statistics query modes. For namespace query modes such as TagList/GroupList it will not work. Please find the below link for you help:
http://help.sap.com/saphelp_xmii115/helpdata/en/index.htm
Hope it helps!
Best Regards,
Kedar -
Servlet forward not working with portal and oc4j
Scenario: page1.jsp, page2.jsp, MyServlet
Page1.jsp posts a form to MyServlet which then does some processing and forwards to page2.jsp.
Tests:
Works fine as a standalone app under oc4j.
Does not work as oc4j-driven portlet under latest portal. Specifically, it conks out on the forward.
Question:
Why?
What is the suggested workaround?
Michael Mogley
Software Engineer
LRN, Inc.James, thanks for responding but you are misunderstanding the problem. I have been able to do multipage and form-submit portlets as you describe for a long time. The issue is I am not able to use the jsp-forward directive within a validation servlet when using oc4j with portal. Here is what I'm trying to do in pseudocode:
EntryPoint.jsp
1. Enter form data.
2. Submit form to MyServlet.
MyServlet
1. Validate form.
2. If valid, <jsp-forward page="success.jsp"/>.
3. Else, <jsp-forward page="failure.jsp"/>.
The above works fine when used in an app running on oc4j outside of portal. It does not work when the same oc4j app is portletized. By the way, the portletized app WILL work if I change jsp-forward to jsp-include. So the problem is obviously in the forwarding.
Michael
I would try looking at the samples in the PDK-Java V2 that show how to do form input and multipage behavior. The form input shows you how to make a form in a portlet that when you submit it, the entered values appear in the portlet. The multipage portlet shows you how to have a portlet display one page and then when you click on a link, it shows you the second page.
It may make sense to copy the same code used for the samples and just tweak it to create a form that passes values from page1 to page2.
For more info on V2 parameters, see the article "A Primer on Parameters and Events" in the PDK-Previews (for subscribers to Developer Services only). You can also see the V1 article called "Understanding the Parameter Passing Portlet" for more info on parameter passing with portlets in V1.
James
James
Maybe you are looking for
-
Apple TV 2 (2010) Wi-Fi Range/Problems - cant see my network!!
Hi - dont know if this is a general problem or not, but cant see any other posts on it anywhere!!! I have recently set up a new ATV2 in our bedroom. When originally setting up, it found my network no problem. I even use my ipad in our bedroom and it
-
How to I delete the application a file somehow selected to open it when it's the wrong one? How to re-select 'None'?
-
Hi. I wonder how I can do to put a cycle counter in a wave that is constantly simulating and which will change the frequency, amplitude, initial force and samples / sec. Thanks.
-
The yak.buffalo/whatever lives in 5.1.2
Just say'n i just saw him People were say'n he didnt get upgraded!
-
How can I start scripting in CS5 for Windows?
I have just installed CS5. I tried running a script I had adapted from CS4, and it would not run. Then I discovered there were major changes for CS5, and tried running the sample script FindChangeByList on a short piece of text, but it appeared not t