Ok i have everything up and config'd to way it should be i believe.
and when i start the server via pwadmin.
everything starts apart from Auth and i dont know why.
Any ideas?
Printable View
Ok i have everything up and config'd to way it should be i believe.
and when i start the server via pwadmin.
everything starts apart from Auth and i dont know why.
Any ideas?
Is anyone able to help me with this?
i have gone through all my configs followed basically every guide on here for no change what so ever i have been changing ips and everything i look at how its configured on my 9.10 server its config is perfectly and my 9.10 server runs perfectly but my new one does not the authd server won start.
I imagine there could almost be <sarcasm> a billion </sarcasm> different reasons why authd may not be running.
My first recommendation would be to make sure authd is pointed to the correct java installation (regardless of JAVE_HOME or JRE_HOME settings)
Spoiler:
Also make sure you have the correct DB settings (username and password) in /etc/table.xml
---------- Post added at 05:39 PM ---------- Previous post was at 05:26 PM ----------
--additional note--
If you are using the release from Visad (and cannot start authd via pwAdmin) it is because 'authd' is not located in /PWServer/authd/authd ; I believe it is located in /server/authd/build/authd. So, if you are using the release from Visad attempt to run authd manually (can be modified in pwAdmin in the future if this is the case)
Spoiler:
im using the original vbox release by hrace009
but i have taken the server files i have been using from that release.
As for java.
my java is in usr/java/jre1.6.0_17
-When i try to start auth by manual-
AuthdCode:root@s15399241:~# /PWServer/authd/./authd
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
/PWServer/authd/./authd: line 9: syntax error near unexpected token `done'
/PWServer/authd/./authd: line 9: `done'
root@s15399241:~#
table.xmlCode:#!/bin/sh
#cd /PWServer/authd
/usr/java/jre1.6.0_17/bin/java -cp /PWServer/authd/lib/jio.jar:/PWServer/authd/lib/application.jar:/PWServer/authd/lib/commons-collections-3.1.jar:/PWServer/authd/lib/commons-dbcp-1.2.1.jar:/PWServer/authd/lib/mysql-connector-java-5.0.8-bin.jar:/PWServer/authd/lib/commons-pool-1.2.jar:/PWServer/authd/lib/commons-logging-1.0.4.jar:/PWServer/authd/lib/log4j-1.2.9.jar:.:$CLASSPATH authd /etc/table.xml
sleep 2
done
Code:<driver name="com.mysql.jdbc.Driver" />
<connection name="auth0" poolsize="3" url="jdbc:mysql://127.0.0.1/dbo?useUnicode=true&characterEncoding=utf8" username="root" password="********"/>
.bashrc
.profileCode:export JAVA_HOME=/usr/java/jre1.6.0_17
export CLASSPATH=/root/apache-tomcat-5.5.28/common/lib/jsp-api.jar:/root/apache-tomcat-5.5.28/common/lib/servlet-api.jar
-Edit-Code:# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
mesg n
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/usr/java/jre1.6.0_17/bin
BASH_ENV=$HOME/.bashrc
USERNAME="root"
PATH=$PATH:$HOME/bin:/usr/lib/mysql/bin
BASH_ENV=$HOME/.bashrc
USERNAME="ROOT"
export USERNAME BASH_ENV PATH
export CLASSPATH=.:/usr/java/jre1.6.0_17/lib/dt.jar:/usr/java/jre1.6.0_17/lib/tools.jar:/usr/java/jre1.6.0_17/lib/mysql-connector-java-5.0.8-bin.jar
export PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME=/usr/java/jre1.6.0_17
After i tried running authd by hand i reinstalled java my new java version is.
jdk1.5.0_21
and got this error after i tried running authd
Code:root@s15399241:~# /PWServer/authd/./authd
Exception in thread "main" java.lang.NoClassDefFoundError: authd
/PWServer/authd/./authd: line 9: syntax error near unexpected token `done'
/PWServer/authd/./authd: line 9: `done'
root@s15399241:~#
I'm not sure that you can use Java 1.5 for auth. I use JDK 1.6.0_12 for auth myself. (https://cds.sun.com/is-bin/INTERSHOP...-CDS_Developer)
Are you using a 32-bit or 64-bit installation of Linux ???
I'm using 64bit
when ever i try getting the lower versions of java i always get the updated versions lol.
like my auth on my 9.10 server has jdk1.5.0_17 i believe
Ok, I will try 'en set up a 64-bit server over here and see if I can duplicate this error.
First thing that comes to mind; did you install the 32-bit libraries ???
"apt-get install ia32-libs"
---------- Post added at 09:51 PM ---------- Previous post was at 09:50 PM ----------
Here you can get any version of java from their archive ;)
Archive: Java[tm] Technology Products Download
Yea i have installed all 32bit libs.
Try the jdk1.6.0_17 instead of jre if you havent already.
From what I understand auth wont work on 1.5 which is why we have both java 1.6 (auth) and java 1.5 (xml editing).
(I'm not sure if any of these effect auth, but) Assure you have also copied the following libraries from original hrace release:
libpcre.so.0
libstdc++.so.5
libstdc++.so.5.0.7
libtask.so
libxml2.so.2
I put the exact link for 1.6.0_12 and another specific link for their entire archive ;)
https://cds.sun.com/is-bin/INTERSHOP...-CDS_Developer
Archive: Java[tm] Technology Products Download
Ok i installed the java from the link you provided me.
and now i get this error
-Edit-
Code:root@s15399241:~# /PWServer/authd/./authd
Exception in thread "main" java.lang.NoClassDefFoundError: authd
Caused by: java.lang.ClassNotFoundException: authd
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: authd. Program will exit.
/PWServer/authd/./authd: line 9: syntax error near unexpected token `done'
/PWServer/authd/./authd: line 9: `done'
I have no idea how i can fix this error its what is stopping my auth from starting i get this same error with any java version i use.
i have googled part of this error and found someone else with the same error but none reply'd to him so can anyone help me with this?
Thanks.
make a new shell script file and put this in and run it, this worked for me might work for you.
authd.sh
Quote:
pkill -9 java
echo "STOPPING JAVA..!"
sleep 6
echo "=== AUTH ==="
cd /root/PWServer/authd/build/; ./authd /root/PWServer/logs/auth.log &
sleep 6
echo "=== DONE! ==="
echo ""
There is one more thing I can think of, that even if does not pertain to this specific situation will only be sure to save many headaches in the future.
Make DARN sure you do NOT edit linux files (from .sh to authd itself) in a windows environment. Windows and Linux operating systems use totally different carriage returns and this is known only to screw things up!
I really hope that did not come across as rude, but I cannot stress enough how important it is to not edit linux files in a windows environment! If you have, do, or have no other choice you must remember to use dos2unix before transferring said file back to linux environment.
Edit-- Linky for Dos2Unix:
http://www.bastet.com/uddu.zip
I have not edited any linux files on my os. all done and edited on the Linux system itself.
i don't understand what the problem is. just when ever i load authd i get that error -.- such a pain in the ass... lol.
i don't know how to rectify that problem ether.
Authd is the final piece if i can fix it then everything will run all others work perfectly just auth is being a pain in the ass.
Thanks any help is well appreciated.
its rather odd to be honest my 8.10 server is perfectly replicated from my 9.10 everything lines up correctly i believe
the libs are installed correctly tho i don't think 1 of them is linked i dunno there was something about this one "libstdc++.so.5.0.7" or this one "libstdc++.so.5" i cant remember which it said something about but it was installed.
my authd is correctly config'd according to 3 different guides
i believe my java is installed correctly though whenever i install it, it installs into my root/root folder and i relocate it to "usr" where i created the java folder myself.
i have installed 4 different java version's now including the 2 my 9.10 server use's which now i have setup the same.
using java 1.5 on authd causes alot of errors believe me.
double check your
/etc/table.xml
/etc/hosts (for mysql i guess)
/etc/hosts.conf (for ms sql)
/etc/GMserver.conf
/etc/gmopgen.xml
/etc/authd.conf
/etc/iweb.conf
Yea tried you're method and it did not do anything for me thanks for trying.
Yea i realize that and that is why i don't use 1.5 i use 1.6 thanks for you're input ^^
All have been checked and changed and rechecked the past 3 days for no change at all.
It is the java that is stopping the authd from starting and to clarify the problem this is what i get when i start authd manually.
Hope that helpsCode:root@s15399241:~# /PWServer/authd/./authd
Exception in thread "main" java.lang.NoClassDefFoundError: authd
Caused by: java.lang.ClassNotFoundException: authd
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
Could not find the main class: authd. Program will exit.
/PWServer/authd/./authd: line 9: syntax error near unexpected token `done'
/PWServer/authd/./authd: line 9: `done'
---------- Post added at 11:17 AM ---------- Previous post was at 10:38 AM ----------
Double Post
Sorry.
If anyone can post exactly what they would do when installing a fresh server pretty much a guide they would use would be great maybe i have screwed up somewhere since most of these guides are not for a true install.
and most guides have bits and piece's about installing a somewhat semi complete guide on what they do when they do there own installs would be great.
Thanks again for reading.
Ok i did some fiddling around and now i get a different error
this time it does not seem to involve java at all.
Code:root@s15399241:/PWServer/authd# ./authd
authd:: add PollIO task.
./authd: line 9: syntax error near unexpected token `done'
./authd: line 9: `done'
try using jdk1.6.0_17 and check
/PWServer/authd/authd
-----------------------
#cd /PWServer/authd