Solaris 9 and Sun ONE 6.1 SP 5 socket issues...
Hi
We have recently migrated to Solaris 9 environment with Sun ONE 6.1 SP5 webserver (previously using Solaris 8 with Sun ONE 6.0).
My problem is this that I have our product installed on Sun ONE webserver and every day I need to restart the virtual server running the application. Once the webserver has started and I do the
netstat -a |grep "port" I see that the status for that particular socket is "LISTEN". Now after a while like the next day or something if I try to access the application through my browser I notice that I'm not able to go to application and when I do netstat -a: grep "port" there are two entries now one with "LISTEN" and the other with "ESTABLISHED" status. The request eventually times out.
Anyone has a clue what could be going wrong..
SA
Hi
We have recently migrated to Solaris 9 environment with Sun ONE 6.1 SP5 webserver (previously using Solaris 8 with Sun ONE 6.0).
My problem is this that I have our product installed on Sun ONE webserver and every day I need to restart the virtual server running the application. Once the webserver has started and I do the
netstat -a |grep "port" I see that the status for that particular socket is "LISTEN". Now after a while like the next day or something if I try to access the application through my browser I notice that I'm not able to go to application and when I do netstat -a: grep "port" there are two entries now one with "LISTEN" and the other with "ESTABLISHED" status. The request eventually times out.
Anyone has a clue what could be going wrong..
SA
Similar Messages
-
Solaris 9 and Sun ONE 6.1 SP5 open socket issue
Hi
We have recently migrated to Solaris 9 environment with Sun ONE 6.1 SP5 webserver (previously using Solaris 8 with Sun ONE 6.0).
My problem is this that I have our product installed on Sun ONE webserver and every day I need to restart the virtual server running the application. Once the webserver has started and I do the
netstat -a |grep "port" I see that the status for that particular socket is "LISTEN". Now after a while like the next day or something if I try to access the application through my browser I notice that I'm not able to go to application and when I do netstat -a: grep "port" there are two entries now one with "LISTEN" and the other with "ESTABLISHED" status. The request eventually times out.
Anyone has a clue what could be going wrong..
SAit is certifying / authenticating that the secured
web site is owned by the genune party and the
transactions with the party is doing through a
encrypted format.
Am i correct up to this???Correct, that is what SSL/certificates are for.
>
Then my dowt is that
Is it possible to make my server SSL enabled with
h out using any certificate ????( the documents you
are given is telling about certificates)No it is not possible - the whole idea behind SSL communication is that it is based on TRUSTED secure communication. If a client can not check validity of server's certificate it is not trusted any more.
It might not seem to be the case when you create a self-signed certificate, but it really is so. In case of a self signed certificate you(i.e your browser) trust yourself with whatever you do with your application on your webserver.
After all can I install some certificates lateron ??
If you really need SSL with your webserver you have to either create a self signed certificate, see this: http://sial.org/howto/openssl/self-signed/
or request a test certificate from www.verisign.com or www.thawtee.com -
Real Application Cluster on Sun Solaris 8 and Sun Cluster 3
Hello,
we want to install Oracle 9i Enterprise Edition in combination with Oracle Real Application Cluster-Option on 2 Nodes. Every node (12-CPU-SMP-Machine) should running Sun Solaris 8 and Sun Cluster 3 Service.
Does this configuration work with ORAC? I found nowhere informations about. Is there anything I have to pay special attention for during installation?
Thank you for helping and best regards from Berlin/Germany
Michael WuttkeForms and report services work fine on solaris 8.
My problem is on the client side.
I have to use solaris 8 with netscape like forms clients
and I wasn't able to make it work with java plugins.
Any solution?
Mauro -
USB Video Class Driver on Solaris 10 and Sun Ray
Hello,
Is it posible to use the USB Video Class Driver (usbvc) on Solaris 10 and Sun Ray?
How can I do that?
Thank you very much.It's not possible. The Video Class requires isochronous operation on USB and Sun Ray does not support isochronous mode.
Even if Sun Ray did support isochronous mode, the libusb library (which is what third-party applications use to interact with USB devices attached to Sun Ray) does not support isochronous transfers. The hard part is the Sun Ray itself. When that gets resolved it probably won't be very hard to add isoc support into libusb. -
Calendar Server 6.0 2004Q2 and Sun One Synchronization 1.1
Hello,
we have a problem with Calendar Server 6.0 2004Q2 and Sun One Synchronization running with a Palm. The connection from the sync tool to calendar server works, but we cannot select one calendar of the user. With Calendar Server 6 2003Q4 ist worked well. Is there something changed in wcap in the new version? Does anybody know how to solve that problem?
Yours,
AngelaHello,
I confirm that I have the same problem with that version (CS 6.0 2004Q2). I cannot select any calendar and It looks like only the default calendar is synchronized. It used to work with the previous version, though.
We have an application that uses WCAP commands. It works perfectly with both versions.
Regards,
Fabrice -
Prob w/ Tungsten T3 and Sun One
I have a Tungsten T3 Palm Pilot that is connecting to a Windows XP Professional laptop. This machine has 1GB of RAM, 40GB HDD, and 2.3GHZ. The problem that I am having is that when I try to synchronize contents from the iPlanet calendar server to the Palm Desktop ( Palm Desktop 4.14 ), I get the following error message shown here:
Sun ONE Synchronization
Errors and Warnings
Serial #: 1
Application: Date Book
Type: Error
Data:
Start Date =
Start Time =
End Date = 12/31/1970
End Time =
Description = \
Alarm = 0
Alarm Date =
Alarm Time =
Private = 0
Note =
Error Message(s):
Field out of range: Start Date
It gives me the option to proceed but when I click on proceed nothing gets transferred over, even though the message box says "Synchronization completed successfully". I have re-installed the Palm Desktop software, the Sun One Software and even went as far as starting from scratch and deleting all Palm and Sun One entries from the registry and re-installing from there with no luck. There is no date that I am aware of, boasting the year 1970 ( as stated in the log ), so I dont know why the application DateBook is screaming about this. Any help with this would be greatly appreciated it, it seems that I have tried everything. I even went to the Sun One and Palm Support Sites but still I didnt have any luck of finding the solution to this. btw I installed the latest Sun One patches but still no luck and also updated the Palm Desktop application.Hi Sergio,
Have you tried enabling full debugging on the Sun synchronisation tool? This may provide you with additional debugging information to help resolve your issue.
To turn on full debugging, run:
Start -> Programs -> Sun One Synchronization -> Sun One Synchronization Debug Log
Set the logging level to 5 and try the synchronization again.
The debug log is placed in:
C:\program files\common files\XCPCSync\Log\rsSync.log
Cheers,
Shane. -
The Differences of JWS and Sun One?
I am quite confused on the difference between JWS and SUN one? Is JWS part of Sun One?
And, I am also confused on J2EE and JWS? Can JWS utilize the backend of J2EE, that say, ejb?
Your help will be much appreciated.I am quite confused on the difference between JWS
and SUN one? Is JWS part of Sun One?Sun ONE (Open Network) is a name for the web centric infrastructure Sun wants to arrive at:
http://www.sun.com/software/sunone/faq.html#1
Don't think of this as a already 100% worked out
plan. Parts are there, parts are planned, parts are
open.
Java Web Start is a technology for beaming
Java applications (full apps, applets, ..) to
client machines over the Web.
A very useful thing.
Yes, Sun mentions it together with Sun ONE:
http://www.sun.com/software/sunone/portfolio/plat.html
And, I am also confused on J2EE and JWS? Can JWS
utilize the backend of J2EE, that say, ejb?As far as I understand J2EE and its Enterprise Java Beans, they are intended to run on server machines.
Web Start is intended for beaming Java apps to
client machines in the first place, allowing a very
easy installation/update which just needs a mouse click from a web page by the user to get done (once Web Start has been installed on the client).
While it might be possible to use Web Start in
some favourable way in the context of server
administration, I doubt that those admins
will use it right now. If, it most likely turn up
in the shape of special jnlp clients, that use
part of the Web Start technologies, not in
shape of the present end-user client.
Regards,
Marc -
Solaris MC and Sun Cluster?
Could someone tell me the relationship between Solaris MC and Sun Cluster?
Thanks!
BillSolaris MC is a distributed operating system for
multi-computers (i.e., clusters of nodes) that provides a
single-system image: a cluster appears to the user and applications
as a single computer running the SolarisTM operating system. Solaris
MC is built as a set of extensions to the base Solaris UNIX � system
and provides the same ABI/API as Solaris, running unmodified
applications. The components of Solaris MC are implemented in C++
through a CORBA-compliant object-oriented system with all new services
defined by the IDL definition language. Objects communicate through a
runtime system that borrows from Solaris doors and Spring
subcontracts. Solaris MC is designed for high availability: if a node
fails, the remaining nodes remain operational. Solaris MC has a
distributed caching file system with UNIX consistency semantics,
based on the Spring virtual memory and file system architecture.
Process operations are extended across the cluster, including remote
process execution and a global /proc file system. The external network
is transparently accessible from any node in the cluster. -
Help for Installing PHP and Sun One Web Server
Hi
I tried to install PHP 5.1.4 and Sun One Web Server 6.1. I am not able to complete this and got stuck. All the available materials in net seems to flow above my head.
It will be very helpful if someone could let me know the step by step configuration a bit brief for the same.
Thanks in advance
Kathirvel BalakrishnanHi Craig
I am following these steps,
1st step : Installing PHP on the WindowsNT server (NT users only)
Copy the php files on your server
Get the php zip file
Copy the php files under a directory (for example : d:php4)
(be careful don't use c:Program Filesphp because of the space between Program and Files
copy php4ts.dll to c:winnt and msvcrt.dll if you don't already have it on your system
Edit php.ini-dist
rename php.ini-dist to php.ini
Edit php.ini : Indicate in which directory you have copied youre php files. (extension_dir = d:php4extensions ; directory in which the loadable extensions (modules) reside.)
copy php.ini in winnt directory (php.ini is parsed in my config)
Matthias Kramer told me that he had to move php.ini to <path-to-netscape-server>/https-servername/config for it to be parsed
Make a file association under Windows NT
In a DOS Window, type assoc .php=PHPScript
ftype PHPScript=d:php4php.exe %1 %*
Test the 1st step
Create a C:test.php file with a single line like <? echo("Nothing to write"); ?>
Create a C:test.bat file with 2 lines test.php
pause
double-clic on test.bat
If you see something like X-Powered-By: PHP/4.0.3
Content-type: text/html
Nothing to write
then the NT association works!!
2nd step : Configuring Netscape Enterprise Server or iPlanet for PHP4 with nsapi (NT & UNIX)
Unix users only
Compile PHP as follows: ./configure --with-nsapi=/usr/local/netscape/server4 --enable-libgcc
make
make install
Add LD_LIBRARY_PATH=<libdir> to your Netscape server startup script
where <libdir> is the full path to the directory where libstdc++.so.2.10.0 is located (usually /usr/local/lib)
Add a mime-type to the Netscape Server
In the Netscape Administration console chose Preferences|Mime Types
Add a new type called magnus-internal/x-httpd-php for exts=php
Click here for screenshot
Stop your Web Server
Make a copy of obj.conf located in: <path-to-netscape-server>/https-servername/config
Modify obj.conf
There are several section in obj.conf
At the end of the Init section of obj.conf (necessarely after mime type init),
place this two lines For NT users
Init fn="load-modules" funcs="php4_init,php4_close,php4_execute,php4_auth_trans" shlib="d:/php4/sapi/php4nsapi.dll"
Init fn="php4_init" errorString="Failed to initialise PHP!"
For Unix users
Init fn="load-modules" funcs="php4_init,php4_close,php4_execute,php4_auth_trans" shlib="/usr/local/netscape/server4/bin/libphp4.so"
Init fn="php4_init" errorString="Failed to initialise PHP!"
In The < Object name="default" > section,
place this line (necessarely after all 'ObjectType' and before all 'AddLog' lines) Service fn="php4_execute" type="magnus-internal/x-httpd-php"
Add a new object called x-httpd-php <Object name="x-httpd-php">
ObjectType fn="force-type" type="magnus-internal/x-httpd-php"
Service fn=php4_execute
</Object>
Restart your Web Server
Test the 2nd step
Put the test.php file in the document root of your server
Then type http://server/test.php
If you can see "nothing to write" in your browser then it works!
AS mentioned in step 1,
I am not getting the PHP message.
I am installing it in my laptop, it has no IP, is that has to do something with this.
Please guide me from here.
Thanks in advance
Kathirvel -
NetBeans and Sun ONE Web Server 6.1
I have a JSP / Beans / Servlet Web application working in Tomcat on my local machine, a Macintosh laptop. I used NetBeans to create it all, and everything works fine there. I have tried to upload everything to another computer (Solaris based) which is running Sun ONE Web Server 6.1, but am having problems.
I uploaded the WAR file that NetBeans created, and uploaded the 'web' directory that NetBeans created. I can access HTML files from that web folder, but when I ask it to go to the first page, index.jsp, it has a problem with the beans. In my JSP file I do:
<jsp:useBean id="db" class="drc.database" scope="session" />
It seems to be having problems loading that class. What do I need to do? Here is the error code:
[04/Aug/2005:17:15:36] fine (15708): for host 129.147.40.215 trying to GET /index.jsp, ntrans-j2ee reports: mapped uri "/index.jsp" in context "" to resource "jsp"
[04/Aug/2005:17:15:36] fine (15708): for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: context = StandardEngine[null].StandardHost[drc].StandardContext[]
[04/Aug/2005:17:15:36] fine (15708): for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: contextPath =
[04/Aug/2005:17:15:36] fine (15708): for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: wrapper = StandardEngine[null].StandardHost[drc].StandardContext[].StandardWrapper[jsp]
[04/Aug/2005:17:15:36] fine (15708): for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: servletPath = /index.jsp
[04/Aug/2005:17:15:36] fine (15708): for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: pathInfo = null
[04/Aug/2005:17:15:36] info (15708): for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: WEB2798: [] ServletContext.log(): JspEngine --> /index.jsp
[04/Aug/2005:17:15:36] info (15708): for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: WEB2798: [] ServletContext.log(): ServletPath: /index.jsp
[04/Aug/2005:17:15:36] info (15708): for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: WEB2798: [] ServletContext.log(): PathInfo: null
[04/Aug/2005:17:15:36] fine (15708): for host 0.0.0.0 trying to GET /index.jsp, ntrans-j2ee reports: mapped uri "/index.jsp" in context "" to resource "jsp"
[04/Aug/2005:17:15:36] info (15708): for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: WEB2798: [] ServletContext.log(): RealPath: /www/html/drc/index.jsp
[04/Aug/2005:17:15:36] info (15708): for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: WEB2798: [] ServletContext.log(): RequestURI: /index.jsp
[04/Aug/2005:17:15:36] info (15708): for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: WEB2798: [] ServletContext.log(): QueryString: null
[04/Aug/2005:17:15:36] failure (15708): for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: StandardWrapperValve[jsp]: WEB2792: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: WEB4000: Unable to compile class for JSPWEB4124:
An error occurred at line: 3 in the JSP file: /index.jsp
WEB4126: Generated servlet error:
/opt/SUNWwbsvr/https-kesin.Central.Sun.COM/ClassCache/drc/default-webapp/_jsps/_index_jsp.java:66: package drc does not exist
drc.database db = null;
^
WEB4124:
An error occurred at line: 3 in the JSP file: /index.jsp
WEB4126: Generated servlet error:
/opt/SUNWwbsvr/https-kesin.Central.Sun.COM/ClassCache/drc/default-webapp/_jsps/_index_jsp.java:69: package drc does not exist
db= (drc.database)
^
WEB4124:
An error occurred at line: 3 in the JSP file: /index.jsp
WEB4126: Generated servlet error:
/opt/SUNWwbsvr/https-kesin.Central.Sun.COM/ClassCache/drc/default-webapp/_jsps/_index_jsp.java:74: package drc does not exist
db = (drc.database) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "drc.database");
^
3 errors
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.loadJSP(JspServlet.java:764)
at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.access$000(JspServlet.java:624)
at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:412)
at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:363)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:578)it is certifying / authenticating that the secured
web site is owned by the genune party and the
transactions with the party is doing through a
encrypted format.
Am i correct up to this???Correct, that is what SSL/certificates are for.
>
Then my dowt is that
Is it possible to make my server SSL enabled with
h out using any certificate ????( the documents you
are given is telling about certificates)No it is not possible - the whole idea behind SSL communication is that it is based on TRUSTED secure communication. If a client can not check validity of server's certificate it is not trusted any more.
It might not seem to be the case when you create a self-signed certificate, but it really is so. In case of a self signed certificate you(i.e your browser) trust yourself with whatever you do with your application on your webserver.
After all can I install some certificates lateron ??
If you really need SSL with your webserver you have to either create a self signed certificate, see this: http://sial.org/howto/openssl/self-signed/
or request a test certificate from www.verisign.com or www.thawtee.com -
Crystal Reports XI and Sun One 6.1 web server SP 5 Error finding JNDI name
I am trying to create a Crystal Reports XI report in a JSP using Sun One 6.1 Web server sp 5.
At this point I am getting the error �Error finding JNDI name� on Sun One
The application will run on Netbeans/Tomcat
I have done the following:
I edited CRConfig.xml
<?xml version="1.0" encoding="utf-8"?>
<CrystalReportEngine-configuration>
�
<DataDriverCommon>
<JavaDir>C:\Program Files\Java\j2re1.4.2_10\bin</JavaDir>
<Classpath>C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.jar;�</Classpath>
�
<JDBC>
<CacheRowSetSize>100</CacheRowSetSize>
<JDBCURL>jdbc:oracle:thin:@10.10.10.10:1521:dev</JDBCURL>
<JDBCClassName>oracle.jdbc.driver.OracleDriver</JDBCClassName>
<JDBCUserName>lab_ro</JDBCUserName>
<JNDIURL></JNDIURL>
�
</JDBC>
I created a report using JDBC (JNDI) connection and have the JNDI Connection set to the name of DATA.
The report works just fine in Crystal Reports.
Then in Netbeans I created an application and it runs in the Tomcat part of Netbeans
In context.xml I have:
<Context path="/BOEnterpriseTest3">
<Resource name="jdbc/dev" auth="Container" type="javax.sql.DataSource"
driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev"
username="theuserid" password="thepassword" maxActive="20" maxIdle="10" maxWait="-1"/>
</Context>
In web.xml I have
<web-app>
<context-param>
<param-name>crystal_image_uri</param-name>
<param-value>crystalreportviewers11</param-value>
</context-param>
�
<taglib>
<taglib-uri>/crystal-tags-reportviewer.tld</taglib-uri>
<taglib-location>/WEB-INF/crystal-tags-reportviewer.tld</taglib-location>
</taglib>
<resource-ref>
<description>jdbc:oracle:thin:@10.10.10.10:1521:dev</description>
<res-ref-name>jdbc/dev10g</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Application</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
<resource-ref>
<description>jdbc:oracle:thin:@10.10.10.10:1521:dev</description>
<res-ref-name>Data</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Application</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</web-app>
in web-inf\sun-web.xml I have
<sun-web-app>
<resource-ref>
<res-ref-name>jdbc/dev10g</res-ref-name>
<jndi-name>Data</jndi-name>
</resource-ref>
</sun-web-app>
I have copied all of Common Files\Business Objects\3.0\java\lib and Common Files\Business Objects\3.0\java\lib\external to the lib folder
I have copied crystalreportviewers11 to the root of my web application
I have tried to load the JNDI information and display the report
<%@page pageEncoding="UTF-8"
import="com.crystaldecisions.reports.reportengineinterface.*,
com.crystaldecisions.report.web.viewer.*,
javax.naming.*,
javax.sql.*,
java.sql.*"%>
<%
InitialContext initContext = new InitialContext();
DataSource source = (DataSource) initContext.lookup("java:comp/env/jdbc/dev10g");
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
try{
// Look up our data source
DataSource ds = (DataSource)initCtx.lookup("Data");
out.println("found ds under jdbc/Data");
catch ( NamingException e ){
// Look up our data source
DataSource ds = (DataSource) initContext.lookup("java:comp/env/jdbc/dev10g");
initCtx.bind("Data", ds);
out.println("found ds under java:com/env:jdbc/Data - bound into root initial context for Crystal to find");
%>
<%
//Use the relative path to the report; the physical or full qualified URL cannot be used.
String reportName = "useridincluded.rpt";
//Database username and password
String userName = "theuserid";
String password = "thepassword";
//check to see if the Report Source Session Variable already exist
Object reportSource = session.getAttribute("Report1");
// Create a new ConnectionInfos and ConnectionInfo object
com.crystaldecisions.sdk.occa.report.data.ConnectionInfos connectionInfos = new com.crystaldecisions.sdk.occa.report.data.ConnectionInfos();
com.crystaldecisions.sdk.occa.report.data.ConnectionInfo connectionInfo = new com.crystaldecisions.sdk.occa.report.data.ConnectionInfo();
//Set username and password for the report's database
connectionInfo.setUserName(userName);
connectionInfo.setPassword(password);
//Add object to collection
connectionInfos.add(connectionInfo);
//---------- Create a ReportClientDocument -------------
com.crystaldecisions.reports.sdk.ReportClientDocument reportClientDocument = new com.crystaldecisions.reports.sdk.ReportClientDocument();
//---------- Set the path to the location of the report soruce -------------
//Open report.
reportClientDocument.open(reportName, 0);
//Get the report source
reportSource = reportClientDocument.getReportSource();
//---------- Create the viewer and render the report -------------
//create the CrystalReportViewer object
com.crystaldecisions.report.web.viewer.CrystalReportViewer crystalReportViewer = new com.crystaldecisions.report.web.viewer.CrystalReportViewer();
//set the reportsource property of the viewer
crystalReportViewer.setReportSource(reportSource);
//set the DB logon into the viewer
crystalReportViewer.setDatabaseLogonInfos(connectionInfos);
//set viewer attributes
crystalReportViewer.setOwnPage(true);
crystalReportViewer.setOwnForm(true);
crystalReportViewer.refresh();
//set the CrystalReportViewer print mode
//crystalReportViewer.setPrintMode(com.crystaldecisions.report.web.viewer.CrPrintMode.ACTIVEX);
crystalReportViewer.setPrintMode(com.crystaldecisions.report.web.viewer.CrPrintMode.PDF);
//process the report
crystalReportViewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
%>
On the Sun One Web server
On the Java Tab
JDBC Connection Pools
Pool Name = dev10g
Class name = oracle.jdbc.pool.OracleDataSource
User id = theuserid
url = 10.10.10.10
password=thepassword
JDBC Resources
JNDI Name=dev10g
Pool = dev10g
I get the error finding JNDI name � how do I tell Sun One where the JNDI is to make Crystal Reports work?I tried the following to test the JNDI
I am trying to do JNDI in Sun One Web server 6.1 sp 5 but I seem to be missing an important part. I get two different errors based on the JSP code, �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance� or �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance�.
Context.xml:
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/BOTest">
<Resource name="jdbc/dev10g" auth="Container" type="javax.sql.DataSource"
driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev10g"
username="userid" password="password" maxActive="20" maxIdle="10" maxWait="-1"/>
<Resource name="Data" auth="Container" type="javax.sql.DataSource"
driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev10g"
username="userid" password="password" maxActive="20" maxIdle="10" maxWait="-1"/>
</Context>Sun-one.xml:
<sun-web-app>
<context-root>BOTest</context-root>
<resource-ref>
<res-ref-name>jdbc/dev10g</res-ref-name>
<jndi-name>jdbc/dev10g</jndi-name>
</resource-ref>
</sun-web-app>web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>
index.jsp
</welcome-file>
</welcome-file-list>
<resource-ref>
<description>jdbc:oracle:thin:@10.10.10.10:1521:dev10g</description>
<res-ref-name>jdbc/dev10g</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Application</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
<resource-ref>
<description>jdbc:oracle:thin:@10.10.10.10:1521:dev10g</description>
<res-ref-name>Data</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Application</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</web-app>server.xml has:
<RESOURCES>
- <JDBCCONNECTIONPOOL name="dev10g" datasourceclassname="oracle.jdbc.pool.OracleDataSource" steadypoolsize="8" maxpoolsize="32" poolresizequantity="2" idletimeout="300" maxwaittime="60000" connectionvalidationrequired="off" connectionvalidationmethod="auto-commit" validationtablename="" failallconnections="off" transactionisolationlevel="read-uncommitted" isolationlevelguaranteed="off">
<PROPERTY name="URL" value="jdbc:oracle:thin:@10.45.3.197:1521:dev10g" />
<PROPERTY name="User" value="lab_ro" />
<PROPERTY name="Password" value="0asphalt1" />
</JDBCCONNECTIONPOOL>
<JDBCRESOURCE jndiname="jdbc/dev10g" poolname="dev10g" enabled="on" />
<JDBCRESOURCE jndiname="Data" poolname="dev10g" enabled="on" />
- <JDBCCONNECTIONPOOL name="Data" datasourceclassname="oracle.jdbc.pool.OracleDataSource" steadypoolsize="8" maxpoolsize="32" poolresizequantity="2" idletimeout="300" maxwaittime="60000" connectionvalidationrequired="off" connectionvalidationmethod="auto-commit" validationtablename="" failallconnections="off" transactionisolationlevel="read-uncommitted" isolationlevelguaranteed="off">
<PROPERTY name="User" value="lab_ro" />
<PROPERTY name="URL" value="jdbc:oracle:thin:@10.45.3.197:1521:dev10g" />
<PROPERTY name="Password" value="0asphalt1" />
</JDBCCONNECTIONPOOL>
<JDBCRESOURCE jndiname="jdbc/Data" poolname="Data" enabled="on" />
<JDBCRESOURCE jndiname="dev10g" poolname="dev10g" enabled="on" />
</RESOURCES>I am getting the following error: �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance�
With the following code:
<%@page
import="java.io.*,
javax.sql.*,
javax.naming.*,
java.sql.*,
java.util.*"%>
<%
Context init;
Context ctx;
DataSource datasource;
Connection con;
try
init = new InitialContext();
Context envCtx = (Context) init.lookup("java:comp/env");
datasource = (DataSource) envCtx.lookup("jdbc/dev10g");
catch(NamingException ex)
out.print("Cannot retrieve data source: " + ex.toString(true));
return;
try
con = datasource.getConnection();
catch (Exception e)
out.print("Cannot retrieve connection: " + e.toString());
return;
try
PreparedStatement pstmt = con.prepareStatement("SELECT PROJNO FROM MATERIALSLAB.VW_ASPHALTHEADERINFO");
ResultSet results = pstmt.executeQuery();
while (results.next())
out.println(results.getString(1));
catch(Exception ex)
out.print("Got connection, can't execute query: " + ex.toString());
return;
%>I get the following error: Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance
With the following code:
<%@page
import="java.io.*,
javax.sql.*,
javax.naming.*,
java.sql.*,
java.util.*"%>
<%
Context init;
Context ctx;
DataSource datasource;
Connection con;
try
init = new InitialContext();
ctx = (Context) init.lookup("java:comp/env");
datasource = (DataSource) ctx.lookup("jdbc/dev10g");
catch(NamingException ex)
out.print("Cannot retrieve data source: " + ex.toString(true));
return;
try
con = datasource.getConnection();
catch (Exception e)
out.print("Cannot retrieve connection: " + e.toString());
return;
try
PreparedStatement pstmt = con.prepareStatement("SELECT PROJNO FROM MATERIALSLAB.VW_ASPHALTHEADERINFO");
ResultSet results = pstmt.executeQuery();
while (results.next())
out.println(results.getString(1));
catch(Exception ex)
out.print("Got connection, can't execute query: " + ex.toString());
return;
%> -
Integrate Sun ONE Messaging and Sun ONE Calendar server with Portal 6.0
We need to integrate (implement a Single Sign On solution) Sun ONE/iPlanet Messaging and Calendar servers with Portal 6.0. The Msg and Cal. servers do not use Portal Profile server as their DS and have a different DS.This directory server is the external DS for Portal. After users login to Portal, they should be able to access Msg and Cal. servers without login to them again.
1. How do we do this without writing a java code/servlet ?
2. Is there any way that we could configure DSAME to create the URL,add userID and password to it and forward that URL to above servers ?Hi,
The SunOne communication providers for version 6.0 will be released soon.
(you can get beta versions from early access program)
Like in the portal version 3.0 these channels
are enabling SSO for messaging and calendar servers.
(I tested them with iMSG5.2 and Calendar5.1.1)
Cheers,
Alex :-) -
HTTP transport and Sun ONE Message Queue
How do I get the HTTP transport to work? The docs don't seem to be correct.
There are a couple of errors in the Sun ONE Message Queue docs that shipped with
the product.
The following are corrections for those errors.
Servlet configuration
Please note the following correction in the Sun ONE Message Queue 2.0
Administration Guide, Appendix B -
The class name of the HTTP Servlet in Step 4 of the "Configuring the Tunnel Servlet"
section is given as:
com.sun.messging.jmq.transport.httptunnel.servlet.HTTPTunnelServlet
The correct class name is :
com.sun.messaging.jmq.transport.httptunnel.servlet.HttpTunnelServlet
Client setup for HTTP support
1.The following connection factory attributes must be specified to use the HTTP
tunnel connection support.
JMQConnectionType :
Set this attribute to "HTTP".
JMQConnectionURL :
Set this attribute to the URL that will be used to connect to the Sun ONE
Message Queue message service (i.e. the URL for the HTTP tunnel servlet).
Note that there is no need to specify the JMQConnectionHandler attribute as
mentioned in the Sun ONE Message Queue 2.0 Administration Guide -
Appendix B.
2.Before running the client application, set the CLASSPATH variable to include
jmqutil.jar in addition to the standard Sun ONE Message Queue jar files.
This file is located at "/opt/SUNWjmq/lib/jmqutil.jar".
If the "jmqutil.jar" file is not included in the CLASSPATH, the client will get a
"java.lang.NoClassDefFoundError" exception for the class
"com/sun/messaging/jmq/util/JMQTimerTask".
3.If you are using an HTTP proxy, set "http.proxyHost" to the proxy server host
name, and "http.proxyPort" to the proxy server port number using the -D
command line option.
An example command line would look like this:
java -classpath
/opt/SUNWjmq/lib/jms.jar:/opt/SUNWjmq/lib/jmq.jar:
/opt/SUNWjmq/lib/jndi.jar:.:/opt/SUNWjmq/lib/jmqutil.jar
-DJMQConnectionType=HTTP
-DJMQConnectionURL=http://webserver:80/imq/servlet ClientApplicaiton -
Classloader and Sun One Application Server 8
Hello.
The problem is that it is impossible to load the digester at application level. Instead of it the digester at application server (Sun One Application Server 8) level is loaded. How can I change the situation?
Thanks.This is happening because generally before a class loader loads a class it lets the parent class loader to load the class.
In Sun One App Server, only web apps can alter this behaviour. Set the delegate attibute of the class-loader element in sun-web.xml to false. This allows the web app class loader to load the class and only if the web app class loader fails to load the parent class loader is consulted. -
Active Directory 2003 and Sun One Directory Server 5.2
I just installed Sun One Directory Server 5.2 on a Linux machine. I want to configure LDAP on that machine so that it can be authenticated on Active Directory 2003. How do I go about doing this?
Active Directory server is a "directory server" (and kerberos server.) If your linux client authenticates against Active Directory it doesn't have to involve the Sun Directory Server at all. You have several general approaches you could investigate:
1. Linux client gets accounts and and authentication via LDAP from Active Directory
If you use AD to handle unix LDAP authentication (opt 1) you may need to extend schema in AD to add the unix password field. I haven't tried it yet, but hope to.
2. Linux client gets accounts from AD LDAP and authorization from AD Kerberos.
There should be docs on support.microsoft.com on enabling kerberos support for non-Win clients.
3. Linux client (with samba client installed, with winbind or pam_smb to support unix level services) gets accounts and authentication as a "Windows" client from Active directory "Windows server"
Check the samba.org docn or forums- I think this is a pretty common solution.
4. Linux client gets account information from Sun Directory server but uses kerberos (against active directory) for authentication.
There should be docs on support.microsoft.com on enabling kerberos support for non-Win clients.
5 Linux client gets account and authorization from Sun Directory server, which the sun Directory server configured to use Active Directory as a Kerberos server.
Probably incredibly complex.
Maybe you are looking for
-
How do I add a forums system to my Dreamweaver project?
I have downloaded a premade forum from phpBB.com When I got the files, all of them were .php files. But I dont get where to put them? I tried adding them to my root folder and then I previewed my whole site on Firefox but its just showing me my home
-
I need to know how to setup a SAN. My equipment is a Sunfire v210 as the controller machine with a StorEdge 6100. I need the procedure from start to finish. Thanks.
-
Read a barcode(including line feeds) into text item
When I scan a bar code from a text item, I am unable to retrieve line feeds that are in a barcode. I need line feeds to retrieve various values encoded in the barcode. When I scan the same code on a notepad, I get output in multi-lines. But, oracle f
-
What is the 3rd party Vender (SMS)
Verizon finally replied me and explained $9.99 is for Premium SMS by third party vendor. But I don't sign on any third party vendor. What is the Premium SMS by third party vendor.? Anyone has same situation like me?
-
? My mac mail on the dock is checked as open, but it will not open and the box says application not responding. the beach ball turns constantly on the unresponsive mail. What can I do?