Re: WebLuke - include Jetty in Lucene binary distribution?

2008-04-25 Thread Mathieu Lecarme

markharw00d a écrit :




Any word on getting this committed as a contrib?
Not really changed the code since the message below. I can commit 
pretty much the contents of the zip file below any time you want.
Do folks still feel comfortable with the bloat this adds to the 
Lucene source distro? The gwt-dev-windows.jar contains the 
Java2Javascript compiler necessary for building and alone accounts for 
10 mb. Including Jetty adds another ~6 mb on top of that.


OK with this?


Why don't use ivy or maven for that?

M.


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



Re: WebLuke - include Jetty in Lucene binary distribution?

2008-04-25 Thread mark harwood
Why don't use ivy or maven for that?
That would resurrect the Ant vs Maven debate around build systems. Not having 
used Maven I don't feel qualified to comment.

Stefan, the Winstone server appears to be LGPL not Apache which also adds some 
complexity. The GWT compiler is the main cause of the bloat here.

Cheers
Mark

- Original Message 
From: Mathieu Lecarme [EMAIL PROTECTED]
To: java-dev@lucene.apache.org
Sent: Friday, 25 April, 2008 9:44:54 AM
Subject: Re: WebLuke - include Jetty in Lucene binary distribution?

markharw00d a écrit :


 Any word on getting this committed as a contrib?
 Not really changed the code since the message below. I can commit 
 pretty much the contents of the zip file below any time you want.
 Do folks still feel comfortable with the bloat this adds to the 
 Lucene source distro? The gwt-dev-windows.jar contains the 
 Java2Javascript compiler necessary for building and alone accounts for 
 10 mb. Including Jetty adds another ~6 mb on top of that.

 OK with this?

Why don't use ivy or maven for that?

M.


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


  __
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html

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



[jira] Created: (LUCENE-1273) based on hasmap value the selected items has to come

2008-04-25 Thread supriya (JIRA)
based on hasmap value the selected  items has to come
-

 Key: LUCENE-1273
 URL: https://issues.apache.org/jira/browse/LUCENE-1273
 Project: Lucene - Java
  Issue Type: Bug
Affects Versions: 2.1
 Environment: WindowsXp , java1.4 , ibatis2.1
Reporter: supriya


Hi to all  . i am new  to this forum

i am implementing ibatis in struts project in that i have to select some fields 
from database for that i am written code in struts with out using ibatis 


the code is 





public BooksActionForm retriveBookDetails(BooksActionForm form1) {
 
DBUtils dbutils = new DBUtils();
 
BooksActionForm newForm = new BooksActionForm();
// BooksActionForm newForm = new BooksActionForm ();
Connection con = null;
PreparedStatement prpStmt = null;
ResultSet rs = null;
 
try {
 
System.out.println(sorry);
 
int i = form1.getPrimaryKey();

String sqlQuery = SELECT 
bookname,author,available,publisher,category FROM insertadminbook where 
bookid=?  ;
 
System.out.println(the value of primary + 
form1.getPrimaryKey());
con = dbutils.create();
prpStmt = con.prepareStatement(sqlQuery);

prpStmt.setInt(1, form1.getPrimaryKey());

rs = prpStmt.executeQuery();
 


if (rs.next()) {
 

newForm.setBookname(rs.getString(1));
newForm.setAuthorname(rs.getString(2));
newForm.setAvailablebooks(rs.getString(3));
newForm.setPublisher(rs.getString(4));
newForm.setCategory(rs.getString(5));
 
// System.out.println(+rs.getString(1));
System.out.println(bookdao + rs.getString(1));
System.out.println(bookdao + rs.getString(2));
System.out.println(bookdao + rs.getString(3));
System.out.println(bookdao + rs.getString(4));
System.out.println(bookdao + rs.getString(5));
System.out.println(sorry6);
 
}
 
} catch (SQLException e) {
System.err
.println(SQL Exception occured while 
accessing the table);
e.printStackTrace();
 
}
return newForm;
 
}




this is worked after implement the ibatis the code is



public IbatisBooksForm retriveBookDetails(IbatisBooksForm form1) {


//IbatisLoginForm  form = new IbatisLoginForm();

//Object  bookvalue = new  IbatisBooksForm(primarykey);

IbatisBooksForm  form2 =new IbatisBooksForm();

try{
   int bookidvalue =form1.getPrimaryKey();
   
   
   IbatisBooksForm form3 = new IbatisBooksForm();
   form3.setPrimaryKey(bookidvalue);
   System.out.println(the book id value+bookidvalue);
  sqlMap.queryForObject(getAllBookDetails,bookidvalue);

String bookname=form1.getBookname();
String authorname=  form1.getAuthorname();
   String availablebooks=   form1.getAvailablebooks();
String publisher=form1.getPublisher();
String category=form1.getCategory();

//  IbatisBooksForm  form2 =new IbatisBooksForm();

form2.setBookname(bookname);
form2.setAuthorname(authorname);
form2.setAvailablebooks(availablebooks);
form2.setPublisher(publisher);
form2.setCategory(category);

}

catch(Exception e)
{
System.out.println(the exception is+e.getMessage());
}

return form2;

}



in this i am written ibatis sql query gfor selecting some fields based on 
bookid in sqlMap like this



