EJB 3.0 and Hibernate

2007-03-12 Thread Scott Purcell
Hello,

Looking at incorporating the Java Persistence API (EJB 3.0) and was wondering 
if Tomcat 5.5 supports this. It looks like we need container managed services 
and was wondering if we can use Tomcat instead of JBoss?

Thanks,
Scott


RE: Tomcat and MySQL sync problems

2007-01-29 Thread Scott Purcell
If I remember correctly, MySQL basically disconnects and shutdowns after
a certain amount of time. I remember doing something with a
"reload="true" in the datasource to prevent this.

Hopefully someone else may clue you in better, but you may want to check
the datasource props and see if this is valid.


Scott

-Original Message-
From: Chris Long [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 29, 2007 8:54 AM
To: users@tomcat.apache.org
Subject: Tomcat and MySQL sync problems

Hello,

I'm having a problem where it seems Tomcat and MySQL go out of sync and
I am
no longer able to connect to the MySQL database.  The only way I've
found to
be able to reconnect to my database is to restart Tomcat.  This
generally
seems to happen some time over the course of the night and I notice the
problem when I check on things in the morning, but it doesn't seem to
happen
every time.

Does anyone have any idea what may be causing this and how to fix it?

Here is a list of what I'm using:

Tomcat 5.5.17
MySQL 14.12
Hibernate 3.2
mysql-connector-java-5.0.4
JAVA 1.5
Windows XP Pro


[Jan 29 2007 (Mon)9:30:56 EST] ERROR [http--Processor20](
org.hibernate.util.JDBCExceptionReporter) - No operations allowed after
connection closed.Connection was implicitly closed due to underlying
exception/error:


** BEGIN NESTED EXCEPTION **

com.mysql.jdbc.CommunicationsException
MESSAGE: Communications link failure due to underlying exception:

** BEGIN NESTED EXCEPTION **

java.net.SocketException
MESSAGE: Software caused connection abort: socket write error

STACKTRACE:

java.net.SocketException: Software caused connection abort: socket write
error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java
:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2637)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1554)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3176)
at com.mysql.jdbc.PreparedStatement.executeInternal(
PreparedStatement.java:1153)
at
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java
:1266)
at
org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java
:186)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1778)
at org.hibernate.loader.Loader.doQuery(Loader.java:662)
at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(
Loader.java:224)
at org.hibernate.loader.Loader.doList(Loader.java:2211)
at
org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2095)
at org.hibernate.loader.Loader.list(Loader.java:2090)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:388)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(
QueryTranslatorImpl.java:338)
at
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java
:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at org.hibernate.impl.AbstractQueryImpl.uniqueResult(
AbstractQueryImpl.java:804)
at
com.tne.nres.projectTracker.ProjectTrackerServlet.validateUser(Unknown
Source)
at com.tne.nres.projectTracker.ProjectTrackerServlet.doPost(Unknown
Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection
(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)


** END NESTED EXCEPTION **



Last packet sent to th

RE: Best way to include common html

2007-01-09 Thread Scott Purcell
Possibly a framework for templating. Tiles, SiteMesh they are created
for exactly what you are looking for. Of course you can use JSP includes
... but the frameworks do a better job IMOHO.



-Original Message-
From: Scott Cowley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 09, 2007 2:14 PM
To: Tomcat Users List
Subject: Best way to include common html


What is the best approach to get shared HTML files, (such as header and
footer files) located outside each appBase, 
included into an application (.jsp) under Tomcat?

SSI filter ?
Or some context resource setting ?

Thanks for any help.

- s.c., university of utah



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Help: Enabling SSL

2006-12-15 Thread Scott Purcell
What does your server.xml look like for the ssl, could you post?


-Original Message-
From: Bijan Vakili [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 15, 2006 10:13 AM
To: Tomcat Users List
Subject: RE: Help: Enabling SSL

Hi Scott,

No I don't see a DLL called tcnative-1.dll.

Actually, I'm encountering this same problem on Solaris 10 as well.  I
actually am indifferent to using JSSE or APR...I just want SSL enabled!

Thanks!

 
Bijan Vakili
Senior Software Developer
 
Cryptologic Inc. 
55 St-Clair W, 3rd floor, Toronto, Ontario, M4V 2Y7
Phone 416.545-1455 Ext 5892
E-Mail: [EMAIL PROTECTED]
SKYPE: bijanvakili 

This message, including any attachments, is confidential and/or
privileged and contains information intended only for the person(s)
named above. Any other distribution, copying or disclosure is strictly
prohibited. If you are not the intended recipient or have received this
message in error, please notify us immediately by reply email and
permanently delete the original transmission from all of your systems
and hard drives, including any attachments, without making a copy.
-Original Message-----
From: Scott Purcell [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 15, 2006 11:05 AM
To: Tomcat Users List
Subject: RE: Help: Enabling SSL

Seems like the same thing that was going on with myself the other day on
5.5.20 Tomcat. In Tomcat/bin directory is there a dll called
tcnative-1.dll?

Here is an email from Charles who helped me:

If you used the .exe download for Tomcat, you may have APR installed.
Its SSL configuration is rather different than that for Tomcat's pure
Java connector.  The doc for APR is here:
http://tomcat.apache.org/tomcat-5.5-doc/apr.html

Alternatively, disable APR by deleting or renaming bin\tcnative-1.dll,
and then the standard SSL handling (which appears to be what you
configured) will be in effect.

Anyway, to make a long story short, I ended up installing with the
native checkbox checked, then the .dll was in my bin, I took that out,
and then my SSL worked just fine after following the same links you did.

Let me know how it goes.

Scott



-Original Message-
From: Bijan Vakili [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 15, 2006 9:48 AM
To: users@tomcat.apache.org
Subject: Help: Enabling SSL

Hi everyone,

 

I follows the instructions on the Tomcat website for enabling SSL:

http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html

 

However, if I attempt to connect from the local host as follows:

https://localhost:8443 <https://localhost:8443/> 

 

The server just stalls.  The log output does not provide any useful
information.  However, connecting without SSL on this port
(http://localhost:8080 <http://localhost:8080/> ) seems to work
(although I have no idea why?)

 

Is there any additional set that needs to be performed for enabling SSL
that is not displayed on the above page?

 

 

Thanks,

 

 

Bijan Vakili

Senior Software Developer

 

Cryptologic Inc. 

55 St-Clair W, 3rd floor, Toronto, Ontario, M4V 2Y7
Phone 416.545-1455 Ext 5892
E-Mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 

SKYPE: bijanvakili 

This message, including any attachments, is confidential and/or
privileged and contains information intended only for the person(s)
named above. Any other distribution, copying or disclosure is strictly
prohibited. If you are not the intended recipient or have received this
message in error, please notify us immediately by reply email and
permanently delete the original transmission from all of your systems
and hard drives, including any attachments, without making a copy.

 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Help: Enabling SSL

2006-12-15 Thread Scott Purcell
Seems like the same thing that was going on with myself the other day on
5.5.20 Tomcat. In Tomcat/bin directory is there a dll called
tcnative-1.dll?

Here is an email from Charles who helped me:

If you used the .exe download for Tomcat, you may have APR installed.
Its SSL configuration is rather different than that for Tomcat's pure
Java connector.  The doc for APR is here:
http://tomcat.apache.org/tomcat-5.5-doc/apr.html

Alternatively, disable APR by deleting or renaming bin\tcnative-1.dll,
and then the standard SSL handling (which appears to be what you
configured) will be in effect.

Anyway, to make a long story short, I ended up installing with the
native checkbox checked, then the .dll was in my bin, I took that out,
and then my SSL worked just fine after following the same links you did.

Let me know how it goes.

Scott



-Original Message-
From: Bijan Vakili [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 15, 2006 9:48 AM
To: users@tomcat.apache.org
Subject: Help: Enabling SSL

Hi everyone,

 

I follows the instructions on the Tomcat website for enabling SSL:

http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html

 

However, if I attempt to connect from the local host as follows:

https://localhost:8443  

 

The server just stalls.  The log output does not provide any useful
information.  However, connecting without SSL on this port
(http://localhost:8080  ) seems to work
(although I have no idea why?)

 

Is there any additional set that needs to be performed for enabling SSL
that is not displayed on the above page?

 

 

Thanks,

 

 

Bijan Vakili

Senior Software Developer

 

Cryptologic Inc. 

55 St-Clair W, 3rd floor, Toronto, Ontario, M4V 2Y7
Phone 416.545-1455 Ext 5892
E-Mail: [EMAIL PROTECTED]
 

SKYPE: bijanvakili 

This message, including any attachments, is confidential and/or
privileged and contains information intended only for the person(s)
named above. Any other distribution, copying or disclosure is strictly
prohibited. If you are not the intended recipient or have received this
message in error, please notify us immediately by reply email and
permanently delete the original transmission from all of your systems
and hard drives, including any attachments, without making a copy.

 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5.17 SSL

2006-12-13 Thread Scott Purcell
I am running a instance of Tomcat in which there is one web site that is
running SSL and a cert from Verisign. The server.conf has the entry for
the real DNS name and the certificate configured and all is good. This
site is a production site. 

 

I just purchased another box for development purposes. I want to be able
to copy the code down from production and start working on version 2 of
the site. Problem is, I do not have a DNS entry for the devsite. I just
figured I could enable SSL for a instance and run like so. 

 

So my question is, can I create one instance that is SSL on my new
tomcat 5.5.17 that does not have a valid SSL certificate, but the code
from above would run on? If so, please advise.

 

Thanks,

Scott



Tomcat 5.5 Context? Configuration

2006-07-05 Thread Scott Purcell
Hello,

 

Over the holiday, I created a war file for a small application and
deployed it to $TOMCAT_HOME/webapps

 

Inside the war file was a index.jsp page. So when I called the
application for the first time from a browser I did like so.

 

http://localhost:8080/webappname/index.jsp -> and it showed the page and
all was happy until I clicked a link. After clicking on a link, I
noticed that the site had a 404, and the url looked like this:

 

http://localhost:8080/welcome.jsp -> it was missing the context. 

 

So my question ... after deploying a war file to the server, is there
additional configuration that needs to be accomplished? Do we still put
an entry into the server.xml, or in the META-INF directory of the local
application? This has confused me, and when I read about
 I have trouble understanding what is occurring.

 

PS, I tried searching the archives, but the marc-aims group web site
appears to be having issues.

 

 

Thanks,

Scott



log4J confusion, need clarification

2006-06-28 Thread Scott Purcell
Hello,

 

I am creating a new application, and I would like to be able to add
logging statements to my code that will run within the Tomcat container.
This log, would be just for my web application code. Then I would like
to also be able to have a log of this context. In that log I would like
to see things like 'webapp restarted', etc. 

 

So basically 2 separate log files. I believe one can put a
log4j.properties under classes for the application. But how do I get the
log for the "context" that it is running in, and just direct the context
logging information to that one?

 

Any links, assistance?

 

Thanks,

 



RE: Tomcat 5.5 JNDI Question Using Admin

2006-06-28 Thread Scott Purcell
I do not see one in either location. So I guess the admin just does the
update to the server.xml and then we need to handle the rest of the
configuration?



-Original Message-
From: Pid [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 9:55 AM
To: Tomcat Users List
Subject: Re: Tomcat 5.5 JNDI Question Using Admin

You need a ResourceLink in the Host or Context, to make the global
resource available.

Does the Context xml file contain this?



Scott Purcell wrote:
> Hello,
> 
>  
> 
> I am receiving errors when configuring a JNDI resource for my database
> using Tomcat 5.5 on a Windoz box. I used the admin interface and
entered
> the following data:
> 
> in admin screen
> 
> under  Data Sources
> 
> JNDI Name= jdbc/BuilderDB
> 
> Driver com.mysql.jdbc.Driver
> 
> Data Source URL=jdbc:mysql://localhost/builder
> 
> JDBC Driver Class=com.mysql.jdbc.Driver
> 
>  
> 
> Then I made sure my driver was in
> 
> common/lib/mysql-connector-java-3.1.12
> 
>  
> 
>  
> 
> Then went to the web.xml file added my resource
> 
> web.xml
> 
>   
>   DB Connection
>   jdbc/BuilderDB
>   javax.sql.DataSource
>   Container
>   
> 
>  
> 
>  
> 
> After committing the change in the admin module, it updated the
> server.xml and added this the  
> When I try and get a jndi connection doing a lookup, I get this error
> (see below).
> 
>  
> 
> As I read the docs for 5.5, and I do not see any examples. Does anyone
> see any problems with this, or know what may cause this error?
> 
>  
> 
>  
> 
> Thanks,
> 
> Scott
> 
>  
> 
>  
> 
>  
> 
>  
> 
> error
> 
> org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC
> driver of class '' for connect URL 'null'
>  at
>
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSo
> urce.java:780)
>  at
>
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSourc
> e.java:540)
>  at foo.DBTest.init(DBTest.java:23)
>  at org.apache.jsp.test_jsp._jspService(test_jsp.java:51)
>  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>  at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
> va:332)
>  at
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>  at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:252)
>  at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
>  at
>
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.
> java:142)
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> Server.xml
> 
> 
> 
>   
>   
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/
>   
className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"
> />
>className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
>   
>name="simpleValue"
>   type="java.lang.Integer"
>   value="30"/>
>auth="Container"
>   description="User database that can be updated and saved"
>   name="UserDatabase"
>   type="org.apache.catalina.UserDatabase"
>   pathname="conf/tomcat-users.xml"
>   factory="org.apache.catalina.users.MemoryUserDatabaseFactory"/>
>name="jdbc/BuilderDB"
>   type="javax.sql.DataSource"
>   password="admin"
>   driverClassName="com.mysql.jdbc.Driver"
>   maxIdle="2"
>   maxWait="5000"
>   validationQuery="select * from test
> "
>   username="root"
>   url="jdbc:mysql://localhost/builder"
>   maxActive="4"/>
>   
>  name="Catalina">
>  port="8080"
> redirectPort="8443"
> minSpareThreads="25"
> connectionTimeout="2"
> maxThreads="150"
> maxSpareThreads="75">
> 
>  port="8009"
> redirectPort="8443"
> protocol="AJP/1.3">
> 
>  defaultHost="localhost"
> name="Catalina">
>   
>  appBase="webapps"
>   name="localhost">
>   
> 
>   
> 
> 
>  
> 
>  
> 
> 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5 JNDI Question Using Admin

2006-06-28 Thread Scott Purcell
Hello,

 

I am receiving errors when configuring a JNDI resource for my database
using Tomcat 5.5 on a Windoz box. I used the admin interface and entered
the following data:

in admin screen

under  Data Sources

JNDI Name= jdbc/BuilderDB

Driver com.mysql.jdbc.Driver

Data Source URL=jdbc:mysql://localhost/builder

JDBC Driver Class=com.mysql.jdbc.Driver

 

Then I made sure my driver was in

common/lib/mysql-connector-java-3.1.12

 

 

Then went to the web.xml file added my resource

web.xml

  
  DB Connection
  jdbc/BuilderDB
  javax.sql.DataSource
  Container
  

 

 

After committing the change in the admin module, it updated the
server.xml and added this the 

  
  
  
  
  



  
  





  
  
  

  


 

 



Re: TNS entry JNDI

2006-06-07 Thread Scott Purcell
I am having trouble connecting. That string does fine using JDBC, but when
in the 
To: "Tomcat Users List" 
Sent: Wednesday, June 07, 2006 12:44 PM
Subject: Re: TNS entry JNDI


> Are you having a database connection problem or problem getting the
> reference from JNDI in your code?
>
> On 6/7/06, Scott Purcell <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > I am running Tomcat 5.x and have been using Oracle 9i. We are now
> > running Oracle 10g and it only uses TNS names. Here is my context
> > element: The one commented out used to work for 9i, and the other one is
> > for the tns names. I am having trouble finding information about Tomcat
> > and TNS names for connection. Does this look correct?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > 
> >
> >
> >
> >  > prefix="cpe10g." suffix=".log" timestamp="true"/>
> >
> >
> >
> >
> >
> > 
> >
> >  >
> >type="javax.sql.DataSource" username="new" password="xxx"
> >
> >driverClassName="oracle.jdbc.driver.OracleDriver"
> > url="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP
> > )(HOST=.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=xxx.com)(SERVER
> > =DEDICATED)))"
> >
> >maxActive="8" maxIdle="4"/>
> >
> >
> >
> >
> >
> > 
> >
> >
> >
> >
> >
>
>
> --
> Marc Farrow
>

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



