Help with running Sigmaee on Localhost

10 views
Skip to first unread message

laurence.samuels

unread,
Feb 1, 2012, 8:30:06 AM2/1/12
to Sindice Developers
Friends,

I'm trying to run sigmaee on localhost and debug it to see where to
add/extend it. I can now
set things up on eclipse and tomcat (after several tries). When I run
it on localhost, and I click on "Tim Berners-Lee", my breakpoint gets
to ma.sig.servlet.SearchServlet (line 121): getServletContext() .

And, I get :
>
org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.json.JSONException: JSONObject["useOkkam"] not found.
....
<

in eclipse window.

And when I checked sigmaee.log, I got the following:

>
2012-01-30 21:49:55,575 [main] INFO m.s.r.JSEvaluator - Init
JSEvaluator with:
baseURI=http://localhost:8080/sigmaee/
useYBoss=null
useOkkam=null
2012-01-30 21:51:16,254 [http-8080-4] INFO m.s.s.SearchServlet -
==============================================
2012-01-30 21:51:22,246 [http-8080-4] INFO m.s.s.SearchServlet -
======= STARTING NEW SIGMA WITH q=Tim Berners Lee
2012-01-30 21:51:23,237 [http-8080-4] INFO m.s.s.SearchServlet -
==============================================
2012-01-30 21:51:37,630 [http-8080-4] INFO m.s.r.RecipeStoreBase -
getting connection using base method
<

Friends, notice the null values.

So, sigmaee is not working on my localhost, yet.

Friends, Do you know how I can solve this or work around it?

And, When it reached ma.sig.servlet.SearchServlet.doGet:

>
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {

Enumeration<String> parameterNames =
req.getParameterNames();
String parameterName ;
while (parameterNames.hasMoreElements()) {
parameterName = parameterNames.nextElement();
System.out.println(parameterName);
}

String query = req.getParameter("q");
if (query != null && !"".equals(query)) {
//HERE LOG THE QUERY

LOGGER.info("==============================================");
LOGGER.info("======= STARTING NEW SIGMA WITH q="+query);

LOGGER.info("==============================================");
try {
recipeStore.storeQuery(query);
} catch (SQLException e) {
LOGGER.error("Could not store query due to",e);
}
}

String format = req.getParameter("format");
....
<

I added Enumeration<String> parameterNames in order to see the
parameters. The only parameter I'm getting is "q", so it is giving me
null with the other parameter names.

I would like to be able to run Sigmaee on my localhost. I can't do
that yet.

Please, do advice on how to solve this problem.

Best

L

szydan

unread,
Feb 1, 2012, 10:54:55 AM2/1/12
to Sindice Developers
Hi Laurence

Please be patient ;-) I've got your email and will look into it asap

Cheers
Szymon


On Feb 1, 1:30 pm, "laurence.samuels"
Reply all
Reply to author
Forward
0 new messages