How migrate legacy servlets iPanet 4.1 to iPlanet 6.1
Hi all.
I have installed Java webserver 6.1on solaris.
I cant migate my legacy servlets running on iPlanet 4.1 to Iplanet 6.1
How do I do that?
Please help me!!!
PS: Is that possible?
Thanks
Hi Manish
Thanks for your answer .
We have verified what IPlanet 6.1 can deploy one sigle Legacy Servlet as "/".
We need to deploy more than one servlet.
Can You please explain me how can I deploy that on Single Virtual server 6.1 ?
Thanks
dany74
Similar Messages
-
How to invoke servlet in a package in iPlanet Web Server 4.01 platform ?
I want to use a servlet which is in a package.
http://10.251.9.194/servlet/aibd.GetService
servlet is mapping to /home03/zhangxs/bbn/servlets.
but the servlet can not be invoked.
I read the errors file as following:
[02/ 7��/2001:17:06:35] warning (19620):
requested file not found
(uri=/servlet/aibd.GetService,
filename=/home03/zhangxs/bbn/servlets/aibd.GetService)
html invoking statement is as following:
<frame src="/servlet/aibd.GetService>
I already set the CLASSPATH env variable.
I think it should be applied using servlet of a package.
Maybe I missed some setting.
I hope u can help me.
Thanks in advance.There is an option in the Netscape admin functionality for mapping the servlet virtual directory from the request URI into the physical directory.
However I say don't. The Java support in Netscape 4.xx is lousy. Use Tomcat instead. It's more stable and a more complete implementation. Unfortunatly it's even more difficult to set up. -
Hi,
I am writing an application in JSF that will replace another Java Servlet but perform the same functions. The first step is to establish the front page in JSF with all the options, but link to the legacy servlet for all those options, and replace them one by one until the legacy servlet is gone.
I would like to run both applications in seperate containers, and use HTTP to redirect back and forth. Problem is, I don't know how to tell the legacy servlet to use the sessionid it has already established.
The first time I call to the legacy servlet, it will create a session, and I can acquire the sessionid from HttpSession.getSessionId(), then pass that back (somehow, haven't figured out yet how to call into the JSF servlet either). But once that has been done, I can provide that sessionid in any legacy servlet invocation.
Is this simple to do? How would I go about it?
The next problem I have is securing this transmission, which would probably entail encryption. Perhaps I should just be running these two servlets in the same context and avoid all this confusion.
Ideas?
Thanks for any suggestions.Hi,
Before starting the very first JSF page (and before
the JSF front controller is invoked) I must use a
servlet to read some parameters, init some objects
and then jump to the first JSF page. Some objects
that the bean generates must be saved in a JSF
managed bean.
The question is, how can I set those parameters in
the managed bean if it wasn�t still initialised ?
Code like this:
ApplicationFactory factory = (ApplicationFactory)
FactoryFinder.getFactory(FactoryFinder.APPLICATION_FAC
TORY);
Application app = factory.getApplication();
ValueBinding vb =
app.createValueBinding("#{AManagedBean}");
AManagedBean mb= (AManagedBean)
vb.getValue(FacesContext.getCurrentInstance()); Fails with a null pointer exception (it seems to not
t be finding �AmanagedBean�).
you didn't even set the value, thats why you are getting a "null pointer exception". Try
vb.setValue(FacesContext.getCurrentInstance(), AManagedBean)
>
Do you know how to set the properties in the
s in the managed bean ? Any comment or help would be
really welcome.
First set any properties of the "AmanagedBean" and then create the value binding in any of the scopes(request, seesion, application)
>
Thanks in advance,
- Juan -
greetings,
I am used to working with apache servers with the tomcat servlet engine, which is compliant with the servlet 2.3 specs -- entails the concept of web applications that are self contained . I am now working with an s1ws , specifically on a virtual server, and two directories have been created for me: 'public_html' and 'classes'. The public_html directory contains jsp/html and static content. The classes directory contains the servlet packages and classes.
I am told that the servlet path is http:/domain_name:8000/servlet/ and I am also told that I must register the servlets with the server.
How does one go about registering the servlets with the web server. Is is as simple as creating a deployment descriptor and placing it in the classes directory? According to servlet 2.3 specs the classes directory is supposed to be inside of the WEB-INF directory which contains the file web.xml. I have no WEB-INF directory. Any one know what the deal is?
much obliged
-ManiFirst, note that Web Server 6.1 supports Servlet 2.3 web applications and Web Server 6.0 supports Servlet 2.2 web applications.
"Legacy Servlets" refers to a Servlet deployment methodology that predates both Servlet 2.2 and Servlet 2.3 (and hence predates the concept of web applications). Legacy Servlet support was deprecated in Web Server 6.0 and removed in Web Server 6.1. For information on using Legact Servlets, refer to the Programmer's Guide to Servlets at http://docs.sun.com/db/prod/s1websrv#hic -
Hello ,
is there a guide how to migrate Legacy collectors to JavaScript
Collectors ?
I found this :
Code:
Writing Javascript Collectors
NetIQ provides a comprehensive, Eclipse-based software development kit (SDK) that will help you migrate legacy Collectors to Javascript Collectors. This SDK can be accessed from the Sentinel developer portal at http://www.novell.com/developer/deve..._sentinel.html. A guide for migrating a legacy Collector to the JavaScript framework will be made available soon on this site as well.
If your organization requires additional assistance, NetIQ and our trusted Partners offer customized IT Consulting services in order to ease your transition to the Javascript Collector framework. Our experienced staff can help you to write JavaScript Collectors or provide staff augmentation and expertise. If you need assistance with moving to the JavaScript Collector framework, please contact NetIQ Consulting for more information.
If you have any questions or concerns, please contact NetIQ support or your NetIQ sales representative.
CIURI86
CIURI86's Profile: https://forums.netiq.com/member.php?userid=5735
View this thread: https://forums.netiq.com/showthread.php?t=51937Hi,
As far as I know there are no guides.
The best you can do is take the equivalent sentinel 7 collector and see
if it fits your need maybe enhancing it a bit with a custom.js (see the
documentation on how to do that).
You can also take the code from the legacy collector and create your own
java collector (with the SDK). I have done this in the most cases and
found it is relatively easy but it will take some time to write and test
your collector.
Hope this helps,
Anco
jcvader1
jcvader1's Profile: https://forums.netiq.com/member.php?userid=502
View this thread: https://forums.netiq.com/showthread.php?t=51937 -
How to run servlet codes in WebServer 6.1?
I am new to Java Web Server and at our place we had installed WebServer 6.1. How to run Servlets in this - the default directory is
http//win2000:81/Sun/WebServer6.1/docs
I have'nt insatlled any new virtual class / servers - just running with the default class and servers.
I could not find any virtual directory named servlet (similar to JavaWebServer 2.0) here.
Someone kindly tell me how to post servlet files and run them.Refer "Sun ONE Web Server 6.1 Programmer's Guide to Web Applications"
http://docs.sun.com/app/docs/doc/817-1833-10
Meena -
How to run servlet in java webserver2.0
how to configure java webserver2.0 and how to run servlet in that
Hi Friend,
Try changing the servlet code to this and just tell wat happens after this.
and wat can you see on your Browser Screen.
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
public class login extends HttpServlet {
public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
if (req.getParameter("t1") == null || req.getParameter("t2") == null)
out.println("Enter User Name And Password");
String uid=req.getParameter("t1");
String pwd=req.getParameter("t2");
res.setContentType("text/html");
PrintWriter out=res.getWriter();
out.println("<html>"); out.println("<head>");
out.println("<title>Login</title>"); out.println("</head>");
out.println("<body>");
try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
catch(ClassNotFoundException e)
out.println("<h3>"+e+"</h3>");
try{
Connection con=DriverManager.getConnection("jdbc:odbc:ms","scott","tiger");
PreparedStatement psm=con.prepareStatement("select * from reg where uid1=? and pwd=?");
psm.setString(1,uid);
psm.setString(1,pwd);
ResultSet rs=psm.executeQuery();
if(rs.next())
{ out.println("<html><head><title>WELCOME</title></head>");
out.println("<body><b><i>Hello user "+uid+"</b></i>");
out.println("</body></html>"); }
else
res.sendRedirect("http://localhost:8080/login.html");
} catch(SQLException e)
{ e.printStackTrace();}
rs.close();
con.close();
out.close();
After this try creating a odbc for oracle database at control panel with the name ms.
Please inform me wat happens after this and friend do give some information about wat kind of web-server are you using.Because calling of your servlets differs the way your configure your web-server and the default configurations differ from web-server to web-server.
Regards,
RAHUL -
How to call servlets in sunone webserver
hi,
I am using sunone web server , I deployed but how to call servlets in sunone webserver any one tell me
byeTypical URL structure is like this:
http://<myServer>:<myPort>/servlet/<fully qualified class name of my servlet>Unless you have configured a different servlet mapping ... -
How to run servlet in weblogic 8.1
hi!
i m new to weblogic.how to run servlet in weblogic8.1.i get lot of errors when i compile it in command prompt.but when i do the same thing in tomcat,i dont get errors & it runs successfully.help me out.how to compile servlets in weblogic 8.1.some say i have to create .jar file.pls tell me the procedure.i m new to j2ee.i have installed jdk1.5 .
pls its urgenta lot of error....
mmmm no sorry, i don't see
it remembers me when i was dating sarah,it was very difficult... but now i'm dating anne it's really easier... any idea on what was going wrong with sarah?
ok sorry for this allegory, just tired to ask always the same thing:
WHAT ERRORS??? -
How to Run servlet in Tomcat 5.5.9
hi
How to run servlet in tomcat 5.5.9?how to set context path in server.xml of conf folder in tomcat since there is no context tag in server.xml.
JitenHi ! I have a similar problem, well, it's along the same line ...
I'm using NetBeans 4.1, and i've coded a servlet. Using NetBeans to launch my servlet (with the bundled Tomcat 5.5.7) works fine, however i need to deploy my application unto a Tomcat 5.5.9 server.
Thus, i copied the WAR file generated by NetBeans into the Tomcat 5.5.9 webapps directory, and Tomcat expands it.
Problem is when i run my JSP pages with the form tags, they do not work on the Tomcat 5.5.9 environment. Anyone knows why?
(These work on the NetBeans Tomcat bundle 5.5.7)
My form action :
<form name="index" method="get" action="PageServlet">
My web.xml :
<servlet>
<servlet-name>PageServlet</servlet-name>
<servlet-class>application.PageServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>PageServlet</servlet-name>
<url-pattern>/PageServlet</url-pattern>
</servlet-mapping>
I'm really stumbed on why it doesn't work in Tomcat 5.5.9, any help is greatly appreciated, thanks in advance ^_^ -
How to run Servlet in Tomcat 5.5.7 Server
Hi,
How to run Servlet in Tomcat 5.5.7 Server. I mean where I should copy my *.class file.
Thanks in Advance.
bbye.In order to complile the servlet you need to tell java where to find the servlet libary (as stated above by setting the class path). or (much easier IMO)
copy the servlet-api.jar to
JavaInstallDirectory\jre\lib\ext -
How to make servlets reloadable in iplanet web server in solaris??
hi all,
does anyone know how to make servlets reloadable in iplanet ??? Thanks for helpHi there,
I think your question is about "Dynamic Class Reloading", also named as Hot deployment. and the following lines may be helpful.
iAS 6.0 SP3 and later version supports new hot deployment features through dynamic class
reloading of EJBs.By default, dynamic servlet, EJB and registered JSP reloading is disabled in iPlanet Application Server.
To enable dynamic reloading of servlets, EJBs and registered JSPs, perform the following steps:
1.Start iPlanet Registry Editor, kregedit, and modify the Disable value under the Versioning key:
SOFTWARE/iPlanet/Application Server/6.0/CCS0/SYSTEM_JAVA/Versioning
2.Set the Disable value to 0 (By default, the Disable value is set to 1)
3.Restart iPlanet Application Server to enable the change
To hot deploy your application, simply compile and replace the file in the appropriate directory or, use iasdeploy to redeploy
applications.
I recommand you to check out the iAS's release notes (http://docs.iplanet.com/docs/manuals/ias/60/sp3/rn_sp3.html#20766) for more infomation.
Good luck
Shen Jie
Developer Technical Support
Sun Microsystems
http://sun.com/developers/support -
How to display servlet dynamically generated image ?
Hi,
How to display servlet dynamically generated image ?
I have a servlet generating a buffered image in the doGet. I want to display the image in a jsp page with other information. I'm not able to get it properly displayed.
**Try n# 1 **************************************************************
This displays my image but nothing elle :
ServletOutputStream sos = pResponse.getOutputStream();
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sos);
encoder.encode(img);
**Try n# 2 ****************************************************************
I tried also :
In the servlet :
request.setAttribute("renderedImage", img);
and in the jsp page :
BufferedImage image = (BufferedImage) request.getAttribute("renderedImage");
<img src="<%=ImageIO.write(image,"jpeg",response.getOutputStream())%>" width="300" height="280"/>
This last try draws big crap in the jsp page, thank you in advance.
NelsonCall another servlet from the IMG tag. Have the servlet stream out the image using ImageIO (instead of writing HTML).
-
How to run servlet,jsp in eclipse software
can any one tell me how to run servlet ,jsp in eclipse
and how to start tomcat server in eclipse
reply me
regards
saravanaCan anybody help me as I wanted to know how to run servlet,jsp in eclipse software...
If somebody can forward me the screenshots than it would be of great help....
Thanks -
How to run servlet,jsp in eclipseand to start tomcat in eclipse
hi
i want to know how to run servlet and jsp in eclipse 3.0
and to start tomcat server in same.
please reply me the steps involved indetail.
regards
saravanakumarFind Lomboz J2EE plugin and a tutorial of how to use it :)
Maybe you are looking for
-
Windows storage server 2008 R2 : i have an Issue with limiting acces group in a domain
Hi, I have a NAS with Windows storage server 2008 r2. I have added it in my domain and i have check the check box – Allow access only to users in the following group: but i can select the groups i want to add it doesn't appear in the selection box. M
-
How to custom SQL in ADF JDeveloper 10.1.3.3
How to custom SQL in ADF JDeveloper 10.1.3.3 as follows, SELECT A.attribute1, A.attribute2, B.attribute1, B.attribute2, FROM table1 A, table2 B WHERE A.id = B.id Thanks sumury
-
Procurement Card in SRM 7.0 Extended Classic with PPS
Could sometime tell me if we can implement Procurement Card functionality when you have SAP SRM 7.0 Extended Classic with PPS enabled. Appreciate any help in this regard. Thanks, Alisetty
-
How to export fields which are rendered false from a page?
Hi , I have a requirement to export the data to excel, i am able to do it using export button. but the problem is i need to export the all the fields which are there in the VO query but some of them are not renderd on the page. Please suggest some so
-
FI and Billing Rate configuration
Question Deleted. Posted in next thread. Edited by: ABAP Programmer on Sep 18, 2009 9:45 AM