[jboss-user] [Beginners Corner] - Re: war file deployed is notworking!!
Thanks, Sir, I am getting closer. Now Jboss can find my class file and run my class file. It is also indicates it has been able to make MS SQL server connection. The only problem is ii can not find my jsp file and a property file. I check the war file and found the pass of jsp file and property file are incorrect. The jsp file path is project/jsp/**.jsp and the path of propety file should be project/WEB-INF/**.properties But in the war file, they are project/**.jsp project/**.properties I just can not make the path right. Here is my code of war in build.xml. Could you please indicate what wrong cause this problem? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4133972#4133972 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133972 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: war file deployed is notworking!!
Sorry, here is my code for war | target name=war depends =compile description=Generate the runtime war | war warfile=${dist.dir}/${app.name}.war webxml=${basedir}/WEB-INF/web.xml | fileset dir=${basedir}/WEB-INF/classes/ | fileset dir=${basedir}/jsp/ | lib dir=${lib.dir}/ | | /war | /target | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4133977#4133977 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133977 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: war file deployed is notworking!!
Thank, Mr. Peter Johnson, I have solved all problems. My application is working. thanks for your help! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134009#4134009 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134009 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - war file deployed is notworking!!
Hello, My war file deployed to Jboss is not working. To verify this is not a problem of my code, I downloaded the HelloWorld servlet and test it. I created a war file and deployed it to jboss. I get same error message: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Wrapper cannot find servlet class com.tmg.servlets.HelloWorld or a class it depends on org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) java.lang.Thread.run(Thread.java:595) root cause java.lang.ClassNotFoundException: com.tmg.servlets.HelloWorld org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204) org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) java.lang.Thread.run(Thread.java:595) note The full stack trace of the root cause is available in the JBossWeb/2.0.1.GA logs. The war file contains class fil, web.xml. can any body help? Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4133674#4133674 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133674 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: war file deployed is notworking!!
I can not attach my war file. here are containts of my war file: HelloWorld.class HelloWorld.java web.xml Manifest.mf ( idon't know where is this file came from. I did not have that file) That's it. Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4133683#4133683 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133683 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: war file deployed is notworking!!
Thanks, Sir, Now I can see the HelloWorld example after modifying the build.xml. But I still can not see my own application which invokes MS SQL server. The meesage I have is : 2008-03-03 12:28:21,156 ERROR [STDERR] java.lang.ClassNotFoundException: No ClassLoaders found for: com.microsoft.jdbc.sqlserver.SQLServerDriver It seems the MSSQL jar files are not found. But I did include them in the jar war file. I should send you my war file but when I run the jar or war commands in coomandline, it says there is no jar command recognized. But I did use war in my build.xml. Could you please tell what I have to set to make coommand line knows the jar coomand? Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4133709#4133709 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133709 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: war file deployed is notworking!!
This is my war file: META-INF/ META-INF/MANIFEST.MF classes/ classes/com/ classes/com/tmg/ classes/com/tmg/servlets/ lib/ src/ src/com/ src/com/tmg/ src/com/tmg/servlets/ classes/com/tmg/servlets/FileNetServlet.class classes/com/tmg/servlets/HelloWorld.class filenet.properties lib/log4j-1.2.15.jar lib/msbase.jar lib/mssqlserver.jar lib/msutil.jar log4j.properties src/com/tmg/servlets/FileNetServlet.java src/com/tmg/servlets/HelloWorld.java web.xml WEB-INF/ WEB-INF/web.xml my web.xml: !DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd' web-app servlet-nametmgfile/servlet-name servlet-classcom.tmg.servlets.FileNetServlet/servlet-class init-param param-namelog4j-init-file/param-name param-value/WEB-INF/log4j.properties/param-value /init-param servlet-namehelloworld/servlet-name servlet-classcom.tmg.servlets.HelloWorld/servlet-class servlet-mapping servlet-nametmgfile/servlet-name url-pattern/tmgfile/url-pattern /servlet-mapping servlet-mapping servlet-namehelloworld/servlet-name url-pattern/helloworld/url-pattern /servlet-mapping /web-app my build.xml: !-- Create build/dist directories as needed -- !--javac srcdir=${src.dir} destdir=${build.dir} classpathref=project.class.path/-- !--fileset dir=${build.dir}/-- !--fileset dir=${basedir}/WEB-INF excludes=${class.dir}/-- Please take a look and let me know what I did wrong. Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4133738#4133738 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133738 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: war file deployed is notworking!!
Sorry, this my build.xml !-- Create build/dist directories as needed -- !--javac srcdir=${src.dir} destdir=${build.dir} classpathref=project.class.path/-- !--fileset dir=${build.dir}/-- !--fileset dir=${basedir}/WEB-INF excludes=${class.dir}/-- View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4133739#4133739 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133739 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: can not start jboss server
Thanks, I solved the problem. Something wrong with the JAVA_HOME set up. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4133294#4133294 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133294 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - can not start jboss server
Hello, I just downloaded jboss-4.2.2.GA and installed it. I set up JBOSS_HOME variable. Then I try to run run.bat in the bin directory from command line. It can not start the server and give no message. I checked the run script and found it stops after rem Add -server to the JVM options, if supported %JAVA% -version 21 | findstr /I hotspot nul if not errorlevel == 1 (set JAVA_OPTS=%JAVA_OPTS% -server) and before rem JVM memory allocation pool parameters. Modify as appropriate. set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m Because it does not display the message rem JVM memory allocation pool parameters. Modify as appropriate. I have no idea why. Please help. my operation system is windowXP! Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4133011#4133011 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133011 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - do I need add tomcat package to Jboss_4.2.2.GA?
Hello, I am going to deploy a war file develoed with tomcat to Jboss$.2.2.GA. Do I need to add tomcat package to this jboss or do something before deploying my war file? Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4133016#4133016 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133016 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Integrating JBOSS with Tomcat
Hello, have hot any ffed back about this question. I am also interested! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4133017#4133017 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133017 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user