Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot start location service under Ubuntu 13.04 #14

Open
GoogleCodeExporter opened this issue Jul 1, 2015 · 6 comments
Open

Cannot start location service under Ubuntu 13.04 #14

GoogleCodeExporter opened this issue Jul 1, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
From readme.txt:
1. Extract the archive to some location.
2. rmiregistry &
3. cd /tmp/openjsip
4. bin/openjsip start location-service

What is the expected output? What do you see instead?
Location service does not start with the following error:
wheleph1304@wheleph1304-Lenovo-G570:/tmp/openjsip$ bin/openjsip start 
location-service
bin/openjsip/../../: Not a directory
ls: cannot access /lib/jain-sip-api*.jar: No such file or directory
ls: cannot access /lib/openjsip-remote*.jar: No such file or directory
Starting Location Service...
bin/openjsip: 119: bin/openjsip: cannot create /bin/location-service.pid: 
Permission denied
wheleph1304@wheleph1304-Lenovo-G570:/tmp/openjsip$ Error: Could not find or 
load main class openjsip.locationservice.LocationService

What version of the product are you using?
openjsip-v0.0.4.tar.gz

On what operating system?
Environment details:
wheleph1304@wheleph1304-Lenovo-G570:/tmp/openjsip$ uname -a
Linux wheleph1304-Lenovo-G570 3.8.0-29-generic #42-Ubuntu SMP Tue Aug 13 
23:12:18 UTC 2013 i686 i686 i686 GNU/Linux
wheleph1304@wheleph1304-Lenovo-G570:/tmp/openjsip$ java -version
java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.13.04.2)
OpenJDK Server VM (build 23.7-b01, mixed mode)
wheleph1304@wheleph1304-Lenovo-G570:/tmp/openjsip$ realpath -v
realpath version 1.17ubuntu1
wheleph1304@wheleph1304-Lenovo-G570:/tmp/openjsip$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Jun  8 23:08 /bin/sh -> dash

When I change shebang of the script to #!/bin/bash I get the same error

Original issue reported on code.google.com by wheleph on 28 Aug 2013 at 8:02

@GoogleCodeExporter
Copy link
Author

The same applies to bin/cmdclient

Original comment by wheleph on 9 Sep 2013 at 7:38

@GoogleCodeExporter
Copy link
Author

I am using openjsip as SIP proxy server.I have build the code.But I dont know 
whats the next step as i am not able to run the scripts

example: bin/openjsip start location-service
When I run in unix the following things occur

user@INFBA03025:~/openjsip$ bin/openjsip start location-service
bash: bin/openjsip: Is a directory

please give suggestions
It would help me a lot

Original comment by deekshit...@gmail.com on 7 Nov 2013 at 7:26

@GoogleCodeExporter
Copy link
Author

Hi,
    Can anyone tell me how to make a call using IMSdroid/Xlite/Boghe with openjsip as proxyserver

Or which client can we use to test the openjsip proxy server

Thanks,
deeks.

Original comment by deekshit...@gmail.com on 8 Nov 2013 at 3:16

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

I met the same problem mentioned above "bin/openjsip/../../: Not a directory"

And modified the openjsip a little bit at the top to make it set the base_dir 
properly on my Ubuntu 12.04.

Here are the tiny changes:
---------------------------
thisFilePath=`realpath "$0"`
thisFileDir=`dirname $thisFilePath`
base_dir=`realpath $thisFileDir/../`
-----------------------------

Original comment by shaohong...@gmail.com on 4 Mar 2014 at 10:48

@GoogleCodeExporter
Copy link
Author

-bash-4.1# bin/openjsip start location-service
bin/openjsip: line 4: realpath: command not found
ls: cannot access /lib/jain-sip-api*.jar: No such file or directory
ls: cannot access /lib/openjsip-remote*.jar: No such file or directory
Starting Location Service...
-bash-4.1# Exception in thread "main" java.lang.NoClassDefFoundError: 
openjsip/locationservice/LocationService
Caused by: java.lang.ClassNotFoundException: 
openjsip.locationservice.LocationService
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: openjsip.locationservice.LocationService. 
Program will exit.
--------------
i found this eror when i run from Centos 
plz give me advice 

Original comment by aungzawm...@gmail.com on 13 Mar 2014 at 2:10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant