How to configure the .EAR to the OC4J server step by step ?
I have configured the JavaBean of the OC4J server with the following step:
1.create the eosp.ear with the JDeveloper's wizard
2.copy the eosp.ear to the OC4J Server with the Path:
J2EE_HOME/applications/
3.modify the server.xml and add the following words:
<application name="eosp" path="../applications/eosp.ear" auto-start="true"/>
4.restart the OC4J server and show the information:
Auto-deploying eosp (New server version detected)...
5.create the new JSP and this source code is:
<%@ page import="com.beautybeard.eosp.common.*"%>
<%@ page import="com.beautybeard.eosp.constant.*"%>
6.visit the JSP and show the error information:
Error parsing JSP page /eosp/usr_profile/login.jsp
Syntax error in source/eosp/usr_profile/login.jsp.java:5: Package com.beautybeard.eosp.common not found in import.import com.beautybeard.eosp.common.*; ^/eosp/usr_profile/login.jsp.java:6: Package com.beautybeard.eosp.constant not found in import.import com.beautybeard.eosp.constant.*; ^2 errors
why?
why can not find the package?
please help me out
Hi Sky-
It looks like you have a web application only.
You need to create a war file as described above. A war file is a jar'd file containing your web components, including your javabean class files, etc. JDeveloper 9i can do this for you. You've already done the hard work. Suppose that the project you have created that contains your javabeans, etc in JDev 9i is called myproject (with myproject.jpr as the project file). Right click on the myproject.jpr in the JDev navigator and select 'new...', go to Deployment Profiles and select J2EE Web Module (WAR File) - a general screen will pop up asking you to save the deployment profile (you can just use the default if you want). Once you select OK on that, you will get a screen that calls itself the J2EE Web Module Deployment Profile Settings. This is the screen that you can use to enter your information.
Your servlet and javabean classes will go into WEB-INF/classes subdirectory that you see to your left in this window. Simply select the WEB-INF/classes entry and it will display a list of your java sources (it will only place the compiled output in this directory - there is a toggle for it).
Once you have specified that your javabean and servlet classes go in this directory, you should be set. Go ahead and save / close. In your navigation screen under your project (myproject.jpr or whatever your project name is) you will see your files, jsps, etc and something called webapp1.deploy (if you accepted the default). If you right-click on that, you will get a menu that asks a number of things, one of which is to Deploy to EAR file. Select that entry and it will create an ear file for you. You can play with the various settings to change the name of the ear file, but that's about all you have to do. Once this is completed, you can put the EAR file on your linux box or wherever you want, adjust your server.xml and default-web-app.xml files and launch the app!
Good luck!
Ray
Hi,Ray
Thank you for giving me the detail information!
I'm sorry that I can not give the detail and clear problem ,which make you delusoried.
ok,now I give you my aim.
1. I will construct my application system with JavaBean(not EJB),Servlet,JSPs (linux+IAS+JDeveloper+Oracle8i database)
2. I will package business function with JavaBean. example:
* CheckLogin.java
package com.beautybeard.eosp.javabean.usrprofile;
import com.beautybeard.eosp.common.*;
import com.beautybeard.eosp.data.*;
import java.io.*;
import java.lang.*;
public class CheckLogin{
public CheckLogin()
//do nothing here
public boolean getCheckLogin(){
3. I will control the request and response with Servlets.
example:
*CheckLoginSevlet.java
package com.beautybeard.eosp.servlet.usrprofile;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.sql.*;
import com.beautybeard.eosp.servlet.*;
import com.beautybeard.eosp.javabean.usrprofile.*;
public class CheckLoginServlet extends DefaultServlet
public void service(HttpServletRequest req,HttpServletResponse res) throws IOException, ServletException
//use the JavaBean
CheckLogin cl = new CheckLogin();
if (cl.getCheckLogin){
res.sendRedirect("login.jsp");
}else{
res.sendRedirect("err.jsp");
4. I will display the result with JSPs:
example:
<%//login.jsp%>
<%@ page import="com.beautybeard.eosp.common.*"%>
<%@ page import="com.beautybeard.eosp.data.*"%>
5. I have success on running the above steps in the 9iJDevelper(pure java) environment(OS:Windows 2000 Server), and now I will move the JSPs ,Servlets,JavaBeans to the Server(linux) without the JDeveloper's deployment wizard.
how to configure the IAS to carry my point?
thank you!
Sky liu
Similar Messages
-
How to configure the smtp server..
i had an error when running the java mail program..
this is my program
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
import java.io.*;
import java.util.Properties;
public class MailClient
public void sendMail(String mailServer, String from, String to,
String subject, String messageBody,
String[] attachments) throws
MessagingException, AddressException
// Setup mail server
Properties props = System.getProperties();
props.put("mail.smtp.host", mailServer);
// Get a mail session
Session session = Session.getDefaultInstance(props, null);
// Define a new mail message
Message message = new MimeMessage(session);
message.setFrom(new InternetAddress(from));
message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
message.setSubject(subject);
// Create a message part to represent the body text
BodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setText(messageBody);
//use a MimeMultipart as we need to handle the file attachments
Multipart multipart = new MimeMultipart();
//add the message body to the mime message
multipart.addBodyPart(messageBodyPart);
// add any file attachments to the message
// addAtachments(attachments, multipart);
// Put all message parts in the message
message.setContent(multipart);
// Send the message
Transport.send(message);
protected void addAtachments(String[] attachments, Multipart multipart)
throws MessagingException, AddressException
for(int i = 0; i<= attachments.length -1; i++)
String filename = attachments;
MimeBodyPart attachmentBodyPart = new MimeBodyPart();
//use a JAF FileDataSource as it does MIME type detection
DataSource source = new FileDataSource(filename);
attachmentBodyPart.setDataHandler(new DataHandler(source));
//assume that the filename you want to send is the same as the
//actual file name - could alter this to remove the file path
attachmentBodyPart.setFileName(filename);
//add the attachment
multipart.addBodyPart(attachmentBodyPart);
public static void main(String[] args)
try
MailClient client = new MailClient();
String server="smtp.canvasindia.com";
String from="[email protected]";
String to = "[email protected]";
String subject="Test";
String message="Testing";
String[] filenames ={"c:/A.java"};
client.sendMail(server,from,to,subject,message,filenames);
catch(Exception e)
e.printStackTrace(System.out);
the error is .................
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 553 Attack detected from p
ool 59.144.8.116. <http://unblock.secureserver.net/?ip=59.144.8.*>
at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
at javax.mail.Transport.send0(Transport.java:169)
at javax.mail.Transport.send(Transport.java:98)
at MailClient.sendMail(MailClient.java:47)
at MailClient.main(MailClient.java:84)
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 553 Attack detected fro
m pool 59.144.8.116. <http://unblock.secureserver.net/?ip=59.144.8.*>
at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047)
... 5 more
how to configure the smtp server in my machine..
please guide me...This uses gmail account, and gmail smtp
* MailSender.java
* Created on 14 November 2006, 17:07
* This class is used to send mails to other users
package jmailer;
* @author Abubakar Gurnah
import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;
public class MailSender{
private String d_email,d_password;
* This example is for gmail, you can use any smtp server
* @param d_email --> your gmail account e.g. [email protected]
* @param d_password --> your gmail password
* @param d_host --> smtp.gmail.com
* @param d_port --> 465
* @param m_to --> [email protected]
* @param m_subject --> Subject of the message
* @param m_text --> The main message body
public String send(String d_email,String d_password,String d_host,String d_port,
String m_from,String m_to,String m_subject,String m_text ) {
this.d_email=d_email;
this.d_password=d_password;
Properties props = new Properties();
props.put("mail.smtp.user", d_email);
props.put("mail.smtp.host", d_host);
props.put("mail.smtp.port", d_port);
props.put("mail.smtp.starttls.enable","true");
props.put("mail.smtp.auth", "true");
//props.put("mail.smtp.debug", "true");
props.put("mail.smtp.socketFactory.port", d_port);
props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.socketFactory.fallback", "false");
SecurityManager security = System.getSecurityManager();
try {
Authenticator auth = new SMTPAuthenticator();
Session session = Session.getInstance(props, auth);
//session.setDebug(true);
MimeMessage msg = new MimeMessage(session);
msg.setText(m_text);
msg.setSubject(m_subject);
msg.setFrom(new InternetAddress(m_from));
msg.addRecipient(Message.RecipientType.TO, new InternetAddress(m_to));
Transport.send(msg);
return "Successful";
} catch (Exception mex) {
mex.printStackTrace();
return "Fail";
//public static void main(String[] args) {
// MailSender blah = new MailSender();
private class SMTPAuthenticator extends javax.mail.Authenticator {
public PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(d_email, d_password);
} -
How to configure the Integration Server Settins?
Hi,
I am doing a scenario like Idoc 2 File, I am passing parameter of Adapter Engine is a Integration Server, and when we generate a Idoc and send to XI system using TC: WE19. XI System is not picked the Idoc, and when i am checking RWB the Adapter Framework. Please Guide me how to configure the Integration Server setting.
Regards
MohanHi,
did you checked the ur IDOC outbound status?
also check IDX5, whether it has reached XI system.
plz do check all ur settings:
1. Create RFC destination to XI in SM59 transaction
2. Create a port in we21
3. Create partner profile we20
4. we05- Idocs monitoring
XI Settings:
1. Create RFC destination to XI in SM59 transaction
2. Idx1 Port maintenance
3. Idx2 - Metadata maintenance
4. Idx5 All Idoc inbound and outbound messages
regards
Message was edited by:
Vijaya Lakshmi MV -
I install oracle 9ias 9.0.3,but i don't know how to start the oc4j server.
thanks for any help?hi
Refer "Starting and Stopping OC4J" from
http://otn.oracle.com/tech/java/oc4j/doc_library/902/A95880_01/html/toc.htm
hope this helps.
shrini -
How to configure the Access Server?
Hi All
I am in the process of migrating from 11.0.1 to 12.0.
I have some real-time jobs.
For this I need to configure the Access Server.
I can understand I should do this from Server Manager>Edit Access Server Config>Add
Here what info we need to give? Does it mean we need to give the server name on which current version is installed? How to choose the port?
My old version DI 11.0.1 is using port 4000. Also in the DS Mgmt Console, I am defaultly getting the Old Job Server in the Adapter Config node. How to remove this?
Someone plz help me on this.
Thank You
Ganesh SampathYou have to explicitly share directories on external/secondary volumes.
Use the Server admin app to configure file sharing, and select which directory/directories on the second drive you want to share, then they'll be available to clients. -
How to Configure the Weblogic Server 6.0 Beta version with Solaris 8
Hello,
I have problem in starting the weblogic server 6.0 beta version.
It is occupying hell of space and running very slow. When I try
to deploy the bean it is throwing exception like timeout.
Plese do suggest me what to do. and how to configure properly.
Thank you,That typically happens when you have your database connections configured
incorrectly. WebLogic is timing out on accessing the database.
Michael Girdley
BEA Systems Inc
"Laxmikanth" <[email protected]> wrote in message
news:3a35523c$[email protected]..
>
Hello,
I have problem in starting the weblogic server 6.0 beta version.
It is occupying hell of space and running very slow. When I try
to deploy the bean it is throwing exception like timeout.
Plese do suggest me what to do. and how to configure properly.
Thank you, -
How to configure the web server
Hi there!
I'm using the Apache Server 2.0.63 and PHP 5 on my computer
and Apache is set as "loclhost" using the port 80 .They're are both
good to go but I have failed to configure Dreamweaver so that I
would be able to test my PHP projects directly from Dreamweaver.
Please help my by giving me a piece of advice or suggesting
me some useful links.
Thank you!raducutzu5 wrote:
> Hi there!
> I'm using the Apache Server 2.0.63 and PHP 5 on my
computer and Apache is set
> as "loclhost" using the port 80 .They're are both good
to go but I have failed
> to configure Dreamweaver so that I would be able to test
my PHP projects
> directly from Dreamweaver.
Open the site definition and select the Advanced tab.
In the Testing server category, use the following settings:
Server model: PHP MySQL
Access: Local/network
Testing server folder: path to site root
URL prefix: URL of site root.
Testing server folder and URL prefix both point to the same
place. The
first is the physical path, the second is the URL you use to
get there.
For example:
Testing server folder: C:\htdocs\mysite\
URL prefix:
http://localhost/mysite/
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
How to run the oc4j server on port 80
Hi,
We want to run Oc4j on port 80 and do not want to install OHS.
We hava a script, oc4jStartStop, that start and stop the server. It has following file permisions:
-rwsr-sr-x 1 root root 1479 sep 6 10:29 oc4jStartStop
When a non root user starts the server by executing this script we get an error:
19.09.02 09:06: Error starting HTTP-Server: Permission denied
Script starts the java process as follows:
ORION_HOME=/my/orion/catalog/j2ee/home; export ORION_HOME
java -Xmx400m -Dp6.home=$ORION_HOME/lib -jar oc4j.jar &
Any suggestion?
Regards
MayuIn the file <OC4JHOME>/config/http-web-site.xml you can change the port number of OC4J to your preference.
<web-site port="8888" ...
Just change this to port="80"
As for your other question, I'm sorry I can't be of any help.
Ole -
Multifunction printer - how to configure the scanner
Hi,
I just finished installing a multifunction printer - Canon Mx 310 to the print server using a computer with Win 7 (64bit).
The printing option works perfect. Now I need to configure the scanner option, since I get an error that no scanner is connected when trying to use the scanning option.I connected the multifunction printer directly to the computer and I am able to scan.
Can someone guide me in how to configure the print server so the computer can detect the scanning port.
ThanksI will try the software at the page you linked to. I am in a similar boat, in that one of my machines is Windows 7, but the utility on my XP machine doesn't see the print server even though it's there and can be accessed on the network as a printer by both machines.
-
Configuring the file server in KM and access,edit the documents from it
Hi friends,
My requirement is to configure the file server where u will have all the structured and unstructured data stored here. So users can share the documents and create, edit ,save the documents from the file server itself.
In KM what kind of file servers are there apart from the one it supports by default.
Can anybody pls provide the configuration steps regarding how to configure the file server i KM.
To configure the file server is webDAV protocol required?
Points would be assigned for the helpful answer.
Thanks in advance.
Regards
Sireesha.Dear Sireesha,
Well KM supports mostly all the File server however we have some restrictions with Novell FS and Sharepoint Server from Microsoft. Like versions and other meta data have some issues.
Alsothough to configure a File Server you need to first create a FS repository Manager. Details can be found in the help guide:
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/e3/92322ab24e11d5993800508b6b8b11/frameset.htm">FS Repository Manager</a>
Yes WebDAV protocol is required here.
You can create WebDav RM as well.
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/4a/217fb6c33c6748a1715a161ac942cd/frameset.htm">WEBDAV</a>
The above links will help answer your queries.
Regards
Anjali -
I have ASA 5505 8.4. How to configure the switch to the backup channel to the primary with a delay (for example 5 min.) using the SLA monitor?
Or as something else to implement it?
My configuration for SLA monitor:
sla monitor 123
type echo protocol ipIcmpEcho IP_GATEWAY_MAIN interface outside_cifra
num-packets 3
timeout 3000
frequency 10
sla monitor schedule 123 life forever start-time now
track 1 rtr 123 reachabilityHey cadet alain,
thank you for your answer :-)
I have deleted all such attempts not working, so a packet-trace will be not very useful conent...
Here is the LogLine when i try to browse port 80 from outside (80.xxx.xxx.180:80) without VPN connection:
3
Nov 21 2011
18:29:56
77.xxx.xxx.99
59068
80.xxx.xxx.180
80
TCP access denied by ACL from 77.xxx.xxx.99/59068 to outside:80.xxx.xxx.180/80
The attached file is only the show running-config
Now i can with my AnyConnect Clients, too, but after connection is up, my vpnclients can't surf the web any longer because anyconnect serves as default route on 0.0.0.0 ... that's bad, too
Actually the AnyConnect and Nat/ACL Problem are my last two open Problems until i setup the second ASA on the right ;-)
Regards.
Chris -
How to configure the mail in Sales Support of SAP SD
Hi,
Experts I have one scenario in my co. that we have 300 users we have to send the mails to our 300
users for every 2 or 3 months once. Regarding new promotions (Discounts , Price changes) of
company. For this every time we are changing the sold to party in quotation and taking printouts then
sending to our users its a lengthy procedure, to avoid this long time very soon we are going to
implement SAP SD Sales Suppor in our company is there any functionality in SAP to send mail at
once to our 300 users may i know about how to configure the mail for this scenario.
Thanks and Regards
MHHi Prashant,
Thanks for you immediate responce, Can you give me the configuration steps in detail.
Thanks and Regards,
MH -
How to configure the JMS application in WSAD 5.0
hi
i need to configure an JMS application in WSAD 5, but while configuring the application i am checked with intial context exception. but i have configured the jndi in the server. but i cant able to run the application.
can anybody help me like how to configure the JMS application in WSAD (can we configure it without MQ simulator if yes i need the steps)
thanks in advanceHi,
did you check the WebSphere documentation or ask a question on an IBM forum?
Frank -
In Exports sales process, how you configure the Duty Draw Back
in my case
we r creating Exports but
duty unavailability of time and time taking process in export processing
we are creating Excise invoice and cenvat is debited .
now we r asking the govt. for the duty draw back for the value already cenvat is debited with proper documents like ARE1 etc.
how to manage this duty back and what r the replications or changes thereafter
thanks in advanceHi Sunitha,
Pls can u explain how did u solve (In Exports sales process, how you configure the Duty Draw Back) this issue....since i don't have idea abt this...but shortly i am going to do this in my client place....
thanks, -
How to install and configure the SQL Server
Hi All,
We have to install SQL server in the new server because the old server is crash and need to upgrade. Please advice How to install and configure the SQL Server to run SAP Business One 8.8 successfully and what part we do have to give attention.
Kind Rgds,
SteveHi,
Try this solution:
The step-by-step installation guide can be found in the documentation included in the installation media. (\Documentation\SystemSetup\AdministratorGuide_SQL.pdf).
Below are some important parts that you should pay attention to during the Installation process.
Resolution
Collation setting: It must be set as SQL_Latin1_General_CP1_CI_AS,even the company DB is non-english location. The company DB will be created as corresponding collation settings automatically.
Instance and TCP Port : It is recommended to run SBO on default instance and TCP port 1433. Otherwise,some optional components such as B1i may not work properly.
Native Client: SQL Server Native Client should be installed on every client machine to enable the ODBC connection to DB server.
Rgds,
Maybe you are looking for
-
I just got my first Mac, so far I'm loving it. I have a 20.1" Viewsonic vx2025 with a horizontal sync range of 30-82 KHz and a vertical refresh range of 50-75 Hz. The Mini correctly set the right native resolution of 1680x1050, but the refresh rate i
-
I've got a site built using iWeb, hosted by a third party (not mac.com). The site includes photo albums that I've added from my iPhoto library. Can I delete the photos from my iPhoto library without having them disappear from the site? Or does the si
-
USB error message deactivating my printer
Hi, I'm a recent convert to Mac and I'm glad I made the witch. It's been plain sailing with only one niggly problem. When I power up an error message tells me " USB over current notice. ! A USB device is currently drawing too much power. The hub it i
-
Indexing on associated objects
Greetings, I've been doing some performance testing of a cache based query vs vanilla sql queries. In order to accurately compare a cache query to an indexed sql query, I've been attempting to create an index... For example, a Vehicle with an associa
-
Combination stacked bar and line chart
Post Author: jl07 CA Forum: WebIntelligence Reporting Is there a way to create a combination stacked bar and line chart in Web Intelligence XI R2 reports? This can be done in Excel and I'm thinking that it should be possible in WebI reports too. Than