ORB initializing in Servlet
Hi, I want to use a servlet as a CORBA client. I developed a sample application, but it is returned an error message. I think, I could not initialize the ORB correctly within the servlet class. I need a sample to initialize ORB and resolve the object reference in naming within the servlet class. Can anyone help me? Note: I use Java 2 SDK v1.4.0 and JavaIDL Halil
another sql error
Hi all , When I want to run following sql statement in a servlet, I receive following error message in tomcat's DOS console [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1. In this sql statement, the vno variable is read from a HTML form by using following statement String vno = request.getParameter(vergino); Other informations are gotten from MS Access tables (Malik, ParselMalik, KatMalik tablolarndan). This sql statement is running correct within the access. I wonder how can I organize this sql? Can anyone help? (SELECT Malik.VergiNo,Malik.Ad,Malik.Soyad,ParselMalik.TasnmazID,ParselMalik.Hisse + FROM ParselMalik,Malik WHERE Malik.VergiNo=+vno+ AND Malik.VergiNo=ParselMalik.VergiNo + UNION SELECT Malik.VergiNo,Malik.Ad,Malik.Soyad,KatMalik.TasnmazID,KatMalik.PayMiktar + FROM KatMalik,Malik WHERE Malik.VergiNo=+vno+ AND Malik.VergiNo=KatMalik.VergiNo);
Re: another sql error
I correct sql statement. My servlet is running now. thanks... - Original Message - From: Halil AKINCI To: Tomcat Users List ; servlet-interest group ; jakarta-tomcat yahoo groups Sent: Friday, September 13, 2002 10:14 AM Subject: another sql error Hi all , When I want to run following sql statement in a servlet, I receive following error message in tomcat's DOS console [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1. In this sql statement, the vno variable is read from a HTML form by using following statement String vno = request.getParameter(vergino); Other informations are gotten from MS Access tables (Malik, ParselMalik, KatMalik tablolarndan). This sql statement is running correct within the access. I wonder how can I organize this sql? Can anyone help? (SELECT Malik.VergiNo,Malik.Ad,Malik.Soyad,ParselMalik.TasnmazID,ParselMalik.Hisse + FROM ParselMalik,Malik WHERE Malik.VergiNo=+vno+ AND Malik.VergiNo=ParselMalik.VergiNo + UNION SELECT Malik.VergiNo,Malik.Ad,Malik.Soyad,KatMalik.TasnmazID,KatMalik.PayMiktar + FROM KatMalik,Malik WHERE Malik.VergiNo=+vno+ AND Malik.VergiNo=KatMalik.VergiNo);
tomcat start error
Hi, I've installed tomcat 3.3.1 and j2sdk1.4 on windows 98 machine. I have an application that includes following web.xml file. Tomcat is running, but before the running, some error lines display on DOS console, but tomcat is running correctly. This is the error lines; 2002-09-10 09:30:37 - Ctx(/VT) : web.xml : Error org.xml.sax.SAXParseException: Element type session-timeout is not declared. 2002-09-10 09:30:37 - Ctx(/VT) : Line 4 /web-app/ 2002-09-10 09:30:37 - Ctx(/VT) : web.xml : Error org.xml.sax.SAXParseException: Element type servlet is not declared. 2002-09-10 09:30:37 - Ctx(/VT) : Line 6 /web-app/ 2002-09-10 09:30:37 - Ctx(/VT) : web.xml : Error org.xml.sax.SAXParseException: Element type servlet-name is not declared. 2002-09-10 09:30:37 - Http10Interceptor: Starting on 8080 2002-09-10 09:30:37 - Ajp12Interceptor: Starting on 8007 2002-09-10 09:30:37 - Ajp13Interceptor: Starting on 8009 EmbededTomcat: Startup time 600 This is my web.xml file; web-app display-nameDatabase App/display-name session-timeout30/session-timeout servlet servlet-nameVT/servlet-name servlet-classVTServlet/servlet-class /servlet servlet-mapping servlet-nameVT/servlet-name url-patternVTServlet/url-pattern /servlet-mapping /web-app What is the problem? How can I eliminate this error line?
Servlet to Servlet communication
Hi, I need paper, tutorial and sample code about Servlet to Servlet communication. Can anyone help me?
querying remote databases
Hi, I want to query remote databases, which are located in different computers and different instituon by using servlets an JSP. For this purpose, I want to send a parameter to this remote databases using an HTML form. And I want to receive all responds and serve them in a HTML page to client. How can I do that?
call jsp page
how can I call my servlet? To run my servlet application I use that URL http://localhost:8080/Vt/servlet/VTServlet and it is running fine. I located my jsp page(query.jsp) into the c:\jakarta-tomcat-3.3.1webappsVt directory. I use that URL http://localhost:8080/Vt/query.jsp , but I'm receiving HTTP 404 and 405 error message, and following error message displayed on the tomcat windows console: 2002-06-25 09:23:07 -Ctx ( /VT ): Status code: 405 request: R ( /VT + /query.jsp + null ) msg: HTTP GET is not supported by this URL I sent this message yesterday first time,and Anoop and Jacob sent me solution . But I can't solve my problem. I still need help?
sample Autoexec.bat file
Can anyone send me a sample Autoexec.bat file context that includes JAVA_HOME, TOMCAT_HOME, and CLASSPATH settings?
query three remote databases at the same time
Hi, How can I query three remote databases at the same time using servlet? I want to send a parameter this databases using a HTML form. Remote servers receive this parameter, execute query and send results to client. I want to display all results (that remote databases send) one HTML page. How can do that?
HTTP 405 error
please help me, I can't run my JSP files. I can run my servlet using jakarta-tomcat-3.3.1, but I want to run my jsp files and when I want to run my jsp files I receive HTTP 405 error message. what can I do?
Re: HTTP 405 error
Yes, this this error message is displayed on the tomcat console; 2002-06-24 17:23:34 -Ctx ( /VT ): Status code: 405 request: R ( /VT + /jsp/query.jsp + null ) msg: HTTP GET is not supported by this URL - Original Message - From: Anoop Kumar V [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, June 24, 2002 5:35 PM Subject: RE: HTTP 405 error do u get any errors on the console window of tomcat?? Anoop Kumar V. -Original Message- From: Halil AKINCI [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 7:57 PM To: Tomcat Users List; JSP groups Subject: HTTP 405 error please help me, I can't run my JSP files. I can run my servlet using jakarta-tomcat-3.3.1, but I want to run my jsp files and when I want to run my jsp files I receive HTTP 405 error message. what can I do? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
jsp compiler error
Hi all, I installed my computer (windows 98) jdk1.3 and Apache Tomcat 4.0, than I started Tomcat 4.0 and it is running now. I typed http://localhost:8080/ my browser and accessed tomcat index file. I can run servlet examples but when I want to run JSP examples I receive following error message. What is the wrong? What can I do? A Servlet Exception Has Occurred Exception Report: org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:558) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2366) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1005) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1098) at java.lang.Thread.run(Thread.java:536) Root Cause: java.lang.NumberFormatException: Invalid class file format in C at java.lang.Integer.parseInt(Integer.java:426) at java.lang.Integer.parseInt(Integer.java:476) at org.apache.jasper.compiler.Compiler.getJspLineErrors(Compiler.java:321) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:280) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:543) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215) at
application deployment
Hi, This is mine work environment; CPU: Intel Pentium II 400 MHz OS: Windows 98 Container: Apache tomcat 4.0 Java environment: jdk1.3 First I created a directory (called Vt) into the tomcat's webapps directory, than wrote my servlet and compiled it (webappsVtweb-infclassesVTServlet.java). I created my web.xml file (webappsVt). Afterwards, I created ServletContext. To do this I added following code line into the server.xml file: Context path=/Vt docBase=Vt debug=0 reloadable=true/ To start my application I wrote following URL http://localhost:8080/Vt/servlet/VTServlet but I receive an error message ( Page not found) each time. Can anyone help me? How can I run my application?
Re: application deployment
Ahh.. I wrote wrong! I created it in web-inf directory. - Original Message - From: Anoop Kumar V [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, June 21, 2002 5:00 PM Subject: RE: application deployment u said u created ur web.xml.. but u need to place it in web-inf directory and not in th e Vt folder. This shd work. regds, anoop -Original Message- From: Halil AKINCI [mailto:[EMAIL PROTECTED]] Sent: Friday, June 21, 2002 7:20 PM To: Tomcat Users List; jakarta-tomcat yahoo groups Subject: application deployment Hi, This is mine work environment; CPU: Intel Pentium II 400 MHz OS: Windows 98 Container: Apache tomcat 4.0 Java environment: jdk1.3 First I created a directory (called Vt) into the tomcat's webapps directory, than wrote my servlet and compiled it (webappsVtweb-infclassesVTServlet.java). I created my web.xml file (webappsVt). Afterwards, I created ServletContext. To do this I added following code line into the server.xml file: Context path=/Vt docBase=Vt debug=0 reloadable=true/ To start my application I wrote following URL http://localhost:8080/Vt/servlet/VTServlet but I receive an error message ( Page not found) each time. Can anyone help me? How can I run my application? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Deploying web applications to tomcat
Hi all, I'm using jdk1.2.2 and Tomcat-3.3.a. I have a servlet and I want to deploy it to tomcat. Therefore, I created a database directory in tomcat webapps directory, and I created following directorys. C:\Jakarta-tomcat-3.3a\webapps\database C:\Jakarta-tomcat-3.3a\webapps\database\web-inf C:\Jakarta-tomcat-3.3a\webapps\database\web-inf\classes C:\Jakarta-tomcat-3.3a\webapps\database\web-inf\lib I located my servlet in web-inf\classes directory, created a web.xml file in /web-inf directory, then wrote following line in server.xml file. Context path=/database docBase=database debug=0 reloadable=true / To run my servlet I use following URL ; http://localhost:8080/database/DatabaseServlet but I received an error message (HTTP404- Page not found). How can I run my servlet? Can anyone help me?
Ynt: ERROR 500
I checked it, but it is correct... public class DatabaseServlet extends HttpServlet { ... - Original Message - From: Reynir Hübner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, April 19, 2002 2:02 PM Subject: RE: ERROR 500 My imagination tells me that you have a servlet file named the same way but in a different case internally.. what I am trying to say is that you probably have the files : DatabaseServlet.java it compiles ok with javac and you have the file : DatabaseServlet.class but in the DatabaseServlet.java file : public class Databaseservlet extends HttpServlet { ... So internally it's named differently Hope it helps -reynir -Original Message- From: Halil AKINCI [mailto:[EMAIL PROTECTED]] Sent: 19. apríl 2002 10:56 To: Jakarta TomCat Subject: ERROR 500 Hi, I'm using a HTML form to run my servlet. I'm using this HTML page to send a parameter to my servlet, and servlet will receive this parameter, connect a MS access database, execute a query and send results. When I want to run my application I received following error message. What is wrong? Any ideas or suggestions would be appreciated. --- Error: 500 Location: /database/servlet/DatabaseServlet Internal Servlet Error: java.lang.NoClassDefFoundError: DatabaseServlet (wrong name: DatabaseServlet/DatabaseServlet) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java, Compiled Code) at org.apache.tomcat.util.depend.DependClassLoader12.defineClassCompat(Unkn own Source) at org.apache.tomcat.util.depend.DependClassLoader.loadClassInternal1(Unkno wn Source) at org.apache.tomcat.util.depend.DependClassLoader12$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at org.apache.tomcat.util.depend.DependClassLoader12.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at org.apache.tomcat.facade.ServletHandler.getServlet(Unknown Source) at org.apache.tomcat.facade.ServletHandler.preInit(Unknown Source) at org.apache.tomcat.facade.ServletHandler.init(Unknown Source) at org.apache.tomcat.facade.ServletHandler.service(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unk nown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:472) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]