Re: Apache-like Deny/Allow directives

2005-07-15 Thread Justin Crabtree
[EMAIL PROTECTED] wrote:
 Is there any way, with Tomcat, to block connections from domains and allow 
 only certain ones, just like the Apache directive :
 
 Order Deny,Allow
 Deny from all
 Allow from .company.com
 
 I've setup my Apache server to do this, but since all the dynamic content is 
 relayed to tomcat (jsp's), it is still accessible to the internet.
 
 Luc Boudreau
 Université du Québec
 Canada


Is there a reason you can't use Apache directives on the areas you wish
to restrict?

-- 
Justin Crabtree
Java Programmer
Ozarks Technical Community College
447-7533

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



Re: Apache + Tomcat with Mod_jk

2005-07-08 Thread Justin Crabtree
Shailendra Gatade wrote:
 Hi All,
 
 I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using
 mod_jk. I'm facing several problems regarding this ...
 
 Initially i was using mod_jk2.so which is deprecated and also not recomended
 for Production Environment.
 
 I am not able to find the proper mod_jk.so for Apache.
 
   I downloaded ...
 
 jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-prefork.so
 and
 
 jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-worker.so
 
   Which file should i rename to mod_jk.so ?
 
   When i rename the first one and use it, i am getting the following
 error ...
  Cannot load /usr/local/apache2/lib/mod_jk.so into server:
 /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian.
 
  Can somebody point me to a location where i can find the proper
 mod_jk.so for my setup ?
 
 Also there is no extensive tutorial available on the same issue ... Is
 anyone aware of a tutorial which guides you step by step in configuring
 Apache 2 + Tomcat 5.0 using mod_jk.so ?
 
 Thanks in advance ...
 
 Shailendra
 


Try here.

http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/

And here for docs.

http://jakarta.apache.org/tomcat/connectors-doc/

-- 
Justin Crabtree
Java Programmer
Ozarks Technical Community College
447-7533

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



Re: choice of JVM

2005-03-16 Thread Justin Crabtree
Elihu Smails wrote:
J2EE is just the enterprise pack for Java. Think of it as an add on to
the JDK.  You need to get, or should get the JDK 1.5.
On Wed, 16 Mar 2005 17:43:12 +0100 (CET), Christoph Kukulies
[EMAIL PROTECTED] wrote:
I'm in the process of installing tomcat (5.0.28) under Windows (XP).
Installed apache 1.13.33 and ran tomcat installer.
At this point I was asked for a JVM to choose (with an empty
listbox).
So I downloaded j2eesdk-1_4_01_2005Q1 from java.sun.com and installed it.
Strange install, this Sun environment. Want me to run an application server.
Hell, Tomcat should be my application server. I chose, not to register an
application server.
Anyway, I'm still at a loss to choose a JVM. Where is my JVM?
The directory browser of the tomcat installer only allows me
to choose a directory, not a specific binary.
Help, please.
--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org

Depends on what package you downloaded.  Either way, Elihu is correct 
that the J2EE part doesn't have a JRE.  If you downloaded and installed 
the whole bundle, you should have the J2SE JDK installed somewhere.  If 
not, you need to download it and install it.  Should be installed under 
C:\Program Files\Java.  HTH.

--
Justin Crabtree
Java Programmer
Ozarks Technical Community College
447-7533

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


Re: Being lost in the mailing list

2005-03-08 Thread Justin Crabtree
Klaus-F. Kaal wrote:
Hi Doug,
sorry, that I had to shout out, but I can see that every specialist gets 
tons of eMails every day. And if he or she does not answer straight away 
to some mails, the others will be dumped in a bin and ... lost.
And nobody answered by mails since days...

Thanks for your reply.
I have aquired a dedicated server with Suse 9.1 preconfigured. It came 
with Apache 2.0.48, which is working well. I installed

- JDK 1.4
- Tomcat 5.0.28
- The latest binary package from mod_JK2
Apache and Tomcat are working well individually. The logs are showing, 
that Tomcat accepts mod_JK2 well and is prepared to communicate on port 
8009. It also creates the /conf/auto/mod_jk.conf, which I show later in 
this text. Apache is not showing anything in the log. It just states 
that it did not find the document in its normal public_html space, when 
I try to call a JSP page.  But, I havn't modified the log-level (by the 
way, where can I do that??).

