-
1. Not able to start the server
nickarls Mar 2, 2011 4:54 AM (in response to harikrishnas)No output at all? Try unsetting JBOSS_HOME, try commenting out any "echo off" in the batch files.
-
2. Not able to start the server
harikrishnas Mar 2, 2011 5:01 AM (in response to nickarls)Hi Nicklas,
Thanks for the quick reply
Tried unsetting JBOSS_HOME and commented out the echo off in run.bat
Still getting the same result, didnt get any output like i mentioned above
Regards,
Hari
-
3. Not able to start the server
nickarls Mar 2, 2011 5:03 AM (in response to harikrishnas)what does java -v say? do you have a JAVA_HOME or any JAVA* env var set?
-
4. Not able to start the server
harikrishnas Mar 2, 2011 5:07 AM (in response to nickarls)this is the result of java -v
java version "1.5.0_18"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_18-b02)
Java HotSpot(TM) Client VM (build 1.5.0_18-b02, mixed mode, sharing)
yes i have JAVA_HOME in env var
-
5. Not able to start the server
nickarls Mar 2, 2011 5:09 AM (in response to harikrishnas)edit run.bat, stick
echo 1
...
echo 2
...
Every few lines. How far do you get?
-
6. Not able to start the server
harikrishnas Mar 2, 2011 5:19 AM (in response to nickarls)Sorry didnt get the point where i need to change
after commenting out echo off i am getting the output below
D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>run.bat
D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>echo off
D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>
-
7. Not able to start the server
nickarls Mar 2, 2011 5:20 AM (in response to harikrishnas)comment out the @echo off by adding "rem " before it (or remove the line alltogether)
-
8. Not able to start the server
harikrishnas Mar 2, 2011 5:23 AM (in response to nickarls)This time a new output
D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>run.batD:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem @echo off
D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem ----------------------------------
---------------------------------------D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem JBoss Bootstrap Script for Win32
D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem ----------------------------------
---------------------------------------D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem $Id: run.bat 73584 2008-05-22 12:0
9:26Z dimitris@jboss.org $D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>set DIRNAME=.\
D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>if "Windows_NT" == "Windows_NT" set DI
RNAME=D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin\D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>set PROGNAME=run.bat
D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>if "Windows_NT" == "Windows_NT" set PR
OGNAME=run.batD:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>pushd D:\jboss-4.2.3.GA-jdk6\jboss-4.2
.3.GA\bin\..D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA>set JBOSS_HOME=D:\jboss-4.2.3.GA-jdk6\jbos
s-4.2.3.GAD:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA>popd
D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>REM Add bin/native to the PATH if pres
entD:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>if exist "D:\jboss-4.2.3.GA-jdk6\jboss
-4.2.3.GA\bin\native" set PATH=D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin\native;
D:\OraHome_1\bin;D:\HarikrishnaS\jdk\jdk1.5.0_18\bin;C:\WINDOWS\system32;C:\WIND
OWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\cygnus\cygwin-b20\H-
i586-cygwin32\bin;D:\saba_ant\bin;C:\Program Files\Microsoft SQL Server\80\Tools
\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Mic
rosoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Bi
nn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\P
rivateAssemblies\D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>if exist "D:\jboss-4.2.3.GA-jdk6\jboss
-4.2.3.GA\bin\native" set JAVA_OPTS= -Djava.library.path="D:\OraHome_1\bin;D:\Ha
rikrishnaS\jdk\jdk1.5.0_18\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System3
2\Wbem;C:\Program Files\Intel\DMIX;C:\cygnus\cygwin-b20\H-i586-cygwin32\bin;D:\s
aba_ant\bin;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program File
s\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\D
TS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE
\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\"D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem Find run.jar, or we can't continue
D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>set RUNJAR=D:\jboss-4.2.3.GA-jdk6\jbos
s-4.2.3.GA\bin\run.jarD:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>if exist "D:\jboss-4.2.3.GA-jdk6\jboss
-4.2.3.GA\bin\run.jar" goto FOUND_RUN_JARD:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>if not "D:\HarikrishnaS\jdk\jdk1.5.0_1
8\bin;.;" == "" goto ADD_TOOLSD:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>set JAVA=D:\HarikrishnaS\jdk\jdk1.5.0_
18\bin;.;\bin\javaD:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem A full JDK with toos.jar is not re
quired anymore since jboss web packagesD:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem the eclipse jdt compiler and javas
sist has its own internal compiler.D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>if not exist "D:\HarikrishnaS\jdk\jdk1
.5.0_18\bin;.;\lib\tools.jar" goto SKIP_TOOLSD:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem If JBOSS_CLASSPATH or JAVAC_JAR is
empty, don't include it, as this willD:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem result in including the local dire
ctory in the classpath, which makesD:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem error tracking harder.
D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>if not "" == "" set RUNJAR=;D:\jboss-4
.2.3.GA-jdk6\jboss-4.2.3.GA\bin\run.jarD:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>if "" == "" set RUN_CLASSPATH=D:\jboss
-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin\run.jarD:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>if "D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3
.GA\bin\run.jar" == "" set RUN_CLASSPATH=;D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\
bin\run.jarD:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>set JBOSS_CLASSPATH=D:\jboss-4.2.3.GA-
jdk6\jboss-4.2.3.GA\bin\run.jarD:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem Setup JBoss specific properties
D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>set JAVA_OPTS= -Dprogram.name=run.bat
D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem Add -server to the JVM options, if
supportedD:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>"D:\HarikrishnaS\jdk\jdk1.5.0_18\bin;.
;\bin\java" -server -version 2>&1 | findstr /I hotspot 1>nulD:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>
-
9. Not able to start the server
nickarls Mar 2, 2011 5:28 AM (in response to harikrishnas)I think it fails on the
D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>"D:\HarikrishnaS\jdk\jdk1.5.0_18\bin;.
;\bin\java" -server -version 2>&1 | findstr /I hotspot 1>nul
when it should be
D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>"D:\HarikrishnaS\jdk\jdk1.5.0_18\bin\java" -server -version 2>&1 | findstr /I hotspot 1>nul
what does your JAVA_HOME look like? What does your PATH look like? Ends with \ or some other strange char?
-
10. Not able to start the server
harikrishnas Mar 2, 2011 5:38 AM (in response to nickarls)PATH ends with \
And JAVA_HOME is D:\HarikrishnaS\jdk\jdk1.5.0_18\bin\java\
-
11. Not able to start the server
nickarls Mar 2, 2011 5:43 AM (in response to harikrishnas)set JAVA_HOME to D:\HarikrishnaS\jdk\jdk1.5.0_18
set PATH=%JAVA_HOME%\bin;%PATH%
take away \ from end of path;
-
12. Not able to start the server
harikrishnas Mar 2, 2011 6:15 AM (in response to nickarls)Server has started with the following exceptions
Caused by: java.lang.NoClassDefFoundError: javax/annotation/Resource
at org.apache.catalina.startup.WebAnnotationSet.loadClassAnnotation(WebAnnotationSet.java:158)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:73)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:56)
at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:297)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1064)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4263)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
... 169 more
But not able to open the web console
-
13. Not able to start the server
nickarls Mar 2, 2011 6:26 AM (in response to harikrishnas)Still something strange with the env (endorsed dirs?). Show the full envdump from "set"
-
14. Not able to start the server
harikrishnas Mar 2, 2011 6:40 AM (in response to nickarls)CLASSPATH=D:\HarikrishnaS\jdk\jdk1.5.0_18\lib\tools.jar;D:\HarikrishnaS\jdk\jdk1
CommonProgramFiles=C:\Program Files\Common Files
Path=D:\HarikrishnaS\jdk\jdk1.5.0_18\bin;D:\OraHome_1\bin;D:\HarikrishnaS\jdk\jdk1.5.0_18\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\cygnus\cygwin-b20\H-i586-cygwin32\bin;D:\saba_ant\bin;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program File
s\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\