TNS entry JNDI

2006-06-07 Thread Scott Purcell
 

I am running Tomcat 5.x and have been using Oracle 9i. We are now
running Oracle 10g and it only uses TNS names. Here is my context
element: The one commented out used to work for 9i, and the other one is
for the tns names. I am having trouble finding information about Tomcat
and TNS names for connection. Does this look correct?

 

 

 

 



 

  

 

 



 

 

 

  

 



Re: How to embed server hostname in JSP page on clustered Tomcat

2006-05-13 Thread Scott Purcell
Not sure if you got a response to this, but this has worked for myself.



<%@ page import="java.net.InetAddress" %>

<%

InetAddress ia = InetAddress.getLocalHost();
out.println("");
%>





- Original Message -
From: "David Goodenough" <[EMAIL PROTECTED]>
To: 
Sent: Friday, May 12, 2006 8:19 AM
Subject: How to embed server hostname in JSP page on clustered Tomcat


> I have a cluster of (currently) two Tomcat 5.5.17 instances.  I want to
put a
> hidden field on the pages which tells me which machine I am currently
> connected to.  Reading the spec it appeared that using:-
>
> 
>
> should work, but it would appear that all this does is take the server
portion
> of the URL.
>
> Anyone know how to do this (short of writing some Java code that is, I
would
> rather use simple JSP and JSTL).
>
> David
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



URL with WWW problem

2006-05-09 Thread Scott Purcell
Hello,

 

Tomcat 5.5 standalone.

 

Yesterday I had a thread stating that sometimes users, and google may
refer to my site something like http://mysite.com 
omitting the www portion of the URL.  As I stated yesterday, my site
needs the www.mysite.com   because of a
certificate I am using.

 

The site was built using the struts framework, so I asked some users on
that list about the problem. And they said that this should be
configurable within the container, or within Tomcat.

 

So my question to this list, is there a way to have Tomcat accept the
http://mysite.com   and then call for
http://www.mysite.com   through some type of
configuration setting?

 

I know someone yesterday mentioned filters, but I could not find any
examples of this type via a heavy google search. I know some simple
solutions would be to use redirects, etc. but doing so will screw up my
indexing via bots. I woiuld like to handle this situation cleanly and
not mess with code to do so?

 

 

Thanks,

Scott

 

 

 



Site Configuration on 5.5.15 Pt 2

2006-05-08 Thread Scott Purcell
Hello,

Last Friday, I posted the below thread, and followed Chris' directions
to create the virtual host. All appears good, and works great.

