JSF Deployment error - login.faces not available
I am new to JSF and am having deploying my first example JSF pages in Eclipse on default Tomcat (6.x).
I feel I have done everything stated in the tutorial http://www.exadel.com/tutorial/jsf/jsftutorial-kickstart.html (I did not repeat the step by step instructions in the tutorial - instead, used these instructions to create my own pages / logic). However, I still get the following error:
HTTP Status 404 - /reportwriter/pages/login.faces
type Status report
message /reportwriter/pages/login.faces
description The requested resource (/reportwriter/pages/login.faces) is not available.
Here is my directory structure:
reportwriter
- src
- LoginBean
- LoginServer.java
- Resources.properties
- js
- html
- images
- pages
- login.jsp
- webRoot
- WEB-INF
- lib
- faces-config.xml
- web.xml
- index.jsp with a one line jsp forward to pages/login.faces
here is my faces-config.xml
<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
<application>
<message-bundle>LoginBean.Resources</message-bundle>
<locale-config>
<default-locale>en</default-locale>
<supported-locale>en-us</supported-locale>
<supported-locale>fr</supported-locale>
<supported-locale>es</supported-locale>
</locale-config>
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
</application>
<navigation-rule>
<from-view-id>/pages/login.jsp</from-view-id>
<navigation-case>
<description>Handle case for successful login</description>
<from-action>#{loginServer.loginAction}</from-action>
<from-outcome>success</from-outcome>
<to-view-id>/pages/task.jsp</to-view-id>
</navigation-case>
<navigation-case>
<description>Handle case for unsuccessful login</description>
<from-action>#{loginServer.loginAction}</from-action>
<from-outcome>failure</from-outcome>
<to-view-id>/pages/failure.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/pages/success.jsp</from-view-id>
<navigation-case>
<from-outcome>return</from-outcome>
<to-view-id>/pages/login.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/pages/failure.jsp</from-view-id>
<navigation-case>
<from-outcome>return</from-outcome>
<to-view-id>/pages/login.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name>loginServer</managed-bean-name>
<managed-bean-class>LoginBean.LoginServer</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
</faces-config>
and here is web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
</web-app>
Can you think what I may be missing here to get the login.faces not available error?
One hint I have is - if I do not set a jsp forward line in the index.jsp file, I get the server deployment for the index.jsp file OK. But not when I have the forward from index.jsp to /pages/login.faces
I also tried setting the context in tomcat server.xml file as follows:
<Context debug="0"
docBase="C:/evsapi/ReportWriter/reportwriter/WebRoot"
path="/LoginBean" reloadable="true"/>
Still no use.
Please help!
Edited by: tipseeker on Dec 1, 2008 3:51 PM
tipseeker wrote:
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
I highly recommend your to stop with this and restart with JSF 1.2 instead. JSF 1.0 is legacy and may have still some nasty bugs. You may find this JSF 1.2 / Eclipse 3.4 / Tomcat 6.0 startup tutorial useful as well: [http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html]
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>There's the root cause of the problem, I think. Why did you add this? Are you using JSP or Facelets? This configuration is typical for Facelets, but in your remaining code I only see JSP's being mentioned.
Similar Messages
-
Database Error: RSR0009: Resource not available for pool. Wait-time expired
i am occassionally receiving the following error during database connections in my servlet:
Database Error: RSR0009: Resource not available for pool [webAdvisorTestPool]. Wait-time expired
i understand that this is a result of a connection leak from improper closure of my Connection object, but i thought that i was properly closing my connection.
i can get the error if i do the following steps:
1) access my login page and enter login credentials.
2) submit the login which then hits the Authentication servlet.
3) Authentication servlet authenticates and takes me to home page.
4) hit the back button to get back to the login page.
5) repeat this process until i hit the Max Pool Size (from web server).
6) then i get the error message
here are some details:
i have an Authentication servlet; here is the pertinent code from that servlet:
try { // retrieve the user and add the User object to the session DAO dao = new DAO(); Person authenticUser = dao.getPerson(userID, password); session.setAttribute("validUser", authenticUser); redirectPage = mapping.findForward("success"); }
i also have a DAO object that handles all of my DB transactions (and you can see from my code above that the Authentication servlet is using that object); here is the pertinant code from that servlet:
public DAO() { datasource = "java:comp/env/jdbc/webAdvisorTest"; } public Person getPerson(String userID, String password) throws ObjectNotFoundException { // JDBC variables DataSource ds = null; Connection conn = null; PreparedStatement stmt = null; ResultSet results = null; // User variables Person validUser = null; try { // Retrieve the DataSource from JNDI InitialContext ctx = new InitialContext(); // if this statement fails, NamingException is thrown ds = (DataSource)ctx.lookup(datasource); // get DB connection and perform SQL operations conn = ds.getConnection(); // User variables String validUserID = null; String validFName = null; String validLName = null; String validEmail = null; // get DB connection and perform SQL operations conn = ds.getConnection(); stmt = conn.prepareStatement(PERSON_QUERY); stmt.setString(1, userID); stmt.setString(2, password); results = stmt.executeQuery(); // iterate through the results if (results.next()) { validUserID = results.getString("id"); validFName = results.getString("first_name"); validLName = results.getString("last_name"); validUser = new Person(validUserID, validFName, validLName); } } // handle SQL errors catch(SQLException e) { e.printStackTrace(System.err); throw new RuntimeException("Database Error: " + e.getMessage()); } // handle JNDI errors catch(NamingException e) { throw new RuntimeException("JNDI Error: " + e.getMessage()); } // clean up resources finally { doClosure(results, stmt, conn); } // if the user was not found, throw ObjectNotFoundException if(validUser == null) { throw new ObjectNotFoundException(); } return validUser; } protected void doClosure(ResultSet results, PreparedStatement stmt, Connection conn) { if (results != null) { try { results.close(); } catch (SQLException e) { e.printStackTrace(System.err); } } if (stmt != null) { try { stmt.close(); } catch (SQLException e) { e.printStackTrace(System.err); } } if (conn != null) { try { System.out.println("R18Resources.conn before close: " + conn); conn.close(); System.out.println("R18Resources.conn after close: " + conn); System.out.println("R18Resources.conn is closed? " + conn.isClosed()); } catch (SQLException e) { System.out.println("R18Resource conn close error: " + e.getMessage()); } } }
as you can see, i've added some print statements in my connection closure block. based on my output log, each connection is being properly closed and i am not encountering any errors during that closing block.
any ideas???
Message was edited by:
millerandPlease try the following code in your doClosure method. Replace your code with the following code.
public void doClosure(ResultSet pResultSet, Statement pStmt, Connection pConn) throws Exception {
try {
if (pResultSet != null) {
pResultSet.close();
pResultSet = null;
} catch (SQLException se) {
logger.error( se );
} finally {
try {
if (pStmt != null) {
pStmt.close();
pStmt = null;
} catch (SQLException se) {
logger.error(se);
} finally {
try {
if (pConn != null) {
pConn.close();
pConn = null;
} catch (SQLException se) {
logger.error(se);
And let me know if you still face this issue. What is the application server you are using? -
[J2EE Deployment SPI:260003]Feature not available when in disconnected mode
hi am am having this error when trying to deploy my application in portal
[04:40:27 PM] #### Deployment incomplete. ####
[04:40:27 PM] [J2EE Deployment SPI:260003]Feature not available when in disconnected mode.
#### Cannot run application HR-Portal due to error deploying to IntegratedWebLogicServer.
[Application HR-Portal stopped and undeployed from Server Instance IntegratedWebLogicServer]
my log error
[04:29:53 PM] Wrote Archive Module to C:\JDeveloper\mywork\HR-Portal\PortalWebAssets\deploy\PortalWebAssets.jar
[04:40:08 PM] oracle.rc.asadapter.connection.ConnectionException: Cannot establish connection.
[04:40:08 PM] at oracle.rc.asadapter.weblogic.connection.spi.Weblogic10Jsr160Provider.getPresentation(Weblogic10Jsr160Provider.java:73)
[04:40:08 PM] at oracle.rc.asadapter.connection.AppServerConnectionImpl$PM.getPresentation(AppServerConnectionImpl.java:171)
[04:40:08 PM] at oracle.rc.asadapter.connection.AppServerConnectionImpl.getPresentation(AppServerConnectionImpl.java:66)
[04:40:08 PM] at oracle.jdevimpl.deploy.jazn.JaznDataDeployerListener.uploadIdentities(JaznDataDeployerListener.java:234)
[04:40:08 PM] at oracle.jdevimpl.deploy.jazn.JaznDataDeployerListener.uploadIdentities(JaznDataDeployerListener.java:217)
[04:40:08 PM] at oracle.jdevimpl.deploy.jazn.JaznDataDeployerListener.willDeploy(JaznDataDeployerListener.java:97)
[04:40:08 PM] at oracle.jdevimpl.deploy.fwk.ListenerSupport.fireWillDeploy(ListenerSupport.java:198)
[04:40:08 PM] at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:88)
[04:40:08 PM] at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
[04:40:08 PM] at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
[04:40:08 PM] at oracle.jdevimpl.deploy.fwk.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:457)
[04:40:08 PM] at oracle.jdeveloper.deploy.DeploymentManager.deploy(DeploymentManager.java:217)
[04:40:08 PM] at oracle.jdevimpl.deploy.common.ModulePackagerImpl.deployProfiles(ModulePackagerImpl.java:86)
[04:40:08 PM] at oracle.jdeveloper.deploy.common.ModulePackager.deployProfiles(ModulePackager.java:63)
[04:40:08 PM] at oracle.jdeveloper.deploy.common.ModulePackager.deployImpl(ModulePackager.java:52)
[04:40:08 PM] at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
[04:40:08 PM] at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
[04:40:08 PM] at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
[04:40:08 PM] at oracle.jdeveloper.deploy.common.BatchDeployer.deployImpl(BatchDeployer.java:82)
[04:40:08 PM] at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
[04:40:08 PM] at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
[04:40:08 PM] at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
[04:40:08 PM] at oracle.jdeveloper.deploy.common.BatchDeployer.deployImpl(BatchDeployer.java:82)
[04:40:08 PM] at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
[04:40:08 PM] at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
[04:40:08 PM] at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
[04:40:08 PM] at oracle.jdevimpl.deploy.fwk.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:457)
[04:40:08 PM] at oracle.jdeveloper.deploy.DeploymentManager.deploy(DeploymentManager.java:217)
[04:40:08 PM] at oracle.jdevimpl.runner.adrs.AdrsStarter$7$1.run(AdrsStarter.java:1774)
[04:40:08 PM] Caused by: java.io.IOException
[04:40:08 PM] at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:196)
[04:40:08 PM] at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.java:84)
[04:40:08 PM] at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:338)
[04:40:08 PM] at oracle.rc.asadapter.weblogic.connection.spi.Weblogic10Jsr160Provider.getPresentation(Weblogic10Jsr160Provider.java:67)
[04:40:08 PM] ... 28 more
[04:40:08 PM] Caused by: javax.naming.NamingException [Root exception is java.rmi.UnexpectedException: Marshalling: ; nested exception is:
[04:40:08 PM] java.rmi.ConnectException: Could not establish a connection with -3508319463259142590S:127.0.0.1:[7101,7101,-1,-1,-1,-1,-1]:DefaultDomain:DefaultServer, java.io.IOException: Destination unreachable; nested exception is:
[04:40:08 PM] java.net.ConnectException: Connection refused: connect; No available router to destination; nested exception is:
[04:40:08 PM] java.io.IOException: Destination unreachable; nested exception is:
[04:40:08 PM] java.net.ConnectException: Connection refused: connect; No available router to destination]
[04:40:08 PM] at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:86)
[04:40:08 PM] at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:32)
[04:40:08 PM] at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:788)
[04:40:08 PM] at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:685)
[04:40:08 PM] at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:469)
[04:40:08 PM] at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:376)
[04:40:08 PM] at weblogic.jndi.Environment.getContext(Environment.java:315)
[04:40:08 PM] at weblogic.jndi.Environment.getContext(Environment.java:285)
[04:40:08 PM] at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
[04:40:08 PM] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
[04:40:08 PM] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
[04:40:08 PM] at javax.naming.InitialContext.init(InitialContext.java:223)
[04:40:08 PM] at javax.naming.InitialContext.<init>(InitialContext.java:197)
[04:40:08 PM] at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:178)
[04:40:08 PM] ... 31 more
[04:40:08 PM] Caused by: java.rmi.UnexpectedException: Marshalling: ; nested exception is:
[04:40:08 PM] java.rmi.ConnectException: Could not establish a connection with -3508319463259142590S:127.0.0.1:[7101,7101,-1,-1,-1,-1,-1]:DefaultDomain:DefaultServer, java.io.IOException: Destination unreachable; nested exception is:
[04:40:08 PM] java.net.ConnectException: Connection refused: connect; No available router to destination; nested exception is:
[04:40:08 PM] java.io.IOException: Destination unreachable; nested exception is:
[04:40:08 PM] java.net.ConnectException: Connection refused: connect; No available router to destination
[04:40:08 PM] at weblogic.common.internal.BootServicesStub.authenticate(BootServicesStub.java:57)
[04:40:08 PM] at weblogic.security.acl.internal.RemoteAuthenticate.authenticate(RemoteAuthenticate.java:90)
[04:40:08 PM] at weblogic.jndi.WLInitialContextFactoryDelegate.authenticateRemotely(WLInitialContextFactoryDelegate.java:747)
[04:40:08 PM] at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:679)
[04:40:08 PM] ... 41 more
[04:40:08 PM] Caused by: java.rmi.ConnectException: Could not establish a connection with -3508319463259142590S:127.0.0.1:[7101,7101,-1,-1,-1,-1,-1]:DefaultDomain:DefaultServer, java.io.IOException: Destination unreachable; nested exception is:
[04:40:08 PM] java.net.ConnectException: Connection refused: connect; No available router to destination; nested exception is:
[04:40:08 PM] java.io.IOException: Destination unreachable; nested exception is:
[04:40:08 PM] java.net.ConnectException: Connection refused: connect; No available router to destination
[04:40:08 PM] at weblogic.rjvm.RJVMImpl.getOutputStream(RJVMImpl.java:352)
[04:40:08 PM] at weblogic.rjvm.RJVMImpl.getRequestStreamForDefaultUser(RJVMImpl.java:689)
[04:40:08 PM] at weblogic.common.internal.BootServicesStub.authenticate(BootServicesStub.java:50)
[04:40:08 PM] ... 44 more
[04:40:08 PM] Caused by: java.io.IOException: Destination unreachable; nested exception is:
[04:40:08 PM] java.net.ConnectException: Connection refused: connect; No available router to destination
[04:40:08 PM] at weblogic.rjvm.RJVMImpl.ensureConnectionEstablished(RJVMImpl.java:334)
[04:40:08 PM] at weblogic.rjvm.RJVMImpl.getOutputStream(RJVMImpl.java:350)
[04:40:08 PM] ... 46 moreCaused by: java.io.IOException: Destination unreachable; nested exception is:
+[04:40:08 PM] java.net.ConnectException: Connection refused: connect; No available router to destination+
Is the WebLogic server running? -
Report error service is not available
Hello,
I find the following error on several locations in my SIPstack logs on my Edge Server:
ms-diagnostics: 2019;reason="Report error service is not available";source="standard.kressmark.com"
What service is this referring to?
How can we troubleshoot this error message further?
Any additional information about this topic would be appreciated!
/mk
The full INFO message:
L_INFO(TF_PROTOCOL) [0]0A40.1148::03/10/2014-17:14:03.968.000000ad (SIPStack,SIPAdminLog::TraceProtocolRecord:SIPAdminLog.cpp(125))$$begin_record
Trace-Correlation-Id: 2161867164
Instance-Id: 000000F0
Direction: incoming;source="internal edge";destination="external edge"
Peer: standard.kressmark.com:5061
Message-Type: response
Start-Line: SIP/2.0 503 Service unavailable
From: "Mattias Kressmark"<sip:[email protected]>;tag=45e334cc8d;epid=8ff7cc2b20
To: <sip:[email protected]>;tag=FD66AF22DAE1582D6D94354611261F35
CSeq: 1 SERVICE
Call-ID: 9316261cef2141d3815a94c386e180d6
Via: SIP/2.0/TLS 17.21.122.15:49348;branch=z9hG4bKB54C0D77.B76658C4DF13234B;branched=FALSE;ms-received-port=49348;ms-received-cid=4600
Via: SIP/2.0/TLS 192.168.1.10:51983;received=81.217.34.250;ms-received-port=51983;ms-received-cid=100
ms-diagnostics: 2019;reason="Report error service is not available";source="standard.kressmark.com"
Server: RTC/4.0
Content-Length: 0
Message-Body: –
$$end_recordHi,
Did you deploy Monitoring server in your Lync server environment?
Please update to the latest version for Lync server 2010 and then test the issue again.
http://technet.microsoft.com/en-us/lync/dn146015
Best Regards,
Eason Huang
Eason Huang
TechNet Community Support -
UTL_SMTP fails: SMTP transient error: 421 Service not available
Hi!
I´m trying to set up database to be able to send emails by UTL_SMTP package.
I´m working whit Oracle 9.0.2.0.7 on Windows 2003 Server EE SP1
For this, I have searched a script of the many on the network. One like this:
CREATE OR REPLACE PROCEDURE CASIUS.SEND_MAIL(SENDER IN VARCHAR2, RECIPIENT IN VARCHAR2, SUBJECT IN VARCHAR2, MESSAGE IN VARCHAR2) IS
MAILHOST CONSTANT VARCHAR2(3000) := 'server.exchange.test.com';
MESG VARCHAR2(30000);
MAIL_CONN UTL_SMTP.CONNECTION;
BEGIN
UTL_SMTP.QUIT(MAIL_CONN);
MAIL_CONN := UTL_SMTP.OPEN_CONNECTION(MAILHOST, 25);
UTL_SMTP.EHLO(MAIL_CONN, MAILHOST);
UTL_SMTP.COMMAND( MAIL_CONN, 'AUTH', 'LOGIN ');
UTL_SMTP.COMMAND( MAIL_CONN, UTL_RAW.CAST_TO_VARCHAR2( UTL_ENCODE.BASE64_ENCODE( UTL_RAW.CAST_TO_RAW( '[email protected]' ))));
UTL_SMTP.COMMAND( MAIL_CONN, UTL_RAW.CAST_TO_VARCHAR2( UTL_ENCODE.BASE64_ENCODE( UTL_RAW.CAST_TO_RAW( 'testpassw'))));
MESG := 'Date: ' ||
TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' ) || CHR(13) || CHR(10) ||
'From: <'|| SENDER ||'>' || CHR(13) || CHR(10) ||
'Subject: '|| SUBJECT || CHR(13) || CHR(10)||
'To: <'||RECIPIENT || '>' || CHR(13) || CHR(10) || MESSAGE;
UTL_SMTP.EHLO(MAIL_CONN, MAILHOST);
UTL_SMTP.MAIL(MAIL_CONN, SENDER);
UTL_SMTP.RCPT(MAIL_CONN, RECIPIENT);
UTL_SMTP.DATA(MAIL_CONN,MESG);
UTL_SMTP.QUIT(MAIL_CONN);
EXCEPTION
WHEN OTHERS THEN
RAISE_APPLICATION_ERROR(-20004,SQLERRM);
END SEND_MAIL;
I've reviewed the script many times and I find no error. But when I call it I always have this error:
ORA-20004: ORA-29278: SMTP transient error: 421 Service not available
I have done many tests. Although the most meaningful test that I have done may be the send of a message via telnet from the same server using the same parameters. It has worked!. This is the log:
220 server.exchange.test.com ESMTP Service ready
AUTH LOGIN
334 VXNad23hsdj2bWU6
bm90aWZpY2FjaW9uZMSA12smVsQHNvcG9ydGUtc21zLmVz
334 UGFzer24cmQ6
TDRdE3p6NA==
235 LOGIN authentication successful
MAIL FROM:<[email protected]>
250 MAIL FROM:<[email protected]> OK
RCPT TO: <[email protected]>
250 RCPT TO:<[email protected]> OK
DATA
354 Start mail input; end with <CRLF>.<CRLF>
From:Yomismo
TO:Mimismo
Subject: Test Send Emails
This is a send test
250 <522DCAD000D5FF89> Mail accepted
QUIT
221 server.exchange.test.com QUIT
Connection to host lost.
This test email was received for me, so I think is evidenced that the problem is in ULT_SMTP package.
And more specifically, I suspect that the exception raises on one of these lines:
UTL_SMTP.QUIT(MAIL_CONN);
MAIL_CONN := UTL_SMTP.OPEN_CONNECTION(MAILHOST, 25);
But I don´t understand why, All the sites I have viewed uses package of similar way...
Can someone throw me some light on this issue?
Regardsmaybe you find something in https://community.oracle.com/message/3560073. And I would recommend to think about upgrading to a current Oracle version, since 9.2 has been desupported around 2007.
-
Mail Error: ORA-29278: SMTP transient error: 421 Service not available
I write process to send mail, it is running ok, but I have error ORA-29278: SMTP transient error: 421 Service not available.
SMTP Host Address : localhost
SMTP Host Port : 25
When I connect to database as SYS and run : exec apex_mail.push_queue result is :
Pushing email: 1225814842675154
Pushed email: 1225814842675154
PL/SQL procedure successfully completed.
Please explain me what is happened!Hi;
What is DB version?
Please see:
From Master Note For PL/SQL UTL_SMTP and UTL_MAIL Packages [ID 1137673.1] check Note 604763.1 "ORA-29278: SMTP transient error: 421 Service not available" When Using UTL_SMTP to Send Email.
Regard
Helios -
ORA-29278: SMTP transient error: 421 Service not available
Hi all,
I'm using Oracle 10g working on Windows XP Home.
I'm trying to send a basic mail from my stored procedure.
When I tried to run the code, I get ORA-29278: SMTP transient error: 421 Service not available.
Below is the code I'm trying.
CREATE OR REPLACE PROCEDURE SEND_MAIL (
msg_to varchar2,
msg_subject varchar2,
msg_text varchar2 )
IS
c utl_smtp.connection;
rc integer;
msg_from varchar2(50) := 'Oracle9.2';
mailhost VARCHAR2(30) := '127.0.0.1'; -- local database host
BEGIN
c := utl_smtp.open_connection(mailhost, 25); -- SMTP on port 25
dbms_output.put_line('ok');
utl_smtp.helo(c, mailhost);
utl_smtp.mail(c, msg_from);
utl_smtp.rcpt(c, msg_to);
utl_smtp.data(c,'From: Oracle Database' || utl_tcp.crlf ||
'To: ' || msg_to || utl_tcp.crlf ||
'Subject: ' || msg_subject ||
utl_tcp.crlf || msg_text);
utl_smtp.quit(c);
EXCEPTION
WHEN UTL_SMTP.INVALID_OPERATION THEN
dbms_output.put_line(' Invalid Operation in Mail attempt using UTL_SMTP.');
WHEN UTL_SMTP.TRANSIENT_ERROR THEN
dbms_output.put_line(' Temporary e-mail issue - try again');
dbms_output.put_line (sqlerrm);
WHEN UTL_SMTP.PERMANENT_ERROR THEN
dbms_output.put_line(' Permanent Error Encountered.');
END;
Below are the possibilites I tried..
I tried to ping localhost.. This is the output I get
C:\Documents and Settings\Me>ping localhost
Pinging polasa [127.0.0.1] with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Ping statistics for 127.0.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
In one of the thread, a user suggested to do the following
Go to Control Panel->Add or Remove Programs->Click on
Add/Remove Wndows Components
Check IIS check box.
Select Internet Information Service (IIS) option and click on Details button
Check whether SMTP Service is checked or not.
If not selected then select SMTP check box.
This process should be done on server.
It will help out from ORA-29278: SMTP transient error: 421 Service not available
problem.
There is no IIS in my Windows Components..
Any suggestions? Thanks in advanceIt sounds like you don't have an SMTP server running on your local machine.
Even if you install IIS (or some other SMTP server), that is probably not enough to send email outside of your machine because your machine is unlikely to be trusted by the downstream mail servers. If you are running this in a company, you'll need to talk to your company's mail admin to determine where the corporate SMTP server is running. If you running this at home, you'll need to find out from your ISP what SMTP servers are available to you.
Justin -
Business Rule error: Accounts are not available in the rule table
Hi everybody,
I have a problem running the Business Rule for the profit/loss copy to the equity account.
The Business Rule I set reads from all P&L accounts, P&L specific flow, acual category, all datasources and then it writes everything keeping the source settings apart from the account destination (the equity profit/loss account) and the flow destination (I write in two different flows, so the rule is made up of two equal lines differing only in the flow destination). "PROFIT" is the ID I chose.
Then I created the related script logic (ID=CALCACCOUNT):
*RUN_PROGRAM CALC_ACCOUNT
CATEGORY_M = %CATEGORY_M_SET%
CURRENCYLABEL = %CURRENCYLABEL_SET%
TID_RA = %TIME_SET%
CALC=PROFIT
*ENDRUN_PROGRAM
Finally, the prompt ( process chain: CPMB/RUNCALCACCOUNT):
PROMPT(SELECTINPUT,,,,"CATEGORY_M,CURRENCYLABEL,TIME")
TASK(/CPMB/RUNCALCACCOUNT_LOGIC,SUSER,%USER%)
TASK(/CPMB/RUNCALCACCOUNT_LOGIC,SAPPSET,%APPSET%)
TASK(/CPMB/RUNCALCACCOUNT_LOGIC,SAPP,%APP%)
TASK(/CPMB/RUNCALCACCOUNT_LOGIC,SELECTION,%SELECTION%)
TASK(/CPMB/RUNCALCACCOUNT_LOGIC,LOGICFILENAME,CALCACCOUNT.LGF)
But anytime I run the package it fails giving me the message error: "Accounts are not available in the rule table".
I tried every possible change but nothing; if someone could help me somehow I'd be really grateful!!
Thanks
FilippoHi James,
Thanks for your quick response. There is no currency dimension in the application... I've tested with the correct businessrule as CALC value, but this didn't do the trick.
Any other suggestions?
Regards,
Vincent -
Java.lang.InternalError: internal error: SHA-1 not available
Hi All,
When starting my j2ee & portal I get the following error:
java.lang.InternalError: internal error: SHA-1 not available
Does anybody have an idea about this error?
Thanks
StevenHi All,
When starting my j2ee & portal I get the following error:
java.lang.InternalError: internal error: SHA-1 not available
Does anybody have an idea about this error?
Thanks
Steven -
CIMC on C210 server throws Error 2001: Service not available message
I am trying to configure vmware on a brand new C210 server for the first time and the directions say to access the CIMC and load the vmware media. Sounds easy enough except every time I go to the CIMC webpage I recieve an " error 2001: Service not available" message on every page I go to and none of the server info fields are populated. If I try to make any changes and save my settings the same message pops up and no changes are saved. Almost like the CIMC doesn't recognize the server or hardware. I ran the host update utility just now and upgraded the firmware for everything to the latest version but still no progress. Anyone have this happen or know how I can fix this?
Thanks in advance!
JessI got it working on one of the servers, and havent tried the same solutions on any other server.
What i did was manually adding an IP adress to the management IP, then save the config before rebooting. After rebooting i put it back to get IP from DHCP, and saved the config. After a secound reboot i was able to use the mangement interface without the 2001 error.
I'm not sure if it will work on the rest of the servers, but it's worth a try
Regards
Alex -
I am not able to found Bluetooth in my Macbook Pro. Found error is Bluetooth not available. Please inform me.
Welcome to the Apple Support Communities
Somehow, OS X doesn't detect Bluetooth in your computer. First, reset the PRAM and the SMC, and see if you can use Bluetooth then.
If not, hold Command and R keys while your computer is starting to start in OS X Recovery, and reinstall OS X. If, after reinstalling OS X, you can't use Bluetooth, there's a hardware issue with your Mac, so take your Mac to an Apple Store or reseller -
I rented Hotel Transylvania from iTunes two days ago to watch tonight on Apple TV. I get an error message about not available in U.S. and it won't play. What gives?
you may have inadvertantly purchased it from a non us itunes store section of itunes. go to expresslane.apple.com to get a refund and if you want to rent it again, on your computer itunes screen, scroll all the way to the bottom, and make sure the country indicator at the bottom right has the usa flag
-
3G. I keep getting an error message "Network not available".
3G. I keep getting an error message "Network not available". This is after turning data roaming ON, and even after turning phone off then back on, and having a 3G signal. Help!
I did ask my carrier - twice. I also went into the Apple Store (45 miiles away), who checked it and assured me no hardware issues.
I went back to the phone carrier - for the 3rd time. The assistant rolled her eyes and said this happens all the time. She changed the cellular data network settings on my phone from ideate to mobile. Problem solved!
Carrier has also now offered a refund for the time without coverage - but I had to ask about that, and resist their attempts to change me to a more expensive contract.
Hope this helps anyone else. Thanks razmmee209 -
How do you fix Error: login keychain not found
How do you fix Error: login keychain not found
At some point, you reset your keychain to default in Keychain Access. That caused your login keychain to be renamed.
Back up all data.
In Keychain Access, delete the login keychain from the keychain list. Choose Delete References when prompted, not Delete References & Files.
In the Finder, select Go ▹ Go to Folder from the menu bar, copy the text on the line below into the box that opens, and press return:
~/Library/Keychains
A folder will open. Rename the file "login.keychain" in that folder to something like "login-old.keychain". Rename the file "login-renamed.keychain" to "login.keychain".
Back in Keychain Access, select File ▹ Add Keychain from the menu bar. Add back the file now named "login.keychain". If any of your needed keychain items are missing from it, also add back the file you named "login-old.keychain". I suggest you transfer any needed items from that keychain to the login keychain, then delete it. The transfers are made by drag-and-drop in Keychain Access. You'll need to enter your password for each item transferred. -
How can I solve ORA-29278: SMTP transient error: 421 Service not available
Hi
I have two different Solaris Server (Server1 & server2).
In both the server SMTP server is configured.
In these two solaris server (Server1 & server2) we have installed Oracle 9i
I am using client machine to execute the following procedure.
When I connect to server1 (using SQL plus) and execute the following procedure, it works fine, and able to send emails properly.
But when I connect to server2 (using SQL plus) and execute the following procedure, I get the follwoing error.
Could you please help me to resolve this?
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
SQL> set define off
SQL> set serveroutput on size 1000000
SQL> BEGIN
2 mail_files( 'localhost',
3 'Frm',
4 '[email protected]',
5 'From production',
6 'Test message from production',
7 9999999999,
8 NULL,
9 NULL,
10 NULL,
11 0 );
12 END;
13 /
BEGIN
ERROR at line 1:
ORA-29278: SMTP transient error: 421 Service not available
ORA-06512: at "SYS.UTL_SMTP", line 17
ORA-06512: at "SYS.UTL_SMTP", line 96
ORA-06512: at "SYS.UTL_SMTP", line 327
ORA-06512: at "PROD_L.MAIL_FILES", line 238
ORA-29278: SMTP transient error: 421 Service not available
ORA-06512: at line 2
SQL>Hi
I have two different Solaris Server (Server1 & server2).
In both the server SMTP server is configured.
In these two solaris server (Server1 & server2) we have installed Oracle 9i
I am using client machine to execute the following procedure.
When I connect to server1 (using SQL plus) and execute the following procedure, it works fine, and able to send emails properly.
But when I connect to server2 (using SQL plus) and execute the following procedure, I get the follwoing error.
Could you please help me to resolve this?
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
SQL> set define off
SQL> set serveroutput on size 1000000
SQL> BEGIN
2 mail_files( 'localhost',
3 'Frm',
4 '[email protected]',
5 'From production',
6 'Test message from production',
7 9999999999,
8 NULL,
9 NULL,
10 NULL,
11 0 );
12 END;
13 /
BEGIN
ERROR at line 1:
ORA-29278: SMTP transient error: 421 Service not available
ORA-06512: at "SYS.UTL_SMTP", line 17
ORA-06512: at "SYS.UTL_SMTP", line 96
ORA-06512: at "SYS.UTL_SMTP", line 327
ORA-06512: at "PROD_L.MAIL_FILES", line 238
ORA-29278: SMTP transient error: 421 Service not available
ORA-06512: at line 2
SQL>
Maybe you are looking for
-
Dunning letters - customers title displayed wrong
Hello, I am using F150 in order to issue dunning letters and this looks good with one exception: the address of customer contains the title "Mr." instead of "Herr", even the communication language is German and the form is translated in German as wel
-
Hello everybody, I want to enter a word in a table if that word does not already exist in the table. I wrote a query like this. String word="Football"; sql="INSERT INTO m_word_list (word_text , category_id , used_counter, date_of_addition, added_by,
-
Hi all, I had one problem while adding PO in SAP B1. i have one vendor (VEN001) having two address one in Bangalore and another in Mumbai. The material is coming from Mumbai Branch, but we are paying the amount to Bangalore branch. But in PO, I want
-
Any Suggestion to find nested-nested table levels??
My Code will dynamically generate nested types of arbitrary depth, create a table with a column of that type and populate it with a simple set of values. create or replace procedure ntdepth1(n number) AUTHID CURRENT_USER as type_stm varchar2(255); ty
-
Hi, I'm new with Bridge cc and it crash when he see an mp4. Somebody have the same problem and maybe a fix? Thanks