out of ideas on an error
I am attempting to set up a servlet which acts as and rmi client. I am getting an error which I don't understand. Are their additional securitys I have to set or something?? Here's the error Internal Servlet Error:java.lang.NullPointerException at java.lang.ClassLoader.resolveClass0(Native Method) at java.lang.ClassLoader.resolveClass(ClassLoader.java:588) at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:518) at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoader.java:174) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:265) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) at org.apache.tomcat.core.Handler.service(Handler.java:254) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484)
Re: perplexing multiple servlet output question..
include()?? Could you please elaborate a little more? I am unfamiliar with that. Thanks, Kevin - Original Message - From: "John Clark L. Naldoza" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 15, 2001 9:11 PM Subject: Re: perplexing multiple servlet output question.. > > Kevin Fonner wrote: > > > > I wanted a web page to display the results of mutiple servlets (maybe > > even as many as 30 servlets) in rows on a web page. At first I was > > going to try to do it with frames where each frame would load a > > servlet. I then ran into a problem. I forgot that frames bind to a > > window and that you can't scroll through a single page containing > > multiple frames (at least not that I know of). Anybody have any > > opinion on how they might try to do this? > > > > Example of a single Web page... > > > > ++ > > + servlet 1 + > > ++ > > + servlet 2 + > > ++ > > + servlet 3 + > > ++ > > +ect...+ > > ++ > > > > The user would then scroll through the page containing mutiple servlet > > output. > > > > Thanks, > > Kevin > > > Why not try to use the include() directive? And use table rows to > display the results...;-) > > Cheers, > > > John Clark > > -- > /) John Clark Naldoza y Lopez (\ > / )Software Design Engineer II ( \ > _( (__ Web-Application Development_) )_ > (((\ \> /_>Cable Modem Network Management System <_\( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) > \ / \ / >\_/ phone: (+63 32) 233-9142 loc. 3112\_/ >/ / cellphone: (+63 919) 399-4742 \ \ > / / email: [EMAIL PROTECTED]\ \ >
Re: perplexing multiple servlet output question..
Yep, I tried that to. Frameset tags don't seem to have scrolling property. - Original Message - From: "Jan Labanowski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Jan Labanowski" <[EMAIL PROTECTED]> Sent: Tuesday, May 15, 2001 7:53 PM Subject: Re: perplexing multiple servlet output question.. > Try to see if putting a frameset into a frame will help > Jan > > > On Tue, 15 May 2001, Kevin Fonner wrote: > > > I wanted a web page to display the results of mutiple servlets (maybe even as many as 30 servlets) in rows on a web page. At first I was going to try to do it with frames where each frame would load a servlet. I then ran into a problem. I forgot that frames bind to a window and that you can't scroll through a single page containing multiple frames (at least not that I know of). Anybody have any opinion on how they might try to do this? > > > > Example of a single Web page... > > > > ++ > > + servlet 1 + > > ++ > > + servlet 2 + > > ++ > > + servlet 3 + > > ++ > > +ect...+ > > ++ > > > > The user would then scroll through the page containing mutiple servlet output. > > > > Thanks, > > Kevin > > > > Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 > Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] > 1224 Kinnear Rd, |http://www.ccl.net/'NA'istry.html > Columbus, OH 43212-1163 |http://www.osc.edu/ >
perplexing multiple servlet output question..
I wanted a web page to display the results of mutiple servlets (maybe even as many as 30 servlets) in rows on a web page. At first I was going to try to do it with frames where each frame would load a servlet. I then ran into a problem. I forgot that frames bind to a window and that you can't scroll through a single page containing multiple frames (at least not that I know of). Anybody have any opinion on how they might try to do this? Example of a single Web page... ++ + servlet 1 + ++ + servlet 2 + ++ + servlet 3 + ++ + ect...+ ++ The user would then scroll through the page containing mutiple servlet output. Thanks, Kevin
perplexing multiple servlet output question..
I wanted a web page to display the results of mutiple servlets (maybe even as many as 30 servlets) in rows on a web page. At first I was going to try to do it with frames where each frame would load a servlet. I then ran into a problem. I forgot that frames bind to a window and that you can't scroll through a single page containing multiple frames (at least not that I know of). Anybody have any opinion on how they might try to do this? Example of a single Web page... ++ + servlet 1 + ++ + servlet 2 + ++ + servlet 3 + ++ + ect...+ ++ The user would then scroll through the page containing mutiple servlet output. Thanks, Kevin
Re: resultset Question
Duck, My apoligies. I have been spending the last couple weeks learning tomcat and servlet type stuff and have been asking about any confusing things I come across with this on this list. Even though I'm working on a servlet I suppose that question could have been better directed at a java database kind of list. Thanks for the tip, Kevin - Original Message - From: Duck-Jin Chun To: '[EMAIL PROTECTED]' Sent: Monday, May 14, 2001 5:54 PM Subject: RE: resultset Question Kevin, There are 2 problems with your message. First, this question is extremely off topic for this mailing list. Second, you do not say what kind of errors and/or results you get by executing your current code. You simply say you "can't seem to grab the data". Not very helpful. But since I hate it when people just scream "off topic"... Take a look at the api documentation for java.sql.ResultSet.next(). The next() method needs to be called before you start calling the get*() methods. -Duck -Original Message-From: Kevin Fonner [mailto:[EMAIL PROTECTED]]Sent: Monday, May 14, 2001 5:16 PMTo: [EMAIL PROTECTED]Subject: resultset Question I want to grab just the first record in a Query of my database. I thought that this would be pretty simple??? Acording to my books they said that after executing... resultSet = statement.executeQuery("SELECT * FROM userfolders WHERE username=\'" + userName + "\'"); That resultset would contain the first record. But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem. If anybody has any ideas I would appreciate them resultSet = statement.executeQuery("SELECT * FROM userfolders WHERE username=\'" + userName + "\'"); dFolder = resultSet.getString("folder"); dModule = resultSet.getString("dmod"); dModulePath = resultSet.getString("dmod_path"); Thanks, Kevin
resultset Question
I want to grab just the first record in a Query of my database. I thought that this would be pretty simple??? Acording to my books they said that after executing... resultSet = statement.executeQuery("SELECT * FROM userfolders WHERE username=\'" + userName + "\'"); That resultset would contain the first record. But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem. If anybody has any ideas I would appreciate them resultSet = statement.executeQuery("SELECT * FROM userfolders WHERE username=\'" + userName + "\'"); dFolder = resultSet.getString("folder"); dModule = resultSet.getString("dmod"); dModulePath = resultSet.getString("dmod_path"); Thanks, Kevin
Re: java database
Everyone thanks for the tips. InstDM looks pretty good. Under their license agreement it says... "The InstantDB binary releases are free for evaluation and development. Until InstantDB is Open Sourced please contact Lutris Technologies for full license details." Has anybody heard anything on if or when it is going to become open source? - Original Message - From: "Tim O'Neil" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 10, 2001 5:38 PM Subject: Re: java database > At 05:09 AM 5/11/2001 +0800, Noel E. Lecaros wrote: > >InstantDB. For more info, look at www.enhydra.org. > > InstDB is pretty cool, I played around with it > before the developer joined up with enhydra. > If I remember correctly its one (large, but not > too large) jar, you just drop it in your classpath > and you're good to go with sql-style persistence. >
java database
Do any good 100% pure java databases exist? Open Source java databases?
multiple servlet to 1 html page? Is it possible.
Would it be possible for Servlet X to begin spitting out html data and then make various calls to other servlets (such as Servlet A, B, and C) so what you would actually end up with is a single web page compiled by more then 1 servlet. Thanks in advance.. Kevin
another database question
I want to be able to pass the authentication from the web application to the database system. I know I can use the req.getRemoteUser( ) to grab the authenticated user. How can I grab the password. Or is their a better way to handle this?
Re: use index.class instead of index.html?
Thanks, for you help but I couldn't seem to get that to work. In case anybody is wondering I managed to accomplish this my putting somthing in my web apps web.xml HelloWorld *.html This intercepts the index.html file. I don't think I will need to have any static files in my app but if I did I could use .htm on them. I'm just an amature at this so I probably shouldn't be giving out advice. If anyone knows a better way(or the "proper" way) please don't hesitate to let me know. Thanks, Kevin - Original Message - From: Michael Zolotarev To: Kevin Fonner Cc: Xme (E-mail) Sent: Wednesday, May 09, 2001 2:47 AM Subject: RE: use index.class instead of index.html? I'm a bit confused myself now, but I'll try to explain what I think the Tomcat's logic is. In Server.xml you must've defined your Home directory, and a number of contexts. Tomcat processes all specified contexts and adds them to its list. Tomcat looks under your directory, and add all subdirectories and all files to the "automatic context load" list. If you start tomcat from the console window, you'll see it reports about it. First go the contexts you've specified explicitely, and then "automatic" contexts - whatever Tomcat found in your folder. When you type http://localhost:8080, Tomcat searches all automatic(!) contexts. It looks for any of the files defined in the . Whichever the first, the file is returned to the browser. Consequently, if you want to define your .class to be executed by default, you must modify the , and make sure that the .class can be found in one of the "automatic" contexts. I guess you need to make sure that your Web-inf becomes one of the automatic contexts, by placing it under your . Hope it helps. Would like you to let me know if I was right in my assumptions. M -Original Message-From: Kevin Fonner [mailto:[EMAIL PROTECTED]]Sent: Wednesday, 9 May 2001 13:52To: Michael ZolotarevSubject: Re: use index.class instead of index.html? I've looked at the welcome file list element and it seems to work for jsp's and html files but not servlets. I thought servlets had to go in the /web-inf/classes directory? I tried it anyways and put the class file in root and made the adjustment in the /conf/web.xml it didn't seem to work. Thanks, Kevin - Original Message - From: Michael Zolotarev To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, May 08, 2001 11:19 PM Subject: RE: use index.class instead of index.html? have a look at /conf/web.xml. Check our element. -Original Message-From: Kevin Fonner [mailto:[EMAIL PROTECTED]]Sent: Wednesday, 9 May 2001 13:14To: [EMAIL PROTECTED]Subject: Re: use index.class instead of index.html? just the tomcat server. - Original Message - From: Michael Zolotarev To: [EMAIL PROTECTED] Sent: Tuesday, May 08, 2001 11:10 PM Subject: RE: use index.class instead of index.html? Which server? -Original Message-From: Kevin Fonner [mailto:[EMAIL PROTECTED]]Sent: Wednesday, 9 May 2001 13:12To: [EMAIL PROTECTED]Subject: use index.class instead of index.html? How do I get the web server to start with a servlet instead of an html file?This footnote confirms that this email message has been swept byMIMEsweeper for the presence of computer viruses.-The information contained in this message is confidential and is intended for the addressee(s) only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Baltimore Technologies plc will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on.In addition, certain Marketing collateral may be added from time to time to promote Baltimore Technologies products, services, Global e-Security or appearance at trade shows and conferences.This footnote confirms that this email message has been swept by Baltimore MIMEsweeper for Content Security threats, includingcomputer viruses.
Re: win32 apache support Log to pipe??
I agree, this list is for questions and answers. Anything outside of that is just wasted typing. That's my 2 cents. I apoligize for the extra key stokes. - Original Message - From: "MacCormac Rinehart" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 08, 2001 6:04 PM Subject: RE: win32 apache support Log to pipe?? > I think the most annoying thing of all is poking fun as someone on a public > forum when all they want is a little guidance. Everyone here has the > beautify key on their keyboard called "delete", don't get annoyed at someone > who needs help. Just offer what you can or delete. And in case you haven't > noticed, this list is billed as the "support" list for Tomcat, going to it > when you have a problem and need help solving it seems reasonable to me, > regardless of how much money you get paid. > > - Mac > > -Original Message- > From: Tim O'Neil [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 08, 2001 2:49 PM > To: [EMAIL PROTECTED] > Subject: Re: win32 apache support Log to pipe?? > > > At 04:33 PM 5/8/2001 -0500, you wrote: > >Personally I find it very annoying that you post the same message over > >and over again, throwing in a "please help". It certainly does *not* > >make me want to help. > > It's even more of a problem for me when I > think, rightly or wrongly, I dunno, that > this person is probably being paid a salary > or a consultant's fee of perhaps $200 a day > or more to complete a task for his/her company > and must resort to a mail list to complete that > task. I think things like "I'm glad I'm not > involved" and sorry for that company and stuff > like that. >
Re: use index.class instead of index.html?
just the tomcat server. - Original Message - From: Michael Zolotarev To: [EMAIL PROTECTED] Sent: Tuesday, May 08, 2001 11:10 PM Subject: RE: use index.class instead of index.html? Which server? -Original Message-From: Kevin Fonner [mailto:[EMAIL PROTECTED]]Sent: Wednesday, 9 May 2001 13:12To: [EMAIL PROTECTED]Subject: use index.class instead of index.html? How do I get the web server to start with a servlet instead of an html file?This footnote confirms that this email message has been swept byMIMEsweeper for the presence of computer viruses.-The information contained in this message is confidential and is intended for the addressee(s) only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Baltimore Technologies plc will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on.In addition, certain Marketing collateral may be added from time to time to promote Baltimore Technologies products, services, Global e-Security or appearance at trade shows and conferences.This footnote confirms that this email message has been swept by Baltimore MIMEsweeper for Content Security threats, includingcomputer viruses.
use index.class instead of index.html?
How do I get the web server to start with a servlet instead of an html file?
JDBC Realm
So I have been experimenting with this JDBCRealm stuff and can't seem to make it ask me for a user name and password. in the server.xml is.. driverName="org.gjt.mm.mysql.Driver"connectionURL="jdbc:mysql://localhost/authority?user=authcheck;password=passcheck"userTable="Users" userNameCol="UserName" userCredCol="PassWord"userRoleTable="UserRoles" roleNameCol="RoleName" /> in the examples web.xml is... Protected Area /examples/servlets/* DELETE GET POST PUT tomcat role1 BASIC Example Basic Authentication Area Shouldn't all this require the server to ask me for a password before I can use any of my servlets or am I missing something here?
JDBCRealm
Of so I have been experimenting with this JDBCRealm stuff and can't seem to make it ask me for a user name and password. in the server.xml is.. driverName="org.gjt.mm.mysql.Driver"connectionURL="jdbc:mysql://localhost/authority?user=authcheck;password=passcheck"userTable="Users" userNameCol="UserName" userCredCol="PassWord"userRoleTable="UserRoles" roleNameCol="RoleName" /> in the examples web.xml is... Protected Area /examples/servlets/* DELETE GET POST PUT tomcat role1 BASIC Example Basic Authentication Area Shouldn't all this require the server to ask me for a password before I can use any of my servlets or am I missing something here?
Re: single login form for single sign on
I am new to servlets and Tomcat and I was looking at how to authenticate users with my webapps. Is this JDBCRealm the best way to do this or is there a better way anybody suggest. If so where can I get info and samples on this. Thanks in advance, Kevin - Original Message - From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 01, 2001 1:36 AM Subject: Re: single login form for single sign on > > > On Thu, 22 Mar 2001, Manish wrote: > > > Also can someone explain me when my authentication is successful using > > JDBCRealm , how do I get the role information, cause only two attributes > > are set for the session (username and password). Do I have to go back in > > the roles table to get the role info or they are stored in someway in > > the session. > > > > This answer is late, but I'm assuming "better late than never" ... > > If a user has been successfully authenticated, then you can access role > information in one of two ways: > > * You can define a security constraint that requires a certain role > before the request URI will be processed for this user. If the user > tries to access a prohibited page, they will receive a 501 error > ("forbidden"). > > * You can programmatically ask if the currently authenticated user > has a certain role by saying something like: > > if (request.isUserInRole("manager")) { > ... this user is a manager ... > } > > The JDBCRealm implementation takes care of reading the required > information from the roles table in the database for you. There is > nothing your application needs to worry about for this. > > > TIA > > > > -- > > Manish Poddar > > Paycom.net > > 310-827-5880 x 327 > > 818-415-7447 (m) > > > > > > Craig McClanahan > >
multi user calander application
I want to create a multi user calander application. I searched through the archives and found no real goo info on using acl's or user authentication. Just wanted to know if anyone had any tips on how to handle this?