From: Alan R. <ala...@mn...> - 2012-06-05 15:26:55
|
Hello, Access can also be controlled/stopped in the: deploy/jbossweb-tomcat.sar/server.xml file if you have not updated to the latest JBOSS server. If you have updated to the latest JBOSS server the configuration is in: deploy/jbossweb.sar/server.xml If you have a line like the following: <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="192.111.111.143,127.0.0.1"/> Only the IP addresses in the configuration are allowed. al On Tue, 2012-06-05 at 16:03 +0100, Ranju Upadhyay wrote: > Hi Vasek, > > It is very strange, because when our network admins try this from > their computers they are able to get the response but none of the > computers from our depetrment do!Feels like some kind of restriction > on the LAN we are in. > > Ranju. > > ----- Original Message ----- > From: Václav Rosecký <xro...@gm...> > Date: Tuesday, June 5, 2012 3:59 pm > Subject: Re: [VuFind-General] Aleph.ini in latest ILS driver > To: Ranju Upadhyay <Ran...@nu...> > Cc: wol...@fh..., vuf...@li... > > > Hi > > > > Did you check if access to port 1891 from your IP address is not > > blocked by firewall? > > > > Vasek > > > > 2012/6/5 Ranju Upadhyay <Ran...@nu...>: > > > Hi Kate and all, > > > > > > ExLibris did provide us some good help on this . I am going to > > paste the > > > reply ExLibris has given in case there are others wondering > > how to get their > > > Restful API working.However I myself have come up with a > > strange issue.After > > > all the configuration I do get response when I try this at the > > command> prompt: > > > > > > curl > > > "http://localhost:1891/rest- > > dlf/record/MAY01000000144/items/MAY50000000144000010"> . > > > > > > It also works when I try with our IP instead of > > localhost.However when I try > > > to do the http access via my browser I get "no connection" error! > > > > > > Here are the steps from Exlibris: > > > > > > 1) > > > made a small change in file > > > /exlibris/aleph/a20_1/ng/aleph/home/profile/global.properties: > > > > > > java.home=/exlibris/aleph/a19_1/product/local/java > > > to > > > java.home=/exlibris/aleph/a20_1/product/local/java > > > > > > 2) The files under alephe.orig are the original files as > > supplied by Ex > > > Libris and may be used as sample. These files are not > > functional. The > > > global.properties also needs to be placed (and modified if > > necessray under > > > $alephe_root/jboss_conf - this is > > /exlibris/aleph/u20_1/alephe/jboss_conf).> > > > So copied the file from > > > /exlibris/aleph/a20_1/ng/aleph/home/profile/global.properties > > to this > > > directory: > > > > > > cp global.properties $alephe_root/jboss_conf > > > > > > 3) Also in /exlibris/aleph/u20_1/alephe/jboss_conf a file > > main.properties> must exist - so it was created > > > > > > aleph@lb-srv-2qj(a20_1):~...alephe/jboss_conf>pwd > > > /exlibris/aleph/u20_1/alephe/jboss_conf > > > aleph@lb-srv-2qj(a20_1):~...alephe/jboss_conf>cat main.properties > > > xservice.server.name=our IP > > > xservice.server.port=80 > > > xservice.searchBase=may01 > > > xservice.xsl.directory=/exlibris/aleph/u20_1/alephe/jboss_conf/xsl > > > xservice.xsl.present2rss=present2rss.xsl > > > > > > 4) called up set_globals.sh and stopped and restarted JBOSS. > > > > > > On testing the API directly from UNIX prompt the response > > seems to be ok but > > > not from the browser! > > > > > > > > > Thanks > > > Ranju Upadhyay > > > National University of Ireland Maynooth. > > > > > > > > > > > > ----- Original Message ----- > > > From: Ranju Upadhyay <Ran...@nu...> > > > Date: Wednesday, May 30, 2012 10:36 am > > > Subject: Re: [VuFind-General] Aleph.ini in latest ILS driver > > > To: Katharina Wolkwitz <wol...@fh...> > > > Cc: vuf...@li... > > > > > >> Hi Kate, > > >> > > >> Thanks for this info.I think our apache is port 80 (that is > > where our > > >> library catalogue is available) so I set the value of > > xservice.server.port>> to 80.But I did this only in the > > main.properties file in a-tree . I did not > > >> realize that we have to do that in u-tree as well. > > >> > > >> Did you make the change only on the main.properties files or > > did you make > > >> changes in the global.properties files as well? > > >> > > >> Thanks > > >> Ranju. > > >> > > >> ----- Original Message ----- > > >> From: Katharina Wolkwitz <wol...@fh...> > > >> Date: Wednesday, May 30, 2012 8:39 am > > >> Subject: Re: [VuFind-General] Aleph.ini in latest ILS driver > > >> To: vuf...@li... > > >> > > >> > Hi Ranju, > > >> > > > >> > have you had a look at the thread: > > >> > [VuFind-General] Restful-API without X-Server??? (2nd try) > > >> > started by me on 20.04.2012 09:41 > > >> > > > >> > The critical information is: > > >> > > > >> > 1. > > >> > there are four (!!!) different location to configure the > > >> > jboss_conf. Two in the > > >> > a-tree and two in the u-tree (alephe.orig and alephe) and I > > >> > needed to edit the > > >> > file in the u-tree (see path below) to make a difference to the > > >> > JBOSS-Server. > > >> > > > >> > 2. > > >> > You need to find out, on which port your apache is running and > > >> > set the xserver > > >> > on that port (which for my aleph-installation was port 89). > > >> > > > >> > here is my > > /exlibris/aleph/u20_1/alephe/jboss_conf/main.properties:>> > > > >> > xservice.server.name=ub-torino.fernuni-hagen.de > > >> > xservice.server.use_defined_name=Y > > >> > xservice.server.port=89 > > >> > xservice.searchBase=FUH01 > > >> > > > xservice.xsl.directory=/exlibris/aleph/u20_1/alephe/jboss_conf/xsl>> > > xservice.xsl.present2rss=present2rss.xsl > > >> > > > >> > After that my vufind could talk to the Restful-API without > > problems...>> > > > >> > Good luck in your battle with the Restful-API. :-) > > >> > > > >> > Kate > > >> > > > >> > > > >> > Am 29.05.2012 17:34 schrieb Ranju Upadhyay: > > >> > > Hi Alan,Vasek and all, > > >> > > > > >> > > I tried configuring JBoss in Aleph but no success.Based > > on the > > >> > documentation> that is available in Aleph documentation center > > >> > we tried to modify the > > >> > > main.properties file which is located at > > >> > > /exlibris/aleph/a20_1/alephe.orig/jboss_conf > > >> > > > > >> > > In this file I set the value of > > >> > > xservice.server.port =80 (as that is our web server port) > > >> > > xservice.searchbase=MAY01(which our bib library) > > >> > > > > >> > > And tired restarting the jboss server. > > >> > > > > >> > > This gave some error : > > >> > > > > >> > > Exception in thread "main" > > >> > javax.naming.CommunicationException: Could not obtain > > >> > > connection to any of these urls: 127.0.0.1:2891 > > >> > > at > > >> > > > >> > > > > org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1198)>>> > > at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:516) > > >> > > at > > >> > > org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)> > > >> > at javax.naming.InitialContext.lookup(InitialContext.java:351) > > >> > > at > > >> > org.jboss.Shutdown.main(Shutdown.java:188)> > > >> > > Although at the end it said : > > >> > > > > >> > > starting jboss > > >> > > monitoring startup complete signal > > >> > > .........done > > >> > > > > >> > > So I am not sure whether JBoss has strarted or not > > >> > > > > >> > > when I try to access the RestfulAPI at > > >> > > > > >> > > http://libaleph.nuim.ie:80/rest-dlf/ <http://ub- > > >> > torino.fernuni-hagen.de:1891/rest-dlf/> > > >> > > > > >> > > It gives me not found error as: > > >> > > > > >> > > "The requested URL /rest-dlf/ was not found on this server". > > >> > > > > >> > > I am wondering what I am doing wrong? > > >> > > > > >> > > Something I did notice is that our path is > > >> > > > > >> > > exlibris/aleph/a20_1/alephe.orig/jboss_conf > > >> > > > > >> > > instead of > > >> > > > > >> > > exlibris/aleph/a20_1/alephe/jboss_conf > > >> > > > > >> > > Does this mean we are supposed to create an alephe directory > > >> > > and copyover everything from alephe.orig to it?Because within > > >> > the main.properties file > > >> > > I noticed that value for xsl dirctory is alpehe and not > > >> > alephe.orig i.e. > > >> > > > > >> > > xservice.xsl.diretory = > > /exlibris/aleph/a20_1/alephe/jboss_conf/xsl>> > > > > >> > > Any suggestions? > > >> > > > > >> > > ExLibris does not seem to be willing to help us in this > matter. > > >> > > > > >> > > Thanks > > >> > > Ranju Upadhyay > > >> > > National University of Ireland Maynooth. > > >> > > > >> > ------------------------------------------------------------ > > ----- > > >> > ------------- > > >> > Live Security Virtual Conference > > >> > Exclusive live event will cover all the ways today's security > > >> > and > > >> > threat landscape has changed and how IT managers can respond. > > >> > Discussions > > >> > will include endpoint security, mobile security and the latest > > >> > in malware > > >> > threats. > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/>> > > > _______________________________________________>> > VuFind- > > General mailing list > > >> > VuF...@li... > > >> > https://lists.sourceforge.net/lists/listinfo/vufind-general > > > >> > ------------------------------------------------------------ > > ----- > > > > > >> ------------- > > >> Live Security Virtual Conference > > >> Exclusive live event will cover all the ways today's security > > >> and > > >> threat landscape has changed and how IT managers can respond. > > >> Discussions > > >> will include endpoint security, mobile security and the latest > > >> in malware > > >> threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/> > > >> _______________________________________________ > > >> VuFind-General mailing list > > >> VuF...@li... > > >> https://lists.sourceforge.net/lists/listinfo/vufind-general > > > > > > --------------------------------------------------------------- > > --------------- > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's security and > > > threat landscape has changed and how IT managers can respond. > > Discussions> will include endpoint security, mobile security and > > the latest in malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > VuFind-General mailing list > > > VuF...@li... > > > https://lists.sourceforge.net/lists/listinfo/vufind-general > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > VuFind-General mailing list > VuF...@li... > https://lists.sourceforge.net/lists/listinfo/vufind-general -- Alan Rykhus PALS, A Program of the Minnesota State Colleges and Universities (507)389-1975 ala...@mn... "It's hard to lead a cavalry charge if you think you look funny on a horse" ~ Adlai Stevenson |