Dear users;


Now, I try to learn log4j to see the log file in order to find what happened in 
the Fuseki server.



I learned that I need to modify the log4j.properties file.

======

log4j.rootLogger=INFO, stdlog

## log4j.rootLogger=INFO, FusekiFileLog



log4j.appender.stdlog=org.apache.log4j.ConsoleAppender

log4j.appender.stdlog.target=System.err

log4j.appender.stdlog.layout=org.apache.log4j.PatternLayout

log4j.appender.stdlog.layout.ConversionPattern=%d{HH:mm:ss} %-5p %-20c{1} :: 
%m%n



## # Example for file logging.

log4j.appender.FusekiFileLog=org.apache.log4j.DailyRollingFileAppender

log4j.appender.FusekiFileLog.DatePattern='.'yyyy-MM-dd

log4j.appender.FusekiFileLog.File=fuseki-log

log4j.appender.FusekiFileLog.layout=org.apache.log4j.PatternLayout

log4j.appender.FusekiFileLog.layout.ConversionPattern=%d{HH:mm:ss} %-5p 
%-20c{1} :: %m%n

==========

I uncommented the line in Red above. I guess that all log files would be 
related to Apache server: So, I ran the Apache server -->

http://50.63.174.75/ . It seems to work. I am not sure it is a right approach 
to do it though. Do I need to run log4j.properties using log4j.jar command?



Then, I have stuck, since I don't know where I can see the actual log files.

I am pretty familiar with Tomcat server. Normally, the Tomcat server has a 
folder called "logs". But, I am not familiar with log4j in Fuseki.

I know that it is not right place to ask the log4j questions. : (



Sorry for that.



Best,

Soonho











-----Original Message-----
From: Kim, Soonho (IFPRI) [mailto:[email protected]]
Sent: Thursday, November 01, 2012 4:36 PM
To: [email protected]
Subject: RE: Fuseki server installation



Dear Andy;







I successfully kill the existing application. Then, I restarted it using the 
following command:



==========



[root@ip-50-63-174-75 jena]# java -Xmx1200M -jar fuseki-server.jar --update 
--mem /ds



13:24:35 INFO  Server               :: Dataset: in-memory



13:24:36 INFO  Server               :: Dataset path = /ds



13:24:36 INFO  Server               :: Fuseki 0.2.5 2012-10-20T17:03:29+0100



13:24:36 INFO  Server               :: Started 2012/11/01 13:24:36 GMT-07:00 on 
port 3030



===========



Then, I try to open the URL --> http://50.63.174.75:3030/







I didn't get any error message,, it keep retrieving.







> that is the fuseki log file (using log4j you can send it to a file)



I would like to see any error message from this. But, I can not figure out how 
I can see it.



I saw a file including "log4j". But, I don't know how to use it.







Could you kindly explain more on how to generate/see the log file?







Thanks so much! I am desperately looking for your help....







Best,



Soonho











-----Original Message-----

From: Kim, Soonho (IFPRI) 
[mailto:[email protected]]<mailto:[mailto:[email protected]]>

Sent: Thursday, November 01, 2012 4:20 PM

To: [email protected]<mailto:[email protected]>

Subject: RE: Fuseki server installation







Dear Andy;







I will try to kill.. :  )







Best,



Soonho







-----Original Message-----



From: Andy Seaborne 
[mailto:[email protected]]<mailto:[mailto:[email protected]]><mailto:[mailto:[email protected]]>
 On Behalf Of Andy Seaborne



Sent: Thursday, November 01, 2012 4:11 PM



To: 
[email protected]<mailto:[email protected]<mailto:[email protected]%3cmailto:[email protected]>>



Subject: Re: Fuseki server installation







On 01/11/12 18:59, Kim, Soonho (IFPRI) wrote:



> Dear Rob;



>



> Thanks so much for your quick answer.



>



>> The easiest way to set up a TDB dataset is actually to start up



>> Fuseki with a path to an empty directory and using the --update



>> option to enable updates



> I found some document to start up Fuseki with empoty dataset  from