I only ran into one last problem, and was hoping someone may know the
solution. When google indexes my site, and I enter [The Unique Pear]
into the search bar, it brings back my site, actually on page 1 near the
top. This is great news. I only have one problem with this. When you
hover the link or click the link, it takes the user to
[http://theuniquepear.com] and not the [http://www.theuniquepear.com]
site.

I have a ssl certificate that points to www.sitename. So the site
certificate is screwed up.

So my question is, how does google get the www? Or is this something I
need to handle? And if so, does this have anything to do with the Alias
I created (below)?

Thanks for any input
Scott






-Original Message-
From: Chris Berthold [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 05, 2006 8:35 AM
To: 'Tomcat Users List'
Subject: RE: Site Configuration on 5.5.15

No you won't run into any issues.  You can do Virtual Host Based
direction
of your sites.  The localhost can be setup for your admin console and
such
and you can create www.theuniquepear.com to point to a different root.
In
server.xml another  entry like so. The application base can be
whatever you want.  Deploy to that directory and you won't need the
index.jsp to redirect.  Also keep in mind that if you use an index.jsp
it
needs to do a forward to the servlet or jsp that you are displaying and
not
a redirect.  I had the same problem with google and the other search
engines.


theuniquepear.com
www






Chris Berthold
IT Systems Analyst
Commercial Refrigerator Door Company
941 . 371 . 8110 x 205
-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 05, 2006 9:21 AM
To: users@tomcat.apache.org
Subject: Site Configuration on 5.5.15

I am running Tomcat 5.5.15 on a PC running Windows XP. I have been
battling this problem for 6 months, and could use some help.

 

I purchased a URL for my web site. I created the site in a folder under
the root document called "unique". As I was building the site, I would
hit the site like so:  http://localhost/unique/index.jsp. I finished the
site up 6 months or so ago, and purchased my DNS name. 

 

Here is where the problem has been culminating from. I added my dns
entry into the server.xml and found that by hitting the url that the
site would point into the root folder. So within the root folder I
created a jsp page that did a redirect to the /unique/index.jsp page.
This seems to work, and people can hit my site.

 

But for some strange issue, google has not been able to index the site,
and when I ran "Site Magellan" on the site last night it only sees the
first page. It never sees any links. Googlebots never see any links, and
not site Magellan sees no links. When I run Lynx on the site, can
navigate just fine. But eveidently something is screwed up in regards to
my tomcat configuration, or something.

 

The url is <http://www.theuniquepear.com <http://www.theuniquepear.com/>
>

 

If anyone knows where I may of screwed up or has ideas, please let me
know, as I am about at the end of my rope on this one. I know I could
move the site into the root folder, but what if I add another DNS
tomorrow for another site, then I would run into the same issue right? 

 

Thanks, much

Scott



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat: The Definitive Guide Question

2006-05-05 Thread Scott Purcell
Hello,

I am running Tomcat 5.5 and figured its about time to grab a book so I
can understand the product better. The one that received good reviews
appears to be the OReilly Definitive Guide. But it covers 4.0 Tomcat.

 

Is there a 5.0 Oreilly book coming out? Or does this current book
covering 4.0 work good enough with 5.0?

 

 

Thanks,



Site Configuration on 5.5.15

2006-05-05 Thread Scott Purcell
I am running Tomcat 5.5.15 on a PC running Windows XP. I have been
battling this problem for 6 months, and could use some help.

 

I purchased a URL for my web site. I created the site in a folder under
the root document called "unique". As I was building the site, I would
hit the site like so:  http://localhost/unique/index.jsp. I finished the
site up 6 months or so ago, and purchased my DNS name. 

 

Here is where the problem has been culminating from. I added my dns
entry into the server.xml and found that by hitting the url that the
site would point into the root folder. So within the root folder I
created a jsp page that did a redirect to the /unique/index.jsp page.
This seems to work, and people can hit my site.

 

But for some strange issue, google has not been able to index the site,
and when I ran "Site Magellan" on the site last night it only sees the
first page. It never sees any links. Googlebots never see any links, and
not site Magellan sees no links. When I run Lynx on the site, can
navigate just fine. But eveidently something is screwed up in regards to
my tomcat configuration, or something.

 

The url is 
>

 

If anyone knows where I may of screwed up or has ideas, please let me
know, as I am about at the end of my rope on this one. I know I could
move the site into the root folder, but what if I add another DNS
tomorrow for another site, then I would run into the same issue right? 

 

Thanks, much

Scott



Access Log Question

2006-04-12 Thread Scott Purcell
Hello,

 

When configuring my Tomcat 5.5, I have added a "context" element to my
server.xml for a certain site. Within that tag, I added logging for an
access log.

 

The access log rolls each day and shows the IP from user and the page,
image, link he is accessing along with a http status code.

So it appears this all works well.

 

I would like to add the "user-agent" tag to this access log.

 

Does anyone have an example of how this is done, or a link of how to
accomplish this?

 

Thanks,



RE: Here is site, not getting spidered.

2006-03-27 Thread Scott Purcell
Site has been up over 6 months. Pretty much never down.

Thanks,

-Original Message-
From: Daniel Blumenthal [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 27, 2006 10:11 AM
To: 'Tomcat Users List'
Subject: RE: Here is site, not getting spidered.

One interesting thing is that the line:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> 
is repeated inside the  block.

Probably not a big deal.

How long has the site been up?


> -Original Message-
> From: Scott Purcell [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 27, 2006 11:00 AM
> To: Tomcat Users List
> Subject: Here is site, not getting spidered.
> 
> Here is the site:
> 
> http://www.theuniquepear.com
> 
> Thanks,
> I apologize. I would really like this to work, and will do 
> whatever it takes.
> 
> Sincerely
> 
> -Original Message-
> From: Peter Crowther [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 27, 2006 9:51 AM
> To: Tomcat Users List
> Subject: RE: Site Not Getting Spidered or Indexed
> 
> > From: Scott Purcell [mailto:[EMAIL PROTECTED] Actually Peter,
> > 
> > I have no javascript links on my page. The site is a struts 
> site, and 
> > all links are regular links with no odd, or peculiar issues.
> 
> OK.
> 
> I'd be able to make better guesses if I could see the site - 
> apologies if I've missed a URL that you've already handed out.
> 
>   - Peter
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Here is site, not getting spidered.

2006-03-27 Thread Scott Purcell
Here is the site:

http://www.theuniquepear.com

Thanks,
I apologize. I would really like this to work, and will do whatever it
takes.

Sincerely

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 27, 2006 9:51 AM
To: Tomcat Users List
Subject: RE: Site Not Getting Spidered or Indexed

> From: Scott Purcell [mailto:[EMAIL PROTECTED] 
> Actually Peter,
> 
> I have no javascript links on my page. The site is a struts site, and
> all links are regular links with no odd, or peculiar issues.

OK.

I'd be able to make better guesses if I could see the site - apologies
if I've missed a URL that you've already handed out.

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Site Not Getting Spidered or Indexed

2006-03-27 Thread Scott Purcell
Actually Peter,

I have no javascript links on my page. The site is a struts site, and
all links are regular links with no odd, or peculiar issues.




-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 27, 2006 9:41 AM
To: Tomcat Users List
Subject: RE: Site Not Getting Spidered or Indexed

> From: Scott Purcell [mailto:[EMAIL PROTECTED] 
> When I submitted the site to google, this is the page I submitted. Why
> wouldn't my site get spidered?

- Google can't read the links because they're embedded in a nice pretty
dynamic Javascript-y menu system;

- You're returning an odd encoding and the spider can't extract the
information (happened to me with MSN, not Google);

- Probably a bazillion other things.

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat Valve, how to Create Pattern

2006-03-27 Thread Scott Purcell
Tomcat 5.5
OS=Win2000

I would like to change the pattern for a valve in my server.xml. The API
shows when you have the element 

RE: Adding user-agent and possibly refer to log4j Tomcat 5.5

2006-03-27 Thread Scott Purcell
Yes Jon the unique.log is where all my logging is occurring. I will
follow your link, and try and figure this out.

Thanks,
Scott



-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 27, 2006 8:59 AM
To: Tomcat Users List
Subject: Re: Adding user-agent and possibly refer to log4j Tomcat 5.5

Is the unique.log where your site hits are being logged?
I'm running tc5.0.x. For that version you would change the pattern 
attribute for the Valve doing the logging in server.xml (or context.xml 
depending on config).

Just looked. It's the same in 5.5

http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html
The last paragraph of the Access Log valve section mentions the 
"combined" pattern.

HTH,

Jon

Scott Purcell wrote:
> Thanks Jon,
> 
> After reviewing your response ... I believe this fix is for a Apache
> server? I am running Standalone Tomcat.  It appears I need to somehow
> log the user-agent and possibly referrer to my default access log. Is
> this correct?
> 
> If this is the case, does anyone know how to do this with Tomcat
log4j?
> 
> Here is my current properties file for logging:
> 
> 
> log4j.rootCategory=INFO, R
> log4j.appender.R=org.apache.log4j.RollingFileAppender
> log4j.appender.R.File=C:/Tomcat5.5/logs/unique.log
> log4j.appender.R.MaxFileSize=1500KB
> log4j.appender.R.MaxBackupIndex=10
> log4j.appender.R.layout=org.apache.log4j.PatternLayout
> log4j.appender.R.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n
>
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhos
> t][/unique]=INFO, R
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 27, 2006 8:15 AM
> To: Tomcat Users List
> Subject: Re: Distinguish between users and robots in access log?
> 
> Looks like you are running the default access log settings.
> For logging of user-agent and referer (when given) try:
> 
> CustomLog logs/access_log combined
> 
> http://httpd.apache.org/docs/1.3/logs.html#accesslog
> 
> HTH,
> 
> Jon
> 
> Scott Purcell wrote:
>> I really would like to find out how my (and if my site) is being
>> indexed. I am using Tomcat 5.5 and I am running a ecommerce site. I
> have
>> had nothing but trouble getting seen in search engines, so I would
> like
>> to be able to somehow trace what pages robots are indexing.
>>
>>  
>>
>> I did add a robots.txt and allow my whole domain to be indexed. So
> that
>> being said, I added an access log but by default, I cannot really
tell
>> if I have users hitting my site, or when robots are visiting my site.
>>
>>  
>>
>> Below is my access_log from Saturday. What I would like to be able to
>> do, is distinguish between normal users, and robots. If I can verify
>> that the robots are indexing my site, I would be happy, and then know
> I
>> need to work more meta. But if they are not indexing my site, then I
>> need to find out why.
>>
>>  
>>
>> Does this make sense? Has anyone been through this before? Thanks
> ahead
>> of time,
>>
>> Regards
>>
>> Scott
>>
>>  
>>
>>  
>>
>>  
>>
>> Access log Saturday
>>
>> 152.163.100.73 - - [26/Mar/2006:02:27:13 -0600] "GET
>>
>
/unique/viewThumbProducts.do?type=category&searchString=Candles%20&%20Ar
>> oma&categoryID=13&pageNumber=1 HTTP/1.0" 200 17139
>>
>> 152.163.100.72 - - [26/Mar/2006:02:27:14 -0600] "GET
>> /unique/includes/siteWide.css HTTP/1.0" 200 15402
>>
>> 152.163.100.134 - - [26/Mar/2006:02:27:14 -0600] "GET
>> /unique/images/head_text.jpg HTTP/1.0" 200 18661
>>
>> 152.163.100.138 - - [26/Mar/2006:02:27:16 -0600] "GET
>> /unique/images/spacer_transparent.gif HTTP/1.0" 200 49
>>
>> 152.163.100.133 - - [26/Mar/2006:02:27:16 -0600] "GET
>> /unique/images/browseProducts.gif HTTP/1.0" 200 659
>>
>> 152.163.100.66 - - [26/Mar/2006:02:27:16 -0600] "GET
>> /unique/images/moregreatfinds.gif HTTP/1.0" 200 564
>>
>> 152.163.100.69 - - [26/Mar/2006:02:27:16 -0600] "GET
>> /unique/images/searchText.gif HTTP/1.0" 200 624
>>
>> 152.163.100.138 - - [26/Mar/2006:02:27:16 -0600] "GET
>> /unique/images/go.gif HTTP/1.1" 200 308
>>
>> 152.163.100.204 - - [26/Mar/2006:02:27:16 -0600] "GET
>> /unique//images/thumb/UP00130.jpg HTTP/1.0" 200 10044
>>
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Adding user-agent and possibly refer to log4j Tomcat 5.5

2006-03-27 Thread Scott Purcell
Thanks Jon,

After reviewing your response ... I believe this fix is for a Apache
server? I am running Standalone Tomcat.  It appears I need to somehow
log the user-agent and possibly referrer to my default access log. Is
this correct?

If this is the case, does anyone know how to do this with Tomcat log4j?

Here is my current properties file for logging:


log4j.rootCategory=INFO, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=C:/Tomcat5.5/logs/unique.log
log4j.appender.R.MaxFileSize=1500KB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhos
t][/unique]=INFO, R











-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 27, 2006 8:15 AM
To: Tomcat Users List
Subject: Re: Distinguish between users and robots in access log?

Looks like you are running the default access log settings.
For logging of user-agent and referer (when given) try:

CustomLog logs/access_log combined

http://httpd.apache.org/docs/1.3/logs.html#accesslog

HTH,

Jon

Scott Purcell wrote:
> I really would like to find out how my (and if my site) is being
> indexed. I am using Tomcat 5.5 and I am running a ecommerce site. I
have
> had nothing but trouble getting seen in search engines, so I would
like
> to be able to somehow trace what pages robots are indexing.
> 
>  
> 
> I did add a robots.txt and allow my whole domain to be indexed. So
that
> being said, I added an access log but by default, I cannot really tell
> if I have users hitting my site, or when robots are visiting my site.
> 
>  
> 
> Below is my access_log from Saturday. What I would like to be able to
> do, is distinguish between normal users, and robots. If I can verify
> that the robots are indexing my site, I would be happy, and then know
I
> need to work more meta. But if they are not indexing my site, then I
> need to find out why.
> 
>  
> 
> Does this make sense? Has anyone been through this before? Thanks
ahead
> of time,
> 
> Regards
> 
> Scott
> 
>  
> 
>  
> 
>  
> 
> Access log Saturday
> 
> 152.163.100.73 - - [26/Mar/2006:02:27:13 -0600] "GET
>
/unique/viewThumbProducts.do?type=category&searchString=Candles%20&%20Ar
> oma&categoryID=13&pageNumber=1 HTTP/1.0" 200 17139
> 
> 152.163.100.72 - - [26/Mar/2006:02:27:14 -0600] "GET
> /unique/includes/siteWide.css HTTP/1.0" 200 15402
> 
> 152.163.100.134 - - [26/Mar/2006:02:27:14 -0600] "GET
> /unique/images/head_text.jpg HTTP/1.0" 200 18661
> 
> 152.163.100.138 - - [26/Mar/2006:02:27:16 -0600] "GET
> /unique/images/spacer_transparent.gif HTTP/1.0" 200 49
> 
> 152.163.100.133 - - [26/Mar/2006:02:27:16 -0600] "GET
> /unique/images/browseProducts.gif HTTP/1.0" 200 659
> 
> 152.163.100.66 - - [26/Mar/2006:02:27:16 -0600] "GET
> /unique/images/moregreatfinds.gif HTTP/1.0" 200 564
> 
> 152.163.100.69 - - [26/Mar/2006:02:27:16 -0600] "GET
> /unique/images/searchText.gif HTTP/1.0" 200 624
> 
> 152.163.100.138 - - [26/Mar/2006:02:27:16 -0600] "GET
> /unique/images/go.gif HTTP/1.1" 200 308
> 
> 152.163.100.204 - - [26/Mar/2006:02:27:16 -0600] "GET
> /unique//images/thumb/UP00130.jpg HTTP/1.0" 200 10044
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Would like to track googlebots, or spiders from site

2006-03-22 Thread Scott Purcell
Not necessarily a tomcat problem, but I have created a webapp on Tomcat 5.x. I 
would like to be able to track any robot activity in a log file, but not really 
sure where to begin looking for this functionality? If this is possible, is 
there  a debug level that could be used so I could find out what pages it hits, 
etc? Or is this something that needs to be written and tired into the 
container. This is Tomcat standalone, no Apache front end.


If anyone has this knowledge, links, etc. I would certainly appreciate.

Regards
Scott


RE: Tomcat 5.5 Possible Context Question

2006-02-28 Thread Scott Purcell
Thank you Charles

It appears that a combination of element(s) and
(s) elements does the trick.

I can now hit the servlet using my servlet-mapping url entry.

No matter what, I cannot call the servlet by using the
com.xxx.xxx.ServletName. But that was sloppy anyway, and it looks much
better calling the url-entry.


Thanks,
Scott




-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 28, 2006 10:26 AM
To: Tomcat Users List
Subject: RE: Tomcat 5.5 Possible Context Question

> From: Scott Purcell [mailto:[EMAIL PROTECTED] 
> Subject: Tomcat 5.5 Possible Context Question
> 
> Is a context entry required somewhere
> in order to fire up servlets?

No, it's only required when you need some Tomcat-specific attributes for
the webapp, such as  definitions.  Were you using the dreaded
invoker servlet in 4.x?  This is now disabled, since it creates
significant security risks.  In lieu of the invoker servlet, you should
be providing servlet mappings in the web.xml of each app.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5 Possible Context Question

2006-02-28 Thread Scott Purcell
Running Tomcat 5.5.15 on Win 2000.

 

Originally we were running Tomcat 4.x?. So in order to upgrade our
administrator loaded 5.5.15 and copied (copied) the webapps from the 4.x
to the 5.5.15.

 

There are currently four sites running, and I can hit the index.html for
each context. But I cannot invoke any of the servlets within the webapp.
After checking the 4.x server.xml, I recalled that we put the context
entries there for these four sites.

 

But as I am reading the 5.5.15 docs, it looks like putting them there is
frowned upon. I would like to try and get this resolved, and possibly
someone ran into this same thing? Is a context entry required somewhere
in order to fire up servlets?

 

 

Thanks,



Update: Robots cannot read JSP?

2006-02-17 Thread Scott Purcell
I started the below thread last weekend, and upon suggestions, I have
changed some javascript redirects to get to my site, into some JSP
redirects, based upon user input earlier this week.

In a nutshell, I am trying to make sure that robots can index my web
site. 
My web site is a struts application, and is the default app. The way the
site is configured, it is the root app, and I configured the root app to
use welcome-file as a .jsp. So when the user hits the url
 it goes to a jsp page, which then does a jsp
redirect to the www.theuniquepear.com/unique/welcome.do the way struts
is set up then finally to the jsp via the action.

Due to my lack of robot understanding, if I use curl now, and just issue

curl www.theuniquepear.com it shows nothing, and does not do the
redirect.
But if I hit curl -L www.theuniquepear.com all is good and it is what I
want the robots to read.

I made the change last Monday or so, and each day I check my access log
and the only entry I see is the robots come in and get a 500 and they
are gone. When I google for my site, nothing shows up.

Does anyone know if the robots follow the links like the curl -L or does
it just use something like curl and never indexes my site? Also, what is
really silly is that even this email will probably be found when I type
in my url. Currently if one types in 'the unique pear' in google, I see
all the threads I start for this subject, but the site is never to be
found ... not good for business.

Any input would be appreciated.

Thanks,



-Original Message-
From: Mike Sabroff [mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 11, 2006 11:09 AM
To: Tomcat Users List
Subject: Re: Robots cannot read JSP?

Scott,
Your assessment is incorrect!  First off, curl doesn't read html pages, 
it does a get or post to a url just as though you clicked it in your 
browser (and a lot of other things you can do with curl). Second off, it

is not the jsp that is the problem, it is the javascript as Tim said, 
and the lack of links.

Mike

David Smith wrote:
> I doubt the problem is with curl not being able to read files other 
> than .htm or .html. The problem is only browsers execute javascript. 
> Think of curl or the search engines as a browser without javascript 
> enabled.  What would you get in IE or Firefox if you disabled
javascript?
>
> -- David
>
> Scott Purcell wrote:
>> Tim,
>> Thanks a lot for the info. I got to thinking, and tried invoking curl
>> from my box on the url, and see exactly what you saw. The js screwing
>> things up.
>>
>> So I decided to run curl on different pages, and I came to the
>> conclusion that only htm, or html pages show up via curl?
>>
>> Does anyone think that the robots are just like curl, and that they
can
>> only read HTML files?
>>
>> Thanks for all, I know this is a bit off topic ...and I hope I don't
>> hack anyone off.
>>
>> Thanks
>> Scott
>>
>> -Original Message-
>> From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday, February 10,

>> 2006 8:50 PM
>> To: Tomcat Users List
>> Subject: Re: Access log to see where robots go.
>>
>> The problem is your home page, not robots.txt. When / is requested -
the
>>
>> following is served back, notice the javascript redirect: (the full
file
>> is below)
>>
>> 
>>function invokeWebApp() {
>>  top.location.href =
>> "http://www.theuniquepear.com/unique/index.jsp";;
>>}
>> 
>> Search engines do not execute javascript are there are no links on
the
>> page so search engines have no where to go. (Except someone else's 
>> site).
>>
>> As much as I detest SEO companies, you might find it helpful to
search
>> for one for some assistance.
>>
>> 
>> 
>>
>>  The Unique Pear | Unique Home Decor & Accessories
>>  
>>  
>>  
>> 
>>   
>> 
>>
>> 
>>//<!--
>>function invokeWebApp() {
>>  top.location.href =
>> "<a  rel="nofollow" href="http://www.theuniquepear.com/unique/index.jsp"">http://www.theuniquepear.com/unique/index.jsp"</a>;;
>>}
>>invokeWebApp();
>>// -->
>> 
>>
>> hello
>> 
>> 
>>
>> -Tim
>>
>> Scott Purcell wrote:
>>  
>>> I have had trouble getting search engines to see my site. I built it
>>> 
>> with struts, and use some tags from the index.html page to get
business
>> logic, to finally get to my page. The url is
>> http://www.theuniquepear.com
>>  
>>> Anyway, upon talking to some co-workers, th

RE: default webapp not understanding

2006-02-14 Thread Scott Purcell
This has been my confusion ... when I put the war file there, it creates
the
mywebapp folder structure. Should I of named the webapp root?

OK, lets say I take the contents from the war file and place all loose
in root ... that should work then, and my problem would be resolved. But
if I want another app, lets say devmywebapp, how does that work. As I
cannot put two folderless apps together under root.

Sorry, possibly I am making things more confusing than they are.




-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 12:02 PM
To: Tomcat Users List
Subject: RE: default webapp not understanding

> From: Scott Purcell [mailto:[EMAIL PROTECTED] 
> Subject: RE: default webapp not understanding
> 
> If I deploy the webapp in ROOT, then the structure would look 
> like this:
> $TOMCAT_HOME/webapps/root/mywebapp. 

No - get rid of the mywebapp idea.  Your app needs to be deployed AS
root, not under it.  Your app replaces the existing contents of
webapps/ROOT.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: default webapp not understanding

2006-02-14 Thread Scott Purcell
Sorry, I didn't catch the other one.

Tomcat 5.5x on xp

If I deploy the webapp in ROOT, then the structure would look like this:
$TOMCAT_HOME/webapps/root/mywebapp. 
And the index.html would still live in root .. isn't that correct. So I
would still need a way to go from the root/index.html to the
mywebapp/index.html correct?

This is where it gets confusing.



Thanks,

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 10:46 AM
To: Tomcat Users List
Subject: RE: default webapp not understanding

> From: Scott Purcell [mailto:[EMAIL PROTECTED] 
> Subject: default webapp not understanding
> 
> I am having trouble understanding what is meant by the default webapp.

(It would help if you'd tell us what Tomcat level you're running...)

For 5.5.x, the default webapp is the one located in webapps/ROOT.war or
the webapps/ROOT directory.

> Can I somehow configure this to go to the above
> $TOMCAT_HOME/webapps/mywebapp/index.html?

Deploy your webapp in webapps/ROOT, not webapps/mywebapp.

> I get confused when the doc states that the entry in the host 
> must also have a context entry? Can anyone clarify that.

Where does it say that?  The current doc states that you _can_ nest
 tags inside , not that you must.  Putting  tags
in server.xml is strongly discouraged these days, but not all of the doc
has caught up to that fact.

> Here from the docs
> 
> Exactly one of the Hosts associated with each Engine MUST have a name
> matching the defaultHost attribute of that Engine.

That attribute for simple Tomcat installations is "localhost", which you
already have.  Nothing to do with contexts.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: default webapp not understanding

2006-02-14 Thread Scott Purcell
5.5x on xp.



-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 10:46 AM
To: Tomcat Users List
Subject: RE: default webapp not understanding

> From: Scott Purcell [mailto:[EMAIL PROTECTED] 
> Subject: default webapp not understanding
> 
> I am having trouble understanding what is meant by the default webapp.

(It would help if you'd tell us what Tomcat level you're running...)

For 5.5.x, the default webapp is the one located in webapps/ROOT.war or
the webapps/ROOT directory.

> Can I somehow configure this to go to the above
> $TOMCAT_HOME/webapps/mywebapp/index.html?

Deploy your webapp in webapps/ROOT, not webapps/mywebapp.

> I get confused when the doc states that the entry in the host 
> must also have a context entry? Can anyone clarify that.

Where does it say that?  The current doc states that you _can_ nest
 tags inside , not that you must.  Putting  tags
in server.xml is strongly discouraged these days, but not all of the doc
has caught up to that fact.

> Here from the docs
> 
> Exactly one of the Hosts associated with each Engine MUST have a name
> matching the defaultHost attribute of that Engine.

That attribute for simple Tomcat installations is "localhost", which you
already have.  Nothing to do with contexts.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



default webapp not understanding

2006-02-14 Thread Scott Purcell
Hello,

 

I am having trouble understanding what is meant by the default webapp.
Here goes.

I have a site which I have a dns entry for. After reading the docs, I
put the application under $TOMCAT_HOME/webapps/mywebapp

 

In the server.xml I added this snippet:





 

Now when I hit my site with the dns which points to my IP addrss for
this box, it goes to a index.html file in the

$TOMCAT_HOME/webapps/root

 

It does not go to the index.html in the

$TOMCAT_HOME/webapps/mywebapp/index.html

 

Can I somehow configure this to go to the above
$TOMCAT_HOME/webapps/mywebapp/index.html?

 

I get confused when the doc states that the entry in the host must also
have a context entry? Can anyone clarify that. Here from the docs

Exactly one of the Hosts associated with each Engine MUST have a name
matching the defaultHost attribute of that Engine.

 

My big deal is to somehow get the index.jsp in the
$TOMCAT_HOME/webapps/mywebapp to be called automatically when I hit my
url.

 

Thanks,

 

 



configure tomcat 5.x to see index without redirects?

2006-02-11 Thread Scott Purcell
I have created a site  using struts over
the past couple of months. I am running Tomcat 5x and Struts 1.2x.

If you read below, I am doing a couple of redirects to get the user to
my real site.  I would like to know if I can configure Tomcat to just go
to that site? Or if I have to go through all these redirects.

 

But here is my huge problem. I have a html file in my tomcat root which
does a javascript function that directs the user to the site. Something
like this:

top.location.href="http://www.theuniquepear.com/unique/index.jsp";

 

This gets the browser into the proper webapp from the url entered, and
it calls the index.jsp page which then calls a

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

  

 

The kind of defacto I see in all Struts books.The welcome finally calls
a welcome.do action, I go and get some buisness objects, then finally
... display the jsp page that the end user sees.

 

This all works, except any web crawlers and robots, cannot follow this
insane logic. And when I do  a curl on my url, it only shows the
index.jsp with the javascript:

 

Is there a cleaner way to get around all this redirecting, so that I can
get my business logic called up and go to a clean page, so when I do a
curl which I think the robots are using, they can actually index my
site? 

 

This is killing me. If anyone has ideas, suggestions, or could assist, I
would be appreciated.

 

Regards



Robots cannot read JSP?

2006-02-11 Thread Scott Purcell
Tim,
Thanks a lot for the info. I got to thinking, and tried invoking curl
from my box on the url, and see exactly what you saw. The js screwing
things up.

So I decided to run curl on different pages, and I came to the
conclusion that only htm, or html pages show up via curl?

Does anyone think that the robots are just like curl, and that they can
only read HTML files?

Thanks for all, I know this is a bit off topic ...and I hope I don't
hack anyone off.

Thanks
Scott

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 10, 2006 8:50 PM
To: Tomcat Users List
Subject: Re: Access log to see where robots go.

The problem is your home page, not robots.txt. When / is requested - the

following is served back, notice the javascript redirect: (the full file
is 
below)


   function invokeWebApp() {
 top.location.href =
"http://www.theuniquepear.com/unique/index.jsp";;
   }

Search engines do not execute javascript are there are no links on the
page 
so search engines have no where to go. (Except someone else's site).

As much as I detest SEO companies, you might find it helpful to search
for 
one for some assistance.



   
 The Unique Pear | Unique Home Decor & Accessories
 
 
 

  



   //<!--
   function invokeWebApp() {
 top.location.href =
"<a  rel="nofollow" href="http://www.theuniquepear.com/unique/index.jsp"">http://www.theuniquepear.com/unique/index.jsp"</a>;;
   }
   invokeWebApp();
   // -->


hello



-Tim

Scott Purcell wrote:
> I have had trouble getting search engines to see my site. I built it
with struts, and use some tags from the index.html page to get business
logic, to finally get to my page. The url is
http://www.theuniquepear.com
> 
> Anyway, upon talking to some co-workers, they suggested I watch my
access log, so I can see what files they are indexing. I thought I had
the access log turned on for the site, and see when someone hits my web
site, but as far as the searchbots go, I only see this in my logs daily.
> 
> $ cat  localhost_access_log.2006-02-07.txt | less
> 67.15.16.30 - - [07/Feb/2006:03:44:55 -0600] "GET /robots.txt
HTTP/1.0" 404 985
> 67.15.16.30 - - [07/Feb/2006:03:46:21 -0600] "GET / HTTP/1.0" 200 844
> 67.15.16.30 - - [07/Feb/2006:03:51:57 -0600] "GET /robots.txt
HTTP/1.0" 404 985
> 62.114.208.233 - - [07/Feb/2006:03:52:42 -0600] "GET
/unique/welcome.do?OVRAW=home%20decorating%20ideas&OVKEY=home
> 62.114.208.233 - - [07/Feb/2006:03:52:44 -0600] "GET
/unique/includes/siteWide.css HTTP/1.1" 200 15402
> 62.114.208.233 - - [07/Feb/2006:03:52:44 -0600] "GET
/unique/images/header_pear.jpg HTTP/1.1" 200 11227
> 
> 
> I see the entry for robots.txt, but I have no idea where they are
going, or what they are doing.
> 
> I turned on access log like this in the server.xml like so:
>   directory="logs"  prefix="localhost_access_log."
suffix=".txt"
>  pattern="common" resolveHosts="false"/>
> 
> And that is a snippet of the log from above.
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Access log to see where robots go.

2006-02-10 Thread Scott Purcell
I have had trouble getting search engines to see my site. I built it with 
struts, and use some tags from the index.html page to get business logic, to 
finally get to my page. The url is http://www.theuniquepear.com

Anyway, upon talking to some co-workers, they suggested I watch my access log, 
so I can see what files they are indexing. I thought I had the access log 
turned on for the site, and see when someone hits my web site, but as far as 
the searchbots go, I only see this in my logs daily.

$ cat  localhost_access_log.2006-02-07.txt | less
67.15.16.30 - - [07/Feb/2006:03:44:55 -0600] "GET /robots.txt HTTP/1.0" 404 985
67.15.16.30 - - [07/Feb/2006:03:46:21 -0600] "GET / HTTP/1.0" 200 844
67.15.16.30 - - [07/Feb/2006:03:51:57 -0600] "GET /robots.txt HTTP/1.0" 404 985
62.114.208.233 - - [07/Feb/2006:03:52:42 -0600] "GET 
/unique/welcome.do?OVRAW=home%20decorating%20ideas&OVKEY=home
62.114.208.233 - - [07/Feb/2006:03:52:44 -0600] "GET 
/unique/includes/siteWide.css HTTP/1.1" 200 15402
62.114.208.233 - - [07/Feb/2006:03:52:44 -0600] "GET 
/unique/images/header_pear.jpg HTTP/1.1" 200 11227


I see the entry for robots.txt, but I have no idea where they are going, or 
what they are doing.

I turned on access log like this in the server.xml like so:


And that is a snippet of the log from above.

Does anyone know how to get more involved text, or can anyone tell me what the 
robots.txt above is doing?


Thanks,
Scott


RE: Re: Verisign SSL on Tomcat 5.5.9

2006-02-08 Thread Scott Purcell
Yes,
That was the problem with my Tomcat 5.5, Verisign configuration. After
following the Tomcat 5.5 docs, and the Verisign Tomcat docs, and them
removing that dll, all is good.

I have been running with the SSL for quite a while now. Also, if using
Struts, the ssltext is awesome for controlling which pages get https and
which get normal http. This eliminates the need to control everything
through the mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 08, 2006 10:04 AM
To: Tomcat Users List
Subject: RE: Re: Verisign SSL on Tomcat 5.5.9

> From: Scott Purcell [mailto:[EMAIL PROTECTED] 
> Subject: RE: Re: Verisign SSL on Tomcat 5.5.9
> 
> I struggled with the install for weeks, and after screwing 
> around, found out it was once executable that was in my 
> install (Tomcat) that was screwing things up. 

Are you thinking of the tcnative-1.dll (APR), rather than a .exe file?
The SSL configuration is different when APR is in the game.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Re: Verisign SSL on Tomcat 5.5.9

2006-02-08 Thread Scott Purcell
Hello Sycamore ...

I was able to get verisign SSL (free trial) cert and real cert working
on 5.5x Tomcat on a XP box.

I struggled with the install for weeks, and after screwing around, found
out it was once executable that was in my install (Tomcat) that was
screwing things up. I am at work now ... and I do not remember the
executable that was messing the whole install up.

If you can grep on all .exe files in your tomcat install and email them
to me, I could tell you which one you need to remove (rename so it is
not used) then all should work.

If I do not see any posts, I will email this thread when I get home.

PS, I was given all kinds of things to try ... but at the end of the day
it was as easy as the Tomcat docs. I'll get back with you.

Sincerely
Scott



-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
Sent: Tuesday, February 07, 2006 9:21 PM
To: users@tomcat.apache.org
Subject: Re: Verisign SSL on Tomcat 5.5.9

https://www.verisign.com/support/ssl-certificates-support/page_dev020195
.html

"Sycamore Days" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Tomcat experts:
>
> I'm on a windows xp SP2 system running jdk 1.5 with tomcat 5.5.9 and 
> trying to test SSL functionality.  Getting a self-signed certificate
is 
> trivial enough via the online 5.5 SSL HOWTO.
>
> But trying to get the verisign SSL (free trial) cert to work has been 
> impossible.  I've tried the online 5.5 SSL howto, the following 
> instructions all of which do not work:
>
>
https://www.verisign.com/support/ssl-certificates-support/page_dev020184
.html
> http://marc.theaimsgroup.com/?l=tomcat-user&m=106285452711698&w=2
> http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
>
> Is there a working guide?  It seems simple enough but I searched
through 
> the mailing list archives and find that people are puzzled when
installing 
> SSL certs from Verisign on their Tomcat keystores.
>
> Any help would be much appreciated!
>
> Sycamore 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Two DNS Entries Two Sites?

2006-02-06 Thread Scott Purcell
Hello,

Running Tomcat 5.5 @ home and running a website which has a DNS entry in
it. I made the site the default webapp, and configured it in the
server.xml.

 

A week ago, I created another context (in the server.xml) for a
dev-site, of my live site, and I am using that for QA. I want to run a
second real-web site off this box, and same Tomcat. It has its own DNS
entry, and want to know if this is doable? If so, what should I read
about as far as configuration. I had read about the Engine, Server,
Context but have not really seen how to put two site DNS entries in.

 

Thanks,

Scott



Help Error Code -12227

2006-02-05 Thread Scott Purcell
Hello,

I am running Tomcat 5.5, Verisign, and PayPal. Basically the whole site is set 
up with SSL via a 

Please Help Setting Up Site

2006-01-28 Thread Scott Purcell
Hello,

I have been screwing around with a few Tomcat 5.5 problems for some time, and 
cannot seem to resolve them, and could use some help.

First off. 
1) I have a real web site that needs to be shown to the world. I have purchased 
a DNS entry and created the site.
I am running on port 80. 
After installing a clean tomcat, I put the folder under webapps. The folder 
is the webapp.
I am running a certificate under Catalina in server.xml for this site.
In server.xml I only changed 8080 to 80. And left the host as "localhost"
   Now if someone types in the proper http://www.mysite.com all is good.
   PROBLEM: when friends and family type in http://mysite.com (forgetting) the 
www, they get to my site, but get the message that the certificate
is wrong. And this makes sense because the certificate is assigned to 
www.mysite.com, not mysite.com. Make sense?
   How can I get around this problem. It is killing me.


Please if anyone has ideas, let me know. 
Do I need to do anything with my dns entry in tomcat?

Also, what is the "admin" module I see and can I install it on a existing 
Tomcat 5.5 server? 


reload when class file is updated

2006-01-20 Thread Scott Purcell
Hello,

 

I am working on a webapp that was originally a war file. The war
extracted to abc context.

 

Some background:

The war file when deflated (automatically) created a
/abct/META-INF/context.xml  and inside had the abc context information.
I added reloadable=true like so there inside the META-INF directory.



 

Also, it put a context here:

$TOMCAT_HOME/conf/Catalina/localhost/abc.xml

And inside I added the reloadable="true" here it is:



 

Now also, I am using JNDI, so I added my JNDI 

How does Tomcat log by default?

2006-01-06 Thread Scott Purcell
I am playing around with a Hibernate project, and created a war file. I have a 
clean 5.5 Tomcat running on XP. The project I created is not using log4j. It 
has a bunch of System.out.println statements, and the tutorial says to look at 
the Tomcat log to see how this hibernate project connects, etc.

By default my new Tomcat has a logs directory, but inside it there are stderr, 
stdout, tomcat.log and jakarta_service logs. I would assume that the system out 
should go to stdout.log, but there are no logs there.

How is a new Tomcat configured, where would default System.out.printlns go?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Configuration Question

2006-01-04 Thread Scott Purcell
I am running Tomcat 5.5x on a Win2000 box.

I purchased a DNS name, and I have that configurated in the server.xml. So when 
a user hits my site like so: http://www.xxx.com it calls the site and all is 
good. But here is my problem. On some search engines for whatever reason, the 
url shows this: http://xxx.com leaving out the www. It still brings open the 
site, but there is a problem. My site runs all https, and when I registered my 
ssl certificate, it is under the http://www.xxx.com. And when the user hits the 
site without the 'www' it brings up a invalid certificate. It shows the lock, 
but it says it is not certified by verisign.

Any ideas why this is occuring, and any ideas to redirect the bad url to the 
good one?

Many thanks,



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Many Thanks SSL

2005-12-05 Thread Scott Purcell
I truly do not know what to say about all the information given to me these 
past couple of days in regards to my SSL problem. I cannot say enough to the 
people who have pitched in and helped me throughout the weekend. 

I feel I will be able to get this up and running today or tonight when I get 
home, and have learned so much.

I want to thank each of you for your help and support. It means so much.

Sincerely
Many, many thanks,

Scott



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Fw: Verisign Certificate Still Giving Me Troubles:

2005-12-03 Thread Scott Purcell
Thanks Bill for the info.

Verisign gave me a cert.cer file. So I am not sure how to handle this. My
connector currently is this:

   
  // here is what I am working with that is currently commented out
// I was able to add the cert to the keystore using  this:

keytool -import -alias  -keystore
 -trustcacerts -file 



// but this is the one that is working using openSSL and the certificate
made from the below link:


I am getting messed up because I am not sure what is the private key and
what is the public key as I am reading.
Verisign made me create a "keystore", then a "csr" file which I posted to
them, and then I received a "cert.cer" file back.
Originally I tried just doing this:


But it hung and never responded. That is when I tried doing the example from
the openssl notes.

?Thanks
Scott


- Original Message -
From: "Bill Barker" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, December 03, 2005 6:09 PM
Subject: Re: Verisign Certificate Still Giving Me Troubles:


> Well, firstly, Verisign should have given you a cert.crt file :).
>
> Verisign uses an intermediate cert to sign with (available from their
site).
> Based on configuring mod_ssl I'm guessing that you need to download it and
> set:
>   SSLCertificateChainFile="/path/to/int/cert.crt"
> in your  element.
>
> From the previous threads, I'm assuming that you are still using the APR
> connector.  If you are using the Java connector, then simply import the
> intermediate cert into your keystore (and ignore the above).
>
> "Scott Purcell" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>
>
> Hello,
>
> A few people helped me out last week, to get simple SSL running. IN
> particular Dhaval, Remy and Nate. Anyway, I have followed the directions
> from here: http://www.fatofthelan.com/articles/articles.php?pid=12 section
3
> and all works well.
>
> So that means my tomcat is all configured and happy.
>
> But this was a "generic" certificate. I gave Verisign a certreq.csr file
and
> they gave me a certificate last week and it was called cert.cer.
>
> I cannot for the life of me figure out how to get the certreq.csr working?
>
> I have been following these steps here:
>  Based upon my knowledge,to incorporate Verisign certificate, steps are as
> follows:
> (Derived from http://www.fatofthelan.com/articles/articles.php?pid=12 )
> (1) openssl req -new -out server.csr (This will generate csr and private
> key. Make sure you feel
> the values correctly on openssl command prompt. )
> (2) openssl rsa -in privkey.pem -out server.key (This removes the
passphrase
> from the private key.
> Also delete generated .rnd file)
> (3) Here there are two (either or) possibilities:
>
>
> But honestly do not know where to substitute my "certreq.csr" that
verisign
> gave me in this equation.
>
> Regards
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL InvalidKeystore Format?

2005-12-03 Thread Scott Purcell
Could you clarify? I am unsure what you mean.

I am really stuck on this, and could use a hand. 



- Original Message - 
From: "James Rome" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, December 03, 2005 2:42 PM
Subject: Re: SSL InvalidKeystore Format?


> The accepted CAs are in /jre/lib/security/cacerts which you manage with
> keytool. This only comes into play if you require a client certificate.
> Then the user's browser only presents certificates from your CA list.
> 
> Jim
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL InvalidKeystore Format?

2005-12-03 Thread Scott Purcell
Do you think Verisign should be able to supply me with a openSSL
certificate? Maybe that would help. I just don't know enough about this to
make any logical sense. I will email Verisign and see what they say.

Thanks,
Scott

PS, did you have Nates earlier email you described below? If so could you
email me it?

Thanks


- Original Message -
From: "Dhaval Patel" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Saturday, December 03, 2005 1:13 PM
Subject: Re: SSL InvalidKeystore Format?


> Scott,
>
>You might have to use OpenSSL instead of keytool. OpenSSL is
recommended in production
> environment. Also if you want to use APR+SSL, you might have to use
OpenSSL (I am not sure about
> it). So you have to generate key using openssl and then supplied key to
Verisign. If you have
> time, read my and Nate's previous messages. Nate's message explains a lot
about key, certificate
> and encoding.
>
>I am not quite sure wheter this key+certificate will work with APR+SSL
since they were
> generated using keytool. But you can try.
>
>Let us know if it works or not.
>
> Regards,
> D
>
> --- Scott Purcell <[EMAIL PROTECTED]> wrote:
>
> > Just found this in my email mess: Thanks for responding:
> > Here is what I supplied to verisign for my certificate:
> >
> > 1) Prepared the Keystore:
> > keytool -genkey -keystore myKeystore -alias keystoreAlias
> > (it asked for me for passwords, etc.);
> >
> > 2) Generated a CSR
> > a)  keytool -genkey -alias keystoreAlias -keyalg RSA -keystore
myKeystore
> > b) keytool -certreq -keyalg RSA -alias keystoreAlias -file
> > certreq.csr -keystore myKeystore
> >
> >  so it looks like I used keytool, and not openssl.
> >
> > Then they send me back a
> > cert.cer file in my email:
> >
> > ###
> > 2) I was not able to download it from anywhere, as it came in my email:
> >
> > 3) I was able to get the SSL running in a ssl format using the supplied
link
> > from fatofthelan.com article pid=12
> > and currently have a generic certificate running.
> >
> >
> > Thanks,
> > Scott
> >
> >
> >
> >
> >
> >
> > - Original Message -
> > From: "Nate Rock" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" 
> > Sent: Friday, December 02, 2005 8:50 AM
> > Subject: RE: SSL InvalidKeystore Format?
> >
> >
> > Dhaval your explincation was excellent! I think with a bit more
information
> > about how exactly Scott got his certificate from verisign, I think we
can
> > help him out a bit more.
> >
> > 1. What did you use to create your Certificate Request (csr) to
verisign?
> >
> > -IIS
> > -java keytool
> > -openssl
> >
> > 2. after you received your signed certificate back from verisign, what
> > format did you download it in?
> >
> > -PKCS7  - signed cert only - DER binary encoding
> > -PEM   - signed cert only
> >
> > 3. After you got the signed certificate what format is your keystore?
> >
> > -PKCS12 - pub/priv keys + signed certificate
> >   -JKS  - pub/priv keys + signed certificate (sun specific format
> > -PEM  - single file with both PEM encoded (RSA formatted, non
encrypted!)
> > private key   concatinated on to the PEM encoded signed cert
> > -PEM  - two files
> >   1. one contain the PEM encoded (RSA formattd, non-encrypted private
key -
> > server.key
> >   2. one containing the PEM encoded signed cert
> >
> > The native ARP connector only supports the last two file formats, so if
you
> > have a PKCS12 refer to my previous posting expliaining how to split a
PKCS12
> > file into multiple PEM Encoded files.
> >
> > Just for the record, I belive you can go back to verisign and download
your
> > signed certificate in multiple formats...
> >
> > I am also in the process of parsing out a signed by verisign certificate
to
> > see if it's even possible. We may be stuck using self signed
certificates
> > for now because the APR connector doesn't support he following
attributes
> > yet:
> >
> > SSLCACertificateFile
> > SSLCACertificatePath
> >
> > These attributes are supported allowing you to specify which CA's you
accept
> > outside of the "default" ones (who's location I am still trying to
> > trackdown).
> >
> >-rOcK
> >
> > -Original Message-
> > From: Dhaval Patel [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, December 01, 2005 8:48 PM
> > To: Tomcat

Re: SSL InvalidKeystore Format?

2005-12-03 Thread Scott Purcell
almost
standard now that you use signed certificate from Verisign or Thawte. For
example, if you do any online shopping from amazon or any store, you will
visit the SSL page and they dont display any warning or anything.

  So the choice is in your hand. There is no harm involved in any of the
above method.

  Again all of above explanation is based upon my reading. I would like
users to comment about it so that I also can update myself and you have
correct and better answer.

  Hope it helps you understanding SSL a bit further.

Regards,
D

--- Scott Purcell <[EMAIL PROTECTED]> wrote:

> Hard to believe ... but Dhaval the below steps actually worked, and my
> site appears to have SSL. Thank you so much. But of course this draws
> me to another question.
>
> I had just purchased a "Verisign" certificate and do not know how to
> handle this? Can I just call the Verisign certificate when doing this:
> openssl x509 -in server.csr -out server.crt -req -signkey server.key
> -days
> 365 and using the one verisign gave me here?
>
> Also, is this a good certificate? Do I need the Verisign one?
>
> As you may be able to tell, I am very confused and could use a little
> explanation if possible.
>
> Thanks much
> Scott
>
>
>
> - Original Message -
> From: "Dhaval Patel" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" 
> Sent: Thursday, December 01, 2005 2:08 PM
> Subject: RE: SSL InvalidKeystore Format?
>
>
> > Hi,
> >
> >   I should have mention that I am running tomcat as a standalone
> > server. I
> mentioned the link
> > (http://www.fatofthelan.com/articles/articles.php?pid=12) as a
> > reference
> to generate self-signed
> > certificate with OpenSSL on windows. Even though it is very nice
> > article
> about how to setup SSL
> > with Apache. I only applied part-3 (Generate a test certificate)
> > from that
> article to my
> > Tomcat+SSL procedure.
> >
> >   One thing that I found intersting on that article is part-4
> > (Configuring
> Apache and mod_ssl). In
> > this part, if you look at changes in httpd.conf, as mentioned below,
> >
> > SSLEngine o���n
> > SSLCertificateFile conf/ssl/server.cert SSLCertificateKeyFile
> > conf/ssl/server.key
> >
> >   which is the same parameter that Remy has suggested. If I have
> > found
> this article early, I may
> > be able to solve the issue. But again since I figured it out, I like
> > it
> now.
> >
> > Regards.
> > D
> >
> >
> >
> > --- Scott Purcell <[EMAIL PROTECTED]> wrote:
> >
> > > Hello Dhaval,
> > >
> > > I was reading the article below, and it looks you you are not
> > > running
> Tomcat as standalone? Are
> > > you running Apache behind the scenes?
> > >
> > > I was just curious.
> > >
> > > Scott
> > >
> > >
> > > -Original Message-
> > > From: Dhaval Patel [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, December 01, 2005 8:49 AM
> > > To: Tomcat Users List
> > > Subject: Re: SSL InvalidKeystore Format?
> > >
> > >
> > > Hi Scott,
> > >
> > >   I am not tomcat expert as well as I can not help you about the
> > > error
> you are getting.
> > >   After Remy's last message on SSL with APR, I finally got my
> > > windows xp
> + tomcat 5.5.12 + APR +
> > > SSL working. Following are the steps that I have followed:
> > >
> > > (1) Install Tomcat 5.5.12 and make sure it is working.
> > > (2) Download APR component (openssl.exe and tcnative-1.dll) and
> > > put it
> in %TOMCAT_HOME%\bin.
> > > (http://tomcat.heanet.ie/native/1.1.0/binaries/win32/)
> > > (3) I generated server.key and server.cert following guide at
> > > http://www.fatofthelan.com/articles/articles.php?pid=12 .I have
> > > put them
> in %TOMCAT_HOME%\bin
> > > only.
> > > (Make sure you follow the guide. I had trouble setting openssl.exe
> > > on
> windows xp. The answer is
> > > on
> > > that page only. You have to download openssl.cnf from google and
> > > place
> it in some folder and
> > > make
> > > a new environment OPENSSL_CONF pointing to that file. Trust me
> > > that link
> is very good.)
> > > (4) Change the server.xml in following way:
> > >  > >        maxThreads="150" minSpareThreads="25"
> maxSpareThreads="75"
> > >enableLookups=&quo

Re: SSL InvalidKeystore Format?

2005-12-01 Thread Scott Purcell
Hard to believe ... but Dhaval the below steps actually worked, and my site
appears to have SSL. Thank you so much. But of course this draws me to
another question.

I had just purchased a "Verisign" certificate and do not know how to handle
this? Can I just call the Verisign certificate when doing this:
openssl x509 -in server.csr -out server.crt -req -signkey server.key -days
365 and using the one verisign gave me here?

Also, is this a good certificate? Do I need the Verisign one?

As you may be able to tell, I am very confused and could use a little
explanation if possible.

Thanks much
Scott



- Original Message -
From: "Dhaval Patel" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, December 01, 2005 2:08 PM
Subject: RE: SSL InvalidKeystore Format?


> Hi,
>
>   I should have mention that I am running tomcat as a standalone server. I
mentioned the link
> (http://www.fatofthelan.com/articles/articles.php?pid=12) as a reference
to generate self-signed
> certificate with OpenSSL on windows. Even though it is very nice article
about how to setup SSL
> with Apache. I only applied part-3 (Generate a test certificate) from that
article to my
> Tomcat+SSL procedure.
>
>   One thing that I found intersting on that article is part-4 (Configuring
Apache and mod_ssl). In
> this part, if you look at changes in httpd.conf, as mentioned below,
>
> SSLEngine o­n
> SSLCertificateFile conf/ssl/server.cert
> SSLCertificateKeyFile conf/ssl/server.key
>
>   which is the same parameter that Remy has suggested. If I have found
this article early, I may
> be able to solve the issue. But again since I figured it out, I like it
now.
>
> Regards.
> D
>
>
>
> --- Scott Purcell <[EMAIL PROTECTED]> wrote:
>
> > Hello Dhaval,
> >
> > I was reading the article below, and it looks you you are not running
Tomcat as standalone? Are
> > you running Apache behind the scenes?
> >
> > I was just curious.
> >
> > Scott
> >
> >
> > -Original Message-
> > From: Dhaval Patel [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, December 01, 2005 8:49 AM
> > To: Tomcat Users List
> > Subject: Re: SSL InvalidKeystore Format?
> >
> >
> > Hi Scott,
> >
> >   I am not tomcat expert as well as I can not help you about the error
you are getting.
> >   After Remy's last message on SSL with APR, I finally got my windows xp
+ tomcat 5.5.12 + APR +
> > SSL working. Following are the steps that I have followed:
> >
> > (1) Install Tomcat 5.5.12 and make sure it is working.
> > (2) Download APR component (openssl.exe and tcnative-1.dll) and put it
in %TOMCAT_HOME%\bin.
> > (http://tomcat.heanet.ie/native/1.1.0/binaries/win32/)
> > (3) I generated server.key and server.cert following guide at
> > http://www.fatofthelan.com/articles/articles.php?pid=12 .I have put them
in %TOMCAT_HOME%\bin
> > only.
> > (Make sure you follow the guide. I had trouble setting openssl.exe on
windows xp. The answer is
> > on
> > that page only. You have to download openssl.cnf from google and place
it in some folder and
> > make
> > a new environment OPENSSL_CONF pointing to that file. Trust me that link
is very good.)
> > (4) Change the server.xml in following way:
> >  >maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"
> >enableLookups="false" disableUploadTimeout="true"
> >scheme="https" secure="true"
> >SSLEngine="on"
> >SSLCertificateFile="C:\Tomcat5.5\bin\server.crt"
> >SSLCertificateKeyFile="C:\Tomcat5.5\bin\server.key" />
> > (5) Restart the tomcat and SSL is enabled.
> >
> >I dont know if you have did the same way and you have issues. If you
want to try, you can
> > follow the above steps on some other windows xp machine. It worked for
me so it should work for
> > you. If you start from scratch, it may take about 30-40 mins to setup
above things.
> >
> >Let me know how it goes.
> >
> > Regards,
> > D
> >
> > --- Scott Purcell <[EMAIL PROTECTED]> wrote:
> >
> > > Well, after wasting much time trying to get the SSL running on 5.5.12,
on XP, and finding out
> > > about the bad tcnative-1.dll, I thought I was out of the woods on my
SSL configuration. But it
> > > appears I have one last issue (hopefully)
> > > Since I renamed the tcnative-1.dll, I am getting logs in regards to my
SSL (I was not getting
> > > those prior, see earlier posts) and I am r

RE: SSL InvalidKeystore Format?

2005-12-01 Thread Scott Purcell
Hello Dhaval,

I was reading the article below, and it looks you you are not running Tomcat as 
standalone? Are you running Apache behind the scenes?

I was just curious.

Scott


-Original Message-
From: Dhaval Patel [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 01, 2005 8:49 AM
To: Tomcat Users List
Subject: Re: SSL InvalidKeystore Format?


Hi Scott,

  I am not tomcat expert as well as I can not help you about the error you are 
getting. 
  After Remy's last message on SSL with APR, I finally got my windows xp + 
tomcat 5.5.12 + APR +
SSL working. Following are the steps that I have followed:

(1) Install Tomcat 5.5.12 and make sure it is working.
(2) Download APR component (openssl.exe and tcnative-1.dll) and put it in 
%TOMCAT_HOME%\bin.
(http://tomcat.heanet.ie/native/1.1.0/binaries/win32/)
(3) I generated server.key and server.cert following guide at
http://www.fatofthelan.com/articles/articles.php?pid=12 .I have put them in 
%TOMCAT_HOME%\bin
only.
(Make sure you follow the guide. I had trouble setting openssl.exe on windows 
xp. The answer is on
that page only. You have to download openssl.cnf from google and place it in 
some folder and make
a new environment OPENSSL_CONF pointing to that file. Trust me that link is 
very good.)
(4) Change the server.xml in following way:

(5) Restart the tomcat and SSL is enabled.

   I dont know if you have did the same way and you have issues. If you want to 
try, you can
follow the above steps on some other windows xp machine. It worked for me so it 
should work for
you. If you start from scratch, it may take about 30-40 mins to setup above 
things.

   Let me know how it goes.

Regards,
D

--- Scott Purcell <[EMAIL PROTECTED]> wrote:

> Well, after wasting much time trying to get the SSL running on 5.5.12, on XP, 
> and finding out
> about the bad tcnative-1.dll, I thought I was out of the woods on my SSL 
> configuration. But it
> appears I have one last issue (hopefully)
> Since I renamed the tcnative-1.dll, I am getting logs in regards to my SSL (I 
> was not getting
> those prior, see earlier posts) and I am receiving this error: I believe I 
> have a good keystore,
> because my public key from Verisign was happy with it, but for some reason, 
> Tomcat is stikll not
> happy with it.
> Any ideas why this error may occur?
> Nov 30, 2005 10:44:53 PM org.apache.coyote.http11.Http11BaseProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-80
> Nov 30, 2005 10:44:54 PM org.apache.coyote.http11.Http11BaseProtocol init
> SEVERE: Error initializing endpoint
> java.io.IOException: Invalid keystore format
> at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
> at java.security.KeyStore.load(Unknown Source)
> at 
> org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:282)
> at 
> org.apache.tomcat.util.net.jsse.JSSESocketFactory.getTrustStore(JSSESocketFactory.java:256)
> at
>
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getTrustManagers(JSSE14SocketFactory.java:174)
> at 
> org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:109)
> at 
> org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:88)
> at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:292)
> at 
> org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:137)
> at org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
> at 
> org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
> at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:762)
> at org.apache.catalina.startup.Catalina.load(Catalina.java:488)
> at org.apache.catalina.startup.Catalina.load(Catalina.java:508)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:247)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
> Nov 30, 2005 10:44:54 PM org.apache.catalina.startup.Catalina load
> SEVERE: Catalina.start
> LifecycleException: Protocol handler initialization failed: 
> java.io.IOException: Invalid
> keystore format
> at org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
> at 
> org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
> at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:762)
> at org.apache.catalina.startup.Catalina.load(Catalina.java:488)
> at org.apache.catalina.startup.Catalina.load(Catalina.java:508)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

SSL InvalidKeystore Format?

2005-12-01 Thread Scott Purcell
Well, after wasting much time trying to get the SSL running on 5.5.12, on XP, 
and finding out about the bad tcnative-1.dll, I thought I was out of the woods 
on my SSL configuration. But it appears I have one last issue (hopefully)
Since I renamed the tcnative-1.dll, I am getting logs in regards to my SSL (I 
was not getting those prior, see earlier posts) and I am receiving this error: 
I believe I have a good keystore, because my public key from Verisign was happy 
with it, but for some reason, Tomcat is stikll not happy with it.
Any ideas why this error may occur?
Nov 30, 2005 10:44:53 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
Nov 30, 2005 10:44:54 PM org.apache.coyote.http11.Http11BaseProtocol init
SEVERE: Error initializing endpoint
java.io.IOException: Invalid keystore format
at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
at java.security.KeyStore.load(Unknown Source)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:282)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getTrustStore(JSSESocketFactory.java:256)
at 
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getTrustManagers(JSSE14SocketFactory.java:174)
at 
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:109)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:88)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:292)
at org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:137)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:762)
at org.apache.catalina.startup.Catalina.load(Catalina.java:488)
at org.apache.catalina.startup.Catalina.load(Catalina.java:508)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:247)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
Nov 30, 2005 10:44:54 PM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException: Protocol handler initialization failed: 
java.io.IOException: Invalid keystore format
at org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:762)
at org.apache.catalina.startup.Catalina.load(Catalina.java:488)
at org.apache.catalina.startup.Catalina.load(Catalina.java:508)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:247)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
Nov 30, 2005 10:44:54 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1890 ms
Nov 30, 2005 10:44:54 PM org.apache.catalina.core.StandardService start 


 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SSL Information 5.5.12

