ham rah

Greenhorn
+ Follow
since Mar 15, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by ham rah

I want to test persistence api outside jboss container.
For that i am using jboss embeddable ..I am trying to run the sample that is given on jboss site but didn't know how to configure the whole sample,so as to use jboss embeddable for JUnit test
After somehow configuring it i am getting "Local server not initialized" error.
Any idea how to do it with Jboss Embeddable
i was trying to run asample code that is using custom tag
that code is provided at
http://www.stardeveloper.com/articles/display.html?article=2001081801&page=1
after goin through steps when i executed the code i got this error

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

java.lang.NullPointerException
MyPackage.DataAccessTag.doAfterBody(DataAccessTag.java:73)
org.apache.jsp.DataAccessTag_jsp._jspService(org.apache.jsp.DataAccessTag_jsp:111)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
19 years ago
JSP
I'm developing an application which is a java servlet, deployed on tomcat 5.5
Now, I want my application to take raw data from the client through
sockets, & for that it has to make a socket connection and listen that
port for data.

I've heard that we can create Connectors in Tomcat, which can listen
to any protocol type of request i.e. Http, Telnet or any of
application protocol.

In my case I need a Connector which can listen to a socket for raw
data type requests�

And, I can hook my application (or servlet) with that Connector & can
listen to those requests which are coming on that connection.

But, as a solution I want my client to be a simple Telnet tool, which
can send requests on the port, I've configured for my Connector.

But, till now I've seen tomcat entertaining Http requests only.

Please suggest,

- How to implement this in tomcat 5.5

- Is there any built-in connector available

- Is it possible to make a custom connector for this scenario

Looking forward to your comments & suggestions
19 years ago
i have made client in swing
and the server is in servlet deployed on tomcat 5.5
so how can i communicate from swing to servlet
that should be non-http
and secondly can i use remote ejb calls
19 years ago
Hi
As tomcat provide coyote connector that is http based
Is there any connector available that are non-http based
And how we can use in our project when we are using tomcat 5.5
As both web server and servlets engine
Or can we make our own connector that is non-http(say telnet)
And how we can implement it
19 years ago
Hi
As tomcat provide coyote connector that is http based
Is there any connector available that are non-http based
And how we can use in our project when we are using tomcat 5.5
As both web server and servlets engine
Or can we make our own connector that is non-http(say telnet)
And how we can implement it
19 years ago