> http://jena.apache.org/documentation/serving_data/index.html



>



> ========



> Fuseki Server starting with an empty dataset



>



> fuseki-server --update --mem /ds



>



>   runs the server on port 3030 with an in-memory dataset. It can be accessed 
> via the appropriate protocol at the following URLs:



>   *SPARQL query: http://localhost:3030/ds/query



>   *SPARQL update: http://localhost:3030/ds/update



>   *SPARQL HTTP update: http://localhost:3030/ds/data ========



>



> So I tried to run the server again using the above command.



> =============



>



> [root@ip-50-63-174-75 jena]# java -Xmx1200M -jar fuseki-server.jar --update 
> --mem /ds



> 11:53:55 INFO  Server               :: Dataset: in-memory



> 11:53:56 INFO  Server               :: Dataset path = /ds



> 11:53:56 INFO  Server               :: Fuseki 0.2.5 2012-10-20T17:03:29+0100



> 11:53:56 INFO  Server               :: Started 2012/11/01 11:53:56 GMT-07:00 
> on port 3030



> 11:53:56 ERROR Server               :: SPARQLServer: Failed to start server: 
> Address already in use



> [root@ip-50-63-174-75 jena]# ^C







It has already exited by this point - control-C is going to the command line.







> ===============



>



> I got the error message saying " Failed to start server: Address already in 
> use".



> I tried shut it down using "control+c", but it seems not to work.



>



> Do you have any idea of how to fix this problem?



> Thanks so much for your answer.







There is another copy running already.  Find it and kill it.







Only one process can manage a port at a time.







                Andy







>



>



>



> Best,



> Soonho



>



>



>



>



>



> -----Original Message-----



> From: Rob Vesse 
> [mailto:[email protected]]<mailto:[mailto:[email protected]]><mailto:[mailto:[email protected]]>



> Sent: Thursday, November 01, 2012 2:41 PM



> To: 
> [email protected]<mailto:[email protected]<mailto:[email protected]%3cmailto:[email protected]>>



> Subject: Re: Fuseki server installation



>



> TDB is a native RDF database not a flat file format so you cannot simply 
> rename an existing RDF file to create a TDB dataset.



>



> Please see the documentation for TDB