2005-11-30 Thread Scott Purcell
First off, thank you Wendy for the link for searching the archives
http://www.nabble.com/SSL-Setup-t536274.html#a1446749

After two days of posting that I was having issues with SSL on Tomcat 5.5.12 
and that I would get no log files, etc, I searched up and down the archives, 
and found the problem. See link above.

Evidently the tcnative-1.dll had issues. When I renamed the tcnative-1.dll, all 
of a sudden, I begin receiving tons of logs in regards to my SSL set up.

So for those hacking with SSL on Tomcat 5.5.12, you may want to note this.

Sincerely
Scott


admin tool?

2005-11-30 Thread Scott Purcell
I am using Tomcat 5.5.12 on XP. I am having a bad time trying to get SSL up and 
working. Anyway, after days of searching, I have found some threads where 
people are using the "admin" tool or something like this, to install the 
certificates, etc. Problems with this install start off at no logs generating 
to show errors, etc.

Is this a valid module, I see if on the Apache Downloads page. And if so it 
appears that most threads are from people who cannot get it installed. So does 
it work, and is it installed easily, or should one just buy a commercial server 
and bypass this kind of problems?




mailing list question

2005-11-30 Thread Scott Purcell


Is there a searchable Tomcat mailing list? I posted a question a while back and 
was hoping to re-read it?  I found many sites, but none look like the real 
Tomcat mailing list.

The latest google search brought me here
http://mail-archives.apache.org/mod_mbox/tomcat-dev/200511.mbox/date
and that pretty much is not in date order and I do not even see anything from 
the past 2 weeks?

I went to the FAQs and have been searching with no luck.

Thanks


RE: SSL Certificate Beginner Question

2005-11-30 Thread Scott Purcell
I did not include a security constraint.
Is this needed for SSL? I spend some time looking at this element, and I was 
under the impression that it was for form authentication? 




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 30, 2005 10:16 AM
To: Tomcat Users List
Subject: Re: SSL Certificate Beginner Question


Did you include a security contraint element in your web.xml file? Something 
like this:

  

  HTTPS for all of these pages of the 
application.
  /secure/*


  CONFIDENTIAL

  


[EMAIL PROTECTED] wrote:
> Real helpful ... I searched on SRV.12 and it brought up a bunch of links
> that have nothing to do with Tomcat  config of SSL.
> I probably posted a lame request. Let me try again.
> I have purchased a certificate via Verisign, and I have installed the
> certificate into a keystore. I am running Windows XP and Tomcat 5.5.12.
> I put the keystore and Cert.cer in the Tomcat/bin directory for organiation.
> I read that the default is usually in the home directory where tomcat is
> installed on Unix. But that is another OS.
> I followed the docs here under Tomcat 5 SSL and ran across this:
> http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
> 
> The final step is to configure your secure socket in the
> $CATALINA_HOME/conf/server.xml file, where $CATALINA_HOME represents the
> directory into which you installed Tomcat 5. An example  element
> for an SSL connector is included in the default server.xml file installed
> with Tomcat. It will look something like this:
> 
>  <-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
> 
> 
> 
> Anyway I uncommented this snippet from my Tomcat server.xml file and
> restarted. But I cannot hit https://localhost:8443 like the read-me states.
> I have checked all $TOMCAT_HOME/logs and see nothing. It just hangs when
> trying to call it. I can hit http://localhost and all is happy. But the
> certificate states it is coming from a certain URL. So I am not sure how
> that all works.
> 
> I hope this may help someone feed me back some relevant information.
> Scott
> 
> - Original Message -
> From: "Hassan Schroeder" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" 
> Sent: Tuesday, November 29, 2005 9:37 PM
> Subject: Re: SSL Certificate Beginner Question
> 
> > Scott Purcell wrote:
> >
> > > How do I configure some of my pages to use https? I do not know
> > > where to begin on this?
> >
> > Begin with the Servlet Spec. -- SRV.12 (Security) would be apropos :-)
> >
> > HTH!
> > --
> > Hassan Schroeder - [EMAIL PROTECTED]
> > Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
> >
> >   dream.  code.
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Need More Error Logs .. How to

2005-11-30 Thread Scott Purcell
I am trying to get SSL running on Tomcat 5.5.12 on XP. As I am playing around, 
trying different server.xml changes, I am trying to find some type of log to 
help assist me in what is not working. Anyway, it is a new Tomcat install, and 
under $TOMCAT_HOME/logs I see stderr, stdout and some localhost file. Problem 
is, I am not seeing any errors when trying to use the "https" protocol. A lot 
of threads describe errors from Tomcat with bad Keystores, or Passwords, but I 
am not seeing any "system" type errors.

Is there a way to turn-up Tomcats internal logging so I can see these types of 
logs, so I can try and get my ssl problem resolved? PS I have been tailing each 
of the log files available uneder logs, and there are no indicators of my 
problem.


Regards
Scott



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SSL Port Question Config

2005-11-30 Thread Scott Purcell
I am trying to configure my Tomcat 5.5.12 running on XP to use SSL. I have 
received my certificate from 'Verisign' and put it into my keystore like the 
docs state.

After that I followed the Tomcat docs, and uncommented out this bit from the 
conf/server.xml



and added my keystoreFile and keystorePass  as attributes in the above.

I then added a https://localhost:8443

Could anyone clarify what port SSL should be using, and why the 8443 vs 443 
(which looks standard)?


Also, if I am missing any steps, please let me know.

Regards
Scott



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL Certificate Beginner Question

2005-11-29 Thread Scott Purcell
Thanks for the link ...
I think first I need to be able to hit the https://localhost:8443 before
going any further?  Once that is working ... then hopefully I can figure out
how to restrict certain pages.





- Original Message -
From: "Hassan Schroeder" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, November 29, 2005 10:43 PM
Subject: Re: SSL Certificate Beginner Question


> Scott Purcell wrote:
> > Real helpful ... I searched on SRV.12 and it brought up a bunch of links
> > that have nothing to do with Tomcat  config of SSL.
>
> OK, here's a direct link to the Servlet Spec:
>
>  <http://www.jcp.org/aboutJava/communityprocess/final/jsr154/>
>
> :: which, BTW, is the first Google hit on "java servlet spec" :-)
>
> > I probably posted a lame request. Let me try again.
>
> OK.
>
> > I followed the docs here under Tomcat 5 SSL and ran across this:
> > http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
>
> From your first email:
>
> > How do I configure some of my pages to use https?
>
> :: I thought you had *already* configured your installation per that
> how-to, cert installed, SSL working, and you were trying to understand
> how to restrict "some pages" to SSL-only access.
>
> Sorry for misunderstanding.
> --
> Hassan Schroeder - [EMAIL PROTECTED]
> Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
>
>   dream.  code.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL Certificate Beginner Question

2005-11-29 Thread Scott Purcell
Yes Thanks David,

I did add the "keystoreFile=XXX" and "keystorePass="xxx". But it still
hangs. Since I was on Windows I used a full path to the file.  I forgot
about the https://localhost:8443? Just
curious. I know when I asked for the cert, Verisign asked me for my dns
name, so maybe the simple localhost will not work and only the dns entry
will work. ...

Thanks much for your time.

Scott


- Original Message -
From: "David Wall" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, November 29, 2005 10:25 PM
Subject: Re: SSL Certificate Beginner Question


>
> > <-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
> >
> >
> >
> You probably want to add the following attributes to the Connector above:
>
> keystoreFile="keys/tomcatkeys" keystorePass="123"
>
> Obviously, make the keystoreFile point to the name of the Java keystore
> that you put your certificate inside, along with the password for that
> keystore.  I believe the base is $CATALINA_HOME if you use a relative
> pathname like above.
>
> You'll also need to update your webapp's web.xml file with something
> like (that is, if you want Tomcat to enforce SSL on your webapp):
>
> (after any servlet-mapping XML elements, before the session-config
> and/or welcome-file-list XML elements of web-app element in
WEB-INF/web.xml)
>
> 
>   
> Entire site
> /*
> GET
> POST
>   
>   
> CONFIDENTIAL
>   
> 
>
>
>
> Hope that helps...
>
> David
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Get More Logging

2005-11-29 Thread Scott Purcell
I posted earlier about having some issues trying to get SSL configured on my 
Tomcat 5.5.12. Anyway, I changed some settings in my server.xml for my 
keystore, and see no errors being thrown under the logs/ directory. I checked 
stdout, stderr, but see no errors. 

I know that if I am using the wrong keystore location (I intentionally put in a 
wrong path) that I should see something. But I do not. How can I get more or 
better logging so I can find errors in order to trace down my problems witht he 
SSL configuration?


Thanks



Re: SSL Certificate Beginner Question

2005-11-29 Thread Scott Purcell
Real helpful ... I searched on SRV.12 and it brought up a bunch of links
that have nothing to do with Tomcat  config of SSL.

I probably posted a lame request. Let me try again.

I have purchased a certificate via Verisign, and I have installed the
certificate into a keystore. I am running Windows XP and Tomcat 5.5.12.
I put the keystore and Cert.cer in the Tomcat/bin directory for organiation.
I read that the default is usually in the home directory where tomcat is
installed on Unix. But that is another OS.

I followed the docs here under Tomcat 5 SSL and ran across this:
http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html


The final step is to configure your secure socket in the
$CATALINA_HOME/conf/server.xml file, where $CATALINA_HOME represents the
directory into which you installed Tomcat 5. An example  element
for an SSL connector is included in the default server.xml file installed
with Tomcat. It will look something like this:


 <-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->






Anyway I uncommented this snippet from my Tomcat server.xml file and
restarted. But I cannot hit https://localhost:8443 like the read-me states.

I have checked all $TOMCAT_HOME/logs and see nothing. It just hangs when
trying to call it. I can hit http://localhost and all is happy. But the
certificate states it is coming from a certain URL. So I am not sure how
that all works.


I hope this may help someone feed me back some relevant information.

Scott


- Original Message -
From: "Hassan Schroeder" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, November 29, 2005 9:37 PM
Subject: Re: SSL Certificate Beginner Question


> Scott Purcell wrote:
>
> > How do I configure some of my pages to use https? I do not know
> > where to begin on this?
>
> Begin with the Servlet Spec. -- SRV.12 (Security) would be apropos :-)
>
> HTH!
> --
> Hassan Schroeder - [EMAIL PROTECTED]
> Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
>
>   dream.  code.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


SSL Certificate Beginner Question

2005-11-29 Thread Scott Purcell
Hello,

I am running Tomcat Standalone on a XP system. Anyway, I have finished up with 
Verisign, and I my certificate installed and ready to go  but now the real 
quesiton.

How do I configure some of my pages to use https? I do not know where to begin 
on this? Anyone able to assist?

Thanks



Re: confusion of tomcat downloading

2005-11-29 Thread Scott Purcell
What OS are you wanting to install Tomcat on?
And did you want to just run Tomcat Standalone, or put it inside Apache?


- Original Message - 
From: "blueberry lake" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, November 29, 2005 7:47 PM
Subject: confusion of tomcat downloading


On page http://tomcat.apache.org/download-55.cgi, there are several choices
for tomcat 5.x, like core, deployer, embedded, admin web application, etc.,
can anyone explain berifly what their difference are?
Thanks.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: admin module for Tomcat 5

2005-11-23 Thread Scott Purcell
XP

Scott K Purcell | Developer | VERTIS |
555 Washington Ave. 4th Floor | St. Louis, MO 63101 |
314.588.0720 Ext:1320 | [EMAIL PROTECTED] | http://www.vertisinc.com

Vertis is the premier provider of targeted advertising, media, and 
marketing services that drive consumers to marketers more effectively. 
 


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 23, 2005 9:09 AM
To: Tomcat Users List
Subject: Re: admin module for Tomcat 5


What operating system are you using?
> 
> From: "Scott Purcell" <[EMAIL PROTECTED]>
> Date: 2005/11/23 Wed AM 09:17:01 EST
> To: 
> Subject: admin module for Tomcat 5
> 
> Hello,
> I am running Tomcat 5, and I have been having troubles configuring a web-app  
> in a virtual environment. Anyway, I see there is an admin module, and I 
> believe it may assist in this.
> 
> I downloaded the admin module for Tomcat 5, but do not know where or how to 
> install it. I tried unzipping it under webapps/ROOT but that did not do the 
> trick. I googled for info, but it appears to be slim.
> 
> Anyone?
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



admin module for Tomcat 5

2005-11-23 Thread Scott Purcell
Hello,
I am running Tomcat 5, and I have been having troubles configuring a web-app  
in a virtual environment. Anyway, I see there is an admin module, and I believe 
it may assist in this.

I downloaded the admin module for Tomcat 5, but do not know where or how to 
install it. I tried unzipping it under webapps/ROOT but that did not do the 
trick. I googled for info, but it appears to be slim.

Anyone?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



url to search mailing list

2005-11-22 Thread Scott Purcell
What is the url to search the mailing list?

Thanks,




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help Configuring Engine/Host/Context

2005-11-22 Thread Scott Purcell
I did that, but when I call my url, it goes to the url, and never picks up
the context? I was hoping I would call www.myurl.com and it would call
www.myurl.com/unique.

Why is that the appBase?




- Original Message -
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Monday, November 21, 2005 10:27 PM
Subject: RE: Help Configuring Engine/Host/Context


> From: Scott Purcell [mailto:[EMAIL PROTECTED]
> Subject: Help Configuring Engine/Host/Context
>
> I have one webapp that I need to configure to a DNS Entry.

You do not need an extra  entry; it's superfluous.  You do need to
name your default app ROOT (either in ROOT.war or in the ROOT directory
under webapps).  That's the simplest way to do what you appear to want.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Help Configuring Engine/Host/Context

2005-11-21 Thread Scott Purcell
Hello,

I am completely lost in trying to configure my Tomcat 5.5. I have read the docs 
under "Context", "Engine", "Host", and am having trouble putting the 
information to use.

I have one webapp that I need to configure to a DNS Entry.

Below is my server.xml. My DNS is www.theuniquepear.com and it lives under 
webapps/unique. But with the below configuration, and when I try and hit the 
url it goes here:
http://www.theuniquepear.com/ and does not go to the context of "unique"?

Can anyone assist me here?

Thanks





  


  

  






  
  



  

  
  

  




  





RE: Re site problems, here is server.xml

2005-11-21 Thread Scott Purcell
I do not understand your comments. Could you give me a link to what part of the 
docs you are referring to?


-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
Sent: Monday, November 21, 2005 11:00 AM
To: Tomcat Users List
Subject: Re: Re site problems, here is server.xml


Scott Purcell wrote:

> 
> 
>   unpackWARs="true" autoDeploy="true"
>xmlValidation="false" xmlNamespaceAware="false">
> 
> 
>   
> 

So, what's the issue? You have a defaultHost in your Engine element
that doesn't exist; add a Host element for it.

Note: it's no longer recommended to put your Context elements in
server.xml -- see the docs for alternatives.

-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re site problems, here is server.xml

2005-11-21 Thread Scott Purcell
Here is the actual server.xml file:

Server port="8005" shutdown="SHUTDOWN">

  
  












  



  




  






-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
Sent: Monday, November 21, 2005 10:43 AM
To: Tomcat Users List
Subject: Re: Tomcat 5.5 configure site to web problems


Scott Purcell wrote:

> But after that, I am having more problems. Each time a user goes 
> to the site, they get two JSESSIONIDS, and have to click on the
> first buttons two times?

Uh, right. "first buttons"? Sorry, crystal ball doesn't work this
early on Mondays...

> with the entry in the server.xml, I cannot create another site on
> the box and call it with "localhost" or "127.0.0.1" Anyway to get
> around this.

Again, no idea what you mean by the above; it's perfectly possible
to have multiple hosts defined in server.xml, as the doc indicates.

Perhaps if you posted your actual server.xml file (with, *please*,
all the irrelevant comment sections removed!) someone could help...

-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5 configure site to web problems

2005-11-21 Thread Scott Purcell
Hello,
I am having some real problems with configuring my site to the internet.

I created a site on my PC, using Tomcat 5.5, and throughout development/testing 
I would call the site like so:
http://localhost/mySite
and all was good.

I purchased a DNS name from Register.com and configured my Tomcat 5.5 like so:

This is my server.xml file:



It took a while to get this to work, playing with appBase and docBase, but this 
did get the site to display.

But after that, I am having more problems. Each time a user goes to the site, 
they get two JSESSIONIDS, and have to click on the first buttons two times?

Falling back to my localhost, I did not see these problems. Over the weekend, I 
figured it was time to see what may cause this. Eveidently I screwed something 
up in the configuration and could use a hand. Also, with the entry in the 
server.xml, I cannot create another site on the box and call it with 
"localhost" or "127.0.0.1" Anyway to get around this. I want to create a 
devMySite for bugs and new development, but that is even giving me a fit.

I would certainly appreciate any help with these issues.

Sincerely
Scott


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]