NSAPI addlog example
I have been trying unsucessfully to get the NSAPI addlog example to work correctly. Although I can sucessfully compile and link the code when I add the required elements to the config files, I get the following when trying to start the server.
[28/Jan/2003:10:23:17] INFO ( 2821): CORE1116: Sun ONE Application Server 7.0
[28/Jan/2003:10:23:17] SEVERE ( 2821): func_exec reports: HTTP2120: no handler function given for directive
[28/Jan/2003:10:23:17] SEVERE ( 2821): CORE3170: Configuration initialization failed: Error running init function (null): unknown error
The relevant init and obj files are listed below, both of which appear to be correct to me. Anybody got any ideas what is wrong? I know these files are very picky about syntax but I can't see any typo's in them.
NetsiteRoot /apps/sun/appserver7
ServerID server1
ServerName marvin
PidLog /apps/sun/appserver7/data/domains/domain1/server1/logs/pid
User root
DNS off
Security off
RqThrottle 128
StackSize 131072
TempDir /tmp/server1-3d39969b
Init fn=flex-init access="$accesslog" format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length%"
Init fn=stats-init
Init fn="load-modules" shlib="/apps/sun/appserver7/lib/libj2eeplugin.so" funcs="init-j2ee,ntrans-j2ee,service-j2ee,error-j2ee" shlib_flags="(global|now)"
Init fn="load-modules" shlib="/apps/sun/appserver7/include/addlog.so" funcs="brief-init,brief-log"
Init fn="brief-init file="/apps/moorea/addlog"
Init fn="init-j2ee" LateInit=yes
AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
NameTrans fn="ntrans-j2ee" name="j2ee"
NameTrans fn=pfx2dir from=/mc-icons dir="/apps/sun/appserver7/lib/icons" name="es-internal"
NameTrans fn=document-root root="$docroot"
PathCheck fn=unix-uri-clean
PathCheck fn="check-acl" acl="default"
PathCheck fn=find-pathinfo
PathCheck fn=find-index index-names="index.html,home.html"
ObjectType fn=type-by-extension
ObjectType fn=force-type type=text/plain
Service method=(GET|HEAD) type=magnus-internal/imagemap fn=imagemap
Service method=(GET|HEAD) type=magnus-internal/directory fn=index-common
Service method=(GET|HEAD|POST) type=*~magnus-internal/* fn=send-file
Error fn="error-j2ee"
AddLog fn=flex-log name="access"
AddLog fn=brief-log
</Object>
<Object name="j2ee">
ObjectType fn=force-type type=text/html
Service fn="service-j2ee" method="*"
</Object>
<Object name="cgi">
ObjectType fn=force-type type=magnus-internal/cgi
Service fn=send-cgi user="$user" group="$group" chroot="$chroot" dir="$dir" nice="$nice"
</Object>
<Object name="es-internal">
PathCheck fn="check-acl" acl="es-internal"
</Object>
Your plugin does some strange things. Fortunately, making it work with your 6.1 install is probably as simple as changing all occurrences of REQ_EXIT to REQ_ABORTED.
Similar Messages
-
NSAPI Pug In 3.6 on NT 4.0 SP6 with WebLogic 5.1 download
I am trying to invoke the NSAPI plugin but cannot call the HelloWorld
Servlet from the Netscape web server port :1000. I can call it directly
through the WebLogic appserver on port: 7001. Here
is my obj.conf file: Are my Init parameters correct for "load modules"?
Init fn=flex-init access="C:/Netscape/SuiteSpot/https-hq2780/logs/access"
format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%]
\"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status%
%Req->srvhdrs.content-length%"
Init fn=load-types mime-types=mime.types
Init fn="load-modules" funcs="wl-proxy,wl-init"
shlib="c:/weblogic/bin/proxy36.dll"
Init fn="wl-init"
<Object name=default>
NameTrans fn=pfx2dir from=/ns-icons dir="C:/Netscape/SuiteSpot/ns-icons"
NameTrans fn=pfx2dir from=/mc-icons dir="C:/Netscape/SuiteSpot/ns-icons"
NameTrans fn="pfx2dir" from="/help"
dir="C:/Netscape/SuiteSpot/manual/https/ug"
#NameTrans fn="pfx2dir" from="/servlets"
dir="C:/weblogic/myserver/servletclasses/examples/servlets"
#NameTrans fn="pfx2dir" from="/servlets"
dir="C:/weblogic/myserver/servletclasses"
NameTrans fn=document-root root="C:/Netscape/SuiteSpot/docs"
#Service method="(GET|HEAD|POST|PUT)" type=text/jsp fn=wl-proxy
WebLogicHost=localhost WebLogicPort=7001 PathPrepend=/jspfiles
PathCheck fn=nt-uri-clean
PathCheck fn="check-acl" acl="default"
PathCheck fn=find-pathinfo
PathCheck fn=find-index index-names="index.html,home.html"
ObjectType fn=type-by-extension
ObjectType fn=force-type type=text/plain
Service method=(GET|HEAD) type=magnus-internal/imagemap fn=imagemap
Service method=(GET|HEAD) type=magnus-internal/directory fn=index-common
Service method=(GET|HEAD) type=*~magnus-internal/* fn=send-file
AddLog fn=flex-log name="access"
</Object>
<Object name=cgi>
ObjectType fn=force-type type=magnus-internal/cgi
Service fn=send-cgi
</Object>
<Object name="servlets" ppath="*/servlets/*">
Service fn=init_exit WebLogicHost=localhost WebLogicPort=7001
</Object>Revised the file as suggested but still get the following error in the error
log - errors:
errors file:
[11/Jul/2000:14:21:00] info ( 351): successful server startup
[11/Jul/2000:14:21:00] info ( 351): Netscape-Enterprise/3.6 SP1
B99.036.2009
[11/Jul/2000:14:21:52] warning ( 351): for host 127.0.0.1 trying to GET
/helloWorld, send-file reports: can't find
C:/Netscape/SuiteSpot/docs/helloWorld (File Not Found Error)
[11/Jul/2000:14:22:14] warning ( 351): for host 127.0.0.1 trying to GET
/servletimages/trans.gif, send-file reports: can't find
C:/Netscape/SuiteSpot/docs/servletimages/trans.gif (File Not Found Error)
[11/Jul/2000:14:22:14] warning ( 351): for host 127.0.0.1 trying to GET
/servletimages/logo2circle.gif, send-file reports: can't find
C:/Netscape/SuiteSpot/docs/servletimages/logo2circle.gif (File Not Found
Error)
[11/Jul/2000:14:22:51] warning ( 351): for host 127.0.0.1 trying to GET
/servletimages/trans.gif, send-file reports: can't find
C:/Netscape/SuiteSpot/docs/servletimages/trans.gif (File Not Found Error)
[11/Jul/2000:14:22:51] warning ( 351): for host 127.0.0.1 trying to GET
/servletimages/logo2circle.gif, send-file reports: can't find
C:/Netscape/SuiteSpot/docs/servletimages/logo2circle.gif (File Not Found
Error)
[11/Jul/2000:14:26:18] info ( 351): Suspend Httpd Service
revised obj.conf file:
Init fn=flex-init access="C:/Netscape/SuiteSpot/https-hq2780/logs/access"
format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%]
\"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status%
%Req->srvhdrs.content-length%"
Init fn=load-types mime-types=mime.types
Init fn="load-modules" funcs="wl-proxy,wl-init"
shlib="c:/weblogic/bin/proxy36.dll"
Init fn="wl-init"
#Init fn="load-modules" funcs="init_exit,auth_exit,service_exit,term_exit"
shlib="c:/weblogic/bin/proxy36.dll"
#Init fn="init_exit" weblogic.properties="c:/weblogic/weblogic.properties"
<Object name=default>
NameTrans fn=pfx2dir from=/ns-icons dir="C:/Netscape/SuiteSpot/ns-icons"
NameTrans fn=pfx2dir from=/mc-icons dir="C:/Netscape/SuiteSpot/ns-icons"
NameTrans fn="pfx2dir" from="/help"
dir="C:/Netscape/SuiteSpot/manual/https/ug"
#NameTrans fn="pfx2dir" from="/servlets"
dir="C:/weblogic/myserver/servletclasses/examples/servlets"
#NameTrans fn="pfx2dir" from="/servlets"
dir="C:/weblogic/myserver/servletclasses"
NameTrans fn=document-root root="C:/Netscape/SuiteSpot/docs"
#Service method="(GET|HEAD|POST|PUT)" type=text/jsp fn=wl-proxy
WebLogicHost=localhost WebLogicPort=7001 PathPrepend=/jspfiles
PathCheck fn=nt-uri-clean
PathCheck fn="check-acl" acl="default"
PathCheck fn=find-pathinfo
PathCheck fn=find-index index-names="index.html,home.html"
ObjectType fn=type-by-extension
ObjectType fn=force-type type=text/plain
Service method=(GET|HEAD) type=magnus-internal/imagemap fn=imagemap
Service method=(GET|HEAD) type=magnus-internal/directory fn=index-common
Service method=(GET|HEAD) type=*~magnus-internal/* fn=send-file
AddLog fn=flex-log name="access"
</Object>
<Object name=cgi>
ObjectType fn=force-type type=magnus-internal/cgi
Service fn=send-cgi
</Object>
<Object name="weblogic" ppath="*/weblogic/*">
Service fn=wl-proxy WebLogicHost=10.17.8.21 WebLogicPort=7001
PathTrim="/weblogic"
</Object>
<Object name="servlets" ppath="*/servlets/*">
Service fn=wl-proxy WebLogicHost=10.17.8.21 WebLogicPort=7001
PathTrim="/servlets"
</Object>
"Mark Griffith" <[email protected]> wrote in message
news:[email protected]...
Welcome to the persnickety parsing world of NSAPI.
Couple of general hints:
Try hitting the path that is configured for the plugin and ensuring you
can see config info?
/serlvets/foo.blah?__WebLogicBridgeConfig
But the problem I think is that your object definition is not referring
to the function.
Init fn="load-modules" funcs="wl-proxy,wl-init"
shlib="c:/weblogic/bin/proxy36.dll"
Init fn="wl-init"
<Object name="servlets" ppath="*/servlets/*">
Service fn=init_exit WebLogicHost=localhost WebLogicPort=7001
</Object>Should be:
Service fn=wl-proxy
See:
http://www.weblogic.com/docs51/admindocs/nsapi.html#sample
mbg
==================================================
NewsGroup Rant
==================================================
Rant 2.
Many of the answers to your questions are in the
documentation. At the top of our online docs is
a search button. Try it! -
Web Svr 6.1 SP4 App Svr 8.1 integration service-passthrough Working example
This is a verbatim example from a working installation.
Pathnames etc will differ from this example.
This is an example of the integration of SUN Java System Web Server 6.1 SP 4 and
SUN Java System Application Server 8.1 2005Q1.
The scope of this integration is successfully accessing a working application
hosted on the application server by making HTTP requests to the web server.
Download and install the "Reverse Proxy Plug-in"
The "Sun Java System Web Server 6.1 Add-Ons" download from sun.com
includes the libpassthrough.so shared object.
libpassthrough.so includes the required passthrough Server Application Function(s) (SAF).
The output of the strings command on libpassthrough.so followed by a
grep for passthrough will list the available Server Application Function(s).
strings libpassthrough.so | grep -i passthrough
magnus.conf file edits.
/export/home/accesmanagerinstalldir/opt/SUNWwbsvr/https-menfi.houston.rr.com/config/magnus.conf
Add this line.
Init fn="load-modules" shlib="/export/home/accesmanagerinstalldir/opt/SUNWwbsvr/plugins/passthrough/libpassthrough.so"
obj.conf edits.
NameTrans fn="assign-name" from="/pwc(|/*)" name="passthrough"
Position of the NameTrans directive is significant.
The NameTrans directives are sequentially searched until a match is found.
One and only one NameTrans directive is utilized for the
NameTrans stage of each HTTP request.
My configuration had this directive as the first NameTrans directive of the obj.conf file.
<Object name="passthrough">
Service fn="service-passthrough" servers="http://192.168.1.199:8080"
</Object>
Once a NameTrans match is found the corresponding Object
within the obj.conf file is utilized.
In this example the name attribute of the NameTrans directive corresponds
to the name attribute of the Object.
The Service directive invokes the service-passthrough Server Application Function (SAF)
of the libpassthrough.so.
The servers argument is passed to the service-passthrough function.
HTTP requests made directly to the application server where the application is hosted
are sussessful. Note the 8080 port in the URL.
http://localhost:8080/pwc/PWCUnprotected
HTTP requests made to the WebServer are successful as well.
The requests are "passed through" between the Web Server
and the Application Server.
http://localhost:80/pwc/PWCUnprotected
http://localhost/pwc/PWCUnprotected
LOG FILES
success note 200 HTTP status code
failure note XXX in URL and 404 HTTP status code
Web Server
/export/home/accesmanagerinstalldir/opt/SUNWwbsvr/https-menfi.houston.rr.com/logs/access
127.0.0.1 - - [08/May/2005:23:53:51 -0500] "GET /pwc/PWCUnprotected HTTP/1.1" 200 185
127.0.0.1 - 09/May/2005:00:02:34 -0500 GET /pwc/PWCUnprotectedXXX HTTP/1.1 404 1003
Application Server
/export/home/accesmanagerinstalldir/opt/SUNWwbsvr/https-menfi.houston.rr.com/logs/access/server_access_log
192.168.1.199 - 08/May/2005:23:53:51 -0500 GET /pwc/PWCUnprotected HTTP/1.1 200 185
127.0.0.1 - 09/May/2005:00:02:34 -0500 GET /pwc/PWCUnprotectedXXX HTTP/1.1 404 1003
The log files illustrate the NameTrans wild card behavior
NameTrans fn="assign-name" from="/pwc(|/*)" name="passthrough"
All requests of the pwc context are passed on to the application server from the
web server as expected.
A nominal start of the server from the Web Server Manager yields the following output.
magnus.conf, obj.conf edit/configuration errors may be seen here.
Status:
[https-menfi.houston.rr.com]: Sun ONE Web Server 6.1SP4 B12/16/2004 11:42
[https-menfi.houston.rr.com]: info: PASS1000: Sun ONE Web Server 6.1SP4 Reverse Proxy Plugin B10/14/2004 13:18
[https-menfi.houston.rr.com]: info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.5.0_01] from [Sun Microsystems Inc.]
[https-menfi.houston.rr.com]: info: WEB0100: Loading web module in virtual server [https-menfi.houston.rr.com] at [simple]
[https-menfi.houston.rr.com]: info: WEB0100: Loading web module in virtual server [https-menfi.houston.rr.com] at [search]
[https-menfi.houston.rr.com]: info: HTTP3072: [LS ls1] http://menfi.houston.rr.com:80 ready to accept requests
[https-menfi.houston.rr.com]: startup: server started successfully
Success!
The server https-menfi.houston.rr.com has started up.
The Release Notes for Sun Java System Web Server 6.1 Add-Ons Reverse Proxy Plugin
http://docs.sun.com/source/819-0902-05/rpp61.html
are well complemented by -
Sun Java System Web Server 6.1 SP4 Administrator's Configuration File Reference
http://docs.sun.com/app/docs/doc/817-6248
Sun Java System Web Server 6.1 SP4 NSAPI Programmer's Guide
http://docs.sun.com/app/docs/doc/817-6252
Files from the working installation.
magnus.conf
# The NetsiteRoot, ServerName, and ServerID directives are DEPRECATED.
# They will not be supported in future releases of the Web Server.
NetsiteRoot /export/home/accesmanagerinstalldir/opt/SUNWwbsvr
ServerName menfi.houston.rr.com
ServerID https-menfi.houston.rr.com
RqThrottle 128
DNS off
Security off
PidLog /export/home/accesmanagerinstalldir/opt/SUNWwbsvr/https-menfi.houston.rr.com/logs/pid
User webservd
StackSize 131072
TempDir /tmp/https-menfi.houston.rr.com-25a6f9e8
Init fn=flex-init access="$accesslog" format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length%"
Init fn="load-modules" shlib="/export/home/accesmanagerinstalldir/opt/SUNWwbsvr/bin/https/lib/libj2eeplugin.so" shlib_flags="(global|now)"
Init fn="load-modules" shlib="/export/home/accesmanagerinstalldir/opt/SUNWwbsvr/plugins/passthrough/libpassthrough.so"
obj.conf
<Object name="default">
AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
NameTrans fn="assign-name" from="/pwc(|/*)" name="passthrough"
NameTrans fn="ntrans-j2ee" name="j2ee"
NameTrans fn=pfx2dir from=/mc-icons dir="/export/home/accesmanagerinstalldir/opt/SUNWwbsvr/ns-icons" name="es-internal"
NameTrans fn=document-root root="$docroot"
PathCheck fn=unix-uri-clean
PathCheck fn="check-acl" acl="default"
PathCheck fn=find-pathinfo
PathCheck fn=find-index index-names="index.html,home.html,index.jsp"
ObjectType fn=type-by-extension
ObjectType fn=force-type type=text/plain
Service method=(GET|HEAD) type=magnus-internal/imagemap fn=imagemap
Service method=(GET|HEAD) type=magnus-internal/directory fn=index-common
Service method=(GET|HEAD|POST) type=*~magnus-internal/* fn=send-file
Service method=TRACE fn=service-trace
Error fn="error-j2ee"
AddLog fn=flex-log name="access"
</Object>
<Object name="passthrough">
Service fn="service-passthrough" servers="http://192.168.1.199:8080"
</Object>
<Object name="j2ee">
Service fn="service-j2ee" method="*"
</Object>
<Object name="cgi">
ObjectType fn=force-type type=magnus-internal/cgi
Service fn=send-cgi user="$user" group="$group" chroot="$chroot" dir="$dir" nice="$nice"
</Object>
<Object name="es-internal">
PathCheck fn="check-acl" acl="es-internal"
</Object>
<Object name="send-compressed">
PathCheck fn="find-compressed"
</Object>
<Object name="compress-on-demand">
Output fn="insert-filter" filter="http-compression"
</Object>Thanks ur post helpme lot
Thanks again
madhu -
Re:NSAPI Plug In 3.6 on NT 4.0 SP6 with WebLogic 5.1 download
Revised the file as suggested but still get the following error in the error
log - errors:
errors file:
[11/Jul/2000:14:21:00] info ( 351): successful server startup
[11/Jul/2000:14:21:00] info ( 351): Netscape-Enterprise/3.6 SP1
B99.036.2009
[11/Jul/2000:14:21:52] warning ( 351): for host 127.0.0.1 trying to GET
/helloWorld, send-file reports: can't find
C:/Netscape/SuiteSpot/docs/helloWorld (File Not Found Error)
[11/Jul/2000:14:22:14] warning ( 351): for host 127.0.0.1 trying to GET
/servletimages/trans.gif, send-file reports: can't find
C:/Netscape/SuiteSpot/docs/servletimages/trans.gif (File Not Found Error)
[11/Jul/2000:14:22:14] warning ( 351): for host 127.0.0.1 trying to GET
/servletimages/logo2circle.gif, send-file reports: can't find
C:/Netscape/SuiteSpot/docs/servletimages/logo2circle.gif (File Not Found
Error)
[11/Jul/2000:14:22:51] warning ( 351): for host 127.0.0.1 trying to GET
/servletimages/trans.gif, send-file reports: can't find
C:/Netscape/SuiteSpot/docs/servletimages/trans.gif (File Not Found Error)
[11/Jul/2000:14:22:51] warning ( 351): for host 127.0.0.1 trying to GET
/servletimages/logo2circle.gif, send-file reports: can't find
C:/Netscape/SuiteSpot/docs/servletimages/logo2circle.gif (File Not Found
Error)
[11/Jul/2000:14:26:18] info ( 351): Suspend Httpd Service
revised obj.conf file:
Init fn=flex-init access="C:/Netscape/SuiteSpot/https-hq2780/logs/access"
format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%]
\"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status%
%Req->srvhdrs.content-length%"
Init fn=load-types mime-types=mime.types
Init fn="load-modules" funcs="wl-proxy,wl-init"
shlib="c:/weblogic/bin/proxy36.dll"
Init fn="wl-init"
#Init fn="load-modules" funcs="init_exit,auth_exit,service_exit,term_exit"
shlib="c:/weblogic/bin/proxy36.dll"
#Init fn="init_exit" weblogic.properties="c:/weblogic/weblogic.properties"
<Object name=default>
NameTrans fn=pfx2dir from=/ns-icons dir="C:/Netscape/SuiteSpot/ns-icons"
NameTrans fn=pfx2dir from=/mc-icons dir="C:/Netscape/SuiteSpot/ns-icons"
NameTrans fn="pfx2dir" from="/help"
dir="C:/Netscape/SuiteSpot/manual/https/ug"
#NameTrans fn="pfx2dir" from="/servlets"
dir="C:/weblogic/myserver/servletclasses/examples/servlets"
#NameTrans fn="pfx2dir" from="/servlets"
dir="C:/weblogic/myserver/servletclasses"
NameTrans fn=document-root root="C:/Netscape/SuiteSpot/docs"
#Service method="(GET|HEAD|POST|PUT)" type=text/jsp fn=wl-proxy
WebLogicHost=localhost WebLogicPort=7001 PathPrepend=/jspfiles
PathCheck fn=nt-uri-clean
PathCheck fn="check-acl" acl="default"
PathCheck fn=find-pathinfo
PathCheck fn=find-index index-names="index.html,home.html"
ObjectType fn=type-by-extension
ObjectType fn=force-type type=text/plain
Service method=(GET|HEAD) type=magnus-internal/imagemap fn=imagemap
Service method=(GET|HEAD) type=magnus-internal/directory fn=index-common
Service method=(GET|HEAD) type=*~magnus-internal/* fn=send-file
AddLog fn=flex-log name="access"
</Object>
<Object name=cgi>
ObjectType fn=force-type type=magnus-internal/cgi
Service fn=send-cgi
</Object>
<Object name="weblogic" ppath="*/weblogic/*">
Service fn=wl-proxy WebLogicHost=10.17.8.21 WebLogicPort=7001
PathTrim="/weblogic"
</Object>
<Object name="servlets" ppath="*/servlets/*">
Service fn=wl-proxy WebLogicHost=10.17.8.21 WebLogicPort=7001
PathTrim="/servlets"
</Object>So far I have heeded your advice and tried the suggestions you have made.
However, I think I am still missing something. If you have the time could
you review the following:
Installation components:
NT4.0 SP6
NES 3.6
WebLogic 5.1
I am trying to call the HelloWorld servlet in the
c:\weblogic\myserver\servletclasses\examples\servlets directory via the plug
in. I can invoke the servlet using the Weblogic port:7001 directly -
http://localhost:7001/servlets/examples/servlets/HelloWorldServlet and
registered http://localhost:7001/helloWorld
Here is the latest obj.conf:
Init fn=flex-init access="C:/Netscape/SuiteSpot/https-hq2780/logs/access"
format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%]
\"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status%
%Req->srvhdrs.content-length%"
Init fn=load-types mime-types=mime.types
Init fn="load-modules" funcs="wl-proxy,wl-init"
shlib="c:/weblogic/bin/proxy36.dll"
Init fn="wl-init"
#Init fn="load-modules" funcs="init_exit,auth_exit,service_exit,term_exit"
shlib="c:/weblogic/bin/proxy36.dll"
#Init fn="init_exit" weblogic.properties="c:/weblogic/weblogic.properties"
<Object name=default>
NameTrans fn=pfx2dir from=/ns-icons dir="C:/Netscape/SuiteSpot/ns-icons"
NameTrans fn=pfx2dir from=/mc-icons dir="C:/Netscape/SuiteSpot/ns-icons"
NameTrans fn="pfx2dir" from="/help"
dir="C:/Netscape/SuiteSpot/manual/https/ug"
#NameTrans fn="pfx2dir" from="/servlets"
dir="C:/weblogic/myserver/servletclasses/examples/servlets"
#NameTrans fn="pfx2dir" from="/servlets"
dir="C:/weblogic/myserver/servletclasses"
NameTrans fn=document-root root="C:/Netscape/SuiteSpot/docs"
#Service method="(GET|HEAD|POST|PUT)" type=text/jsp fn=wl-proxy
WebLogicHost=localhost WebLogicPort=7001 PathPrepend=/jspfiles
PathCheck fn=nt-uri-clean
PathCheck fn="check-acl" acl="default"
PathCheck fn=find-pathinfo
PathCheck fn=find-index index-names="index.html,home.html"
ObjectType fn=type-by-extension
ObjectType fn=force-type type=text/plain
Service method=(GET|HEAD) type=magnus-internal/imagemap fn=imagemap
Service method=(GET|HEAD) type=magnus-internal/directory fn=index-common
Service method=(GET|HEAD) type=*~magnus-internal/* fn=send-file
AddLog fn=flex-log name="access"
</Object>
<Object name=cgi>
ObjectType fn=force-type type=magnus-internal/cgi
Service fn=send-cgi
</Object>
<Object name="weblogic" ppath="*/weblogic/*">
Service fn=wl-proxy WebLogicHost=10.17.8.21 WebLogicPort=7001
PathTrim="/weblogic"
</Object>
<Object name="servlets" ppath="*/servlets/*">
Service fn=wl-proxy WebLogicHost=10.17.8.21 WebLogicPort=7001
PathTrim="/servlets"
</Object>
<Object name="helloWorld" ppath="*/helloWorld/*">
Service fn=wl-proxy WebLogicHost=10.17.8.21 WebLogicPort=7001
</Object>
Thanks in advance.
Mark McCalister
"Mark Griffith" <[email protected]> wrote in message
news:[email protected]...
Ok, so this is a bit different now.
IIn article <[email protected]>, [email protected]
says...
Revised the file as suggested but still get the following error in the
error
log - errors:
errors file:
[11/Jul/2000:14:21:00] info ( 351): successful server startup
[11/Jul/2000:14:21:00] info ( 351): Netscape-Enterprise/3.6 SP1
B99.036.2009
[11/Jul/2000:14:21:52] warning ( 351): for host 127.0.0.1 trying to GET
/helloWorld, send-file reports: can't findYou are proxying /weblogic and /servlets
C:/Netscape/SuiteSpot/docs/helloWorld (File Not Found Error)So /helloworld does not match eiter of those patterns.
[11/Jul/2000:14:22:14] warning ( 351): for host 127.0.0.1 trying to GET
/servletimages/trans.gif, send-file reports: can't findNor does /servletimages
We do have some /servletimages uri's in some of our admin servlets so you
may want to map this as well.
But I dont see that these are unexplainable.
Cheers
mbg
C:/Netscape/SuiteSpot/docs/servletimages/trans.gif (File Not Found
Error)
[11/Jul/2000:14:22:14] warning ( 351): for host 127.0.0.1 trying to GET
/servletimages/logo2circle.gif, send-file reports: can't find
C:/Netscape/SuiteSpot/docs/servletimages/logo2circle.gif (File Not Found
Error)
[11/Jul/2000:14:22:51] warning ( 351): for host 127.0.0.1 trying to GET
/servletimages/trans.gif, send-file reports: can't find
C:/Netscape/SuiteSpot/docs/servletimages/trans.gif (File Not FoundError)
[11/Jul/2000:14:22:51] warning ( 351): for host 127.0.0.1 trying to GET
/servletimages/logo2circle.gif, send-file reports: can't find
C:/Netscape/SuiteSpot/docs/servletimages/logo2circle.gif (File Not Found
Error)
[11/Jul/2000:14:26:18] info ( 351): Suspend Httpd Service
revised obj.conf file:
Init fn="load-modules" funcs="wl-proxy,wl-init"
shlib="c:/weblogic/bin/proxy36.dll"
Init fn="wl-init"SNIP
<Object name="weblogic" ppath="*/weblogic/*">
Service fn=wl-proxy WebLogicHost=10.17.8.21 WebLogicPort=7001
PathTrim="/weblogic"
</Object>
<Object name="servlets" ppath="*/servlets/*">
Service fn=wl-proxy WebLogicHost=10.17.8.21 WebLogicPort=7001
PathTrim="/servlets"
</Object>
==================================================
NewsGroup Rant
==================================================
Rant 1.
The less info you provide about your problem means
the less we can help you. Try to look at the
problem from an external perspective and provide
all the data necessary to put your problem in
perspective. -
Hello,
I have tried the dining examples with:
Oracle,PointBase and MySQL
I have managed to connect to the databases and get the corresponding schema. Deployment was successful in each try, and I always meet the same errors: transaction errors and persistence errors when the restaurant_test_app is run for the first time.
I have checked everything for several hours and I am unable to make it run. I have followed the tutorial step by step and I know what I am doing. I have used the last thin driver for Oracle 8i.
When I tried mysql I thought it would work, but the same errors appeared.
should I post the error messages?
could someone help me?
I am under W2K server service pack 3, does SUN App Server run under this version?
Please help me!
WHY DOESN'T APPS7 TEST THE PERSISTENCE DATABASE WHEN IT IS ASSIGNED? if it does... then why does it fail?Hello,
Clean system: W2K Professional, service pack 3, MS explorer 6.1, Oracle 8i, mysql and pointbase.
I have created the simplest CMP bean:
Name: String
Rating: int
After not Being able to make it work under Oracle I
test it with PointBase:
Pointbase:
PBPool
com.pointbase.jdbc.jdbcUniversalDriver
URL:
jdbc:pointbase:server://localhost/sample
USER/PASSWORD:
PBPUBLIC/PBPUBLIC
I set up the corresponding jdbc and PM pools.
Under Pointbase:
create table test_me
( name varchar(80) primary key,
rating int);
commit;
After mapping the CMP EJB to the table by using the Schema from the database connection without problems and having set up the CMP I deploy it with no problems.
RUNTIME ERRORS:
What am I doing wrong?
(SAME PROBLEM UNDER ORACLE: scott tiger)
---> EXCEPTION
The exception java.rmi.ServerException was thrown when invoking create with parameters:
testit
100
Following is the stack trace:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: nested exception is: com.sun.jdo.api.persistence.support.JDOFatalInternalException: Failed to get the vendor type for the data store. NestedException: java.sql.SQLException: com.sun.enterprise.repository.J2EEResourceException java.lang.NoSuchMethodException: setPassword; nested exception is: com.sun.jdo.api.persistence.support.JDOFatalInternalException: Failed to get the vendor type for the data store. NestedException: java.sql.SQLException: com.sun.enterprise.repository.J2EEResourceException java.lang.NoSuchMethodException: setPassword at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.wrapException(Util.java:364) at javax.rmi.CORBA.Util.wrapException(Util.java:277) at Data._testEJBHome_Stub.create(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sun.forte4j.j2ee.ejbtest.webtest.InvocableMethod$MethodIM.invoke(InvocableMethod.java:233) at com.sun.forte4j.j2ee.ejbtest.webtest.EjbInvoker.getInvocationResults(EjbInvoker.java:98) at com.sun.forte4j.j2ee.ejbtest.webtest.DispatchHelper.getForward(DispatchHelper.java:191) at jasper.dispatch_jsp._jspService(_dispatch_jsp.java:127) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552) at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368) at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720) at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118) at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505) at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157) at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598) Caused by: java.rmi.RemoteException: nested exception is: com.sun.jdo.api.persistence.support.JDOFatalInternalException: Failed to get the vendor type for the data store. NestedException: java.sql.SQLException: com.sun.enterprise.repository.J2EEResourceException java.lang.NoSuchMethodException: setPassword; nested exception is: com.sun.jdo.api.persistence.support.JDOFatalInternalException: Failed to get the vendor type for the data store. NestedException: java.sql.SQLException: com.sun.enterprise.repository.J2EEResourceException java.lang.NoSuchMethodException: setPassword at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:451) at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:545) at Data.testEJBBean_1273236309_ConcreteImpl_RemoteHomeImpl.create(testEJBBean_1273236309_ConcreteImpl_RemoteHomeImpl.java:33) at Data._testEJBHome_Stub.create(Unknown Source) ... 26 more Caused by: com.sun.jdo.api.persistence.support.JDOFatalInternalException: Failed to get the vendor type for the data store. NestedException: java.sql.SQLException: com.sun.enterprise.repository.J2EEResourceException java.lang.NoSuchMethodException: setPassword at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getDBName(SQLPersistenceManagerFactory.java:802) at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getFromPool(SQLPersistenceManagerFactory.java:709) at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getPersistenceManager(SQLPersistenceManagerFactory.java:598) at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:770) at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:660) at Data.testEJBBean_1273236309_ConcreteImpl.jdoGetPersistenceManager(testEJBBean_1273236309_ConcreteImpl.java:539) at Data.testEJBBean_1273236309_ConcreteImpl.ejbCreate(testEJBBean_1273236309_ConcreteImpl.java:255) at Data.testEJBBean_1273236309_ConcreteImpl_RemoteHomeImpl.create(testEJBBean_1273236309_ConcreteImpl_RemoteHomeImpl.java:27) ... 27 more
Use the browser back button to resolve the problem. -
Messaging Server commadmin and running example programs
Hi
1.I am trying to add users to SunMessaging Server (i have installed the identity server and can login to the console ), when i use the commadmin command i Get a Internal server error , the following is the Error in the server Logs
2. There are some particluar examples that come with the messaging server , they are in the directory examples (hello_world.c) ... i am unable to compile them ...i get a linking error as given below (after the messaging server error)
SEVERE (10997): StandardWrapperValve[commLDAPAuth]: Servlet.service() for s
ervlet commLDAPAuth threw exception
javax.servlet.ServletException: com.sun.identity.authentication.spi.AuthLoginException: null
Failed to create New AuthContext: Error while processing XML request
XML response is either Empty or Invalid
at sun.comm.cli.server.servlet.commAuth.execute(commAuth.java:183)
at sun.comm.cli.server.servlet.commServlet.doPost(commServlet.java:90)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve
.java:720)
at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:158)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
Compile using
gcc hello_world.c -I/opt/SUNWmsgsr/include/ -L/opt/SUNWmsgsr/lib/ -limta -lsocket -lgen -lintl -lnsl -lpthread -lc -ldl -lposix4 -lm
Undefined first referenced
symbol in file
mtaErrno /var/tmp//ccKjYt2c.o
mtaEnqueueTo /var/tmp//ccKjYt2c.o
mtaEnqueueStart /var/tmp//ccKjYt2c.o
mtaEnqueueWriteLine /var/tmp//ccKjYt2c.o
mtaPostmasterAddress /var/tmp//ccKjYt2c.o
mtaDone /var/tmp//ccKjYt2c.o
mtaInit /var/tmp//ccKjYt2c.o
mtaDateTime /var/tmp//ccKjYt2c.o
mtaEnqueueFinish /var/tmp//ccKjYt2c.o
mtaStrError /var/tmp//ccKjYt2c.oI'm not sure what exactly you're trying to do.
Once you install commcli, you should be able to use the command-line tools. They work, but you have to have been consistant in giving answers to all the questions asked.
You also may not share the amadmin password with any other password. It must be unique.
There is no need to compile anything to get Messaging Server to work, or to provision it with commcli. -
Nsapi in cluster (obj.conf file conflict)
Hi,
I running WLS5.1.0 SP5 on Sun 5.7 Solaris v2.7, with IPlanet4.0SP1,
running with the plugin...
When I am on non-cluster environment, everything is just fine, but on
cluster, IPlanet is starting, but I can not see anything on the browser
(page cannot be displayed), I have attached my obj.conf file. Please let
me know ASAP what I am doing wrong...
Regards
GOD BLESS
Chris
## ------------- BEGIN SAMPLE OBJ.CONF CONFIGURATION ---------
# (no cluster)
# The following line locates the NSAPI library for loading at
# startup, and identifies which functions within the library are
# NSAPI functions. Verify the path to the library (the value
# of the shlib=<...> parameter) and that the file is
# readable, or the server will fail to start.
Init fn="load-modules" funcs="wl-proxy,wl-init"\
shlib=/usr/netscape/server4/bin/https/lib/libproxy.so
Init fn="wl-init"
# Configure which types of HTTP requests should be handled by the
# NSAPI module (and, in turn, by WebLogic). This is done
# with one or more "<Object>" tags as shown below.
# Here we configure the NSAPI module to pass requests for
# "/weblogic" to a WebLogic Server listening at port 7011 on
# the host ags-dtcXXXX.agsolutions.co.uk that is your localhost (e.g:
ags-dtc1724) .
<Object name="weblogic" ppath="*/weblogic/*">
Service fn=wl-proxy WebLogicCluster="10.0.4.13:7011,10.0.4.14:7011"\
PathTrim="/weblogic"
</Object>
# NSAPI's configuration to pass request for any file begining with
# "WLS" to weblogic server on port 7011.
<Object name="eutility" ppath="*WLS*">
Service fn=wl-proxy WebLogicCluster="10.0.4.13:7011,10.0.4.14:7011"
PathTrim="/EUtility"
</Object>
# NSAPI's configuration to pass request for any file begining with
# "wls" to weblogic server on port 7011.
<Object name="eutility1" ppath="*wls*">
Service fn=wl-proxy WebLogicCluster="10.0.4.13:7011,10.0.4.14:7011"
PathTrim="/EUtility"
</Object>
# Here we configure the plug-in so that requests that
# match "/servletimages/" will be handled by the
# plug-in/WebLogic.
<Object name="si" ppath="*/servletimages/*">
Service fn=wl-proxy WebLogicCluster="10.0.4.13:7011,10.0.4.14:7011"
</Object>
# This Object directive works by file extension rather than
# request path. To use this configuration, you must also add
# a line to the mime.types file:
# type=text/jsp exts=jsp
# This configuration means that any file with the extension
# ".jsp" will be proxied to WebLogic. Then you must add the
# Service line for this extension to the Object "default",
# which should already exist in your obj.conf file:
<Object name=default>
NameTrans fn=pfx2dir from=/ns-icons\
dir="/usr/Netscape/Server4/ns-icons"
NameTrans fn=pfx2dir from=/mc-icons\
dir="/usr/Netscape/Server4/ns-icons"
NameTrans fn="pfx2dir" from="/help" dir=\
"/usr/netscape/server4/manual/https/ug"
NameTrans fn=document-root root="/usr/eutilweb"
Service method="(GET|HEAD|POST|PUT)" type=text/jsp fn=wl-proxy\
WebLogicCluster="10.0.4.13:7011,10.0.4.14:7011 PathPrepend=/jspfiles
PathCheck fn=unix-uri-clean
PathCheck fn="check-acl" acl="default"
PathCheck fn=find-pathinfo
PathCheck fn=find-index
index-names="index.html,index.htm,wls.htm,wls.html,home.html"
ObjectType fn=type-by-extension
ObjectType fn=force-type type=text/plain
Service method=(GET|HEAD) type=magnus-internal/imagemap fn=imagemap
Service method=(GET|HEAD) \
type=magnus-internal/directory fn=index-common
Service method=(GET|HEAD) type=*~magnus-internal/* fn=send-file
AddLog fn=flex-log name="access"
</Object>
# The following directive enables HTTP-tunneling of the
# WebLogic protocol through the NSAPI plug-in.
<Object name="tunnel" ppath="*/HTTPClnt*">
Service fn=wl-proxy WebLogicCluster="10.0.4.13:7011,10.0.4.14:7011"
</Object>
## ------------- END SAMPLE OBJ.CONF CONFIGURATION ---------
[att1.html]
Since IPlanet is started ( as per your email) , are you able to access
index.html page?
If yes, add the following debug flag in obj.conf and point your browser
to
http://[NES-host]:[port]/weblogic/index.html?__WebLogicBridgeConfig (2
under scores)
<Object name="weblogic" ppath="*/weblogic/*">
Service fn=wl-proxy WebLogicCluster="10.0.4.13:7011,10.0.4.14:7011"
PathTrim="/weblogic" DebugConfigInfo="ON"
</Object>
Does the screen shot shows primary & secondary server info?
what's the build date/time on it?
PS: Also make sure there aren't any extra spaces in it.. Sometimes NES
is very much picky..
Kumar
starssoul wrote:
> Hi,
>
> I running WLS5.1.0 SP5 on Sun 5.7 Solaris v2.7, with IPlanet4.0SP1,
> running with the plugin...
> When I am on non-cluster environment, everything is just fine, but on
> cluster, IPlanet is starting, but I can not see anything on the
> browser
> (page cannot be displayed), I have attached my obj.conf file. Please
> let me know ASAP what I am doing wrong...
> Regards
>
> GOD BLESS
> Chris
>
>
>
>
> Init fn="load-modules" funcs="wl-proxy,wl-init"\
> shlib=/usr/netscape/server4/bin/https/lib/libproxy.so
> Init fn="wl-init"
>
> <Object name="weblogic" ppath="*/weblogic/*">
> Service fn=wl-proxy WebLogicCluster="10.0.4.13:7011,10.0.4.14:7011"\
> PathTrim="/weblogic"
> </Object>
>
>
> ## ------------- END SAMPLE OBJ.CONF CONFIGURATION ---------
[att1.html]
-
Iplanet 6.x, NSAP & WLS 6.1 SP2
This is very strange. I can get NSAPI with iplanet 4.x to come up fine (everything proxies, etc. as it should). When we try to get iPlane 6.x working with NSAPI and WLS 6.1 SP2...nothing..doesn't work. We're running everything on Solaris.
Does anyone have or know of some good documentation that might describe how to get NSAPI working between WLS 6.1 and iPlanet 6...all the examples I've been seeing are mostly Windows paths, .dlls', etc. I'd love to see some working magnus.conf & obj.conf, etc. using WLS6.1 SP2 and iPlanet 6...we're not clustered and we're not using SSL (yet) so it's pretty vanilla.
What's blowing my mind is why iplanet 4.x works and 6.x doesn;t?? I wonder if the differences between the two are really that great. I checked BEA's doc...and like I said...it seemed a bit cryptic...someone told me ther was a typo or two regarding what was to go in magnus or was it obj.conf...I don't recall..it's just frustrating trying to get NSAPI up and running with WLS 6.1 SP2 and iPlanet 6. Any ideas? Thanks!!Thanks Kumar. Does the syntax change (such as WebLogicCluster=xxxxxxxxxxxxxxx) if
we are running a single instance of WebLogic (a non-clustered environment)?
Thanks,
Doug
Kumar Allamraju <[email protected]> wrote:
In iplanet 6.x
magnus.conf should have
Init fn="load-modules" funcs="wl_proxy,wl_init" shlib=/usr/local/netscape/plugins/libproxy.so
Init fn="wl_init"
and obj.conf should have
<Object name="weblogic" ppath="*/weblogic/*">
Service fn=wl_proxy \
WebLogicCluster="myweblogic.com:7001,yourweblogic.com:7001,\
theirweblogic.com:7001" PathTrim="/weblogic"
</Object>
Pls post the exact errors that you are seeing, so that we can help
Kumar
"Doug E." wrote:
This is very strange. I can get NSAPI with iplanet 4.x to come up fine(everything proxies, etc. as it should). When we try to get iPlane 6.x
working with NSAPI and WLS 6.1 SP2...nothing..doesn't work. We're running
everything on Solaris.
Does anyone have or know of some good documentation that might describehow to get NSAPI working between WLS 6.1 and iPlanet 6...all the examples
I've been seeing are mostly Windows paths, .dlls', etc. I'd love to see
some working magnus.conf & obj.conf, etc. using WLS6.1 SP2 and iPlanet
6...we're not clustered and we're not using SSL (yet) so it's pretty vanilla.
What's blowing my mind is why iplanet 4.x works and 6.x doesn;t?? I wonderif the differences between the two are really that great. I checked BEA's
doc...and like I said...it seemed a bit cryptic...someone told me ther
was a typo or two regarding what was to go in magnus or was it obj.conf...I
don't recall..it's just frustrating trying to get NSAPI up and running
with WLS 6.1 SP2 and iPlanet 6. Any ideas? Thanks!! -
WLS 6.1 SP2 NSAPI and iPlanet (Sun One) issues
Hi. I am going nuts with this NSAPI issue. I am working in a Solaris 8 environment,
WLS 6.1 SP2 and iPlanet (Sun One)and NSAPI. I can get everything to work fine
and dandy in aniPlanet 4.1 environment. I can not get it to work in an Iplanet
(Sun One) 6.x environment. It appears that some things work differently between
the versions of iPlanet (ie. things contained in magnus.conf and/or obj.conf).
I have tried moving things, removing things, adding things and nothing seems
to work....it's almost as though the NSAPI, etc. are being ignored.
I've attached my magnus.conf and obj.conf files (I cut and pasted them into a
single file so I could upload it). Can anyone help me out here...I've been working
for weeks on this and can't seem to get any answers.
Thanks!
Doug
P.S. For security purpses I changed the first part of the IP add. in the files
to 1234567, etc.
Thanks
[conf_files.txt]Hi Doug
U have to put the following section
Init fn="load-modules" funcs="wl_proxy,wl_init" shlib="./libproxy.so"
Init fn="wl_init"
into magus.conf
and put the rest into obj.conf
Best Regards
Alex
"Doug E" <[email protected]> wrote:
>
Does anybody know of a good reference document on how to properly install
the NSAPI
plug-in for WLS6.1 & iPlanet6(SunOne) on Unix (Solaris). Many of the references
that
I have been finding are either incomplete, have typo's and are mostly Windows
oriented
(ie. with the .dll's, paths, examples, etc.)
My problem is that our old iPlanet 4.x works fine...everything proxies,
etc. iPlanet
6 just doesn't want to seem to communicate with WLS 6.1 SP2 We tried many
of the
saem things from the 4.x magnus & obj.confs...but things look somewhat different
in iPlanet 6.x (did they move tings..such as the fn's from one to the other,
etc.)
If so..and there are big differences in installing iPlanet 4.x vs. 6.x
then many
of the docs out there are inaccurate. Does anyone know if there is a newer
version
of the NSAPI plug-in for Unix.
I would love to see a basic, working set of magnus.conf obj.conf, MIME,etc
from someone
who has actually gotten NSAPI to work between WLS 6.1 and iPlanet 6 on Unix
(Solaris)
It blows my mind that 4.x works and 6.x doesn't. An updated NSAPI plug-in
, if it exists and perhaps fixes the problem, would make my day. Any ideas?
Thanks!
-Doug -
WLS 6.1 SP2, iPlanet 6 & NSAPI problems
Does anybody know of a good reference document on how to properly install the NSAPI
plug-in for WLS6.1 & iPlanet6(SunOne) on Unix (Solaris). Many of the references that
I have been finding are either incomplete, have typo's and are mostly Windows oriented
(ie. with the .dll's, paths, examples, etc.)
My problem is that our old iPlanet 4.x works fine...everything proxies, etc. iPlanet
6 just doesn't want to seem to communicate with WLS 6.1 SP2 We tried many of the
saem things from the 4.x magnus & obj.confs...but things look somewhat different
in iPlanet 6.x (did they move tings..such as the fn's from one to the other, etc.)
If so..and there are big differences in installing iPlanet 4.x vs. 6.x then many
of the docs out there are inaccurate. Does anyone know if there is a newer version
of the NSAPI plug-in for Unix.
I would love to see a basic, working set of magnus.conf obj.conf, MIME,etc from someone
who has actually gotten NSAPI to work between WLS 6.1 and iPlanet 6 on Unix (Solaris)
It blows my mind that 4.x works and 6.x doesn't. An updated NSAPI plug-in
, if it exists and perhaps fixes the problem, would make my day. Any ideas? Thanks!
-DougHi Doug
U have to put the following section
Init fn="load-modules" funcs="wl_proxy,wl_init" shlib="./libproxy.so"
Init fn="wl_init"
into magus.conf
and put the rest into obj.conf
Best Regards
Alex
"Doug E" <[email protected]> wrote:
>
Does anybody know of a good reference document on how to properly install
the NSAPI
plug-in for WLS6.1 & iPlanet6(SunOne) on Unix (Solaris). Many of the references
that
I have been finding are either incomplete, have typo's and are mostly Windows
oriented
(ie. with the .dll's, paths, examples, etc.)
My problem is that our old iPlanet 4.x works fine...everything proxies,
etc. iPlanet
6 just doesn't want to seem to communicate with WLS 6.1 SP2 We tried many
of the
saem things from the 4.x magnus & obj.confs...but things look somewhat different
in iPlanet 6.x (did they move tings..such as the fn's from one to the other,
etc.)
If so..and there are big differences in installing iPlanet 4.x vs. 6.x
then many
of the docs out there are inaccurate. Does anyone know if there is a newer
version
of the NSAPI plug-in for Unix.
I would love to see a basic, working set of magnus.conf obj.conf, MIME,etc
from someone
who has actually gotten NSAPI to work between WLS 6.1 and iPlanet 6 on Unix
(Solaris)
It blows my mind that 4.x works and 6.x doesn't. An updated NSAPI plug-in
, if it exists and perhaps fixes the problem, would make my day. Any ideas?
Thanks!
-Doug -
Need to make periodic request to App Server from NSAPI SAF
I have to send a keep alive ping to a existing Session on our app server from a NSAPI SAF on IWS6.
First, is making a direct socket call the best way to handle it or is there another suggestion for sending the request.
Second, if using the direct socket connection is the way to go do I need to use the net_* methods within the NSAPI code or can I use native socket code.
Third, will there be any issues with making this type of socket call from a spawned thread, and can I use the native threads on Sun Solarias.
Some code examples would be very helpful since I can't find much at all on the site.NSAPI doesn't expose any infrastructure for managing outbound connections, and the list of supported net_* functions does not include socket, bind, or connect analogs. You are probably best off using native socket code.
On Solaris, you can create your thread using the NSAPI systhread_create function or the Solaris pthread_create or thr_create functions. Note that you should not call NSAPI functions from a thread you create yourself unless you first call the NSAPI prepare_nsapi_thread function. -
Re: nsapi problem with WL 4.5.2 no sp with iPlanet 4.0
We are noticing the same problem with WL5.1, esp.
I can replicate this by reducing the number of executeThreads
within WebLogic to a very low number (say 5). It seems to
me that there is a problem with the WebLogic proxy (NSAPI); it seems to be gettting into a state where it is not able to do handle connection startups/shutdowns in a graceful manner leaving IDLE connections.
Any pointers would be appreciated.
Thanks.
-dev
"Jaime Chambron" <[email protected]> wrote:
>here is more details on the probs we are seeing:
>
>Besides a number of other issues that I am experiencing with iPlanet 4.0
>there are two specific issues that I need your help in resolving. These
>issues are as follows:
>
>Idle connection on the web server. Summary: While running load tests on the
>site I see up to 500 or more idle connection that will not time out or
>recycle. Has anyone come across this issue? How was it resolved? Any
>thoughts on what could be causing the idle connections? Below is an example
>of the idle connection.
>
>*.* *.* 0 0 33232 0 IDLE
> *.* *.* 0 0 33232 0 IDLE
> *.* *.* 0 0 33232 0 IDLE
> *.* *.* 0 0 33232 0 IDLE
> *.* *.* 0 0 33232 0 IDLE
> *.* *.* 0 0 33232 0 IDLE
>
>
>
>
>2. Logging. How do I turn off verbose logging or minimize it?
>Summary: Our error log files are continuing to fill up causing sluggish
>performance and web server crashes. Any suggestions? Here are some
>of the errors being logged.. (Suspect the NSAPI plugin)
>
>[25/Jul/2000:12:54:57] failure ( 1324): Error accepting connection -5971,
>oserr=24 (PR_PROC_DESC_TABLE_FULL_ERROR)
>[25/Jul/2000:12:54:57] failure ( 1324): Error accepting connection -5971,
>oserr=24 (PR_PROC_DESC_TABLE_FULL_ERROR)
>[25/Jul/2000:12:54:57] failure ( 1324): Error accepting connection -5971,
>oserr=24 (PR_PROC_DESC_TABLE_FULL_ERROR)
>[25/Jul/2000:12:54:57] failure ( 1324): for host 208.29.209.9 trying to GET
>/, wl-proxy reports: Cannot connect to WebLogic: timed out after 10 seconds.
>
>[25/Jul/2000:13:18:18] warning ( 1324): DaemonProcessor::Run terminating
>with 404 sessions still in progress
>[25/Jul/2000:13:18:19] info ( 1437): successful server startup
>[25/Jul/2000:13:18:19] info ( 1437): Netscape-Enterprise/4.0 SP4
>BB1-02/07/100 17:53
>[25/Jul/2000:13:34:49] failure ( 1437): for host 208.29.209.9 trying to GET
>/, wl-proxy reports: Cannot connect to WebLogic: timed out after 10 seconds.
>
>[25/Jul/2000:13:35:43] failure ( 1437): for host 208.29.209.9 trying to GET
>/, wl-proxy reports: Cannot connect to WebLogic: timed out after 10 seconds.
>
>
>
>
>Jaime Chambron wrote in message <[email protected]>...
>>hi -
>>
>>we are having a ton of probs with our error log on our web servers filling
>>up and degrading performance b/c we are seeing the following error with our
>>jsps (the web server sees up to a point in runnign,then all of a sudden
>>starts to get errors after some load testing)
>>
>>the prob causes errors in the proxy.cpp file to occur (at different line
>>numbers, i believe 400 something and 830) and says things like "file not
>>found" (though it is there) or timeout...
>>
>>this is causing our webservers to eventually grind to a hault, and it looks
>>like is has something to do with the nsapi plug in. do we need a patch? do
>>we have something configured wrong?
>>
>>
>>please help!!
>>thanks
>>j
>>
>>
>
>
Hi,
I'm experiencing the same problem with wls 5.1 sp 9 and iPlanet 4.1 sp 5.
Did you figure this problem out?
Regards,
Torleif Galteland
"Michael Caughey" <[email protected]> wrote:
>
>Have you had any luck in figuring out what is the root cause of your
>problem?
>We are having a simalar problem using weblogic 5.1 SP6 & iPlanet 4.1
>SP2.
>Thanks,
>
>"Dev Worah" <[email protected]> wrote:
>>
>>We are noticing the same problem with WL5.1, esp.
>>
>>I can replicate this by reducing the number of executeThreads
>>within WebLogic to a very low number (say 5). It seems to
>>me that there is a problem with the WebLogic proxy (NSAPI); it seems
>>to be gettting into a state where it is not able to do handle connection
>>startups/shutdowns in a graceful manner leaving IDLE connections.
>>
>>Any pointers would be appreciated.
>>
>>Thanks.
>>-dev
>>"Jaime Chambron" <[email protected]> wrote:
>>>here is more details on the probs we are seeing:
>>>
>>>Besides a number of other issues that I am experiencing with iPlanet
>>4.0
>>>there are two specific issues that I need your help in resolving.
>These
>>>issues are as follows:
>>>
>>>Idle connection on the web server. Summary: While running load tests
>>on the
>>>site I see up to 500 or more idle connection that will not time out
>>or
>>>recycle. Has anyone come across this issue? How was it resolved?
>
>>Any
>>>thoughts on what could be causing the idle connections? Below is an
>>example
>>>of the idle connection.
>>>
>>>*.* *.* 0 0 33232 0 IDLE
>>> *.* *.* 0 0 33232 0
>>IDLE
>>> *.* *.* 0 0 33232 0
>>IDLE
>>> *.* *.* 0 0 33232 0
>>IDLE
>>> *.* *.* 0 0 33232 0
>>IDLE
>>> *.* *.* 0 0 33232 0
>>IDLE
>>>
>>>
>>>
>>>
>>>2. Logging. How do I turn off verbose logging or minimize it?
>>>Summary: Our error log files are continuing to fill up causing sluggish
>>>performance and web server crashes. Any suggestions? Here are
>>some
>>>of the errors being logged.. (Suspect the NSAPI plugin)
>>>
>>>[25/Jul/2000:12:54:57] failure ( 1324): Error accepting connection
>-5971,
>>>oserr=24 (PR_PROC_DESC_TABLE_FULL_ERROR)
>>>[25/Jul/2000:12:54:57] failure ( 1324): Error accepting connection
>-5971,
>>>oserr=24 (PR_PROC_DESC_TABLE_FULL_ERROR)
>>>[25/Jul/2000:12:54:57] failure ( 1324): Error accepting connection
>-5971,
>>>oserr=24 (PR_PROC_DESC_TABLE_FULL_ERROR)
>>>[25/Jul/2000:12:54:57] failure ( 1324): for host 208.29.209.9 trying
>>to GET
>>>/, wl-proxy reports: Cannot connect to WebLogic: timed out after 10
>>seconds.
>>>
>>>[25/Jul/2000:13:18:18] warning ( 1324): DaemonProcessor::Run terminating
>>>with 404 sessions still in progress
>>>[25/Jul/2000:13:18:19] info ( 1437): successful server startup
>>>[25/Jul/2000:13:18:19] info ( 1437): Netscape-Enterprise/4.0 SP4
>>>BB1-02/07/100 17:53
>>>[25/Jul/2000:13:34:49] failure ( 1437): for host 208.29.209.9 trying
>>to GET
>>>/, wl-proxy reports: Cannot connect to WebLogic: timed out after 10
>>seconds.
>>>
>>>[25/Jul/2000:13:35:43] failure ( 1437): for host 208.29.209.9 trying
>>to GET
>>>/, wl-proxy reports: Cannot connect to WebLogic: timed out after 10
>>seconds.
>>>
>>>
>>>
>>>
>>>Jaime Chambron wrote in message <[email protected]>...
>>>>hi -
>>>>
>>>>we are having a ton of probs with our error log on our web servers
>>filling
>>>>up and degrading performance b/c we are seeing the following error
>>with our
>>>>jsps (the web server sees up to a point in runnign,then all of a sudden
>>>>starts to get errors after some load testing)
>>>>
>>>>the prob causes errors in the proxy.cpp file to occur (at different
>>line
>>>>numbers, i believe 400 something and 830) and says things like "file
>>not
>>>>found" (though it is there) or timeout...
>>>>
>>>>this is causing our webservers to eventually grind to a hault, and
>>it looks
>>>>like is has something to do with the nsapi plug in. do we need a
>patch?
>>do
>>>>we have something configured wrong?
>>>>
>>>>
>>>>please help!!
>>>>thanks
>>>>j
>>>>
>>>>
>>>
>>>
>>
>
-
NSAPI - directing to multiple weblogic instances
Hi,
I am trying to redirect 2 different URLs (www.test.com/server1 and www.test.com/server2)
to distinct weblogic instances which run on ports 7001 and 8001. The NSAPI instructions
say to do the following in the obj.conf file -- see below. This works great if
I open a new browser window for each one. However, the problem occurs in a single
browser instance when switching between the 2 URLs. Both URL requests will only
be directed to one of the WebLogic instances -- the other WL instance is ignored
no matter what URL you enter.
Any ideas????
# Here we configure the NSAPI module to pass requests for
# "/weblogic" to a WebLogic Server listening at port 7001 on
# the host myweblogic.server.com.
<Object name="weblogic" ppath="*/weblogic/*">
Service fn=wl_proxy WebLogicHost=myweblogic.server.com\
WebLogicPort=7001 PathTrim="/weblogic"
</Object>
# Here we configure the plug-in so that requests that
# match "/servletimages/" is handled by the
# plug-in/WebLogic.
<Object name="si" ppath="*/servletimages/*">
Service fn=wl_proxy WebLogicHost=192.192.1.4 WebLogicPort=7001
</Object>I am not sure I understand what you want to do.. From your example, what you
are doing is directing anything that has "weblogic" in the URL to a single
weblogic instance. In your case: myweblogic.server.com.
You are also directing anything with "servletimages" in the URL to :
192.192.1.4.
Both these servers are listening on port 7001. There is no mention of 8001.
Let's say you want to have all requests that have "server1" in the URL go to
one weblogic instance and all that have "server2" in the url goto the other
weblogic instance(port 8001), then you need to configure two object tags.
One that has a ppath="*/server1/*" and that will point to weblogic instance
1(port 7001) and another weblogic object that has a ppath="*/server2/*" and
points to weblogic instance 2(port 8001).
Hope this helps.
Regards,
Eric
"Lauren Jones" <[email protected]> wrote in message
news:3b6f04fb$[email protected]..
>
Hi,
I am trying to redirect 2 different URLs (www.test.com/server1 andwww.test.com/server2)
to distinct weblogic instances which run on ports 7001 and 8001. TheNSAPI instructions
say to do the following in the obj.conf file -- see below. This worksgreat if
I open a new browser window for each one. However, the problem occurs ina single
browser instance when switching between the 2 URLs. Both URL requestswill only
be directed to one of the WebLogic instances -- the other WL instance isignored
no matter what URL you enter.
Any ideas????
# Here we configure the NSAPI module to pass requests for
# "/weblogic" to a WebLogic Server listening at port 7001 on
# the host myweblogic.server.com.
<Object name="weblogic" ppath="*/weblogic/*">
Service fn=wl_proxy WebLogicHost=myweblogic.server.com\
WebLogicPort=7001 PathTrim="/weblogic"
</Object>
# Here we configure the plug-in so that requests that
# match "/servletimages/" is handled by the
# plug-in/WebLogic.
<Object name="si" ppath="*/servletimages/*">
Service fn=wl_proxy WebLogicHost=192.192.1.4 WebLogicPort=7001
</Object> -
Forwarding JSP from NSAPI to WebLogic
Does anyone know what the correct syntax is to forward a JSP from the
NSAPI plugin to to WebLogic?
I need to find out how it's coded in the obj.conf file for both single
server and clustered servers.
The examples in the WebLogic documentation does not seem to be working
for me.
Thanks
Paul S. Burry
Chief Technical Officer,
Serapeion Technologies
Voice: +1-415-350-0902
Fax: +1-415-934-0747
E-mail: [email protected]
E-mail Pager: [email protected]
In obj.conf:
Service method="(GET|HEAD|POST|PUT)" type="text/jsp" fn="wl-proxy"
WebLogicHost="hostname" WebLogicPort="7001"
In file mime.types:
type=text/jsp exts=jsp
Robert Patrick <[email protected]> wrote in message
news:[email protected]..
> I have successfully used the ppath option with a pattern of "*.jsp" with
> both single and clustered servers...
>
> Hope this helps,
> Robert
>
> Paul Burry wrote:
>
> > Does anyone know what the correct syntax is to forward a JSP from the
> > NSAPI plugin to to WebLogic?
> > I need to find out how it's coded in the obj.conf file for both single
> > server and clustered servers.
> > The examples in the WebLogic documentation does not seem to be working
> > for me.
> >
> > Thanks
> > --
> > Paul S. Burry
> > Chief Technical Officer,
> > Serapeion Technologies
> > Voice: +1-415-350-0902
> > Fax: +1-415-934-0747
> > E-mail: [email protected]
> > E-mail Pager: [email protected]
>
-
We were using WebLogic Server version 4.5.1 on our NES proxy server
and everything was
pretty smooth. Now that we have installed version 5.1 of WebLogic we
get the following message:
FAILURE of WEBLOGIC NSAPI plugin
Cannot Connect to Weblogic: timed out after 10 seconds.
Failure at line 465 of file proxy.cpp
The only thing I changed was moving the new proxy36.dll onto the NES
server.
Any ideas are appreciated.
joeSet the plugin parameter DebugConfigInfo=ON and then send the query param
"__WebLogicBridgeConfig". Make sure that your server/cluster members
are listed.
Example:
<Object name="weblogic" ppath="*/weblogic/*">
Service fn="wl-proxy"
WebLogicCluster="lakeshore1:4736,lakeshore2:4736,lakeshore:4736"\
PathTrim="/weblogic" DebugConfigInfo="ON"
</Object>
Send http://myserver:8000/weblogic/SimpleSession.jsp?__WebLogicBridgeConfig
Also make sure that your can reach your WebLogic servers directly.
--Vinod.
Joe wrote:
We were using WebLogic Server version 4.5.1 on our NES proxy server
and everything was
pretty smooth. Now that we have installed version 5.1 of WebLogic we
get the following message:
FAILURE of WEBLOGIC NSAPI plugin
Cannot Connect to Weblogic: timed out after 10 seconds.
Failure at line 465 of file proxy.cpp
The only thing I changed was moving the new proxy36.dll onto the NES
server.
Any ideas are appreciated.
joe
Maybe you are looking for
-
How do I move my itunes music library to a new computer?
I bought a new PC--Dell inspiron 530, running Windows Vista. I need to transfer my itunes library (itunes 7) from my old computer which runs Windows XP. I have a CD/DVD burning capability on the old computer. I understand that there is a way to trans
-
CFOLDERS - CFX_HISTORY table giving me problems in ABAP
We are going to use CFolders in our environment. I have an issue with the CFX_HISTORY table when I try and use it in a ABAP report. I get the following message when I try and include it in a ABAP program: "CFX_HISTORY" must be a flat structure. Y
-
The option to Enable or Disable the Infrared is no longer in Sistem Preferences\Security and Privacy\General, any have and idea where is in Lion OS X that option???
-
Query takes long time - Please help!
I've a query like below (not actual query) update (select eds.title eds_title,edv.title edv_title from mia_data_staging eds, mia_doc_Versions edv where eds.id = edv.id and eds.title != edv.title) set edv_title = eds_title; In the above query I've mor
-
KEA0 what is the best way to create new Operating concern
Hello : Please advise 1. what is best way to create new OP concern copy from template or create data structure from scratch? 2. I try to copy from OP concern = IDEA but when click change DATA STRUTURE -I see only CE1xxx but I not see CE2xxxx, CE3