> (http://jena.apache.org/documentation/tdb/) to learn how to create a TDB 
> dataset.



>



> The dataset location in your configuration file should be a path to



> directory where your TDB database has been created (or where it should



> be created).  The easiest way to set up a TDB dataset is actually to



> start up Fuseki with a path to an empty directory and using the



> --update option to enable updates.  Then go to the Control Panel in



> the Fuseki web interface and use the Upload File functionality to



> import the file into your dataset.  This will create a bunch of files



> in your directory, once created you can then take a copy of the



> directory (when Fuseki is not



> running) in order to back it up or move it around as desired.



>



> Hope this helps,



>



> Rob



>



>



> On 11/1/12 11:26 AM, "Kim, Soonho (IFPRI)" 
> <[email protected]<mailto:[email protected]<mailto:[email protected]%3cmailto:[email protected]>>>
>  wrote:



>



>> Dear Andy;



>>



>>



>>



>> Thanks for your answers and pointing the mailing list archives as well.



>>



>>



>>



>>> What's "ghi.tdb"?



>>



>> My dataset was stored in the flat file -->



>> http://data.ifpri.org/lod/ghi.rdf



>>



>> I have read that Fuseki uses the TDB. So, I created a TDB (ghi.tdb)



>> file from the ghi.rdf file using the TopBraid Composer and put it



>> into under the "dataDir" directory.



>>



>>



>>



>> I am using Jena to retrieve the data from ghi.rdf, but I am a kind of



>> new on the TDB.



>>



>> What kind of files should I have to put under "dataDir" directory?



>>



>> Is the .tdb file not the right format?



>>



>>



>>



>>> It's not clear what you are doing.  What operation did you perform?



>>



>> Visit a URL?  Which?



>>



>>



>>



>> That's a good question. What I would like to do is that I would like



>> to see the Fuseki main screen, using my dataset "ghi.tdb". That's why



>> I typed http://50.63.174.75:3030/.



>>



>>



>>



>>> What was the browser action?



>>



>> What did you get?



>>



>>



>>



>> I ran the Fuseki server again. The browser just keeps retrieving......



>> I didn't get any error message.



>>



>>



>>



>>> Did you copy the jar elsewhere  or are you running in the unpacked



>>> installation directory.



>>



>> I am running in the unpacked installation directory.



>>



>>



>>



>> I am so sorry for asking many questions. However, this email list is



>> the only channel which I will get answers.



>>



>>



>>



>> Thanks so much for your support in advance.



>>



>>



>>



>> Best,



>>



>> Soonho



>>



>>



>>



>> -----Original Message-----



>> From: Andy Seaborne



>> [mailto:[email protected]]<mailto:[mailto:[email protected]]><mailto:[mailto:[email protected]]><mailto:[mailto:andy.seaborne.



>> ap ach 
>> [email protected]<mailto:[email protected]<mailto:[email protected]%3cmailto:[email protected]>>]>
>>  On Behalf Of Andy Seaborne



>> Sent: Thursday, November 01, 2012 8:25 AM



>> To: 
>> [email protected]<mailto:[email protected]<mailto:[email protected]%3cmailto:[email protected]<mailto:[email protected]%3cmailto:[email protected]%3cmailto:[email protected]%3cmailto:[email protected]>>>



>> Subject: Re: Fuseki server installation



>>



>>



>>



>> On 31/10/12 21:30, Kim, Soonho (IFPRI) wrote:



>>



>>> Dear all;



>>



>>>



>>



>>> I would like to ask some favor about Fuseki server installation.



>>



>>>



>>



>>> I just tested an instance of Fuseki server -->



>>



>>> http://50.63.174.75:3030/ I created a data directory as subdirectory



>>



>>> "dataDir". I added "ghi.tdb" file into the directory.



>>



>>> Then, I ran the server



>>



>>



>>



>> see



>>



>> http://mail-archives.apache.org/mod_mbox/jena-users/201210.mbox/%3CCA



>> Am



>> nGJ



>> Pd0Vh48Ca9%3DA1eQ%2BWFBUahJXmcD%2By6ZoAUUPdmZ4OT7w%40mail.gmail.com%3



>> E



>>



>>



>>



>> which asked you about the setup.



>>



>>



>>



>>> ===



>>



>>> [root@ip-50-63-174-75 jena-fuseki-0.2.5]#  java -Xmx1200M -jar



>>



>>> fuseki-server.jar --loc=dataDir /ghi



>>



>>> 14:15:24 INFO  Server               :: TDB dataset: directory=dataDir



>>



>>> 14:15:24 INFO  Server               :: Dataset path = /ghi



>>



>>> 14:15:24 INFO  Server               :: Fuseki 0.2.5



>>> 2012-10-20T17:03:29+0100



>>



>>> 14:15:24 INFO  Server               :: Started 2012/10/25 14:15:24



>>



>>> GMT-07:00 on port 3030



>>



>>> ====



>>



>>>



>>



>>> Something was wrong since I didn't get the proper response from the



>>> server.



>>



>>



>>



>> What was the browser action?



>>



>> What did you get?



>>



>>



>>



>> http://...:3030/ is a simple plain HTML page from the pages/ directory.



>>



>>



>>



>> Did you copy the jar elsewhere  or are you running in the unpacked



>> installation directory.



>>



>>



>>



>> If you copy the jar, and you want the web pages, you need to



>>



>>



>>



>> Or use --pages on the command line to name another directory.



>>



>>



>>



>>>



>>



>>> Is there any log file to check what was wrong?



>>



>>



>>



>> that is the fuseki log file (using log4j you can send it to a file)



>>



>>



>>



>>



>>



>>



>>



>>>



>>



>>> If you find something is wrong, please let me know... It would be a



>>> great help to a newbie like me.



>>



>>>



>>



>>>



>>



>>>



>>



>>> Best,



>>



>>> Soonho



>>



>>>



>>



>>



>




Reply via email to