select id=getAllBookDetails resultClass=booksform
cacheModel=categoryCache
select 
 
BOOKNAME as   bookname
 
AUTHORNAMEas  authorname
 

[jira] Closed: (LUCENE-1273) based on hasmap value the selected items has to come

2008-04-25 Thread Steven Rowe (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-1273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steven Rowe closed LUCENE-1273.
---

   Resolution: Invalid
Lucene Fields:   (was: [New])

This issue has nothing to do with Lucene.  supriya, you should try to locate 
the correct project with which to file this issue.

 based on hasmap value the selected  items has to come
 -

 Key: LUCENE-1273
 URL: https://issues.apache.org/jira/browse/LUCENE-1273
 Project: Lucene - Java
  Issue Type: Bug
Affects Versions: 2.1
 Environment: WindowsXp , java1.4 , ibatis2.1
Reporter: supriya
   Original Estimate: 0.02h
  Remaining Estimate: 0.02h

 Hi to all  . i am new  to this forum
 i am implementing ibatis in struts project in that i have to select some 
 fields from database for that i am written code in struts with out using 
 ibatis 
 the code is 
 public BooksActionForm retriveBookDetails(BooksActionForm form1) {
  
   DBUtils dbutils = new DBUtils();
  
   BooksActionForm newForm = new BooksActionForm();
   // BooksActionForm newForm = new BooksActionForm ();
   Connection con = null;
   PreparedStatement prpStmt = null;
   ResultSet rs = null;
  
   try {
  
   System.out.println(sorry);
  
   int i = form1.getPrimaryKey();
   
   String sqlQuery = SELECT 
 bookname,author,available,publisher,category FROM insertadminbook where 
 bookid=?  ;
  
   System.out.println(the value of primary + 
 form1.getPrimaryKey());
   con = dbutils.create();
   prpStmt = con.prepareStatement(sqlQuery);
   
   prpStmt.setInt(1, form1.getPrimaryKey());
   
   rs = prpStmt.executeQuery();
  
   
   
   if (rs.next()) {
  
   
   newForm.setBookname(rs.getString(1));
   newForm.setAuthorname(rs.getString(2));
   newForm.setAvailablebooks(rs.getString(3));
   newForm.setPublisher(rs.getString(4));
   newForm.setCategory(rs.getString(5));
  
   // System.out.println(+rs.getString(1));
   System.out.println(bookdao + rs.getString(1));
   System.out.println(bookdao + rs.getString(2));
   System.out.println(bookdao + rs.getString(3));
   System.out.println(bookdao + rs.getString(4));
   System.out.println(bookdao + rs.getString(5));
   System.out.println(sorry6);
  
   }
  
   } catch (SQLException e) {
   System.err
   .println(SQL Exception occured while 
 accessing the table);
   e.printStackTrace();
  
   }
   return newForm;
  
   }
 this is worked after implement the ibatis the code is
 public IbatisBooksForm retriveBookDetails(IbatisBooksForm form1) {
   
   
   //IbatisLoginForm  form = new IbatisLoginForm();
   
   //Object  bookvalue = new  IbatisBooksForm(primarykey);
   
   IbatisBooksForm  form2 =new IbatisBooksForm();
   
   try{
  int bookidvalue =form1.getPrimaryKey();
  
  
  IbatisBooksForm form3 = new IbatisBooksForm();
  form3.setPrimaryKey(bookidvalue);
  System.out.println(the book id value+bookidvalue);
 sqlMap.queryForObject(getAllBookDetails,bookidvalue);
   
   String bookname=form1.getBookname();
 String authorname=form1.getAuthorname();
String availablebooks= form1.getAvailablebooks();
   String publisher=form1.getPublisher();
   String category=form1.getCategory();
   
   //  IbatisBooksForm  form2 =new IbatisBooksForm();
   
   form2.setBookname(bookname);
   form2.setAuthorname(authorname);
   form2.setAvailablebooks(availablebooks);
   form2.setPublisher(publisher);
   form2.setCategory(category);
   
   }
   
   catch(Exception e)
   {
   System.out.println(the exception 

Re: WebLuke - include Jetty in Lucene binary distribution?

2008-04-25 Thread Stefan Trcek
On Friday 25 April 2008 15:36:40 mark harwood wrote:

 Stefan, the Winstone server appears to be LGPL not Apache which also
 adds some complexity.

Currently also CDDL. The author was not aware to cause some licence 
problems by GPL and thereafter offered the CDDL (from a mailing list 
discussion). There may be some chance to obtain an Apache licence if 
CDDL is not satisfying for the Lucene project. But - of course - your 
choice.

Stefan


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



Re: WebLuke - include Jetty in Lucene binary distribution?

2008-04-25 Thread Grant Ingersoll


On Apr 25, 2008, at 9:36 AM, mark harwood wrote:


Why don't use ivy or maven for that?
That would resurrect the Ant vs Maven debate around build systems.  
Not having used Maven I don't feel qualified to comment.


Stefan, the Winstone server appears to be LGPL not Apache which also  
adds some complexity. The GWT compiler is the main cause of the  
bloat here.


Can the build download the GWT compiler, as we do with many other  
things?  I think including Jetty is fine.  In fact, it would be great  
if we could do like Solr for our demo and have it startup in Jetty...   
but that is another day.


-Grant

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