How to init a servlet with 5.1.0 ?
I did not have any answers last week, altough I think this is an easy
one... So I'm reposting :)
With 4.5.1, I used to have lines like this :
weblogic.system.startupClass.starServlet=weblogic.servlet.utils.ServletStartup
weblogic.system.startupArgs.startServlet=servlet=myServlet
to have one of my previously defined servlets (myServlet) initialized at
startup... It looks like this does not work anymore with 5.1.0, because
I get :
Wed Apr 19 11:50:52 PDT 2000:<I> <WebLogicServer> Invoking
T3StartupDef startHub weblogic.servlet.utils.ServletStartup with
{servlet=myServlet}
Wed Apr 19 11:50:52 PDT 2000:<I> <WebLogicServer> T3StartupDef
startHub weblogic.servlet.utils.ServletStartup reports:servlet:
myServlet not found
Any idea how I can do this now ?
Thanks a lot,
--Seb
Hi Sebastien,
Apparently this has been broken in WLS 5.1 and already been fixed. (Issue # 10245)
This fix will be included in next service pack.
Please follow-up with support if you need a one-off patch.
--Kumar
Sebastien Delafond wrote:
> I did not have any answers last week, altough I think this is an easy
> one... So I'm reposting :)
>
> With 4.5.1, I used to have lines like this :
>
> weblogic.system.startupClass.starServlet=weblogic.servlet.utils.ServletStartup
>
> weblogic.system.startupArgs.startServlet=servlet=myServlet
>
> to have one of my previously defined servlets (myServlet) initialized at
>
> startup... It looks like this does not work anymore with 5.1.0, because
> I get :
>
> Wed Apr 19 11:50:52 PDT 2000:<I> <WebLogicServer> Invoking
> T3StartupDef startHub weblogic.servlet.utils.ServletStartup with
> {servlet=myServlet}
> Wed Apr 19 11:50:52 PDT 2000:<I> <WebLogicServer> T3StartupDef
> startHub weblogic.servlet.utils.ServletStartup reports:servlet:
> myServlet not found
>
> Any idea how I can do this now ?
>
> Thanks a lot,
>
> --Seb
Similar Messages
-
How can i Use SERVLET with RMI to avoid trust certificate
I know that for begining RMI, you must launch the server and the client.
for the server i use :
java -Djavax.net.ssl.trustStore=server.keystore -Djavax.net.ssl.keyStore=server.keystore -Djavax.net.ssl.keyStorePassword=server TestServer
for the client I use :
java -Djavax.net.ssl.trustStore=client.keystore -Djavax.net.ssl.keyStore=client.keystore -Djavax.net.ssl.keyStorePassword=client TestClient
and all work fine.
but i want to use a servlet for rmi client and i wrote this:
public class AppelServlet extends HttpServlet
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
try
System.out.println("Registering secure RMI socket factory ...");
java.rmi.server.RMISocketFactory.setSocketFactory(new SecureRMISocketFactory());
TestRemote test = (TestRemote) Naming.lookup("rmi://127.0.0.1:7123/TestClient");
String reponse=test.toLowerCase("HELLO WORLD");
System.out.println("la reponse est : "+reponse);
catch (Exception e)
System.out.println("test client exception: " +e);
PrintWriter out = response.getWriter();
response.setContentType("text/html");
and i have the following error on tomcat:
Registering secure RMI socket factory ...
test client exception: java.rmi.ConnectIOException: error during JRMP connection
establishment; nested exception is:
javax.net.ssl.SSLHandshakeException: Couldn't find trusted certificate
i think i must precise how to indicate the truststore like in the first case.
help me please.
hamdiHi,
Try doing the following steps.
Assuming you have a certificate obtained
Export the certificate into a .cer file.
On IE, goto tools->internet options->content->certificates, and export to a .cer file.
Using keytool of java import the certificate to the store that can be used doing the following command.
keytool -import -alias <ailas> -file < .cer filename> -keystore <storename here>
set the javax.net.ssl.trustStore and javax.net.ssl.trustStorePassword properties at the command prompt using the command below.
java -Djavax.net.ssl.trustStore=<storename> -Djavax.net.ssl.trustStorePassword=<password> <classname>
Let me know if this helped.
Also take a look at this link for using RMI with SSL
http://java.sun.com/products/jdk/1.2/docs/guide/rmi/SSLInfo.html
Regards,
Roopasri Vittal
Developer Technical Support
Sun Microsystems
http://sun.com/developers/support -
How to run a servlet with jboss
Hello everybody my name is Noe I'm new in the forums . I want some information about how to configure and run a servlet and a jsp for the jboss server . Please help me, I have about 4 days searching information about this, and there is few information or the tutorials that I read were insuficient. I need one tutorial step by step or someone that explain me how to do this. Please help me with this
Thank's a lot.Which error do you get!
If you just want to run jsps and servlets the you should use tomcat instead of jboss.
jboss is an aplication server that uses tomcat and adds an EJB container.
usually you use a build.xml file to run deployment scripts but if not, then you can manually copy the project folder into the jboss --> instance ---> web zone (I said this way because I dont remember the exactly folder)
Another thing is that you must have the project estructure built on the correct way defined by the estandar. I mean the WEB-INF folder, the web.xml file, the classes folder, etc.
next time yo may consider to post this on the j2ee section.
a web.xml file.
What problem do you exactly have when doing this, you cant ask for a tutorial step by step, but punctual things. Try it and if you cant then ask. -
How to configure XSQL-Servlet with Weblogic 6.0
Hi,
what are the steps to configure the xsql-servlet? I downloaded ora xdk 9.2 and getting the following error when requesting demo via url= http://localhost:7001/xsql/home.xsql:
Oracle XDK Java 9.2.0.6.0 Production
XSQL-001: Cannot locate requested XSQL file. Check the name.
In general, I can't run either demo that came with XDK... please help!
Vipul,
Can you try adding them as the first entry in the classpath in the
startWebLogic.smd file.
Raj Alagumalai -
Need basic info how to run my servlet with SSL/http (I am using Tomcat 4.0.
I have a servlet that gets a user id and password
and query information from an HTML form
and then writes back the answer to the query as a new web page. We want to
make the transaction secure because it is customer confidential information.
What do I need to do in my servlet to get it to run under SSL?
(I am using Apache Tomcat 4.0 on WinNT and
can use either JDK 1.2.2 or 1.3.1....)
I know this is a very basic question, but what I'm reading does not
make it clear to me what I have to do to my servlet code to use SSL, or
whether the server and client do all the work "outside" my
servlet code so that no changes to the servlet would be required(???).
Can I use Tomcat 4.0 for SSL? Any help getting my head pointed in the right
direction will be much appreciated. (You may reply to this forum or
to my email: [email protected]
Much thanks!When one follows this how-to, one got the following result:
The same page, say xyz.html, can be accessed in two ways: one is from
http://localhost:8080/xyz.html, and the other is from https://localhost:8443/xyz.html.
How can one allow people to be only able to access from https://localhost:8443/xyz.html, to be not able to access from http://localhost:8080/xyz.html? There is one sentence mentioned some where that Servlet 2.4 specification can do this. But Servlet 2.4 specification would not provide any help. Any clue? -
How to pass parameters to servlet with POST with Business Service OSB
Hi all.
I am newby in OSB. I am trying to send some values through a POST call to a servlet. I know how to call the servlet with Business Service of type "Messaging Service". I send the parameters of type Text.
I have tried several ways, but I don`t find the proper way yo do it. I have tried to insert the param into the body and into the header.
The problem is that I don`t know exactly where to put them, I don`t know if it must be done in the header or in the boy. I neither don`t know if there is a common way to do this.
Please, could you give me a good example of an insert activity to isert a post parameter inside the call?
For example: now I am using this one:
Expression => "accountType=test"
Location => as first child of"
XPATH => empty.
In variable => body.
Where do I have to insert this, in the body or in the outbounds?
I have followed this posts:
https://blogs.oracle.com/jeffdavies/entry/enhanced_rest_support_in_oracl
http://www.yenlo.nl/en/using-osb-with-rest/
Thanks a lot.Hi,
Please be carefull about passing values such as Strings or number that contains ',' .
using the way described above.
the best way is to pass an ID and then use a select Statement to get the other Values in the target page.
regards
MDK. -
How to run servlet with tomcat
I have a probrom that how can I run servlet with tomcat?
I have new a folder classes in webapps\root\WEB-INF\,and put the .class
programme in it ,but http://localhost:8080/servlet/HelloWorldExample
can't run ,it give me a error than http:404 not found.
could you tell me how i can solve the problem.
Thank u very much.Hi,
Make sure the class is in classpath or in WEB-INF/classes folder and make an entry for servlet tag in web.xml in WEB-INF folder.
Regards -
Debugging Servlet with JBuilder 6
Does anyone know how to debug a servlet with JBuilder version 6?
I have created the servlet without the wizard.
Thanks.
-AmarYou can use ServletExecDebugger from NewAtlanta.
You can download ServletExecDebugger at
http://www.newatlanta.com/products/servletexec/download.jsp
1. Extract ServletExecDebugger files to your local folder
2. Import ServletExecDebugger.jar file into you JBuilder
workspace
3. There will be ServletExecDebuggerMain.java file
Import that also.
4. Set ClassPath, Project Path , etc and off you go.
ServletExecDebugger comes with good documentation
for a free debugger.
I have been using it for sometime now (in both JBuilder and Visual Age) and find it relatively simple to setup and good for debugging servlets.
You cannot debug JSPs that much easier though !
Hope this helps..
KD -
How to call a servlet by java standalone application
//program related to calling a servlet by java standalone application and printing the response on console
import java.io.*;
import java.util.*;
import java.lang.Object;
import java.net.*;
public class Program
public static void main(String s[])
System.out.println("Hello this programm defines about how to call a servlet with a java application ");
try{
URL servlet = new URL("http://localhost:8080/anchor/studentform.html");
URLConnection conn=servlet.openConnection();
conn.setDoOutput(true);
InputStreamReader isr=new InputStreamReader(conn.getInputStream());
BufferedReader br = new BufferedReader(isr);
String str =br.readLine();
System.out.println("Source code is" +str);
catch(IOException e)
System.out.println("exception is" +e);
i am able to read only one line of the form, please help me out to read the whole form (file)You are only reading one line? Why aren't you reading the data in a loop? E.g. a while loop. (Keep reading till readLine returns null)
Kaj -
How to deploy an app with servlet and background processing
i have a servlet with background processing. it has to run 24 hours a day.
but i have problem with shutdown (after 1-2 hours without user action). [9iAS 9.0.3.0, windows 2000]
i created for application seperate OC4J (in the EM) and i deployed it there. first time as war file, later as ear file (because there is possible to re-deploy only ear file).
but it seems that the servlets are not designated to run as a uninterruptible task.
the question is: how to deploy such (servlet + uninterruptible background processing) application in the 9iAS?
a) everything in the OC4J (then how to disable shutdown?)
b) servlet in the OC4J. where (and how) to install the rest of application?
b1) servlet in the OC4J + rmi/soap/... + standalone server?
what is the standard in the oracle world :) ?
thanksBetter to post your topic in the iPad in the Enterprise community.
This is the, "Using Mac App Store" forum and for the most part for troubleshooting the App Store. -
How to upload a file into server using j2ee jsp and servlet with bean?
How to upload a file into server using j2ee jsp and servlet with bean? Please give me the reference or url about how to do that. If related to struts is more suitable.
Anyone help me please!u don't need j2ee and struts to do file uploading. An example is as such
in JSP. u use the <input> file tag like
<input type="file"....>You need a bean to capture the file contents like
class FileUploadObj {
private FormFile srcFile;
private byte[] fileContent;
// all the getter and setter methods
}Then in the servlet, you process the file for uploading
* The following loads the uploaded binary data into a byte Array.
FileUploadObj form = new FileUploadObj();
byte[] byteArr = null;
if (form.signFile != null) {
int filesize = form.srcFile.getFileSize();
byteArr = new byte[filesize];
ByteArrayInputStream bytein = new ByteArrayInputStream (form.srcFile.getFileData());
bytein.read(byteArr);
bytein.close();
form.setFileContent(byteArr);
// Write file content using Writer class into the destination file in the server.
... -
How to activate / disactivate a servlet with a java client ?
I would like to know how to activate or disactivate a servlet with a java client or an applet ?
Thanks...What does "activate" mean for servlets?
-
How to configure IIS webserver with weblogic so that I can
invoke servlets without the .wlforward extension
As per the documentation iisforward.dll is registered as a filter and .wlforward
has also been
included as a special file type. However this requires me to key-in ".wlforward"
after my servlet name.
What I want is something like this
http://iis/MyServlet
Please help me find a solution to this
Thanks,
RishiI am able to invoke the servlet without the wlforward extension now.
However, now I am required to add /weblogic before the servlet
name otherwise it does not execute the pathtrim property.
I have tried with the pathprepend thing also.
Can we get rid of the /weblogic part also. I just want to execute
my servlet as http://iis/myServlet.
Your help in this regard is greatly appreciated...
Thanks..
"Rishi" <[email protected]> wrote:
>
Thanks for the reply Kumar.
I did follow the instructions as given in the Weblogic documentation
The documentation said to add iisforward.dll as a filter service
and register .wlforward as a special
file type to be handled by iisproxy.dll. For this,
while configuring the IIS server in the Home Directory tab
I added an extension ".wlforward" and the executable as
iisproxy.dll. Is this the way it should have been done...
I also modified the iisproxy.ini file as per the documentation.
I have added the WLForwardPath property and set it to /weblogic.
My server works fine when I give the url as
http://iis/myServlet.wlforward
but it does not work for
http://iis/myServlet and this is the way i'd want it to work.
Please tell me if I am missing something on the configuration part
and if there is something special that needs to be done. I shall
be grateful to you.
Kumar Allamraju <[email protected]> wrote:
http://e-docs.bea.com/wls/docs61/adminguide/isapi.html#101184
Rishi wrote:
How to configure IIS webserver with weblogic so that I can
invoke servlets without the .wlforward extension
As per the documentation iisforward.dll is registered as a filter
and
.wlforward
has also been
included as a special file type. However this requires me to key-in".wlforward"
after my servlet name.
What I want is something like this
http://iis/MyServlet
Please help me find a solution to this
Thanks,
Rishi -
How can i deploy a servlet with eclispe
Hello,
will any one of u give me the steps to deploy a servlet with eclipse on portal server(J2EE Engine),
in help of eclipse they given as, whole webapplication deployement, but that is also giving me a error, the procedure they given is, once we created a .war file for our servlet project we need to refer this to a .Ear file, and then this Ear can be deployed in to the server. Is it the same and only procedure to deploy a servlet with eclipse, or if there is any other method,please give me the steps also.
when i am deploying with the .Ear file, it is giving the error as,
Jun 4, 2005 11:34:31 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
[001]Deployment aborted
Deployment exception : Cannot determine sdm host (is empty). Please configure your engine/sdm correctly !
but the sdm is working on the server with the same host, and local deployement is also done successfully, but from my system im not able to deploy!
Thanks&Regards,
Sireesha.Yeah, i am able to see the J2EE engine clusters, there the message server port is given as 3601. becoz scs instance number is 1 here. so it is not the problem,
the error it is giving as,
Jun 6, 2005 11:37:28 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
[001]Deployment aborted
Settings
SDM host : obtdev9
SDM port : 50018
URL to deploy : file:/C:/DOCUME1/sireesha.b/LOCALS1/Temp/temp56446MyServletEAR.ear
Deployment exception : Server obtdev9 did not accept login request as apiadmin on port 50018 - CmdXmlFactory could not find Top Element within String: "null".
Inner exception was :
Server obtdev9 did not accept login request as apiadmin on port 50018 - CmdXmlFactory could not find Top Element within String: "null".
is this may be the problem with port number?
i am not knowing what is happening here...
if you know the exact error based on the error messgae please help me,
thanks to u for helping in this problem,
Regards,
sireesha. -
How can I run a servlet with tomcat
I'm a new learner in servlet,I recently write a servlet program,when I compile it,the compiler throws the error
"package javax.servlet.http does not exist",I have put the servlet.jar(which exist in d:\tomcat\bin directory) file into the classpath directory;my servlet source files are in D:\tomcat\webapps\mywork\web-inf\classes\com\stardeveloper\servlets;
"com.stardeveloper.servlets" is the package for my servlet source files,so I have write the sentence "package com.stardeveloper.servlets;" in my servlet source file.
I don't know how to resolve this problem.can you give me a help?servlet.jar doesn't exist in the folder you mentioned, but rather, in C:\tomcat40\common\lib, so this should be included in your classpath, the other thing you should care about is how you compiled your servlets, so that the package statement match the hirarchy of the file.
regards
Maybe you are looking for
-
Please help me about report doesn't working proparly .
Let's define shortly . I want to get mvke s001 join material vtext from t179t table . prodh stufe vtext 13010102 4 extra 1301010201 5 long . REPORT YPRODH. tables: t179,t179t,vbap,S001,MVKE. data: begin of i_s
-
Error creating instance of class from same package
When I try to create an instance of a class that is in the same package, my IDE indicates that the constructor can not be found. Can anyone tell me what is wrong? Thanks. Below are the codes for both classes: package com.practice; import java.applet.
-
Blackberry curve 8520 configuration
Hi everyone, does any of you know if it is possible to use a blackberry curve 8520 bought in Italy with an UK operator?
-
Can I have 2 systems on 1 computer?
Can I have firefox and internet explorer on the same computer?
-
Dear frnds I am very new to java. I trieds to turn off my back light using setLights function. But in my Netbeans IDE 4.1 (with mobility 1.4.2 and nokia sdk 2.0) I am not able to import the class com.nokia.mid.ui.DeviceControl. Even I don't know from