understand
your question. What do you mean by 'edit'?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ing to load them from, vs. where they actually are.
Or... Find this part of server.xml, uncomment it, and change the docBase
to wherever your files are. Note that it's relative to 'webapps'. This
is from 4.1.30, adjust as necessary for a different Tomcat version.
n for more info.
Which doesn't address your https-only requirement, but that's why it's
doing what it's doing. To achieve https-only here, we elected to block
port 80 at the firewall.
--
Wendy Smoak
Applicat
r /
Anything else requires an exact match on the requested URL.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
on
/error.jsp
Should I instead be doing something with RequestDispatcher and
forwarding to this JSP to avoid the status being set to 500 and
confusing IE?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
er.xml back the way
it was, put the contexts directly under 'webapps' and watch the logs
closely.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
mozilla.
What URL are you visiting when you get the 404 error? Any chance it has
/servlet/ in it? If so, read here:
http://test.javaranch.com/wiki/view?InvokerServlet
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Re
ment to Fruit.java, correct? Then you
need to compile it, and place it in WEB-INF/classes/com/stevensons . If
all that is done, please post the JSP code that Tomcat is complaining
about.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Infor
, so things start to fall
apart at that point.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
servlet in the example webapp, (and maybe they have, I'm on 4.1) because
it would really be easier for people if things are consistent.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
---
rectory and putting your
class in it? AFAIK, Tomcat builds its classpath at startup, so if the
directory wasn't there then, it might not be seeing the contents now.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
---
almost certain someone already has and I just
can't find it.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
nt task instead of
the 'reload' task?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
d is the hardest part, and I'm not
familiar enough with Tomcat to know where to look.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
those for the context that contains your 'rreport'
Servlet?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
no Apache error
pages.
I'm going to make a test webapp and a Servlet that throws various
exceptions, to see if I can narrow this down. Obviously it's something
I'm doing wrong, nobody else is having this problem.
--
Wendy Smoak
Applicati
-old Servlet, not a Struts Action.
The same tag works fine in a different webapp, I'm at a
loss as to why it fails in this one. The JSP is present in the location
given in the tag.
What am I missing, why do I get a Tomcat-generated error page and not
the JSP I specified?
--
Wendy
This got no play on comp.lang.java.programmers, and while I don't think
it's Tomcat specific, I'm at a loss as to how to present a nice error
page when this happens. Help?
Can someone possibly shed some light on this? I have a Servlet that
keeps
coming up with:
ExceptionConverter: java.io.IOEx
> From: Wendy Smoak
> I have a couple of Filters, after which there is a userid in session
> scope. I was hoping, in a SessionListener, to pick up that userid and
> use it to read something from the database, but no dice since things
> happen in the opposite order.
Ah, never m
went looking for a RequestListener, but I'm on Tomcat 4.1 right now,
and anyway for all I know that happens before the Filters also.
Right now it looks like I'll put in another Filter, even though this
stuff only needs to happen once per Session.
Other suggestions welcome!
--
W
ght? Depending on its
> implementation/configuration, it might be masking the IOException
Thanks for pointing that out... ExceptionConverter is part of iText.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
---
tps, and then try to response.sendRedirect()
to a Servlet that sends, for example, a PDF over https, IE will
complain.
But if you instead POST the form, then forward to some HTML that does
nothing but redirect with a tag, to the exact same Servlet, IE is
happy. Go figure.
--
Wendy Smoak
Application Systems
I'm getting an Status 500 page with this:
ExceptionConverter: java.io.IOException: The document has no pages.
Even though I have this in web.xml:
java.io.IOException
/WEB-INF/jsp/exceptions/Exception.jsp
What did I miss?
--
Wendy Smoak
Application Systems Analyst, Sr
onse is non-HTML over HTTPS. The
workaround is to redirect the browser and make it GET the PDF (rather
than forward the original POSTed response to the PDF Servlet.)
So, never mind, I don't think it's a Tomcat problem.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA I
Tomcat is sending that makes IE upset?
I saw a post in the archives where someone thought maybe the text/pdf
header was going in clear text?
Any thoughts on appropriating the Thawte certificate that Apache is
using and installing it on Tomcat, or is that not really the problem?
--
Wendy Smoak
Appli
eaded in a completely wrong direction? We've discussed this
here before, and in the meantime I've gotten a handful of inquiries
wondering if I solved the problem. As far as I know, it's still an open
question.
--
Wendy Smo
ings) and then you can visit
http://localhost:8080/struts-example and try it out. There is a users
list specifically for Struts, you'll probably want to ask further
questions there.
--
Wendy Smoak
Application Systems Analyst, Sr.
A
things, and as I recall you have to
answer some install questions in a non-intuitive manner to get it all
working.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail:
nabled in the
example webapp. (And disabled by default elsewhere for good reason.)
You're doing it right, map your Servlets in web.xml and ignore the
Invoker Servlet (or disable it).
Also make sure that all the tags are together and come before
all the tags. Check the DTD for the other rules on
> From: Merrill Cornish [mailto:[EMAIL PROTECTED]
> In everyway I can see, this new, failing servlet is exactly
> like all of its brothers, except the browser can't find it.
> Any suggestions?
Check the & tags in web.xml.
--
Wendy Smoak
Application Systems Analyst, S
Apache's root. It's the same
mindset as using plain-old-HTML tags in a Struts webapp. If there's no
dynamic content, why bother to involve a taglib?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
---
e
startup while some threads wait for the information from the database?
(I haven't done much concurrent programming, just a few tutorials and
school assignments, so stop me now if this is a really bad idea.)
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information
nd much faster serving static resources. It's
one of those things where if you have to ask, you probably don't need
it. :) As long as Tomcat does what you need, don't complicate your life
with Apache and the connector.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Inf
ve started Apache with ssl-- does https://localhost
work?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
t/response cycles, but because I'm
taking over the output stream, am I avoiding Apache on this last
response when the pdf goes out?
Thanks,
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
e you requesting the CSS? With a browser? Where are you seeing
the NPE, browser window, or in a log file?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [
I wrote:
> Why isn't Tomcat finding the tld in the struts.jar file?
Apparently because the
F. Why isn't Tomcat
finding the tld in the struts.jar file?
I put struts-tiles.tld back in WEB-INF and changed the JSP to:
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
And it works. (Well, now it's complaining about the JSTL core
taglib...)
--
Wen
ter being made aware there was a hotfix that
I needed to apply.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I couldn't get the .tar file
to work, but I think I used the .zip version and used jar -xvf to unpack it
on HP-UX 11.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
come, the problem seems to
be the recursive printing -- a Throwable can contain a Throwable can
contain... )
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
If this error message persists, please contact the IRM Help Desk at ...
--
Wendy Smoak
Appli
t unless they scroll down?
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
ror-page tag.
Check the DTD, are you sure you're putting it in the right place? It goes
right after , which is towards the bottom.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
anything else that would be affecting whether the WAR files are
unpacked? I can manually create the 'bentest' directory and jar -xvf the
.war file into it, but I shouldn't have to...
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
So this appears to be across the board, if you don't specify down to the
filename/Struts action, the URL gets changed from https:// to
http://...:443.
Something is going wrong when the "partial" URL is converted to one with the
welcome page appended.
--
Wendy Smoak
Applications Systems
om https:// to
http://...:443?
This does _not_ happen in a different webapp where the welcome page is
index.html (rather than .jsp).
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
What debugger are you using and what have you tried? With JSwat, when you
connect you have the option of shared memory, or hostname and port. It
seems like if you'd put the ip address or hostname of the linux server in
that box, and port 8000, it would connect. I only use it with lo
.1_01
> Catalina.stop: java.net.ConnectException: Connection refused: connect
> java.net.ConnectException: Connection refused: connect
That's what I get when I try to stop Tomcat when it is not running. Are you
possibly trying to stop it twice in a row? Are you sure it really started
befor
es("toppings");
> ^
> 1 error
Looks to me like you've misspelled 'Parameters'. Assuming there _is_ a
getParameters method... I've only ever used getParameter.
--
Wendy Smoak
---
VS and download it yourself
I can't get to the 4.1.20 source anymore, but 4.1.21 is out, so I'm going
with that and am downloading both of the source zips. Thanks!
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
akarta-tomcat-4.1.20-src.zip. I
looked on the Apache and Jakarta sites, but I don't see a separate 'Coyote'
project. Does anyone know where I can find this source code?
Thanks,
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
.. nevermind. For the benefit of the archives, catalina.bat defaults
to:
JPDA_TRANSPORT=dt_shmem
JPDA_ADDRESS=jdbconn
To connect to Tomcat after starting it with 'catalina jpda start' with JSwat
2.13 via shared memory, the 'shared name' is jdbconn.
--
Wendy Smoak
Appli
option? If I want
to use it, and I start tomcat with 'catalina.bat jpda start', what is the
"shared name" to connect to?
Thanks,
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
-Original Message-
From: Jea
containers. At least one of them interprets the spec more strictly and
refuses to show *anything* under WEB-INF rather than just preventing direct
access to it.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
er method I've seen
described is to configure security to protect all JSP's with a role like
"nobody" and then don't assign anyone to that role.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
x27; tasks, for instance. I don't
know if I'm not looking in the right place, or if the full documentation for
the catalina-ant tasks just doesn't exist [yet].
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
x27;
and 'password' and the example has 'manager.username' and
'manager.password'. Oops!
When I looked up what a response code 401 actually was, it all became clear,
plus Erik hit it immediately and I made the mistake of not double checking
right then. ;)
--
Wendy Smoak
ost/manager/reload?path=%2Fbendev
Total time: 2 seconds
w:\java\bendev>
It does work manually from the manager app:
OK - Reloaded application at context path /bendev
with this URL:
http://localhost/manager/html/reload?path=/bendev
Looks the same to me...
--
Wendy Smoak
Applications Syste
nt.
Before we start down this road, is there any problem with creating a Thread
within a Servlet (Struts Action, actually)? I haven't done much concurrent
Java programming, so I may be way off base and would appreciate being told
that sooner rather than later!
--
Wendy Smoak
Applications Sys
uot;docBase"
could *be* anywhere outside of the Tomcat directory structure!
Rearranging everything now... thanks for the advice.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
ure you know this, but it didn't move the .war file at all...
it just pointed the context at the directory I gave it, which was the "dist"
directory where I put my .war files. Not what I expected at all...
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
27;t turn up anything useful.
Does anyone have an example of how to use the start and stop tasks? I'm
going to guess at the syntax based on reload, hopefully it will work.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
ath="${context}"
war="${dist}/${context}.war"
username="wendy" password="password" />
I'm also not sure how this is going to work... Tomcat is on the same machine
so right now I'm just copying the war file over. Would it be better to use
t
shrug and move on... I have no idea why Tomcat won't unpack a file
with one particular name, but changing it by as little as one letter makes
it happy.
I appreciate the suggestions that were offered!
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
ged is the port number from 8081
to 80, anything else I do in a ${context}.xml file as above or in the
context-level web.xml file.
It can't not like the *name*, that's just nuts! (I just know this is going
to turn out to be something simple and really embarrassing...)
--
Wendy S
7;t extract this one.
server.xml contains this:
and as I mentioned, struts-example.war does get expanded and deployed.
Any other ideas on why Tomcat doesn't like *this* particular .war file?
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
rectory and use WinZip to unzip the .war
file into it, then everything works fine. From this I infer that all the
parts of my .war file are in the right place.
What could be stopping it from unpacking just this one .war file?
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State
ure.
Do you mean that inside your Servlet, you're using some sort of Writer and
generating text that gets saved to a file?
I can't imagine why you'd want to do this, but if you insist, then try a
relative path using '..' to back up one level and write the file.
--
Wen
is code?
What are all those '\cf2' and '\par' things? It looks like markup from
something...
Edit your HelloWorld.java file and get rid of the junk, then try
recompiling.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
line switch.I prefer to use ant, or to specify the classpath
on the command line.
Try this:
javac -classpath
C:\tomcat\jakarta-tomcat-3.3.1a\jakarta-tomcat-3.3.1a\lib\common\servlet.jar
HellowWorld.java
(Was that a typo? Is it really HelloWorld.java?)
--
Wendy Smoak
Applications Systems A
> Does anybody on the list run under HPUX?
Yes... Apache 2.0 & Tomcat 4.1 on HP-UX 11. But we're using the version of
Apache provided by HP; we didn't build it ourselves.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
> I just changed my development box from Tomcat 4.0.5 to 4.1.18. I notice
> there is no $CATALINA_HOME/lib directory in the new Tomcat to put my
common
> jar files. Where do they go in 4.1.18?
${CATALINA_HOME}/common/lib
--
Wendy Smoak
> One way to do this would be to define a Host per student with the
> appBase at the student's public_html (or webapps, or whatever)
> directory?
Thanks! I neglected to mention that Apache is also involved, so that may
complicate the issue.
--
Wendy
_html/."
I note that this is a "can" and not a "must". Does any version of Tomcat
support this?
Specifically, the request is to have a bunch of students with webapps in
their home directories and have Tomcat be able to "see" the webapps and
execute them.
Thank
n* assume that
there will be only one instance of your Servlet.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
ervlet.
Perhaps the info you're storing at the Servlet level would be more
appropriately stored in application scope (ServletContext) instead??
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
ou post a snippet of code that shows what you're trying to do and why
you're trying to make your Servlet a Singleton? Maybe someone will have a
suggestion.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
king, and where exactly is
the properties file? What is the exact error message you're seeing? I
would suspect file permissions, without knowing anything else.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
ript, seeing that there was an export for JAVA_HOME in there
already.
The [Unix] startup logs show "Tomcat Started" which gets output if all is
well after the line above. But the Tomcat logs show *nothing* as if
startup.sh was never run, and it isn't running.
It's a mystery, b
click
'reload' until you're just about ready to give up, and then all of the
sudden the page will load. It must be busy doing *something*.
Thanks!
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
;). ;)
It doesn't take _nearly_ this long on Win2k or Linux-- as soon as I see that
final line in the console/catalina.out, the intro page will load.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
*
> exist. This will make it so you can read and write files on any system
> without worrying about any platform specifics (theoretically).
HTH,
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
trouble and start packaging
your code now, even if you just dump everything in "package mystuff;" for
now.
Where's the tag?
The fact that things do work in examples probably means you're just missing
a few details. If you're still having trouble, post a directory listing
named package. The behavior of Tomcat 4.1 is
consistent with that. But since all production code should be in a package
anyway, this isn't really a problem.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
ike:
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
HTML to Display
What goes in the test is pretty wide open-- it just has to evaluate to a
boolean. You can join the taglibs-user mailing list for more help.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
> I did use JDK 1.4, but when I use JDK 1.4 and Tomcat 4.0.4,
> everything is fine. So I think it is a Tomcat 4.1.18 issue.
Well, since all production code should be in a package, I don't see an
issue. I'd regard the 4.0 behavior to be wrong and the 4.1.18 behavior to
be &qu
.0
to 4.1? With JDK 1.4, you cannot import a class in the default package [no
package statement] into a class that *is* in a package. JDK 1.3 would let
you do it.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
ng sure it's in the classpath somewhere.
So I'd suggest a 'jar -tvf usingj2ee.jar' and look at the directory
structure within it. Do those files really all live in a directory called
'usingj2ee' within the .jar file? And is it definitely in the 'lib'
dire
the path, I don't know if it needs a leading
slash or not.
HTH,
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
> Are you configuring log4j more than once? Maybe once with a
> BasicConfigurator.configure() and once with a
> PropertyConfigurator.configure() call? That would explain the
> additional console appender even though there isn't one in your
> properties file.
I only have the one log4j.config file
something within Tomcat that now "sees" log4j down in that
webapp and is using it.
Thanks for any hints... I'm a recent convert from System.out.println.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
Dhaval wrote:
> I have deployed a web application called 'proj' in the webapps directory,
and have > all the jsp files in there, while my .java files reside in
proj/WEB-
> INF/classes/objects directory. When I try to go to
> http://localhost:8080/proj/login.jsp, it throws back an error saying
'pa
writing to
the correct file.
My remaining problem is that using ../logs/filename.log for the File only
works when running from Tomcat. If I run any tests from the prompt, the
logs try to go to ../logs relative to the directory I'm in at the time.
HTH,
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
actory.getLog( ClassName.class );
//then to write a message:
log.debug( "a debug message" );
When you say it's not working... are you not seeing *any* logging messages,
or seeing them in the wrong format? I was able to confirm that my
properties file was being used by changing the ConversionPattern and looking
to see if the output changed.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
Or do you just include it and
expect the person who's doing the deployment to move the file to the webapps
directory?
Thanks!
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
t if you want run your app
> on other servers in the future?
I take it logging isn't in the servlet spec? From another message, I got
the impression that the container would want to send some messages itself.
If there is no Logger configured for the webapp, does it just send them to
the
../logs/myWebApp.log
which backs up out of WEB-INF/classes and moves down into the logs
directory.
I'm very new at this, so please tell me if I'm going about it all wrong!
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
r any insight on how to either get the events that trigger the
warnings to stop happening, or else turn down the logging severity.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
ut now I see in server.xml:
And I'm confused. Should I switch the comments around and use the
Ajp13Connector instead?
This is HP-UX 11 with Apache 2 (provided by HP) and Tomcat 4.1.12 (binary
distribution from Jakarta).
Thanks,
--
Wendy Smoak
Applications Systems Analyst,
is to server.xml and I'm still not getting the
JkMount lines.
Thanks,
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
101 - 200 of 219 matches
Mail list logo