How install on a remote server?

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Acf
Posts: 19
Joined: 21 Jun 2005, 17:46

Postby Acf » 29 Jun 2005, 16:54

I've contacted the provider. The problem is that I don't have permission to see java folder from my webspace root and there are two solution:

1) install in my webspace java.
2) have a special account to connect not to my webspace, but in a folder of the server.

And i ask to you, Lapo, there is a third solution that the provider don't know, to give me the access to the java without using previous two solution?

Thank for your patience! :)
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 29 Jun 2005, 17:11

installing java in your webspace would be fine!

An alternative would be that the administrator creates a symbolic link in your space to the java executable so that you can run it
Lapo
--
gotoAndPlay()
...addicted to flash games
Acf
Posts: 19
Joined: 21 Jun 2005, 17:46

Postby Acf » 11 Jul 2005, 10:43

I'm still awaiting that the amministrator make the symbolic link in my web space... :cry:

I've some doubt that he no have idea how to do...

Seem that is a thing to do in few minutes, but the days go on...

Lapo, you can tell me how to do a symbolic link?
So, if the amministrator don't know how to do, I send him the clue... :D

Thanks!
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 11 Jul 2005, 10:59

Acf wrote:I'm still awaiting that the amministrator make the symbolic link in my web space... :cry:

I've some doubt that he no have idea how to do...

Seem that is a thing to do in few minutes, but the days go on...

Lapo, you can tell me how to do a symbolic link?
So, if the amministrator don't know how to do, I send him the clue... :D

Thanks!


Mmm... I guess maybe he's a bit lazy... I still have to see an admin who can't do a symbolic link... it would be like a racing pilot who don't know how to shift gears :shock:

A symbolic links is done like this:

Code: Select all

ln -s target linkName


where target is the path to the file to link and linkName is the name of the shortcut

If you have access to a unix/linux shell type this, for more info:

Code: Select all

man ln


:)
Lapo

--

gotoAndPlay()

...addicted to flash games
Acf
Posts: 19
Joined: 21 Jun 2005, 17:46

Postby Acf » 11 Jul 2005, 13:41

Thanks for the promt reply Lapo! :)

I cannot see the command ln with my privilege, but if the amministrator today not give me the access to java, I send him your instruction to see if is true that he don't know how to do a symbolic link... :roll:
Acf
Posts: 19
Joined: 21 Jun 2005, 17:46

Postby Acf » 11 Jul 2005, 15:08

Hi Lapo,

the symbolic link is done! :)

Now there is a problem, i can see this in my webspace with shell (with putty sowtware)

drwxr-xr-x 2 557 557 4096 Jun 27 16:08 buddyLists
-rw-r--r-- 1 557 557 8187 Jun 27 17:26 config.xml
drwxr-xr-x 3 557 557 4096 Jun 27 16:08 it
lrwxrwxrwx 1 0 0 13 Jul 11 14:46 javalink -> /usr/bin/java
-rw-r--r-- 1 557 557 338 Jun 27 16:08 licence.sfl
-rw-r--r-- 1 557 557 2308 Jun 27 16:08 logging.properties
drwxr-xr-x 2 557 557 4096 Jun 27 16:08 logs
drwxr-xr-x 3 557 557 4096 Jun 27 16:08 net
-rwxr--r-- 1 557 557 138 Jul 11 15:13 start.sh


the symbolic link is named "javalink"

I have changes the start.sh file with "./javalink -cp" instead of "java -cp", but I've a error message:

"./start.sh: line 1: ./javalink: No such file or directory"

:(

is the symbolic link wrong?

tell me what to do... :oops:


Edit:
I've noticed that a previous email from the amministrator for the java link at the beginning of the story show me a particular:

Code: Select all

"Hi, java is located in '/usr/bin/'
 
lrwxrwxrwx  1 root root    22 Oct 14  2004 java -> /etc/alternatives/java
lrwxrwxrwx  1 root root    23 Oct 14  2004 javac -> /etc/alternatives/javac
lrwxrwxrwx  1 root root    25 Oct 14  2004 javadoc -> /etc/alternatives/javadoc
lrwxrwxrwx  1 root root    23 Oct 14  2004 javah -> /etc/alternatives/javah
lrwxrwxrwx  1 root root    23 Oct 14  2004 javap -> /etc/alternatives/javap
-rwxr-xr-x  1 root root 65608 Oct 23  2003 jcf-dump
lrwxrwxrwx  1 root root    21 Oct 14  2004 jdb -> /etc/alternatives/jdb"


Now that i know how to recognize a symbolic link, i see that in the '/usr/bin/' there are symbolic link... maybe too many symbolic link of symbolic link? There is this the problem? boh! :roll:
Acf
Posts: 19
Joined: 21 Jun 2005, 17:46

Postby Acf » 13 Jul 2005, 08:18

No idea Lapo? :roll:
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 13 Jul 2005, 08:40

yep. it seems that "javalink" is broken.

To be sure about that type:

Code: Select all

./javalink


in the shell, if you get the error, then there's your problem.

Never thought making a symbolic link was sooo diffcult!! :shock: :)
Lapo