There are soo many how-to's which are all doing different things. I 
tried to find the essence from several. I must say at this point: I hate 
to compile packages when I can use binaries. So, I did not follow 
how-to's which asked me to do that.

All other infos are given below.
Can you do something with this info? Thanks for any help or hint!
Klaus


- My previous questions

- Apache still seems to ignore my mod_jk.
_In my Tomcat log, I can see:_
INFO: JK2: ajp13 listening on /0.0.0.0:8009
06.03.2005 00:54:10 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=5/43  config=/usr/tomcat/conf/jk2.properties
_I included my automatically created mod_jk.conf into the httpd.conf:_
Include /usr/tomcat/conf/auto/mod_jk.conf
This mod_jk.conf looks like this:
IfModule !mod_jk.c
 LoadModule jk_module /usr/lib/apache2-prefork/mod_jk.so
/IfModule
JkWorkersFile /etc/apache2/workers2.properties
JkLogFile /usr/tomcat/logs/mod_jk.log
JkLogLevel emerg
_The workers2.properties is here:_
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
[uri:/jsp-examples/*]
worker=ajp13.localhost:8009
[uri:www.technologyserver.com/*.jsp]
worker=ajp13:localhost:8009

At first glance, I don't see any JkMount directives.  You have to 
explicitly define what should be passed to the mod_jk worker with a 
JkMount.

I would ask why you have chosen mod_jk2?  It is no longer being 
developed by Apache.  I would recommend using mod_jk.  There is an 
excellent tutorial on configuration for Apache on Apache's website.

http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html
--
Justin Crabtree
Java Programmer
Ozarks Technical Community College
447-7533

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


JNDI LDAP Resource

2005-03-08 Thread Justin Crabtree
I am trying to setup a JNDI Resource in my server.xml for a SSL 
connection to a LDAP server.  I have setup and used JDBC resources, but 
I have been unable to find any examples on setting up a LDAP connection.

Is this even possible?  If so, anyone have some good examples of how to 
set it up?  If not, any suggestions on how to get the connection stuff 
out of the Java code and into some sort of config file?

Thanks in advance for any help.
--
Justin Crabtree
Java Programmer
Ozarks Technical Community College
447-7533

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


Re: display my index.jsp as default

2005-03-03 Thread Justin Crabtree
bhupendra bendale wrote:
I have placed my directory under %catalina_home%/webapps/
now i want to configure tomcat to display my index.jsp
page by entering only http://localhost:8080/; what 
changes should i make.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

The following will set the default page to display for the web 
application.

welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list
As far as mapping the root to your app, you could put a redirect in the 
root index.jsp to the jsp page of your choice.  Not very elegant, but it 
would work.

--
Justin Crabtree
Java Programmer
Ozarks Technical Community College
447-7533

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


Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-01 Thread Justin Crabtree
Parsons Technical Services wrote:
Resource Link
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/globalresources.html
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html#Resource%20Links 

Doug
- Original Message - From: Darryl Wagoner 
[EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, March 01, 2005 5:09 PM
Subject: newbie having problems with MySQL JDBC/JNDI Datasource example


Greetings,
Not sure if this made it the first time.  I didn't see it show up on 
the list

I am trying to get the example in the MySQL JDBC/JNDI HOWTO to work 
and I am missing something.

I get this error:  My webapp directory is /DBTest.
What am I missing?
thanks
-darryl
--- Error Page ---
*type* Exception report
*message*
*description* _The server encountered an internal error () that 
prevented it from fulfilling this request._

*exception*
javax.servlet.ServletException: Unable to get connection, DataSource 
invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot 
create JDBC driver of class '' for connect URL 'null'
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:845) 

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:778) 

org.apache.jsp.testDB_jsp._jspService(org.apache.jsp.testDB_jsp:81)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325) 

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
*root cause*
javax.servlet.jsp.JspException: Unable to get connection, DataSource 
invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot 
create JDBC driver of class '' for connect URL 'null'
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:276) 

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:159) 

org.apache.jsp.testDB_jsp._jspx_meth_sql_query_0(org.apache.jsp.testDB_jsp:100) 

org.apache.jsp.testDB_jsp._jspService(org.apache.jsp.testDB_jsp:58)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325) 

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Sounds like it can't find the driver.  Do you have the Connector/J jar 
installed in the correct place?  Should be in common/lib.

--
Justin Crabtree
Java Programmer
Ozarks Technical Community College
447-7533

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


Recommendations for connector from Apache to Tomcat

2005-01-12 Thread Justin Crabtree
I am going to soon be attempting to setup an existing Apache web server 
on a Windows Server 2003 machine with a connnector to a new install of 
Tomcat.  Any recommendations on what connector to use?  Problems to 
watch out for?  Any good documentation on how to do this?  Here are my 
specs.

Windows Server 2003
Apache 2.0.50
Tomcat 5.5.4
Java 1.5.0 Update 1
I am a newbie so I need something relatively easy to setup.  Thanks.
--
Justin Crabtree
Java Programmer
Ozarks Technical Community College
447-7533

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


Re: [OT] Java developer friendly Linux distro

2004-12-21 Thread Justin Crabtree
Wade Chandler wrote:
Nat Gross wrote:
Antony Paul wrote:
Hi all,
  Which distro (free) is most friendly for Java development. I need
J2SE 1.4.2 to work on it plus Eclipse 3.x(Linux dont have a good text
editor in which I can run Ant builds).

I use JEDIT for quick simple editing of files, and Eclipse for the 
real stuff. A great combination. I would not advise using JEDIT 
instead of Eclipse but I don't want to start a war now.
Although I am currently using Fedora Core 2, I am looking to upgrade, 
and the folks in various Linux/Unix newsgroups are pushing me towards 
the new Solaris 10, free from Sun. (My main Eclipse work though, for 
now, is still on a WinXP machine.)
fwiw,
-nat

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

I have tried Solaris on intel over the past recent years, and I love 
Sun, but my gripe with Solaris on intel is lack of drivers.  Look at 
CentOS or White Box Linux (www.centos.org and www.whiteboxlinux.org 
respectfully) if you like Red Hat as they are free and use the Red Hat 
source SRPMs with only stripping out the RH branding, so they are 
Advanced and Enterprise RH for free using the same source code.  SuSE is 
also very good.  I am using 9.1 at the moment.  You can purchase SuSE9.2 
Professional for 90.00US and get like 7-8 cd's and a DVD with all kinds 
of nice applications.  I've been happy with all the ones I've mentioned. 
 I run Tomcat on all of them, I use Netbeans 4.0 without issue on all of 
them, and have been developing java on all of them for years.  SuSE has 
been using the 2.6 kernel since their 9.1 release.  I've been pleased 
with it.  I've got some friends who like the Debian based distros.  To 
install a VM on them download the non RPM version of the install.  
That's about it really.

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

I would say that the most friendly distro will be the one that you are 
comfortable with.  If you are using mainstream tools such as Eclipse, 
the support on most distros will at least be adequate if not friendly. 
The best advice is to try a couple and see what works.

--
Justin Crabtree
Java Programmer
Ozarks Technical Community College
447-7533

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


Re: Fedora Core 3

2004-12-01 Thread Justin Crabtree
Allistair Crossley wrote:
i have seen some 5.0.28 installations on fedora core 2 if that helps! if you do 
decide to upgrade to version 3 and get tomcat 5 working, *please* let this list 
know about it so it can be added to the list of supported platforms and help 
others.

-Original Message-
From: Matt Bathje [mailto:[EMAIL PROTECTED]
Sent: 01 December 2004 16:08
To: Tomcat Users List
Subject: Re: Fedora Core 3
I'm using tomcat 5.0 (I think 5.0.25 specifically right now) 
but I was 
more just wondering in general as I've seen no mention of FC3 yet.

If tomcat 5.0.x has problems in FC3 it wouldn't be a huge 
deal, because 
once I upgraded to the new OS I would have to retest the app 
anyway, so 
a Tomcat upgrade wouldn't cause any extra headache.


Matt

Elihu Smails wrote:
what version of tomcat?
--- Matt Bathje [EMAIL PROTECTED] wrote:

Hey all -
I searched around on mail-archive and google for a
bit and couldn't find 
anybody mentioning that they upgraded their Tomcat
machines to use 
Fedora Core 3 yet.

Has anybody done so? Any issues with Java or Tomcat
after the upgrade?
Thanks,
Matt


-

Try asking on the fedora mailing list.  They are usually pretty good 
about answering these type of questions.

http://www.redhat.com/mailman/listinfo/fedora-list
--
Justin Crabtree
Java Programmer
Ozarks Technical Community College
447-7533

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