Return Data from Oracle using a web service in AXIS - please help
Hi Forum,
I am very new to web services and Java tech. and recently I have been assigned to work with technology and I am struggling to learn it and need your help and assistance.
I am trying to return some data from a an oracle database but I have to do that using a web service and I am using AXIS. For example below is a simple program that returns two columns for the demo EMP table
import java.sql.*;
class emp {
public static void main(String args[])
throws ClassNotFoundException, SQLException {
Class.forName("oracle.jdbc.driver.OracleDriver");
// or you can use:
// DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","scott", "tiger");
Statement stmt = conn.createStatement( );
ResultSet rset = stmt.executeQuery("select * from emp");
while(rset.next( )) {
System.out.println(rset.getString(1));
System.out.println(rset.getString(2));
rset.close( );
stmt.close( );
conn.close( );
} but I do not know how to convert this into a web service.
Please help.
Thanks in advance.
Regards,
Ravi
The following code returns Document. I will be calling the below function to convert my Resultset to document. In my JWS file i simply call a method with parameters. can a web service method in .jws file return Document type. It shows error will doing so. Please help me.
public static Document toDocument(ResultSet rs) throws ParserConfigurationException, SQLException
Document res_doc = null;
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.newDocument();
Element results = doc.createElement("Results");
doc.appendChild(results);
ResultSetMetaData rsmd = rs.getMetaData();
int colCount = rsmd.getColumnCount();
while (rs.next())
Element row = doc.createElement("Row");
results.appendChild(row);
for (int i = 1; i <= colCount; i++)
String columnName = rsmd.getColumnName(i);
Object value = rs.getObject(i);
Element node = doc.createElement(columnName);
node.appendChild(doc.createTextNode(value.toString()));
row.appendChild(node);
return res_doc;
}
Similar Messages
-
Error while retreiving data from oracle using EJB.
HII All,
I m getting this error while trying to retreive data from oracle DB using EJB.
An error has occurred. Maybe the request is not accepted by the server:
Exception in method empName.
HTTP/1.1 500 Internal Server Error
Connection: close
Server: SAP J2EE Engine/6.40
Content-Type: text/xml; charset=UTF-8
Set-Cookie: <value is hidden>
Date: Mon, 24 Jul 2006 10:50:11 GMT
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>Exception in method empName.</faultstring><detail><ns1:com.sap.engine.services.ejb.exceptions.BaseEJBException xmlns:ns1='http://sap-j2ee-engine/client-runtime-error'>Exception in method empName.</ns1:com.sap.engine.services.ejb.exceptions.BaseEJBException></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
Thanks in advance
Devendra Phate.Hi Devendra,
this error message does not tell me much. Pleas either start debugging or watch your logs for more detailed messages.
Regards,
Benny -
New operation for existing web service...please help!
Hello,
I created a web service using "Create Web Service" wizard from SE37 for my function group - ZTEST. There are total 2 function modules in this function group - ZTEST1 and ZTEST2. It has been deployed under SOAP runtime. The service is active and tested successfully. In SOAMANAGER, I see ZTEST1 and ZTEST2 as different operations. Now I have created a new function module ZTEST3 under function group ZTEST and want it to be available as third operation in my existing web service. How can I do that?Under "Internal View" tab of service definition right click and select "Modify Operation" it will give you option to chose other FMs.
Regards,
Gourav -
In the Firstcup tutorial, the responsibilities of the web tier are listed as:
dynamically generate content for the client
collect input from the user
return results from business tier components
control the flow of client screens & pages
maintain session state
perform basic logic
hold data temporarily in JavaBeans components
Which of these responsibilities would retrieving data from a web service fall under?
The tutorial also lists the technologies used in the web tier, and JAX-RS is not included in that list. The list of technologies used by the business tier does, however, list JAX-RS. I was surprised to find the DukesBDay JavaBeans component (in the web tier) calling the dukes-age web service, instead of the DukesBirthdayBean EnterpriseBean (in the business tier), which uses hard coded value for Duke's birth date.
Is it typical for the web tier to consume web services in this way? What about when using an application client container, wouldn't that skip the web tier altogether, and in doing so also skip the web service call? Wouldn't DukesBirthdayBean in the business tier benefit from making the call to the web service, instead of having the date hard coded into it, and wouldn't this also solve the problem of the missing web service call when using an application client container?Hi Shadab,
Here is a list of Web service standards supported by SAP in NetWeaver 7.1.1: [Supported Standards|http://help.sap.com/saphelp_nwpi711/helpdata/en/44/624479f7e608fae10000000a422035/frameset.htm] (also in [7.0|http://help.sap.com/saphelp_nw70/helpdata/EN/44/624479f7e608fae10000000a422035/frameset.htm] and [7.0.1|http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/44/624479f7e608fae10000000a422035/frameset.htm]). The Enterprise Services adhere to these standards, and on the provider side you have the tools to configure the authentication settings as needed. On the consumer side, one just has to use a Java release (or any other platform) that supports these standards.
While I am not a Java developer, there should be [many ways to consume a Web service in Java|http://www.google.bg/search?q=consumewebservice+java].
Hope this helps,
Rossen -
Help needed with variable - trying to get data from Oracle using linked svr
Sorry if I posted this in the wrong forum - I just didn't know where to post it.
I'm trying to write a simple stored procedure to get data from an oracle database via a linked server in SQL Enterprise manager. I have no idea how to pass a variable to oracle.
Here's how I would get the variable in SQL:
declare @maxkey INTEGER
select @maxkey= MAX(keyfield) from [server].Data_Warehouse.dbo.mytable
select * from [server].Data_Warehouse.dbo.mydetailtable where keyfield=@maxkey
the select statement I need to do in oracle would use that variable like this:
select * from OPENQUERY(OracleLinkedServer,'select
* from ORACLEDB.TABLE where keyfield > @maxkey')
and I get this message: OLE DB provider "OraOLEDB.Oracle" for linked server "OracleLinkedServer" returned message "ORA-00936: missing expression".
I realize that I can't pass the @maxkey variable to oracle - so how do I accomplish this?Please refer the example in this link which deals with Oracle date format.
You can finnd a command DECODE which is used for date formats. If you have a look at whole theory then you will get an idea.
Link:[Bulk insert SQL command to transfer data from SAP to Oracle|http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bulk-insert-sql-command-to-transfer-data-from-sap-to-oracle-cl_sql_connection-3780804] -
Returning data with a doc style web service
How does one return information using a "Document" style Web Service? WLS 8.1 restricts
you to a single "in" parameter. Do I return information by using the "return"
value from the Web Service (assuming it's synchronous)? If so, what are the restrictions
on the return value. I've read the WLS 8.1 Programming Web Services document but
it's pretty lite in the area of Document style Web Services.
Thanks.WLS 8.1 supports two document styles:
#1 document literal
#2 document wrapped literal
In the case of #1 a web service method can only
take zero or one argument. There can be a return
type (or void). The (single) argument or return type
could be any supported type, or user defined complex
types (java beans). In #1 the dispatch is done based
on the incoming document and not based on the name
of the method. You can find an example for this at:
http://manojc.com/?sample13
In the case of #2 a web service method can have
any number of arguments. The WS container will
wrap the method in to a complexType. Here,
method name will be the name of the complexType
and arguments will be added as elements of the
complexType. In this case dispatch is done
based on the method name. An example here:
http://manojc.com/?sample14
Regards,
-manoj
"Jack Ottofaro" <[email protected]> wrote in message
news:3ea55b39$[email protected]..
>
How does one return information using a "Document" style Web Service? WLS8.1 restricts
you to a single "in" parameter. Do I return information by using the"return"
value from the Web Service (assuming it's synchronous)? If so, what arethe restrictions
on the return value. I've read the WLS 8.1 Programming Web Servicesdocument but
it's pretty lite in the area of Document style Web Services.
Thanks. -
How to get data from Oracle using Native SQL in SAP.. Problem with date
Hi Masters.
I'm trying to get data from an Oracle DB. I was able to connect to Oracle using tcode DBCO. The connetion works fine
I wrote this code and it works fine without the statement of where date > '01-09-2010'
But i need that statement on the select. I read a lot about this issue, but no answer.
My code is (this code is in SAP ECC 6.0)
DATA: BEGIN OF datos OCCURS 0,
id_numeric(10),
component_name(40),
comuna(10),
record_id(10),
status,
sampled_date(10),
END OF datos.
DATA: c TYPE cursor.
EXEC SQL.
connect to 'LIM' as 'MYDB'
ENDEXEC.
EXEC SQL.
SET CONNECTION 'MYDB'
ENDEXEC.
EXEC SQL PERFORMING loop_output.
SELECT ID_NUMERIC, COMPONENT_NAME, COMUNA, RECORD_ID, STATUS, SAMPLED_DATE
into :datos from lims.SAMP_TEST_RESULT
where date > '01-09-2010'
ENDEXEC.
EXEC SQL.
disconnect 'MYDB'
ENDEXEC.
How can i get the data from that date?? If i delete the where statemet, the program works well, it takes 30 mins and show all the data, I just need the data from that date.
Any help
RegardsPlease refer the example in this link which deals with Oracle date format.
You can finnd a command DECODE which is used for date formats. If you have a look at whole theory then you will get an idea.
Link:[Bulk insert SQL command to transfer data from SAP to Oracle|http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bulk-insert-sql-command-to-transfer-data-from-sap-to-oracle-cl_sql_connection-3780804] -
Document Style web service in process - Please Help
All,
I have created a simple Document-oriented web service and deployed to a standalone OC4J container using the following code:
********************* Interface ***********************
import org.w3c.dom.*;
interface PrimeNumberService
//method to check the primality of the number passed in Element variable
public Element isPrime(Element e) ;
******************** Implementation *******************
@version 1.0
Development Environment : Oracle9i JDeveloper
Name of the File : PrimeNumberServiceImpl.java
Creation/Modification History :
13-Apr-2002 Created
Overview:
This class file defines methods to implement PrimeNumberWebService.
The method isPrime() is exposed by the Web Service.
import org.w3c.dom.*;
import oracle.xml.parser.v2.*;
import java.io.*;
public class PrimeNumberServiceImpl implements PrimeNumberService
public PrimeNumberServiceImpl()
* This method is exposed by the Web Service to check if the number is
* prime. It extracts the number for input element and checks if it is
* prime or not and return the output in the XML Element.
* The input element is of the form <number>23</number>
public Element isPrime(Element e)
// define an XML Element that will be returned to the client
Element processedEl=null;
try{
// get the first clild of input element
Node enode = e.getFirstChild();
//get the value of input element and parse it
String value= enode.getNodeValue();
double number = Double.parseDouble(value);
String answer=null;
// check if the input number is prime
answer = checkPrime(number);
// create element from the answer
processedEl =createElement(answer);
}catch(Exception ex){
ex.printStackTrace();
return null;
// return output to client
return processedEl;
* This method creates an XML element from the input string values and return it
* The Element is of the form <answer>value</answer>
private Element createElement(String value){
// create a Document object
Document xmldoc = new XMLDocument();
// create an element with name "answer"
Element e1 = xmldoc.createElement("answer");
// append the element to document object
xmldoc.appendChild(e1);
// create a Text object from input values and append it to above element
Text t = xmldoc.createTextNode(value);
e1.appendChild(t);
return (Element)xmldoc.getFirstChild();
* This method check if the input number is prime or not
private String checkPrime(double num){
//For a prime number mod(power(2,number),number) is equal to 2
if ( Math.IEEEremainder( Math.pow(2.0,num) ,num)==2){
System.out.println ("the number is: " + num);
return "The number " + num + " is prime";}
else{
System.out.println ("the number is: " + num);
return "The number " + num + " is not prime";}
************************ Generated WSDL ***************
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="PrimeNumberService"
targetNamespace="http://tempuri.org/PrimeNumberService.wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://tempuri.org/PrimeNumberService.wsdl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" >
<documentation>
WSDL for Service: PrimeNumberService, generated by Oracle WSDL toolkit (version: 1.1)
</documentation>
<types>
<schema targetNamespace="http://tempuri.org/PrimeNumberService.xsd" xmlns:tns="http://tempuri.org/PrimeNumberService.xsd" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</types>
<message name="isPrimeOutput">
<part name="return" element="xsd:any"/>
</message>
<message name="isPrimeInput">
<part name="param0" element="xsd:any"/>
</message>
<portType name="PrimeNumberServicePortType">
<operation name="isPrime">
<input message="tns:isPrimeInput"/>
<output message="tns:isPrimeOutput"/>
</operation>
</portType>
<binding name="PrimeNumberServiceBinding" type="tns:PrimeNumberServicePortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
<operation name="isPrime">
<soap:operation soapAction="urn:PrimeNumberService/isPrime"/>
<input>
<soap:body use="literal" namespace="urn:PrimeNumberService"/>
</input>
<output>
<soap:body use="literal" namespace="urn:PrimeNumberService"/>
</output>
</operation>
</binding>
<service name="PrimeNumberService">
<port name="PrimeNumberServicePort" binding="tns:PrimeNumberServiceBinding">
<soap:address location="http://hp-xeon-01:9799/primenumberws/primenumberService"/>
</port>
</service>
</definitions>
I get the following error when trying to deploy:
Error:
[Error ORABPEL-10902]: compilation failed
[Description]: XML parsing failed because "undefined part element.
In WSDL at "http://hp-xeon-01:9799/primenumberws/primenumberService?WSDL", message part element "{http://www.w3.org/2001/XMLSchema}any" is not defined in any of the schemas.
Please make sure the spelling of the element QName is correct and the WSDL import is complete.
[Potential fix]: n/a.
Please let me know what I'm doing wrong.
Regards,
JeffI think this thread is duplicate of "Document style web service receive and send org.w3c.Element" message thread.
- Rakesh -
Web Services wont start, please help
Hello all,
I appologize up front but I dont really have a lot of experience with OSX server. So yesterday I got a report that my companied website was down. I went in to check the server and it wouldnt log in just got the pinwheel for about 10 minutes so we rebooted it (me and my IT staff). Upon reboot we could login and all seems well except that the web services wont start and our website is still down. when you try and start the service you get:
" A service has encountered and error, Try to refresh the view (172.18.180.15/Web). Report the problem to the administrator if it persists. (could not start web service - details in error log)."
but when you go to the log to see what is going on the last entry says:
" [Thu Jan 15 14:47:27 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html "
that is about the time that the website appears to have gone offline... Also after navigating to the directory it says, there indeed is no error.html but all other files appear to be there. I have also used the terminal to read the last 100 lines of the error log file using tail -100 /var/log/httpd/error_log and get:
[Thu Jan 15 10:13:22 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/rc/bin/msgimport
[Thu Jan 15 10:13:22 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 10:13:22 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/roundcube/bin/msgimport
[Thu Jan 15 10:13:22 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 10:13:22 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/webmail/bin/msgimport
[Thu Jan 15 10:13:22 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 10:14:49 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/HNAP1/
[Thu Jan 15 10:14:49 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 10:14:52 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/TEADevInfo/
[Thu Jan 15 10:14:52 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 10:28:27 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/favicon.ico
[Thu Jan 15 10:28:27 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 10:32:17 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/favicon.ico
[Thu Jan 15 10:32:17 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 10:32:55 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/favicon.ico
[Thu Jan 15 10:32:55 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 10:32:57 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/favicon.ico
[Thu Jan 15 10:32:57 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 10:34:56 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/HNAP1/
[Thu Jan 15 10:34:56 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 10:34:59 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/TEADevInfo/
[Thu Jan 15 10:34:59 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 10:55:02 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/HNAP1/
[Thu Jan 15 10:55:02 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 10:55:05 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/TEADevInfo/
[Thu Jan 15 10:55:05 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 11:15:10 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/HNAP1/
[Thu Jan 15 11:15:10 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 11:15:13 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/TEADevInfo/
[Thu Jan 15 11:15:13 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 11:23:55 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/favicon.ico
[Thu Jan 15 11:23:55 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 11:24:42 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/Library/BOCESlogo.jpg
[Thu Jan 15 11:24:42 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 11:26:15 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/favicon.ico
[Thu Jan 15 11:26:15 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 11:29:48 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/Library/BOCESlogo.jpg
[Thu Jan 15 11:29:48 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 11:35:17 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/HNAP1/
[Thu Jan 15 11:35:17 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 11:35:20 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/TEADevInfo/
[Thu Jan 15 11:35:20 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 11:50:50 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/robots.txt
[Thu Jan 15 11:50:50 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 11:53:20 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/favicon.ico
[Thu Jan 15 11:53:20 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 11:55:23 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/HNAP1/
[Thu Jan 15 11:55:23 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 11:55:26 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/TEADevInfo/
[Thu Jan 15 11:55:26 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 12:11:18 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/favicon.ico
[Thu Jan 15 12:11:18 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 12:15:31 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/HNAP1/
[Thu Jan 15 12:15:31 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 12:15:34 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/TEADevInfo/
[Thu Jan 15 12:15:34 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 12:35:36 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/HNAP1/
[Thu Jan 15 12:35:36 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 12:35:39 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/TEADevInfo/
[Thu Jan 15 12:35:39 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 12:55:45 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/HNAP1/
[Thu Jan 15 12:55:45 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 12:55:48 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/TEADevInfo/
[Thu Jan 15 12:55:48 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 13:04:47 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/favicon.ico
[Thu Jan 15 13:04:47 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 13:15:52 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/HNAP1/
[Thu Jan 15 13:15:52 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 13:15:55 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/TEADevInfo/
[Thu Jan 15 13:15:55 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 13:35:58 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/HNAP1/
[Thu Jan 15 13:35:58 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 13:36:01 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/TEADevInfo/
[Thu Jan 15 13:36:01 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 13:52:37 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/Library/BOCESlogo.jpg
[Thu Jan 15 13:52:37 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 13:56:06 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/HNAP1/
[Thu Jan 15 13:56:06 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 13:56:09 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/TEADevInfo/
[Thu Jan 15 13:56:09 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 14:12:16 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/favicon.ico
[Thu Jan 15 14:12:16 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 14:16:12 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/HNAP1/
[Thu Jan 15 14:16:12 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 14:16:15 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/TEADevInfo/
[Thu Jan 15 14:16:15 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 14:16:57 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/favicon.ico
[Thu Jan 15 14:16:57 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 14:29:01 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/registrationSERPDC.html
[Thu Jan 15 14:29:01 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 14:33:12 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/favicon.ico
[Thu Jan 15 14:33:12 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 14:36:19 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/HNAP1/
[Thu Jan 15 14:36:19 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 14:36:22 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/TEADevInfo/
[Thu Jan 15 14:36:22 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 14:47:08 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/registrationSERPDC.html
[Thu Jan 15 14:47:08 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
[Thu Jan 15 14:47:27 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/registrationSERPDC.html
[Thu Jan 15 14:47:27 2009] [error] [client 172.18.180.15] File does not exist: /Library/WebServer/Documents/error.html
So im at a loss and any ideas would be much appricated. I know that earlier in the day one of our web people updated our website to add a calender using dreamweaver but dont know much about exactly what was done.
Thanks again
Troy SmithThanks for the responce. So it looks to me like the content of the webpage is all there , minus the error.html file. Its all located in Library/webserver/documents. I have gone there and am even able to bring up our webpage by launching index.html and it appears to work perfectly with no broken links. you just cant access it from the outside world.
here is the last bit of the access log:
700] "GET / HTTP/1.0" 200 11110
172.18.70.21 - - [15/Jan/2009:12:42:13 -0700] "GET / HTTP/1.1" 304 -
172.18.70.21 - - [15/Jan/2009:12:42:13 -0700] "GET /mm_travel2.css HTTP/1.1" 304 -
172.18.70.21 - - [15/Jan/2009:12:42:13 -0700] "GET /BOCES_logo.jpg HTTP/1.1" 304 -
172.18.180.150 - - [15/Jan/2009:12:55:45 -0700] "GET /HNAP1/ HTTP/1.1" 404 -
172.18.180.150 - - [15/Jan/2009:12:55:48 -0700] "GET /TEADevInfo/ HTTP/1.1" 404 -
172.18.180.150 - - [15/Jan/2009:12:55:51 -0700] "GET / HTTP/1.0" 200 11110
172.18.21.33 - - [15/Jan/2009:12:59:44 -0700] "GET / HTTP/1.1" 304 -
172.18.21.33 - - [15/Jan/2009:12:59:44 -0700] "GET /mm_travel2.css HTTP/1.1" 304 -
172.18.21.33 - - [15/Jan/2009:12:59:44 -0700] "GET /BOCES_logo.jpg HTTP/1.1" 304 -
172.18.21.33 - - [15/Jan/2009:12:59:44 -0700] "GET /mm_spacer.gif HTTP/1.1" 304 -
172.18.21.33 - - [15/Jan/2009:12:59:44 -0700] "GET /mm_arrow.gif HTTP/1.1" 304 -
66.249.71.204 - - [15/Jan/2009:13:00:04 -0700] "GET /Distance%20Learning/2ndSem.png HTTP/1.1" 304 -
66.210.76.252 - - [15/Jan/2009:13:04:42 -0700] "GET / HTTP/1.1" 200 11110
66.210.76.252 - - [15/Jan/2009:13:04:42 -0700] "GET /mm_travel2.css HTTP/1.1" 200 2084
66.210.76.252 - - [15/Jan/2009:13:04:43 -0700] "GET /BOCES_logo.jpg HTTP/1.1" 200 39819
66.210.76.252 - - [15/Jan/2009:13:04:43 -0700] "GET /mm_spacer.gif HTTP/1.1" 200 43
66.210.76.252 - - [15/Jan/2009:13:04:44 -0700] "GET /mm_arrow.gif HTTP/1.1" 200 74
66.210.76.252 - - [15/Jan/2009:13:04:47 -0700] "GET /favicon.ico HTTP/1.1" 404 -
172.18.180.150 - - [15/Jan/2009:13:15:52 -0700] "GET /HNAP1/ HTTP/1.1" 404 -
172.18.180.150 - - [15/Jan/2009:13:15:55 -0700] "GET /TEADevInfo/ HTTP/1.1" 404 -
172.18.180.150 - - [15/Jan/2009:13:15:58 -0700] "GET / HTTP/1.0" 200 11110
207.119.148.113 - - [15/Jan/2009:13:25:37 -0700] "GET / HTTP/1.1" 304 -
207.119.148.113 - - [15/Jan/2009:13:25:37 -0700] "GET /mm_travel2.css HTTP/1.1" 304 -
172.18.10.22 - - [15/Jan/2009:13:26:28 -0700] "GET / HTTP/1.1" 304 -
172.18.10.22 - - [15/Jan/2009:13:26:28 -0700] "GET /mm_travel2.css HTTP/1.1" 304 -
66.249.71.203 - - [15/Jan/2009:13:30:25 -0700] "GET /Distance%20Learning/2007-08%201st%20Semester.pdf HTTP/1.1" 304 -
172.18.180.150 - - [15/Jan/2009:13:35:58 -0700] "GET /HNAP1/ HTTP/1.1" 404 -
172.18.180.150 - - [15/Jan/2009:13:36:01 -0700] "GET /TEADevInfo/ HTTP/1.1" 404 -
172.18.180.150 - - [15/Jan/2009:13:36:04 -0700] "GET / HTTP/1.0" 200 11110
172.18.10.22 - - [15/Jan/2009:13:40:32 -0700] "GET / HTTP/1.1" 304 -
172.18.10.22 - - [15/Jan/2009:13:40:32 -0700] "GET /mm_travel2.css HTTP/1.1" 304 -
172.18.10.247 - - [15/Jan/2009:13:45:41 -0700] "GET / HTTP/1.1" 304 -
172.18.10.247 - - [15/Jan/2009:13:45:41 -0700] "GET /mm_travel2.css HTTP/1.1" 304 -
172.18.80.172 - - [15/Jan/2009:13:52:34 -0700] "GET / HTTP/1.1" 304 -
172.18.80.172 - - [15/Jan/2009:13:52:34 -0700] "GET /mm_travel2.css HTTP/1.1" 304 -
172.18.80.172 - - [15/Jan/2009:13:52:37 -0700] "GET /cgi-bin/htmlos.cgi/Library/login.html HTTP/1.1" 200 5337
172.18.80.172 - - [15/Jan/2009:13:52:37 -0700] "GET /Library/BOCESlogo.jpg HTTP/1.1" 404 -
172.18.80.172 - - [15/Jan/2009:13:52:51 -0700] "POST /cgi-bin/htmlos.cgi/00196.1.091587960413596865 HTTP/1.1" 200 6906
172.18.80.172 - - [15/Jan/2009:13:52:51 -0700] "GET /Library/logo.gif HTTP/1.1" 304 -
172.18.80.172 - - [15/Jan/2009:13:53:12 -0700] "POST /cgi-bin/htmlos.cgi/00196.2.398028895013596865 HTTP/1.1" 200 6954
172.18.80.172 - - [15/Jan/2009:13:53:34 -0700] "POST /cgi-bin/htmlos.cgi/00196.3.379763596813596865 HTTP/1.1" 200 7631
172.18.80.172 - - [15/Jan/2009:13:53:41 -0700] "GET /cgi-bin/htmlos.cgi/00196.4.979421102013596865 HTTP/1.1" 200 5707
172.18.80.172 - - [15/Jan/2009:13:54:05 -0700] "POST /cgi-bin/htmlos.cgi/00196.4.653012131313596865 HTTP/1.1" 200 5009
172.18.80.172 - - [15/Jan/2009:13:54:05 -0700] "GET /Library/cartcompanion/images/trash.gif HTTP/1.1" 304 -
172.18.80.172 - - [15/Jan/2009:13:54:09 -0700] "GET /cgi-bin/htmlos.cgi/00196.6.067052834713596865 HTTP/1.1" 200 7631
172.18.80.172 - - [15/Jan/2009:13:54:18 -0700] "POST /cgi-bin/htmlos.cgi/00196.7.340537939813596865 HTTP/1.1" 200 8416
172.18.80.172 - - [15/Jan/2009:13:54:30 -0700] "GET /cgi-bin/htmlos.cgi/00196.8.1081705853513596865 HTTP/1.1" 200 6036
172.18.80.172 - - [15/Jan/2009:13:54:46 -0700] "POST /cgi-bin/htmlos.cgi/00196.8.680478888813596865 HTTP/1.1" 200 5489
172.18.80.172 - - [15/Jan/2009:13:54:48 -0700] "GET /cgi-bin/htmlos.cgi/00196.10.067088757713596865 HTTP/1.1" 200 8430
172.18.80.172 - - [15/Jan/2009:13:54:59 -0700] "POST /cgi-bin/htmlos.cgi/00196.11.383185021613596865 HTTP/1.1" 200 6953
172.18.80.172 - - [15/Jan/2009:13:55:04 -0700] "GET /cgi-bin/htmlos.cgi/00196.12.186489933813596865 HTTP/1.1" 200 5489
172.18.80.172 - - [15/Jan/2009:13:55:07 -0700] "POST /cgi-bin/htmlos.cgi/00196.13.316198235313596865 HTTP/1.1" 200 4484
172.18.180.150 - - [15/Jan/2009:13:56:06 -0700] "GET /HNAP1/ HTTP/1.1" 404 -
172.18.180.150 - - [15/Jan/2009:13:56:09 -0700] "GET /TEADevInfo/ HTTP/1.1" 404 -
172.18.180.150 - - [15/Jan/2009:13:56:12 -0700] "GET / HTTP/1.0" 200 11110
172.19.62.94 - - [15/Jan/2009:14:05:22 -0700] "GET / HTTP/1.1" 304 -
172.19.62.94 - - [15/Jan/2009:14:05:22 -0700] "GET /mm_travel2.css HTTP/1.1" 304 -
172.19.62.94 - - [15/Jan/2009:14:05:23 -0700] "GET /BOCES_logo.jpg HTTP/1.1" 304 -
172.19.62.94 - - [15/Jan/2009:14:05:23 -0700] "GET /mm_spacer.gif HTTP/1.1" 304 -
172.19.62.94 - - [15/Jan/2009:14:05:23 -0700] "GET /mm_arrow.gif HTTP/1.1" 304 -
172.19.62.94 - - [15/Jan/2009:14:05:37 -0700] "GET /ExcepStuServ.html HTTP/1.1" 304 -
172.19.62.94 - - [15/Jan/2009:14:05:37 -0700] "GET /Scripts/AC_RunActiveContent.js HTTP/1.1" 304 -
172.19.62.94 - - [15/Jan/2009:14:05:39 -0700] "GET /EngSafeguards.swf HTTP/1.1" 304 -
172.19.62.94 - - [15/Jan/2009:14:05:39 -0700] "GET /SafeguardsSpanish.swf HTTP/1.1" 304 -
172.19.62.94 - - [15/Jan/2009:14:05:39 -0700] "GET /ChildFind.swf HTTP/1.1" 304 -
172.19.62.94 - - [15/Jan/2009:14:05:39 -0700] "GET /CSAPA.swf HTTP/1.1" 304 -
172.19.62.94 - - [15/Jan/2009:14:05:39 -0700] "GET /CDE.swf HTTP/1.1" 304 -
172.19.62.94 - - [15/Jan/2009:14:05:39 -0700] "GET /EarlyCh.swf HTTP/1.1" 304 -
172.19.62.94 - - [15/Jan/2009:14:05:39 -0700] "GET /SEAS.swf HTTP/1.1" 304 -
172.18.71.229 - - [15/Jan/2009:14:12:16 -0700] "GET / HTTP/1.1" 200 11110
172.18.71.229 - - [15/Jan/2009:14:12:16 -0700] "GET /mm_travel2.css HTTP/1.1" 200 2084
172.18.71.229 - - [15/Jan/2009:14:12:16 -0700] "GET /mm_spacer.gif HTTP/1.1" 200 43
172.18.71.229 - - [15/Jan/2009:14:12:16 -0700] "GET /BOCES_logo.jpg HTTP/1.1" 200 39819
172.18.71.229 - - [15/Jan/2009:14:12:16 -0700] "GET /mm_arrow.gif HTTP/1.1" 200 74
172.18.71.229 - - [15/Jan/2009:14:12:16 -0700] "GET /favicon.ico HTTP/1.1" 404 -
172.18.71.229 - - [15/Jan/2009:14:15:06 -0700] "GET / HTTP/1.1" 304 -
172.18.71.229 - - [15/Jan/2009:14:15:06 -0700] "GET /mm_travel2.css HTTP/1.1" 304 -
172.18.180.150 - - [15/Jan/2009:14:16:12 -0700] "GET /HNAP1/ HTTP/1.1" 404 -
172.18.180.150 - - [15/Jan/2009:14:16:15 -0700] "GET /TEADevInfo/ HTTP/1.1" 404 -
172.18.180.150 - - [15/Jan/2009:14:16:18 -0700] "GET / HTTP/1.0" 200 11110
10.136.34.40 - - [15/Jan/2009:14:16:56 -0700] "GET / HTTP/1.1" 200 11110
10.136.34.40 - - [15/Jan/2009:14:16:56 -0700] "GET /mm_travel2.css HTTP/1.1" 200 2084
10.136.34.40 - - [15/Jan/2009:14:16:57 -0700] "GET /favicon.ico HTTP/1.1" 404 -
172.18.71.164 - - [15/Jan/2009:14:18:59 -0700] "GET / HTTP/1.1" 304 -
172.18.71.164 - - [15/Jan/2009:14:19:00 -0700] "GET /mm_travel2.css HTTP/1.1" 304 -
204.132.102.1 - - [15/Jan/2009:14:29:01 -0700] "GET /registrationSERPDC.html HTTP/1.1" 404 -
199.2.43.225 - - [15/Jan/2009:14:33:10 -0700] "GET / HTTP/1.1" 200 11110
199.2.43.225 - - [15/Jan/2009:14:33:11 -0700] "GET /mm_travel2.css HTTP/1.1" 200 2084
199.2.43.225 - - [15/Jan/2009:14:33:12 -0700] "GET /favicon.ico HTTP/1.1" 404 -
172.18.10.22 - - [15/Jan/2009:14:34:55 -0700] "GET / HTTP/1.1" 304 -
172.18.10.22 - - [15/Jan/2009:14:34:55 -0700] "GET /mm_travel2.css HTTP/1.1" 304 -
172.18.180.150 - - [15/Jan/2009:14:36:19 -0700] "GET /HNAP1/ HTTP/1.1" 404 -
172.18.180.150 - - [15/Jan/2009:14:36:22 -0700] "GET /TEADevInfo/ HTTP/1.1" 404 -
172.18.180.150 - - [15/Jan/2009:14:36:25 -0700] "GET / HTTP/1.0" 200 11110
70.90.115.161 - - [15/Jan/2009:14:36:53 -0700] "GET / HTTP/1.1" 200 11110
70.90.115.161 - - [15/Jan/2009:14:36:54 -0700] "GET /mm_travel2.css HTTP/1.1" 200 2084
70.90.115.161 - - [15/Jan/2009:14:37:11 -0700] "GET /HumRes.html HTTP/1.1" 200 19117
70.90.115.161 - - [15/Jan/2009:14:37:12 -0700] "GET /Scripts/AC_RunActiveContent.js HTTP/1.1" 200 8321
70.90.115.161 - - [15/Jan/2009:14:37:12 -0700] "GET /AmFidelity.swf HTTP/1.1" 200 1520
70.90.115.161 - - [15/Jan/2009:14:37:12 -0700] "GET /CDE2.swf HTTP/1.1" 200 1165
70.90.115.161 - - [15/Jan/2009:14:37:12 -0700] "GET /CEBT.swf HTTP/1.1" 200 1241
70.90.115.161 - - [15/Jan/2009:14:37:12 -0700] "GET /jobapp.swf HTTP/1.1" 200 2360
70.90.115.161 - - [15/Jan/2009:14:37:13 -0700] "GET /PERA.swf HTTP/1.1" 200 1169
70.90.115.161 - - [15/Jan/2009:14:37:13 -0700] "GET /VSP.swf HTTP/1.1" 200 1162
70.90.115.161 - - [15/Jan/2009:14:38:07 -0700] "GET /AdmStaff.html HTTP/1.1" 200 16561
70.90.115.161 - - [15/Jan/2009:14:38:07 -0700] "GET /mm_travel2.css HTTP/1.1" 304 -
70.90.115.161 - - [15/Jan/2009:14:41:07 -0700] "GET /CDE2.swf HTTP/1.1" 304 -
70.90.115.161 - - [15/Jan/2009:14:41:08 -0700] "GET /CEBT.swf HTTP/1.1" 304 -
70.90.115.161 - - [15/Jan/2009:14:41:08 -0700] "GET /jobapp.swf HTTP/1.1" 304 -
70.90.115.161 - - [15/Jan/2009:14:41:08 -0700] "GET /PERA.swf HTTP/1.1" 304 -
70.90.115.161 - - [15/Jan/2009:14:41:08 -0700] "GET /VSP.swf HTTP/1.1" 304 -
70.90.115.161 - - [15/Jan/2009:14:41:10 -0700] "GET /AmFidelity.swf HTTP/1.1" 304 -
172.18.10.22 - - [15/Jan/2009:14:41:26 -0700] "GET / HTTP/1.1" 304 -
172.18.10.22 - - [15/Jan/2009:14:41:27 -0700] "GET /mm_travel2.css HTTP/1.1" 304 -
172.17.35.11 - - [15/Jan/2009:14:47:08 -0700] "GET /registrationSERPDC.html HTTP/1.1" 404 -
172.17.35.11 - - [15/Jan/2009:14:47:27 -0700] "GET /registrationSERPDC.html HTTP/1.1" 404 -
and here is the output of the apache test command:
Last login: Fri Jan 16 08:36:31 on ttyp1
Welcome to Darwin!
MultiServer:~ admin$ apachectl configtest
Processing config directory: /etc/httpd/sites/*.conf
Processing config file: /etc/httpd/sites/+entropy-php.conf
Syntax error on line 8 of /etc/httpd/sites/+entropy-php.conf:
Cannot load /usr/local/php5/libphp5.so into server: (reason unknown)
MultiServer:~ admin$
if i read this correctly looks like there is a syntax errror in the -php.conf file. So where do i go to see that file?
thanks again for your help
Troy -
Web Service connect problem, Please Help!!!
I developed a web service end point following the pattern of adventure as Purchase Order End Point Bean,
WSDL is correctly generated for both Server anc Client End:
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="DownloadWSService" targetNamespace="urn:DownloadWSService" xmlns:tns="urn:DownloadWSService" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types/>
<message name="DownloadWSInterface_downloadWorkAssignments">
<part name="String_1" type="xsd:string"/></message>
<message name="DownloadWSInterface_downloadWorkAssignmentsResponse">
<part name="result" type="xsd:boolean"/></message>
<portType name="DownloadWSInterface">
<operation name="downloadWorkAssignments" parameterOrder="String_1">
<input message="tns:DownloadWSInterface_downloadWorkAssignments"/>
<output message="tns:DownloadWSInterface_downloadWorkAssignmentsResponse"/></operation></portType>
<binding name="DownloadWSInterfaceBinding" type="tns:DownloadWSInterface">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
<operation name="downloadWorkAssignments">
<soap:operation soapAction=""/>
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:DownloadWSService"/></input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:DownloadWSService"/></output></operation></binding>
<service name="DownloadWSService">
<port name="DownloadWSInterfacePort" binding="tns:DownloadWSInterfaceBinding">
<soap:address location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>
and I deployed both server and client end of this web service on Sun One Application 7 (Developer version) successfully, in the application server log, I can see the info :
[#|2004-04-16T15:08:20.865+1000|INFO|j2ee-appserver1.4|javax.enterprise.system.t
ools.deployment|_ThreadID=12;|DPL5306:EJB Web Service Endpoint [DownloadWSInterf
acePort] listening at address [http://localhost:8080/webservice/DownloadWSBean]|#
But when I try to call it on the client side, I got the error and here is the log:
2004-04-16 15:48:28,477 WEB DEBUG [http8080-Processor4] - Port Info is http://localhost:8080/webservice/DownloadWSBean
calling download ws endpoint java.rmi.RemoteException: HTTP Status-Code 404: Not Found - /webservice/DownloadWSBean; nested exception is:
HTTP Status-Code 404: Not Found - /webservice/DownloadWSBean
Could anyone help and point to me a right direction, I have been hunting the problem for days and couldnt find a clue.
Thanks a lot in advance!Hi, I finally solved this problem, the JDNI entry value is not configured properly for the session bean that's built for the service end point.
Changed JNDI value, and use that value in the service locator to look up the session bean home, it worked. -
When I bring in my corner pin tracking data from mocha ae and paste it onto a solid layer that I created, it sizes the layer to the corner pins, but I want it to stay the whole size of the screen. I'm following a tutorial at the address http://www.videocopilot.net/tutorials/sub_surface_skin/ and there is no mention of this problem in the tutorial. I am following the tutorial exactly, and using the latest version of After Effects. Any help would be much appreciated.
I took some photos of a simpler version of whats going on.
Just in AE with my footage.
About to track in mocha.
Tracked in mocha (only tracked half because i didnt want to wait).
Adding a solid to paste my corner pin data to.
Masked it to where I wanted it.
Selected the type of data I wanted.
Copy to clipboard.
Paste.
Great... the insert image thing grayed out.
Going to have to post the last pic separately. -
Need help pulling data from an outside file into my array. Please help =)
Hi,
I need help adapting my array to read the interest rates from an outside file. Here is my code and the outside file I wrote. Please help. Oh, the array in question is on line 259, inside of my calculation() method.
Thanks...
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.text.NumberFormat;
import java.text.DecimalFormat;
import java.io.*;
import javax.swing.JOptionPane;
public class Workshop5 extends JFrame implements ActionListener
//declare gui components
//declare labels
JPanel contentPane = new JPanel();
JPanel graphPane = new JPanel();
JLabel instructionLabel = new JLabel();
JLabel amountLabel = new JLabel();
JLabel orLabel = new JLabel();
JLabel comboBoxLabel = new JLabel();
JLabel termLabel = new JLabel();
JLabel rateLabel = new JLabel();
JLabel calcLabel = new JLabel();
JLabel paymentLabel = new JLabel();
JLabel tableLabel = new JLabel();
//declare font object
Font labelFont = new Font("Tahoma", Font.PLAIN, 16);
//declare text fields
JTextField amountField = new JTextField(20);
JTextField termField = new JTextField(20);
JTextField rateField = new JTextField(20);
JTextField paymentField= new JTextField(20);
//declare combo box for loan selection
JComboBox comboBox = new JComboBox();
//declare button group and radio buttons
ButtonGroup buttonGroup = new ButtonGroup();
JRadioButton enterRadioButton = new JRadioButton("Enter amount, term, & rate", true);
JRadioButton selectRadioButton = new JRadioButton("Select a preset term/rate loan", false);
//declare button objects
JButton clearButton = new JButton();
JButton calcButton = new JButton();
JButton quitButton = new JButton();
//declare text area for amortization
JTextArea amortTextArea = new JTextArea();
JTextArea testTextArea = new JTextArea();
//declare scroll bar for amortization table
JScrollPane scrollPane = new JScrollPane(amortTextArea,ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
public Workshop5()
instructionLabel.setText("Choose one of the following payment calculation options:");
instructionLabel.setFont(new Font("Tahoma",Font.PLAIN,16));
//adds both buttons to button group
buttonGroup.add(enterRadioButton);
buttonGroup.add(selectRadioButton);
enterRadioButton.setFont(labelFont);
enterRadioButton.setBackground(Color.WHITE);
enterRadioButton.setContentAreaFilled(false);
enterRadioButton.addActionListener(this); //adds action listener to enter radio button
orLabel.setText("OR");
orLabel.setFont(new Font("Tahoma",Font.BOLD,18));
selectRadioButton.setFont(labelFont);
selectRadioButton.setBackground(Color.WHITE);
selectRadioButton.setContentAreaFilled(false);
selectRadioButton.addActionListener(this); //adds action listener to select radio button
amountLabel.setText("Enter mortgage amount");
amountLabel.setFont(new Font("Tahoma", Font.PLAIN,16));
amountField.requestFocusInWindow();
termLabel.setText("Enter term length in years:");
termLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
rateLabel.setText("Enter interest rate:");
rateLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
comboBoxLabel.setText("Select a loan:");
comboBoxLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
comboBox.setBackground(new Color(255,255,255));
comboBox.setFont(new Font("Tahoma", Font.PLAIN, 14));
comboBox.setEnabled(false);
ComboBox();
calcLabel.setText("Press Calculate button to determine monthly payment.");
calcLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
calcButton.setText("Calculate");
calcButton.setFont(new Font("Tahoma", Font.BOLD, 14));
calcButton.addActionListener(this);
//define monthly payment label
paymentLabel.setText("Monthly payment:");
paymentLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
//define monthly payment text field
paymentField.setFont(new Font("Tahoma", Font.BOLD,16));
paymentField.setBackground(new Color(255,255,255));
paymentField.setEditable(false);
//define clear button
clearButton.setText("Clear");
clearButton.setFont(new Font("Tahoma", Font.BOLD,14));
clearButton.addActionListener(this);
//define quit button
quitButton.setText("Quit");
quitButton.setFont(new Font("Tahoma", Font.BOLD,14));
quitButton.addActionListener(this);
tableLabel.setText("Amoritization Table");
tableLabel.setFont(new Font("Tahoma", Font.BOLD, 16));
graphPane.setBackground(Color.WHITE);
//add components to content
getContentPane().add(contentPane);
contentPane.setLayout(null);
addComponent(contentPane, instructionLabel, 80,10,450,26);
addComponent(contentPane, enterRadioButton, 30,40,220,30);
addComponent(contentPane, orLabel, 280,40,100,30);
addComponent(contentPane, selectRadioButton, 335,40,350,30);
addComponent(contentPane, amountLabel, 100,80,220,26);
addComponent(contentPane, amountField, 300,80,150,26);
addComponent(contentPane, termLabel, 15,125,200,30);
addComponent(contentPane, termField, 195,125,125,30);
addComponent(contentPane, rateLabel, 62,160,200,30);
addComponent(contentPane, rateField, 195,165,125,30);
addComponent(contentPane, comboBoxLabel, 400,125,200,26);
addComponent(contentPane, comboBox, 400,155,150,30);
addComponent(contentPane, calcLabel, 100,200,400,30);
addComponent(contentPane, calcButton, 250,240,100,30);
addComponent(contentPane, paymentLabel, 150,285,200,30);
addComponent(contentPane, paymentField, 300,285,100,30);
addComponent(contentPane, clearButton, 100,330,100,30);
addComponent(contentPane, quitButton, 400,330,100,30);
addComponent(contentPane, tableLabel, 200,370,300,26);
addComponent(contentPane, scrollPane, 10,400,450,360);
addComponent(contentPane, graphPane, 475,400,305,360);
//add window listener to close window when user presses X
addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent e)
System.exit(0);
pack();
//method to add components
private void addComponent(Container container, Component c, int x, int y, int width, int height)
c.setBounds(x, y, width, height);
container.add(c);
//action performed method
public void actionPerformed(ActionEvent event)
Object source = event.getSource();
if (source == calcButton)
Calculate();
if (source == clearButton)
Clear();
if (source == quitButton)
Exit();
//defines active area based on user selection of mortgage calculation method
//if user chooses to enter the mortgage manually, combo box fields are inactive
if (source == enterRadioButton)
comboBox.setEnabled(false);
termField.setEnabled(true);
termField.setEditable(true);
rateField.setEnabled(true);
rateField.setEditable(true);
amountField.setText("");
amountField.requestFocusInWindow();
termField.setText("");
rateField.setText("");
paymentField.setText("");
amortTextArea.setText("");
//if user chooses to select from a preset mortgage, rate and term fields are inactive
if (source == selectRadioButton)
comboBox.setEnabled(true);
termField.setEnabled(false);
termField.setEditable(false);
rateField.setEnabled(false);
rateField.setEditable(false);
amountField.setText("");
amountField.requestFocusInWindow();
termField.setText("");
rateField.setText("");
paymentField.setText("");
amortTextArea.setText("");
}//end of action performed method
//combo box method
public void ComboBox()
String[] LoanArray = {" 7 years at 5.35 %", " 15 years at 5.50 %", " 30 years at 5.75 %"};
for (int i = 0; i < LoanArray.length; i++)
comboBox.addItem(LoanArray);
}//end combo box method
//calculation method
void Calculate()
//resets fields
paymentField.setText("");
amortTextArea.setText("");
//calculation variables
NumberFormat currency = NumberFormat.getCurrencyInstance();
int [] termArray = {7, 15, 30}; //array of years
double [] yearlyInterestArray = {5.35, 5.5, 5.75}; //array of interest
int totalMonths = 0; //total months
double Loan = 0.0; //amount of loan
double MonthlyInterest = 0.0; //monthly interest rate
double Payment = 0.0; //calculate payment
double monthlyPayment = 0.0; //calculate monthly payment
double Interest = 0.0; //variable for Interest Array input
int Term = 0; //variable for Term Array input
double NewMonthlyInterest = 0.0; //new interest amount
double NewLoan = 0.0; //new loan amount
double Reduction = 0.0; //principle reduction
//validate input
try
Loan = Double.parseDouble(amountField.getText());
catch (NumberFormatException e)
JOptionPane.showMessageDialog(null,"Invalid Entry. Please enter valid loan amount.", "Error", JOptionPane.WARNING_MESSAGE);
//resets input fields after error message
amountField.setText("");
amountField.requestFocusInWindow();
//if select button is chosen
if (selectRadioButton.isSelected())
int index = comboBox.getSelectedIndex();
Term = termArray[index];
Interest = yearlyInterestArray[index];
//if user chooses to enter mortgage information
else
if (enterRadioButton.isSelected())
//validates input
try
Term = Integer.parseInt(termField.getText());
catch (NumberFormatException e)
JOptionPane.showMessageDialog(null,"Invalid entry. Please enter valid term length in years.", "Error",JOptionPane.WARNING_MESSAGE);
//clears fields after error message
termField.setText("");
termField.requestFocusInWindow();
try
Interest = Double.parseDouble(rateField.getText());
catch (NumberFormatException e)
JOptionPane.showMessageDialog(null,"Invalid entry. Please enter valid rate (without percent symbol).","Error",JOptionPane.WARNING_MESSAGE);
//clears fields after error message
rateField.setText("");
rateField.requestFocusInWindow();
//perform calculations
if (Loan > 0)
Loan = Double.parseDouble(amountField.getText());
MonthlyInterest = (Interest / 12)/100;
totalMonths = Term * 12;
monthlyPayment = Loan * MonthlyInterest *(Math.pow((1 + MonthlyInterest), totalMonths)/(Math.pow((1 + MonthlyInterest), totalMonths)-1));
paymentField.setText("" + currency.format(monthlyPayment));
//send information to amortization text area
amortTextArea.append("Number\t");
amortTextArea.append(" Amount\t");
amortTextArea.append("Interest\t");
amortTextArea.append("Principle\t");
amortTextArea.append("Balance\n");
NewLoan = Loan;
for (int i = 1; i <= totalMonths; i++)
NewMonthlyInterest = MonthlyInterest * NewLoan;
Reduction = monthlyPayment - NewMonthlyInterest;
NewLoan = NewLoan - Reduction;
amortTextArea.append(" " + i +"\t");
amortTextArea.append(" " + currency.format(monthlyPayment) + "\t");
amortTextArea.append(" " + currency.format(NewMonthlyInterest)+ "\t");
amortTextArea.append(" " + currency.format(Reduction) + "\t");
amortTextArea.append(" " + currency.format(NewLoan) + "\n");
//resets fields if loan amount is less than zero
if((Loan <= 0 || Term <= 0 || Interest <= 0))
paymentField.setText("");
amortTextArea.setText("");
}//end calcualtion method
//clear method
void Clear()
amountField.setText("");
amountField.requestFocusInWindow();
termField.setText("");
rateField.setText("");
paymentField.setText("");
amortTextArea.setText("");
}//end of clear method
//main method
public static void main(String args[])
Workshop5 f = new Workshop5();
f.setTitle("Carol's Mortgage Calculator");
f.setBounds(200,100,800,800);
f.setResizable(false);
f.setVisible(true);
}//end of main method
//exit method
void Exit()
System.exit(0);
}//end of exit method
}//program end
My data file is called: "InterestData.dat" and only contains the following text:
5.35, 5.5, 5.75Ok, now I am getting this error message:
cannot resolve symbol method lenght()
Please help me out here, this is due tomorrow and I've been killing myself on it...
attaching program with revised code included, see beginning of calculation method line 250:
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.* ;
import java.text.NumberFormat;
import java.text.DecimalFormat;
import java.io.*;
import javax.swing.JOptionPane;
public class Workshop5 extends JFrame implements ActionListener
//declare gui components
//declare labels
JPanel contentPane = new JPanel();
JPanel graphPane = new JPanel();
JLabel instructionLabel = new JLabel();
JLabel amountLabel = new JLabel();
JLabel orLabel = new JLabel();
JLabel comboBoxLabel = new JLabel();
JLabel termLabel = new JLabel();
JLabel rateLabel = new JLabel();
JLabel calcLabel = new JLabel();
JLabel paymentLabel = new JLabel();
JLabel tableLabel = new JLabel();
//declare font object
Font labelFont = new Font("Tahoma", Font.PLAIN, 16);
//declare text fields
JTextField amountField = new JTextField(20);
JTextField termField = new JTextField(20);
JTextField rateField = new JTextField(20);
JTextField paymentField= new JTextField(20);
//declare combo box for loan selection
JComboBox comboBox = new JComboBox();
//declare button group and radio buttons
ButtonGroup buttonGroup = new ButtonGroup();
JRadioButton enterRadioButton = new JRadioButton("Enter amount, term, & rate", true);
JRadioButton selectRadioButton = new JRadioButton("Select a preset term/rate loan", false);
//declare button objects
JButton clearButton = new JButton();
JButton calcButton = new JButton();
JButton quitButton = new JButton();
//declare text area for amortization
JTextArea amortTextArea = new JTextArea();
JTextArea testTextArea = new JTextArea();
//declare scroll bar for amortization table
JScrollPane scrollPane = new JScrollPane(amortTextArea, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
public Workshop5()
instructionLabel.setText("Choose one of the following payment calculation options:");
instructionLabel.setFont(new Font("Tahoma",Font.PLAIN,16));
//adds both buttons to button group
buttonGroup.add(enterRadioButton);
buttonGroup.add (selectRadioButton);
enterRadioButton.setFont(labelFont);
enterRadioButton.setBackground(Color.WHITE);
enterRadioButton.setContentAreaFilled(false);
enterRadioButton.addActionListener(this); //adds action listener to enter radio button
orLabel.setText("OR");
orLabel.setFont(new Font("Tahoma",Font.BOLD,18));
selectRadioButton.setFont(labelFont);
selectRadioButton.setBackground(Color.WHITE);
selectRadioButton.setContentAreaFilled(false);
selectRadioButton.addActionListener (this); //adds action listener to select radio button
amountLabel.setText("Enter mortgage amount");
amountLabel.setFont(new Font("Tahoma", Font.PLAIN,16));
amountField.requestFocusInWindow();
termLabel.setText("Enter term length in years:");
termLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
rateLabel.setText("Enter interest rate:");
rateLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
comboBoxLabel.setText("Select a loan:");
comboBoxLabel.setFont(new Font("Tahoma", Font.PLAIN,14));
comboBox.setBackground(new Color(255,255,255));
comboBox.setFont(new Font("Tahoma", Font.PLAIN, 14));
comboBox.setEnabled(false);
ComboBox();
calcLabel.setText("Press Calculate button to determine monthly payment.");
calcLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
calcButton.setText("Calculate");
calcButton.setFont(new Font("Tahoma", Font.BOLD, 14));
calcButton.setBackground(new Color(202,255,112));
calcButton.addActionListener(this);
//define monthly payment label
paymentLabel.setText("Monthly payment:");
paymentLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
//define monthly payment text field
paymentField.setFont (new Font("Tahoma", Font.BOLD,16));
paymentField.setBackground(new Color(255,255,255));
paymentField.setEditable(false);
//define clear button
clearButton.setText("Clear");
clearButton.setFont(new Font("Tahoma", Font.BOLD,14));
clearButton.setBackground(new Color(202,255,112));
clearButton.addActionListener(this);
//define quit button
quitButton.setText("Quit");
quitButton.setFont(new Font("Tahoma", Font.BOLD,14));
quitButton.setBackground(new Color(202,255,112));
quitButton.addActionListener(this);
//define label for amortization table
tableLabel.setText ("Amoritization Table");
tableLabel.setFont(new Font("Tahoma", Font.BOLD, 16));
graphPane.setBackground(Color.WHITE);
//add components to content
getContentPane().add(contentPane);
contentPane.setLayout(null);
addComponent(contentPane, instructionLabel, 80,10,450,26);
addComponent(contentPane, enterRadioButton, 30,40,220,30);
addComponent(contentPane, orLabel, 280,40,100,30);
addComponent(contentPane, selectRadioButton, 335,40,350,30);
addComponent(contentPane, amountLabel, 100,80,220,26);
addComponent(contentPane, amountField, 300,80,150,26);
addComponent(contentPane, termLabel, 15,125,200,30);
addComponent(contentPane, termField, 195,125,125,30);
addComponent(contentPane, rateLabel, 62,160,200,30);
addComponent(contentPane, rateField, 195,165,125,30);
addComponent(contentPane, comboBoxLabel, 400,125,200,26);
addComponent(contentPane, comboBox, 400,155,150,30);
addComponent(contentPane, calcLabel, 100,200,400,30);
addComponent(contentPane, calcButton, 250,240,100,30);
addComponent(contentPane, paymentLabel, 150,285,200,30);
addComponent(contentPane, paymentField, 300,285,100,30);
addComponent(contentPane, clearButton, 100,330,100,30);
addComponent(contentPane, quitButton, 400,330,100,30);
addComponent(contentPane, tableLabel, 200,370,300,26);
addComponent(contentPane, scrollPane, 10,400,450,360);
addComponent(contentPane, graphPane, 475,400,305,360);
//add window listener to close window when user presses X
addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent e)
System.exit(0);
pack();
//method to add components
private void addComponent(Container container, Component c, int x, int y, int width, int height)
c.setBounds(x, y, width, height);
container.add(c);
//action performed method
public void actionPerformed(ActionEvent event)
Object source = event.getSource();
if (source == calcButton)
Calculate();
if (source == clearButton)
Clear();
if (source == quitButton)
Exit();
//defines active area based on user selection of mortgage calculation method
//if user chooses to enter the mortgage manually, combo box fields are inactive
if (source == enterRadioButton)
comboBox.setEnabled(false);
termField.setEnabled(true);
termField.setEditable(true);
rateField.setEnabled(true);
rateField.setEditable(true);
amountField.setText ("");
amountField.requestFocusInWindow();
termField.setText("");
rateField.setText("");
paymentField.setText ("");
amortTextArea.setText("");
//if user chooses to select from a preset mortgage, rate and term fields are inactive
if (source == selectRadioButton)
comboBox.setEnabled(true);
termField.setEnabled(false);
termField.setEditable(false);
rateField.setEnabled (false);
rateField.setEditable(false);
amountField.setText("");
amountField.requestFocusInWindow();
termField.setText ("");
rateField.setText("");
paymentField.setText("");
amortTextArea.setText("");
}//end of action performed method
//combo box method
public void ComboBox()
String[] LoanArray = {" 7 years at 5.35 %", " 15 years at 5.50 %", " 30 years at 5.75 %"};
for (int i = 0; i < LoanArray.length; i++)
comboBox.addItem(LoanArray);
}//end combo box method
//calculation method
void Calculate()
//resets fields
paymentField.setText("");
amortTextArea.setText("");
//calculation variables
NumberFormat currency = NumberFormat.getCurrencyInstance();
//declare input stream object
InputStream istream;
//create a file object to refer to the outside file
File interestData = new File("InterestFile.dat");
//assign instream to the new file object
istream = new FileInputStream(interestData);
try
StringBuffer sb = new StringBuffer();
BufferedReader in = new BufferedReader(new FileReader(interestData));
String line = "";
while((line = in.readLine()) != null)
sb.append(line);
in.close();
String fileData = sb.toString();
String[] splitData = fileData.split(", ");
double [] yearlyInterestArray = new double[splitData.length()];
for(int j = 0; j < splitData.length(); j++)
yearlyInterestArray[j] = new Double(splitData[j]).doubleValue();
catch (IOException e)
JOptionPane.showMessageDialog(null, "File does not exist." + e.getMessage());
int [] termArray = {7, 15, 30}; //array of years
double [] yearlyInterestArray = { 5.35, 5.5, 5.75}; //array of interest
int totalMonths = 0; //total months
double Loan = 0.0; //amount of loan
double MonthlyInterest = 0.0; //monthly interest rate
double Payment = 0.0; //calculate payment
double monthlyPayment = 0.0; //calculate monthly payment
double Interest = 0.0; //variable for Interest Array input
int Term = 0; //variable for Term Array input
double NewMonthlyInterest = 0.0; //new interest amount
double NewLoan = 0.0; //new loan amount
double Reduction = 0.0; //principle reduction
//validate input
try
Loan = Double.parseDouble(amountField.getText());
catch (NumberFormatException e)
JOptionPane.showMessageDialog(null,"Invalid Entry. Please enter valid loan amount.", "Error", JOptionPane.WARNING_MESSAGE);
//resets input fields after error message
amountField.setText("");
amountField.requestFocusInWindow ();
//if select button is chosen
if (selectRadioButton.isSelected())
int index = comboBox.getSelectedIndex ();
Term = termArray[index];
Interest = yearlyInterestArray[index];
//if user chooses to enter mortgage information
else
if (enterRadioButton.isSelected())
//validates input
try
Term = Integer.parseInt(termField.getText());
catch (NumberFormatException e)
JOptionPane.showMessageDialog(null,"Invalid entry. Please enter valid term length in years.", "Error",JOptionPane.WARNING_MESSAGE);
//clears fields after error message
termField.setText("");
termField.requestFocusInWindow();
try
Interest = Double.parseDouble(rateField.getText());
catch (NumberFormatException e)
JOptionPane.showMessageDialog(null,"Invalid entry. Please enter valid rate (without percent symbol).","Error",JOptionPane.WARNING_MESSAGE);
//clears fields after error message
rateField.setText("");
rateField.requestFocusInWindow();
//perform calculations
if (Loan > 0)
Loan = Double.parseDouble(amountField.getText ());
MonthlyInterest = (Interest / 12)/100;
totalMonths = Term * 12;
monthlyPayment = Loan * MonthlyInterest *(Math.pow ((1 + MonthlyInterest), totalMonths)/(Math.pow((1 + MonthlyInterest), totalMonths)-1));
paymentField.setText("" + currency.format(monthlyPayment));
//send information to amortization text area
amortTextArea.append("Number\t");
amortTextArea.append(" Amount\t");
amortTextArea.append("Interest\t");
amortTextArea.append("Principle\t");
amortTextArea.append("Balance\n");
NewLoan = Loan;
for (int i = 1; i <= totalMonths; i++)
NewMonthlyInterest = MonthlyInterest * NewLoan;
Reduction = monthlyPayment - NewMonthlyInterest;
NewLoan = NewLoan - Reduction;
amortTextArea.append(" " + i +"\t");
amortTextArea.append (" " + currency.format(monthlyPayment) + "\t");
amortTextArea.append(" " + currency.format(NewMonthlyInterest)+ "\t");
amortTextArea.append(" " + currency.format(Reduction) + "\t");
amortTextArea.append(" " + currency.format(NewLoan) + "\n");
//resets fields if loan amount is less than zero
if((Loan <= 0 || Term <= 0 || Interest <= 0))
paymentField.setText("");
amortTextArea.setText("");
}//end calcualtion method
//clear method
void Clear()
amountField.setText("");
amountField.requestFocusInWindow();
termField.setText("");
rateField.setText("");
paymentField.setText("");
amortTextArea.setText("");
}//end of clear method
//main method
public static void main(String args[])
Workshop5 f = new Workshop5();
f.setTitle("Carol's Mortgage Calculator");
f.setBounds(200,100,800,800);
f.setResizable(false);
f.setVisible(true);
}//end of main method
//exit method
void Exit()
System.exit(0);
}//end of exit method
}//program end -
My 1GB Data Keeps Being Used When I Am Only Browsing - Please Help!
On Tuesday 10 February 2015 I topped up £10.00 and used £7.50 of it to purchase 1GB of data. Once I did this I didn't think anything of it. I came onto the internet and started browsing webpages to find that my data was being guzzled down in the background and then I definitely knew something was wrong because I wasn't streaming or downloading anything, I was just browsing. I then rang EE and they apologized about this and added 1GB back on for me as a goodwill gesture, except as soon as they did that, it did it all over again. I then rang them back up once again and they told me to install the My Data Calculator application within the Play Store so I did just that but it only showed that the Wi-Fi tethering was using this but like I said above, I was only browsing not downloading anything. None of you did anything to help me and I suggest that you need to sort this out! I would like a full investigation on this because I paid £7.50 for data and to be honest, I will be very lucky if I have used a small portion of it!
I am having exactly the same problem! I have subscribed to the mobile broadband service for 3 months with a 15gb allowance per month and use it only a couple of times a week when working away. My browsing habits have not changed either but I also find that my allowance is used up quickly. I topped up 1gb on Monday and started to use it Tuesday and within a few hours it was gone. It would be impossible as I was only browsing. I have a 1gb allowance with my phone on the 3 network and I dont use that in one month!!! There is definetly something sinister going on. Tried to contact online customer services but said it wasnt their problem told me to ring a number they gave me before rudely disconnecting me. Dreadful service. There is for sure unfair tactics at play here. Impossible that 1gb would be decimated in a matter of hours.
-
How to I convert data from oracle database into excel sheet
how to I convert data from oracle database into excel sheet.
I need to import columns and there datas from oracle database to microsoft excel sheet.
Please let me know the different ways for doing this.
Thanks.asktom.oracle.com has an excellent article on writing a PL/SQL procedure that dumps data to an Excel spreadsheet-- search for 'Excel' and it'll come up.
You can also use your favorite connection protocol (ODBC, OLE DB, etc) to connect from Excel to Oracle and pull the data out that way.
Justin -
How configure a primavera web service to return data from the second database?
Hi everyone,
We have P6 with first WS deployed on a single server weblogic domain. The first WS return data from the first database instance.
Then deployed advanced second WS on a separate weblogic domain server with a different port. Configured second WS with <WS2_INSTALL_HOME>/bin/dbconfig.sh, creating a new branch of a configuration that specifies a different second instance of the database. However, this configuration is ignored and second web services return data from the first database.
We have one domain, which including next servers:
Name / Host / Port / Deployments
P6 / localhost / 0001 / P6(v8.3), p6ws1(v8.3)
p6ws2 / localhost / 0002 / p6ws2(v8.3)
Now we have two different file BREBootstrap.xml.
P6 BREBootstrap.xml:
<Database>
<URL>jdbc:oracle:thin:@db1:1521:db1</URL>
<UserName>pubuser</UserName>
<Password>anycriptopass1</Password>
<Driver>oracle.jdbc.OracleDriver</Driver>
<PublicGroupId>1</PublicGroupId>
</Database>
<CfgVersion>8.330</CfgVersion>
<Configurations>
<BRE name="P6 Config_DB1" instances="1" logDir="anydir/P6EPPM/p6/PrimaveraLogs"/>
</Configurations>
p6ws2 BREBootstrap.xml:
<Database>
<URL>jdbc:oracle:thin:@db2:1521:db2</URL>
<UserName>pubuser</UserName>
<Password>anycriptopass2</Password>
<Driver>oracle.jdbc.OracleDriver</Driver>
<PublicGroupId>1</PublicGroupId>
</Database>
<CfgVersion>8.330</CfgVersion>
<Configurations>
<BRE name="P6 Config_DB2" instances="1" logDir="anydir/P6EPPM/ws2/PrimaveraLogs"/>
</Configurations>
‘P6 Config_DB1’ and ‘P6 Config_DB2’ including Database property for 1 and 2 database respectively.
How to configure a second web service to return data from the second database?
Thanks in advance!
Regards,
DmitryOK, so I got this to work this morning with Username Token Profile (with little help from Oracle Support).
I followed your steps 1-4 but in step 2 I didn't add the -Ddatabase.instance=2 because I want to check to see if my code could swap between different instances.
It appears for Username Token Profile to use Database Instance, you need to set it in the soap header.
So my soap request looks like this:
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<DatabaseInstanceId xmlns="http://xmlns.oracle.com/Primavera/P6/WS/Authentication/V1">2</DatabaseInstanceId>
<o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<u:Timestamp xmlns:u='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd' u:Id='uuid-327b6ed1-b26d-4a61-81d5-e326174c1961-3'>
<u:Created>2014-10-23T04:28:01.152Z</u:Created>
<u:Expires>2014-10-23T04:29:01.152Z</u:Expires>
</u:Timestamp>
<o:UsernameToken u:Id='uuid-327b6ed1-b26d-4a61-81d5-e326174c1961-3' xmlns:u='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd'>
<o:Username>admin</o:Username>
<o:Password Type='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText'>password</o:Password>
<o:Nonce EncodingType='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary'>vJBQhCc28bAeszej7gOaiC2tVCQ=</o:Nonce>
<u:Created>2014-10-23T04:28:01.152Z</u:Created>
</o:UsernameToken>
</o:Security>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ReadProjects xmlns="http://xmlns.oracle.com/Primavera/P6/WS/Project/V2">
<Field>ObjectId</Field>
<Field>Id</Field>
<Field>Name</Field>
<Field>Status</Field>
<Field>StartDate</Field>
<Field>FinishDate</Field>
<Field>DataDate</Field>
<Filter>Id = 'EC00515'</Filter>
</ReadProjects>
</s:Body>
</s:Envelope>
This request pulled the project from the second instance.
V/r,
Gene
Maybe you are looking for
-
When I view the music on my iPhone in iTunes, how do I view this by album, rather than in a long list of songs? When I view the music stored on my iMac, I get a choice to view by Songs, Artists, Albums, Composers, etc. But I don't get any choice wi
-
How to prevent email when using find my iphone
Hi there, Am I the only that finds the email confirmations annoying when using find my iPhone? Is there any way to prevent these emails, or a preference somewhere to turn them off?
-
View/Controller best practices
Hello, A coworker and I are in charge of creating the standards for Web Dynpro development at our company. We've been able to agree on most topics, but we're stuck on one issue. Should ALL logic be in the controller or is it ok to perform some logi
-
I just got my Gateway laptop yesterday, it wouldn't load or recognize a printer driver disc....is this normal? If not, I will return and get an HP like I had before....
-
Error When trying to run dashboard in mobile previewI
Hii, I Created one dashboard for Mobile using BICS connectivity and its working properly in normal preview and when I try to run this dashboard in mobile preview its throwing me request processing error ,Please find attached screenshot (Note-:I