--

gotoAndPlay()

...addicted to flash games
Acf
Posts: 19
Joined: 21 Jun 2005, 17:46

Postby Acf » 13 Jul 2005, 09:56

Code: Select all

 ./javalink
-bash: ./javalink: No such file or directory


It seem broken... but i ask you, maybe the problem is that javalink is the symbolic link of another symbolic link? Or there is no difference?
:roll:
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 13 Jul 2005, 10:25

everything is possible... who knows? :) You should ask to your faboulous server admin!! :shock: :P
Lapo

--

gotoAndPlay()

...addicted to flash games
Acf
Posts: 19
Joined: 21 Jun 2005, 17:46

Postby Acf » 15 Jul 2005, 15:03

Hi Lapo!

Finally some lights!

but still problems... any idea?

Code: Select all

Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location
+------------------------------------------------------------+
+            SmartFoxServer - Multiuser Server               +
+                     version 1.1.1                          +
+                                                            +
+     (c) 2005 gotoAndPlay() - www.smartfoxserver.com        +
+------------------------------------------------------------+

+----------------------[ System Info ]-----------------------+

System CPU(s): 1
VM Max memory: 66 MB

os.name: Linux
os.arch: i386
os.version: 2.4.22-1.2199.nptlsmp
java.version: 1.4.2_06
java.vendor: Sun Microsystems Inc.
java.vendor.url: http://java.sun.com/
java.vm.specification.version: 1.0
java.vm.specification.version: 1.0
java.vm.version: 1.4.2_06-b03
java.vm.vendor: Sun Microsystems Inc.
java.vm.name: Java HotSpot(TM) Client VM
java.lang.ExceptionInInitializerError
        at javax.crypto.SecretKeyFactory.getInstance(DashoA6275)
        at it.gotoandplay.smartfoxserver.lib.d.<init>(Unknown Source)
        at it.gotoandplay.smartfoxserver.lib.e.c(Unknown Source)
        at it.gotoandplay.smartfoxserver.lib.e.b(Unknown Source)
        at it.gotoandplay.smartfoxserver.SmartFoxServer.x(Unknown Source)
        at it.gotoandplay.smartfoxserver.SmartFoxServer.run(Unknown Source)
Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
        at javax.crypto.SunJCE_b.<clinit>(DashoA6275)
        ... 6 more
Caused by: java.lang.SecurityException: Cannot locate policy or framework files!
        at javax.crypto.SunJCE_b.f(DashoA6275)
        at javax.crypto.SunJCE_b.e(DashoA6275)
        at javax.crypto.SunJCE_s.run(DashoA6275)
        at java.security.AccessController.doPrivileged(Native Method)
        ... 7 more


Shutting down server...


:roll:
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 18 Jul 2005, 06:20

Cannot locate policy or framework files!

It seems the Java Runtime can't load some important file that should be installed.

I can only see two possible causes:

1) The java runtime was not properly installed
2) There're still problems with permissions and those files cannot be accessed
Lapo

--

gotoAndPlay()

...addicted to flash games
Acf
Posts: 19
Joined: 21 Jun 2005, 17:46

Postby Acf » 18 Jul 2005, 07:59

Thanks Lapo, I will send your reply to the administrator...

The first line:

Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location


is important?

I've tested typing only ./java and the message is out, can be this the problem?

Thanks!
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 18 Jul 2005, 10:14

Yep, that's no good!
It looks like the Java Runtime is not installed very well or at least you don't have full permissions to run it...
Lapo

--

gotoAndPlay()

...addicted to flash games
Acf
Posts: 19
Joined: 21 Jun 2005, 17:46

Postby Acf » 25 Jul 2005, 14:23

Hi Lapo,

my administrator ask me if smartfoxserver can be used with tomcat... I think not, but I ask to you...

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 31 guests