Configuring database connection pool with Jetty in QuickStart

2008-03-14 Thread Kevin Murphy
I'm having difficulty adding database functionality to my Wicket 
QuickStart app by configuring a JNDI data source in Jetty.


I've added jetty-naming, jetty-plus, mysql-connector-java, and 
commons-dbcp to the POM.


I have this in WEB-INF/web.xml:

   
   My DataSource Reference
   jdbc/MySqlPool
   javax.sql.DataSource
   Container
   

and this in WEB-INF/jetty-env.xml:

   
   jdbc/MySqlPool
   
   
   com.mysql.jdbc.Driver
   jdbc:mysql://localhost/mysql
   joe
   cool
   
   
   


I'm now stymied by the following error when my application runs 
'(DataSource) ic.lookup("java:comp/env/jdbc/MySqlPool")':


javax.naming.NameNotFoundException; remaining name 'env/jdbc/MySqlPool'

Thanks for any quick tips.

-Kevin


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



Re: IntelliJ WicketForge issue: NPE when trying to use "New Wicket Page" to create both Java and markup

2008-03-13 Thread Kevin Murphy

Kurt R. Hoehn wrote:

That can happen if the html directory is different then the source
directory and the html directory has not been created yet. 

  
I'm a Wicket and IDEA newbie working with the Wicket QuickStart 
structure.  I don't even know how to make the HTML and component 
directories different ;-)


-Kevin


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



IntelliJ WicketForge issue: NPE when trying to use "New Wicket Page" to create both Java and markup

2008-03-11 Thread Kevin Murphy
This is not a high-priority issue, but it seems that it should be pretty 
trivial for the maintainer to fix.


What steps will reproduce the problem?

1. Add "New Wicket Page" to Project View Popup Menu via Customizations
2. Right-click on a folder containing Wicket source files, and choose
New/New Wicket Page
3. Check "Create associated markup file"
4. Click OK
5. NPE error

What is the expected output? What do you see instead?

The Java file is created.  The HTML file is not.

What version of the product are you using? On what operating system?

WicketForge 0.3.1 with IntelliJ IDEA 7.0.3


Regards,
Kevin


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



Re: Outdated Javadoc referenced on wicket.apache.org

2008-02-26 Thread Kevin Murphy

Igor Vaynberg wrote:

and now its assigned...most of the core team is away on holiday...

  
On the same theme of "Wicket web presence needs some work", I just 
created jira ticket 1375: "wicket.sourceforge.net/wicket-quickstart is 
totally obsolete and too easily found in search engines".


"The whole http://wicket.sourceforge.net/wicket-quickstart/ tree makes 
Wicket look like a dead or dying project. If it hasn't been updated 
since 2006, I assume it should just be replaced with redirects to the 
current Quick Start page on the main Wicket site 
(http://wicket.apache.org/quickstart.html) "


-Kevin




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



Re: Outdated Javadoc referenced on wicket.apache.org

2008-02-26 Thread Kevin Murphy

Igor Vaynberg wrote:

please add a jira issue

  
It's already in there (WICKET-1333 
<https://issues.apache.org/jira/browse/WICKET-1333>).  It has been an 
unassigned issue in Jira from Feb 10, 2008.


-Kevin Murphy


-igor


On Tue, Feb 26, 2008 at 2:53 AM, Jay Hogan <[EMAIL PROTECTED]> wrote:
  

Any chance someone can updated the javadoc referenced on the Wicket
 homepage? It is currently showing a 1.3.0 snapshot.


 Cheers,
 Jay






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



Re: newbie Quick Start question

2008-02-26 Thread Kevin Murphy

James Carman wrote:

Are you using the Start class?  Are you sure you're running in Debug
mode?  Also, do you hit Ctrl-F9 (make)?  It should pick up the changes
if you do that.

On 2/25/08, Kevin Murphy <[EMAIL PROTECTED]> wrote:
  

What's the most automatic way to get Jetty to pick up changes to the
 application in development mode, using IntelliJ IDEA?



Thanks, James. The changed classes are properly reloaded if I invoke my 
Configuration via Run/Debug instead of via Run/Run.  Now I can merely 
make a change in the HTML and hit Ctrl-F9 (no explicit save is 
required), then refresh the web browser.  To get a more seamless 
experience, I also checked the checkbox in the Ctrl-F9 dialog to 
automatically reload changed classes without asking, and I checked 
File/Setting/Compiler/Compile in Background.  Just for posterity, I'm 
using IDEA 7.0.


-Kevin



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



newbie Quick Start question

2008-02-25 Thread Kevin Murphy
What's the most automatic way to get Jetty to pick up changes to the 
application in development mode, using IntelliJ IDEA?


I'm following the quick start instructions on 
http://wicket.apache.org/quickstart.html (which, btw, is in conflict 
with the more easily googlable 
http://wicket.sourceforge.net/wicket-quickstart/index.html).  Currently 
I have to restart the application to see changes.


I'm a rank newbie when it comes to Java IDE's, btw. My web Java 
experience consists of developing a couple of web apps using JSP and 
Tomcat. Emacs + gmake was my IDE, so you can see where I'm starting from ;-)


Thanks,
Kevin



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