Hi all ,
I am using RedHat6.1 , jdk1.3 and jboss2.2.1 .
When i tried to execute ./run.sh script , it give me the error
message below :
Unrecoginzed option: -server
Could not create the Java virtual machine. Below is my run.sh script.
I have no problem running jboss2.1 using java -jar run.jar. What is
happening here ?? Thanks
#!/bin/sh
# Minimal jar file to get JBoss started.
JBOSS_CLASSPATH=$JBOSS_CLASSPATH:run.jar
# Add all login modules for JAAS-based security
# and all libraries that are used by them here
JBOSS_CLASSPATH=$JBOSS_CLASSPATH
# Add the XML parser jars and set the JAXP factory names
# Crimson parser JAXP setup(default)
JBOSS_CLASSPATH=$JBOSS_CLASSPATH:../lib/crimson.jar
JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
JAXP="$JAXP
-Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl"
echo JBOSS_CLASSPATH=$JBOSS_CLASSPATH
java -server $JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@
Russell wrote:
>
> Hi Jonathan , thanks for your info.
>
> I tried to run using jdk1.3 , I also have similar problem.
> I did not changed anything in the shell script. The # character is
> added by jboss developer.
>
> Thanks
>
> Jonathan Ackerman wrote:
> >
> > You say that you are using jdk1.3, yet the log is showing that you are using
> > jdk.1.2.2
> >
> > I had some problems running JBoss under JDK 1.2, they went away when I
> > switched to JDK1.3
> >
> > Also I noticed that you had some # characters in the name of some of your
> > classes in the shell script (i.e. Docume#ntBuilderFactoryImpl and
> > SAXPa#rserFactoryImpl).
> >
> > Was that just a cut and paste (into the email) error ?
> >
> > Jonathan
> >
> > -----Original Message-----
> > From: Russell [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, 2 May 2001 5:37 p.m.
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] Cannot start jBoss2.2.1 container
> >
> >
> > Hi all ,
> > I am using RedHat6.1 , jdk1.3 and jBoss2.2.1.Recently i just
> > download
> > jBoss2.2.1 to my PC .
> > When i tried to run the using java -jar run.jar , it gave me the
> > error below :
> >
> > [Info] Java version: 1.2.2,Sun Microsystems Inc.
> > [Info] Java VM: Classic VM 1.2.2,Sun Microsystems Inc.
> > [Info] System: Linux 2.2.13-0.13,i386
> > [Classpath extension] Added
> > directory:file:/mnt/fileserv/wt/JBoss-2.2.1/tmp/
> > [Classpath extension] Added
> > directory:file:/mnt/fileserv/wt/JBoss-2.2.1/db/
> > [Shutdown] Could not add shutdown hook
> > [Service Control] Registered with server
> > [Default] javax.xml.parsers.FactoryConfigurationError:
> > java.lang.ClassNotFoundException:
> > org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
> > [Default] at
> > javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.
> > java:118)
> > [Default] at org.jboss.Main.<init>(Main.java:192)
> > [Default] at org.jboss.Main$1.run(Main.java:107)
> > [Default] at java.security.AccessController.doPrivileged(Native
> > Method)
> > [Default] at org.jboss.Main.main(Main.java:103)
> >
> > I have read through all jboss archived and follow some method like run
> > using run.sh
> > Before startup jboss , i run the script. However it still give me the
> > error. below is my run.sh.
> > Do i need to change the script below to success startup jboss ??
> >
> > Thanks
> >
> > #!/bin/sh
> >
> > # Minimal jar file to get JBoss started.
> >
> > JBOSS_CLASSPATH=$JBOSS_CLASSPATH:run.jar:../lib/crimson.jar
> >
> > # Add all login modules for JAAS-based security
> > # and all libraries that are used by them here
> > JBOSS_CLASSPATH=$JBOSS_CLASSPATH
> >
> > # Add the XML parser jars and set the JAXP factory names
> > # Crimson parser JAXP setup(default)
> > JBOSS_CLASSPATH=$JBOSS_CLASSPATH:../lib/crimson.jar
> > JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.Docu
> > me#ntBuilderFactoryImpl
> > JAXP="$JAXP
> > -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXPa#rserFacto
> > ryImpl"
> >
> > echo JBOSS_CLASSPATH=$JBOSS_CLASSPATH
> >
> > java -server $JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user