How to configure WebLogic to use TopLink?
I am using BEA Workshop to develop a webservice and I am having some issues to make it work. Basically, I am using Toplink plus JAX-WS. The main problem is how to get the EntityManager from the context in order to persist the data into database.
Here is a piece of code, hope it can help to understand the issue:
Context ctx = null;
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL,
"t3://localhost:7001");
ctx = new InitialContext(ht);
EntityManager em = (EntityManager) ctx.lookup("persistence/LogicalName");
Thanks!
Diego
Thanks for the info mkeith!
Maybe this can give you a better idea of what I am talking about. I changed a few things based on the tutorials that oracle provides:
I keep getting the following exception when I try to deploy into weblogic:
weblogic.deployment.EnvironmentException: Error processing persitence unit defau
lt of module ejb.jar: Error instantiating the Persistence Provider class oracle.
toplink.essentials.PersistenceProvider of the PersistenceUnit default: java.lang
.ClassNotFoundException: oracle.toplink.essentials.PersistenceProvider
at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactor
persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="default" transaction-type="JTA">
<provider>oracle.toplink.essentials.PersistenceProvider</provider>
<jta-data-source>OracleDS</jta-data-source>
<class>br.com.tim.mw.soa.soarepo.entity.MacroProcessEntity</class>
<properties>
<property name="toplink.logging.level" value="FINE" />
<property name="toplink.jdbc.driver" value="oracle.jdbc.OracleDriver" />
<property name="toplink.jdbc.url" value="jdbc:oracle:thin:@localhost:WS" />
<property name="toplink.jdbc.password" value="jpa" />
<property name="toplink.jdbc.user" value="jpa" />
</properties>
</persistence-unit>
</persistence>
Entity
@Entity()
@Table(name="JPATable", schema="JPA")
@PersistenceUnit(name="default")
public class JPATableEntity implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private Long macroProcId;
JPAResourceBean
public class JPAResourceBean {
protected EntityManagerFactory emf;
* Lazily acquire the EntityManagerFactory and cache it.
public EntityManagerFactory getEMF (){
if (emf == null){
emf = Persistence.createEntityManagerFactory("default", new java.util.HashMap());
return emf;
Persist Method
protected void persist(Object object) {
try{
em = jpaBEAN.getEMF().createEntityManager();
//Persist Object in Database
em.persist(object);
}catch(Exception err){
java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE, "exception caught", err);
throw new RuntimeException(err);
}finally{
if( em.isOpen() ){
em.close();
if( jpaBEAN.getEMF().isOpen() ){
jpaBEAN.getEMF().close();
I also created a Data Source in WebLogic, but I am not sure if that's enough.
Thanks in advance,
Diego
Similar Messages
-
How can configure weblogic for use Hibernate
Hello everybody, my question is how can I configureit weblogic for use hibernate.
I'm using JDeveloper 11g but I did not show any error when I run my jsp page, the page shows me all, but it is as if it never made the connection. the data of my table are empty.
Thanks for your answers.thanks for answer. The jar was wrong, now I get not error, but also does not show me anything on my board ADF. seems to not connect. this is what I get in your log JDeveloper:
C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\DefaultDomain\bin\startWebLogic.cmd
[waiting for the server to complete its initialization...]
JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m
WLS Start Mode=Development
CLASSPATH=;C:\Oracle\MIDDLE~1\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.5/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\Middleware\jdeveloper\modules\features\adf.share_11.1.1.jar;;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar;;
PATH=C:\Oracle\MIDDLE~1\patch_wls1030\profiles\default\native;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;C:\Oracle\MIDDLE~1\patch_cie660\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.5\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Archivos de programa\Intel\DMIX;C:\Archivos de programa\Java\jdk1.6.0\bin;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http:\\hostname:port\console *
starting weblogic with Java version:
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode)
Starting WLS with line:
C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -Xmx512m -Djbo.34010=false -Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Ddomain.home=C:\Oracle\MIDDLE~1\JDEVEL~1\system\SYSTEM~1.88\DEFAUL~1 -Doracle.home=C:\Oracle\Middleware\jdeveloper -Doracle.security.jps.config=C:\Oracle\MIDDLE~1\JDEVEL~1\system\SYSTEM~1.88\DEFAUL~1\config\oracle\jps-config.xml -Doracle.dms.context=OFF -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1030\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_cie660\profiles\default\sysext_manifest_classpath -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy weblogic.Server
<06-02-2009 10:50:27 AM VET> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\DefaultDomain\lib\antlr-2.7.6.jar;C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\DefaultDomain\lib\asm.jar;C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\DefaultDomain\lib\cglib-2.1.3.jar;C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\DefaultDomain\lib\commons-collections-3.2.jar;C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\DefaultDomain\lib\commons-logging-1.0.4.jar;C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\DefaultDomain\lib\dom4j-1.6.1.jar;C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\DefaultDomain\lib\hibernate3.jar;C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\DefaultDomain\lib\jdom.jar;C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\DefaultDomain\lib\jta.jar;C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\DefaultDomain\lib\jtds-1.2.jar;C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\DefaultDomain\lib\log4j-1.2.14.jar;C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\DefaultDomain\lib\mysql-connector-java-3.1.7-bin.jar;C:\Oracle\Middleware\patch_wls1030\profiles\default\sysext_manifest_classpath\weblogic_ext_patch.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_zh_TW.jar>
<06-02-2009 10:50:28 AM VET> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 10.0-b19 from Sun Microsystems Inc.>
<06-02-2009 10:50:28 AM VET> <Info> <Management> <BEA-141107> <Version: WebLogic Server Temporary Patch for CR380042 Thu Sep 11 13:33:40 PDT 2008
WebLogic Server Temporary Patch for 7372756 Fri Sep 12 17:05:44 EDT 2008
WebLogic Server Temporary Patch for CR381265 Wed Oct 08 10:15:58 PDT 2008
WebLogic Server Temporary Patch for CR380913 Wed Oct 15 13:24:22 PDT 2008
WebLogic Server Temporary Patch for CR381739 Tue Oct 21 14:06:14 IST 2008
WebLogic Server 10.3 Mon Aug 18 22:39:18 EDT 2008 1142987 >
<06-02-2009 10:50:29 AM VET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<06-02-2009 10:50:29 AM VET> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
<06-02-2009 10:50:29 AM VET> <Notice> <Log Management> <BEA-170019> <The server log file C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.>
<06-02-2009 10:50:32 AM VET> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<06-02-2009 10:50:36 AM VET> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddi was not deployed. Error: [Deployer:149158]No application files exist at 'C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\uddi.war'.>
<06-02-2009 10:50:36 AM VET> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddiexplorer was not deployed. Error: [Deployer:149158]No application files exist at 'C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\uddiexplorer.war'.>
<06-02-2009 10:50:37 AM VET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
<06-02-2009 10:50:37 AM VET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<06-02-2009 10:50:38 AM VET> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
<06-02-2009 10:50:38 AM VET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
<06-02-2009 10:50:38 AM VET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
<06-02-2009 10:50:38 AM VET> <Warning> <Server> <BEA-002611> <Hostname "FAMILIA_KAWAIDA.mshome.net", maps to multiple IP addresses: 10.0.0.1, 201.222.105.26, 127.0.0.1>
<06-02-2009 10:50:38 AM VET> <Warning> <Server> <BEA-002611> <Hostname "FAMILIA_KAWAIDA", maps to multiple IP addresses: 10.0.0.1, 201.222.105.26, 127.0.0.1>
<06-02-2009 10:50:38 AM VET> <Warning> <Server> <BEA-002611> <Hostname "localhost", maps to multiple IP addresses: 10.0.0.1, 201.222.105.26, 127.0.0.1>
<06-02-2009 10:50:38 AM VET> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.>
<06-02-2009 10:50:38 AM VET> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 201.222.105.26:7101 for protocols iiop, t3, ldap, snmp, http.>
<06-02-2009 10:50:38 AM VET> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.>
<06-02-2009 10:50:38 AM VET> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode>
<06-02-2009 10:50:38 AM VET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<06-02-2009 10:50:38 AM VET> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
DefaultServer startup time: 16953 ms.
DefaultServer started.
[Running application TVB on Server Instance DefaultServer...]
---- Deployment started. ---- Feb 6, 2009 10:50:43 AM
Target platform is (Weblogic 10.3).
Running dependency analysis...
2009-02-06 10:50:43.64: Writing WAR file to C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\o.j2ee\drs\TVB\TVB-TVB-webapp
2009-02-06 10:50:43.687: Wrote WAR file to C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\o.j2ee\drs\TVB\TVB-TVB-webapp
2009-02-06 10:50:43.906: Writing EAR file to C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\o.j2ee\drs\TVB
2009-02-06 10:50:43.921: Wrote EAR file to C:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\o.j2ee\drs\TVB
Deploying Application...
<06-02-2009 10:50:47 AM VET> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application TVB is not versioned.>
06-02-2009 10:50:47 AM oracle.adf.share.config.ADFConfigFactory cleanUpApplicationState
INFO: Cleaning up application state
ADF Library non-OC4J post-deployment (millis): 16
06-02-2009 10:51:08 AM oracle.adfinternal.view.faces.partition.FeatureUtils _addFeatures
ADVERTENCIA: A duplicate definition for the feature "AdfDvtGraph" has been found at zip:C:/Oracle/Middleware/jdeveloper/system/system11.1.1.0.31.51.88/DefaultDomain/servers/DefaultServer/tmp/_WL_user/TVB/6mq9lg/war/WEB-INF/lib/dvt-faces.jar!/META-INF/adf-js-features.xml, line 3. A feature with the same name was originally defined at zip:C:/Oracle/Middleware/jdeveloper/dvt/lib/dvt-faces.jar!/META-INF/adf-js-features.xml, line 3. This may indicate that multiple copies of the same jar file are present on the class path. Ignoring the new feature definition.
06-02-2009 10:51:08 AM oracle.adfinternal.view.faces.partition.FeatureUtils _addFeatures
ADVERTENCIA: A duplicate definition for the feature "AdfDvtGauge" has been found at zip:C:/Oracle/Middleware/jdeveloper/system/system11.1.1.0.31.51.88/DefaultDomain/servers/DefaultServer/tmp/_WL_user/TVB/6mq9lg/war/WEB-INF/lib/dvt-faces.jar!/META-INF/adf-js-features.xml, line 7. A feature with the same name was originally defined at zip:C:/Oracle/Middleware/jdeveloper/dvt/lib/dvt-faces.jar!/META-INF/adf-js-features.xml, line 7. This may indicate that multiple copies of the same jar file are present on the class path. Ignoring the new feature definition.
06-02-2009 10:51:08 AM oracle.adfinternal.view.faces.partition.FeatureUtils _addFeatures
ADVERTENCIA: A duplicate definition for the feature "AdfRichPivotTable" has been found at zip:C:/Oracle/Middleware/jdeveloper/system/system11.1.1.0.31.51.88/DefaultDomain/servers/DefaultServer/tmp/_WL_user/TVB/6mq9lg/war/WEB-INF/lib/dvt-faces.jar!/META-INF/adf-js-features.xml, line 11. A feature with the same name was originally defined at zip:C:/Oracle/Middleware/jdeveloper/dvt/lib/dvt-faces.jar!/META-INF/adf-js-features.xml, line 11. This may indicate that multiple copies of the same jar file are present on the class path. Ignoring the new feature definition.
Application Deployed Successfully.
Elapsed time for deployment: 26 seconds
---- Deployment finished. ---- Feb 6, 2009 10:51:09 AM
Run startup time: 26766 ms.
[Application TVB deployed to Server Instance DefaultServer]
Target URL -- http://127.0.0.1:7101/TVB-TVB-context-root/faces/seguridad/grupo.jspx
06-02-2009 10:51:17 AM oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImpl setLifecycleContextBuilder
ADVERTENCIA: ADFc: Sustituyendo la implementación del ciclo de vida de la página de ADF por 'oracle.adfinternal.controller.application.model.JSFDataBindingLifecycleContextBuilder'.
06-02-2009 10:51:17 AM oracle.as.jmx.framework.PortableMBeanFactory setJMXFrameworkProviderClass
INFO: Marco portátil JMX inicializado con el SPI de plataforma "class oracle.as.jmx.framework.wls.spi.JMXFrameworkProviderImpl"
06-02-2009 10:51:17 AM oracle.adfinternal.controller.util.model.AdfmInterface initialize
INFO: ADFc: BindingContext está presente, utilizando las API de ADFm para DataControlFrames.
06-02-2009 10:51:17 AM oracle.adfinternal.controller.metadata.provider.MdsMetadataResourceProvider <init>
INFO: ADFc: Almacenamiento de recursos de metadatos de MDS en la caché del controlador ACTIVADO.
06-02-2009 10:51:17 AM oracle.adf.controller.internal.metadata.MetadataService$Bootstrap add
INFO: ADFc: Cargando metadatos de inicialización de '/WEB-INF/adfc-config.xml'.
thanks in advance for your response. -
How to configure sendmail to use multiple LDAP servers ?
Hi everybody!
I have a sendmail running on Solaris 10 and a LDAP server(192.168.1.9) also running Solaris 10 OS. I have configured the sendmail the following way:
bash-3.00# ldapclient list
NS_LDAP_FILE_VERSION= 2.0
NS_LDAP_BINDDN= cn=proxyagent,ou=profile,dc=email,dc=reso,dc=ru
NS_LDAP_BINDPASSWD= {NS1}*********************
NS_LDAP_SERVERS= 192.168.1.9
NS_LDAP_SEARCH_BASEDN= dc=email,dc=domain,dc=ru
NS_LDAP_AUTH= simple
NS_LDAP_SEARCH_REF= FALSE
NS_LDAP_SEARCH_SCOPE= sub
NS_LDAP_SEARCH_TIME= 30
NS_LDAP_CACHETTL= 43200
NS_LDAP_PROFILE= default
NS_LDAP_CREDENTIAL_LEVEL= proxy
NS_LDAP_BIND_TIME= 10
I also have another LDAP server (IP 192.168.1.10). It is configured as a replicant of the 192.168.1.9 LDAP server.
The question is how can i configure sendmail to use both LDAP servers ?
The man pages explain how to configure ldapclient to use ONE server and what if want to use two or more? All the settings and the profiles the same.
Thanks in advance =))Hi!
To add LDAP servers to the Solaris ldapclient, you might use the ldapclient command:
ldapclient manual -v -a defaultServerList="servera.yourdomain.com serverb.yourdomain.com"
But this is only failover, AFAIK the Solaris ldapclient does not perform loadbalancing by itself.
But I am not sure about your sendmail programm. Normally, sendmail has its own configuration
and can be configured to use LDAP e.g. for aliases etc.
Regards!
Rainer -
How to configure Firefox to use OpenVPN?
summary: I'm running OpenVPN from a Debian client through a Debian jumpbox/server. After I [start the server, start the client] most IP-based applications (DNS, ping, ssh) seem to work from the client, but client's Firefox cannot connect to http://www.whatismyip.com/ (or any other URI). How to configure Firefox to use the VPN? or otherwise fix the problem? or further debug it?
details:
I have a laptop running debian_version==jessie/sid with Firefox version=33.0 which needs to access a compute cluster. The cluster formerly required only an SSL VPN (enabled by a Firefox plugin) to access, but now has several additional requirements, which I seek to satisfy by running the SSL VPN through a jumpbox running an OpenVPN server. The jumpbox is running a "vanilla" Debian 7.7.
I have been using the laptop successfully for a few years without network problems. Currently I have the laptop connected by wire directly to an ISP-supplied modem/router. With `openvpn` NOT running on the laptop, I see:
* `ifconfig` shows no entry='tun0' (just "the usual" entries for 'eth0', 'lo', 'wlan0'), and shows the expected client IP# bound to 'eth0'.
* I can `ping` my jumpbox/server using its real IP#, but cannot `ping 10.8.0.1`
* I can `ssh` to my jumpbox/server using its real IP#, but cannot `ssh 10.8.0.1`
* `nslookup www.whatismyip.com` gives correct results
* browsing to http://www.whatismyip.com/ shows my client's IP# (as also shown in `ifconfig`)
Both my client/laptop and server/jumpbox setups are quite generic OpenVPN-wise, and are almost exactly as described on the Debian wiki
https://wiki.debian.org/openvpn%20for%20server%20and%20client
me@jumpbox:~$ date ; cat /etc/openvpn/server.conf
Sat Nov 8 16:49:00 EST 2014
port 1194
proto udp
dev tun
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
key /etc/openvpn/server.key
dh /etc/openvpn/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8" # google public DNS
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
me@laptop:~$ date ; cat /etc/openvpn/client1.conf
Sat Nov 8 16:51:31 EST 2014
client
dev tun
proto udp
remote ser.ver.IP.num 1194
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
mute-replay-warnings
ca /etc/openvpn/ca.crt
cert /etc/openvpn/client1.crt
key /etc/openvpn/client1.key
ns-cert-type server
comp-lzo
verb 3
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
My jumpbox/server firewall is currently set to forward everything, using `iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE`:
me@jumpbox:~$ date ; sudo iptables -L
Sat Nov 8 16:42:06 EST 2014
Chain INPUT (policy ACCEPT)
target prot opt source destination
fail2ban-ssh tcp -- anywhere anywhere multiport dports ssh
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain fail2ban-ssh (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere
After I start `openvpn` on first the server and then the client, I see no OpenVPN errors on either the server or the client:
me@jumpbox:~$ sudo openvpn --script-security 2 --config /etc/openvpn/server.conf &
Sat Nov 8 17:48:25 2014 OpenVPN 2.2.1 x86_64-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Jun 18 2013
Sat Nov 8 17:48:25 2014 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sat Nov 8 17:48:25 2014 Diffie-Hellman initialized with 1024 bit key
Sat Nov 8 17:48:25 2014 TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Sat Nov 8 17:48:25 2014 Socket Buffers: R=[212992->131072] S=[212992->131072]
Sat Nov 8 17:48:25 2014 ROUTE default_gateway=ser.ver.gate.way
Sat Nov 8 17:48:25 2014 TUN/TAP device tun0 opened
Sat Nov 8 17:48:25 2014 TUN/TAP TX queue length set to 100
Sat Nov 8 17:48:25 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Sat Nov 8 17:48:25 2014 /sbin/ifconfig tun0 10.8.0.1 pointopoint 10.8.0.2 mtu 1500
Sat Nov 8 17:48:25 2014 /sbin/route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.8.0.2
Sat Nov 8 17:48:25 2014 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Sat Nov 8 17:48:25 2014 GID set to nogroup
Sat Nov 8 17:48:25 2014 UID set to nobody
Sat Nov 8 17:48:25 2014 UDPv4 link local (bound): [undef]
Sat Nov 8 17:48:25 2014 UDPv4 link remote: [undef]
Sat Nov 8 17:48:25 2014 MULTI: multi_init called, r=256 v=256
Sat Nov 8 17:48:25 2014 IFCONFIG POOL: base=10.8.0.4 size=62, ipv6=0
Sat Nov 8 17:48:25 2014 ifconfig_pool_read(), in='TomRoche,10.8.0.4', TODO: IPv6
Sat Nov 8 17:48:25 2014 succeeded -> ifconfig_pool_set()
Sat Nov 8 17:48:25 2014 IFCONFIG POOL LIST
Sat Nov 8 17:48:25 2014 TomRoche,10.8.0.4
Sat Nov 8 17:48:25 2014 Initialization Sequence Completed
me@laptop:~$ sudo openvpn --script-security 2 --config /etc/openvpn/client1.conf &
Sat Nov 8 17:49:12 2014 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sat Nov 8 17:49:12 2014 Socket Buffers: R=[212992->131072] S=[212992->131072]
Sat Nov 8 17:49:12 2014 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Sat Nov 8 17:49:12 2014 UDPv4 link local: [undef]
Sat Nov 8 17:49:12 2014 UDPv4 link remote: [AF_INET]jump.box.IP.num:1194
Sat Nov 8 17:49:12 2014 TLS: Initial packet from [AF_INET]jump.box.IP.num:1194, sid=25df7af6 0ece4089
Sat Nov 8 17:49:13 2014 VERIFY OK: depth=1, <my config data/>
Sat Nov 8 17:49:13 2014 VERIFY OK: nsCertType=SERVER
Sat Nov 8 17:49:13 2014 VERIFY OK: depth=0, <my config data/>
Sat Nov 8 17:49:14 2014 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Nov 8 17:49:14 2014 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Nov 8 17:49:14 2014 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Nov 8 17:49:14 2014 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Nov 8 17:49:14 2014 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Sat Nov 8 17:49:14 2014 [TomRoche] Peer Connection Initiated with [AF_INET]jump.box.IP.num:1194
Sat Nov 8 17:49:16 2014 SENT CONTROL [TomRoche]: 'PUSH_REQUEST' (status=1)
Sat Nov 8 17:49:16 2014 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 8.8.8.8,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5'
Sat Nov 8 17:49:16 2014 OPTIONS IMPORT: timers and/or timeouts modified
Sat Nov 8 17:49:16 2014 OPTIONS IMPORT: --ifconfig/up options modified
Sat Nov 8 17:49:16 2014 OPTIONS IMPORT: route options modified
Sat Nov 8 17:49:16 2014 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sat Nov 8 17:49:16 2014 ROUTE_GATEWAY lap.top.gate.way/255.255.255.0 IFACE=eth0 HWADDR=la:pt:op:MAC:ad:dr
Sat Nov 8 17:49:16 2014 TUN/TAP device tun0 opened
Sat Nov 8 17:49:16 2014 TUN/TAP TX queue length set to 100
Sat Nov 8 17:49:16 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Sat Nov 8 17:49:16 2014 /sbin/ip link set dev tun0 up mtu 1500
Sat Nov 8 17:49:16 2014 /sbin/ip addr add dev tun0 local 10.8.0.6 peer 10.8.0.5
Sat Nov 8 17:49:16 2014 /etc/openvpn/update-resolv-conf tun0 1500 1542 10.8.0.6 10.8.0.5 init
dhcp-option DNS 8.8.8.8
Sat Nov 8 17:49:16 2014 /sbin/ip route add lap.top.IP.num/32 via lap.top.gate.way
Sat Nov 8 17:49:16 2014 /sbin/ip route add 0.0.0.0/1 via 10.8.0.5
Sat Nov 8 17:49:16 2014 /sbin/ip route add 128.0.0.0/1 via 10.8.0.5
Sat Nov 8 17:49:16 2014 /sbin/ip route add 10.8.0.1/32 via 10.8.0.5
Sat Nov 8 17:49:16 2014 GID set to nogroup
Sat Nov 8 17:49:16 2014 UID set to nobody
Sat Nov 8 17:49:16 2014 Initialization Sequence Completed
I then see the following on my client:
* `ifconfig` shows a new entry=`tun0`, which looks correct
* I can `ping` the server using either its real IP# or `10.8.0.1`
* I can `ssh` to the server using either its real IP# or `10.8.0.1`
* `nslookup www.whatismyip.com` gives correct results
... but I get no connection if I open a new instance of Firefox and browse to http://www.whatismyip.com/ :-( "Looking up www.whatismyip.com..." succeeds quickly but the status line continues to display "Connecting to www.whatismyip.com..." until the attempt times out. I also get the same behavior (connection timeout) if I open a new instance of Chrome, or if I browse to http://www.whatismyip.com/ with a Firefox opened prior to starting OpenVPN. FWIW I get the same behavior browsing to any URI, including (e.g.) Google.
This is a major problem for me! For the SSL VPN to work, I need to start a Firefox and run it (since the SSL VPN's vendor only supports it on Linux via a Firefox plugin) to access a particular remote-access website. Furthermore I need the SSL VPN to run through the jumpbox/OpenVPN. (Don't ask, it's a long, sad story ...)
Is there something I must do to configure Firefox to use the VPN? Or is there some other way to fix this?
Alternatively, what should I do to further debug the problem? It just seems odd to me that the other services work (e.g., `nslookup`, `ssh`) but Firefox does not. That being said, both Firefox and Chrome fail in this usecase, so the problem might be generic to web browsers.
your assistance is appreciated, Tom Roche <[email protected]>You're kidding. You have to go through that rigamarole just to put your bookmarks on your own server? Where's the simple FTP option?
Also, the above-linked article has a broken link. The link to the weaveserver (which is what you have to set up on your own server) is no good, and there is no obvious replacement. There are plenty of Weave-related repositories here:
http://hg.mozilla.org/labs
but it's not clear what you need. -
How to configure sap to use gmail as smtp server?
Hi experts,
I need to know how to configure gmail as my smtp server. In the scot transaction I don't see anywhere where to specify whether it is a ssh connection, ports for secure smtp, username, password.
Does anyone know how to configure sap to use gmail as the smtp server?
I've seen some similar threads about this, but they are of no help. Although they are classified as answered, in most cases the reason they are answered is because the person who made the query dropped the cause trying to make it work. I'd like to know for sure is this is possible or not.Hi Camilo,
You can't set up gmail as your smtp server to handle this. gmail is an email server which generally are based on POP protocol. now for SAP to send mail to gmail, you would need one SMTP capable server which can relay those message received from SAP to configured email address.
As of WAS 6.10 SAP kernel supports SMTP without more components. i.e e-mails can be sent (or received) from the SAP system to each SMTP-compatible mail server. see SAP note 455140 for more details.
Hope this clarifies your doubt.
http://en.wikipedia.org/wiki/SMTP_server
Regards,
Debasis. -
How to configure router to use ip pool on the aaa server for vpn clients
how to configure router to use ip pool on the aaa server for vpn clients . i want to use vpn clients to connect to the router. authenticate using the aaa server username databse and also use the ip pool cretaed on the aaa server. i am not able to find the command on the router pointing to use the pool created on the aaa server. can u some one help me with this command.
sebastanHello Sebastan,
what do you use as AAA server (e.g. ACS with TACACS+ or RADIUS) ?
Regards,
GNT -
How to create a sequence using Toplink for DUAL table
Hi All,
How do I create below sequence using TOPLINK
CREATE sequence my_seq start WITH 1;
Regards,
DheerajHi Dheeraj,
Sequence Object should be created in Database and specify the type of sequence that will be used in toplink to create sequence value.For example,sequence objects created in database needs to be configured using Native Sequence.
For more information refer to the below link.Use JDeveloper Toplink Wizards for declarative programming of Toplink native Sequencing.
http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/reldscfg003.htm.
Regards,
P.Vinay Kumar -
Repost : How to configure weblogic client in IBM JRE
Still haven't gotten this to work.
I'm trying to get a java client (Lotus Domino 6.0.1 java agent) app to
connect to
Weblogic 6.1 sp3.
Both (Domino / weblogic) run fine separately (on different machine both
win2k sp3).
Domino is running with IBM JRE version :
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1)
Classic VM (build 1.3.1, J2RE 1.3.1 IBM Windows 32 build cn131-20020710 (JIT
enabled: jitc))
I put weblogic.jar in the app's classpath but when i try to get an
InitialContext, I get the stack trace shown below. Anybody know how to
solve this this error?
Or how to configure a weblogic client (which normally expects a SUN JRE) to
use the IBM JRE.
Thanks.
04/04/2003 16:04:35 HTTP JVM: weblogic.utils.AssertionError: ***** ASSERTION
FAILED *****[ Assertion violated ]
04/04/2003 16:04:35 HTTP JVM: at weblogic.utils.Debug.assert(Debug.java:74)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:123)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:106)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.rmi.internal.ClientRuntimeDescriptor.computeInterfaces(ClientRuntim
eDescriptor.java:218)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.rmi.internal.ClientRuntimeDescriptor.intern(ClientRuntimeDescriptor
.java:111)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.jndi.WLInitialContextFactoryDelegate.<clinit>(WLInitialContextFacto
ryDelegate.java:154)
04/04/2003 16:04:35 HTTP JVM: at java.lang.Class.forName1(Native Method)
04/04/2003 16:04:35 HTTP JVM: at java.lang.Class.forName(Class.java:142)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:145)
04/04/2003 16:04:35 HTTP JVM: at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)
04/04/2003 16:04:35 HTTP JVM: at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
04/04/2003 16:04:35 HTTP JVM: at
javax.naming.InitialContext.init(InitialContext.java:218)
04/04/2003 16:04:35 HTTP JVM: at
javax.naming.InitialContext.<init>(InitialContext.java:174)
04/04/2003 16:04:35 HTTP JVM: at
com.approach.domino.util.EJBHomeFactory.<init>(EJBHomeFactory.java:29)
04/04/2003 16:04:35 HTTP JVM: at
com.approach.domino.util.EJBHomeFactory.getFactory(EJBHomeFactory.java:49)
04/04/2003 16:04:35 HTTP JVM: at
com.approach.domino.util.EJBHomeFactory.lookUpHome(EJBHomeFactory.java:56)
04/04/2003 16:04:35 HTTP JVM: at WQO.NotesMain(WQO.java:13)
04/04/2003 16:04:35 HTTP JVM: at lotus.domino.AgentBase.runNotes(Unknown
Source)
04/04/2003 16:04:35 HTTP JVM: at
lotus.domino.NotesThread.run(NotesThread.java:208)
04/04/2003 16:04:35 HTTP JVM: weblogic.utils.AssertionError: ***** ASSERTION
FAILED *****[ Assertion violated ]
04/04/2003 16:04:35 HTTP JVM: at weblogic.utils.Debug.assert(Debug.java:74)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:123)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:106)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.rmi.internal.ClientRuntimeDescriptor.computeInterfaces(ClientRuntim
eDescriptor.java:218)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.rmi.internal.ClientRuntimeDescriptor.intern(ClientRuntimeDescriptor
.java:111)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.jndi.WLInitialContextFactoryDelegate.<clinit>(WLInitialContextFacto
ryDelegate.java:154)
04/04/2003 16:04:35 HTTP JVM: at java.lang.Class.forName1(Native Method)
04/04/2003 16:04:35 HTTP JVM: at java.lang.Class.forName(Class.java:142)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:145)
04/04/2003 16:04:35 HTTP JVM: at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)
04/04/2003 16:04:35 HTTP JVM: at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
04/04/2003 16:04:35 HTTP JVM: at
javax.naming.InitialContext.init(InitialContext.java:218)
04/04/2003 16:04:35 HTTP JVM: at
javax.naming.InitialContext.<init>(InitialContext.java:174)
04/04/2003 16:04:35 HTTP JVM: at
com.approach.domino.util.EJBHomeFactory.<init>(EJBHomeFactory.java:29)
04/04/2003 16:04:35 HTTP JVM: at
com.approach.domino.util.EJBHomeFactory.getFactory(EJBHomeFactory.java:49)
04/04/2003 16:04:35 HTTP JVM: at
com.approach.domino.util.EJBHomeFactory.lookUpHome(EJBHomeFactory.java:56)
04/04/2003 16:04:35 HTTP JVM: at WQO.NotesMain(WQO.java:13)
04/04/2003 16:04:35 HTTP JVM: at lotus.domino.AgentBase.runNotes(Unknown
Source)
04/04/2003 16:04:35 HTTP JVM: at
lotus.domino.NotesThread.run(NotesThread.java:208)Still haven't gotten this to work.
I'm trying to get a java client (Lotus Domino 6.0.1 java agent) app to
connect to
Weblogic 6.1 sp3.
Both (Domino / weblogic) run fine separately (on different machine both
win2k sp3).
Domino is running with IBM JRE version :
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1)
Classic VM (build 1.3.1, J2RE 1.3.1 IBM Windows 32 build cn131-20020710 (JIT
enabled: jitc))
I put weblogic.jar in the app's classpath but when i try to get an
InitialContext, I get the stack trace shown below. Anybody know how to
solve this this error?
Or how to configure a weblogic client (which normally expects a SUN JRE) to
use the IBM JRE.
Thanks.
04/04/2003 16:04:35 HTTP JVM: weblogic.utils.AssertionError: ***** ASSERTION
FAILED *****[ Assertion violated ]
04/04/2003 16:04:35 HTTP JVM: at weblogic.utils.Debug.assert(Debug.java:74)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:123)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:106)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.rmi.internal.ClientRuntimeDescriptor.computeInterfaces(ClientRuntim
eDescriptor.java:218)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.rmi.internal.ClientRuntimeDescriptor.intern(ClientRuntimeDescriptor
.java:111)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.jndi.WLInitialContextFactoryDelegate.<clinit>(WLInitialContextFacto
ryDelegate.java:154)
04/04/2003 16:04:35 HTTP JVM: at java.lang.Class.forName1(Native Method)
04/04/2003 16:04:35 HTTP JVM: at java.lang.Class.forName(Class.java:142)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:145)
04/04/2003 16:04:35 HTTP JVM: at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)
04/04/2003 16:04:35 HTTP JVM: at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
04/04/2003 16:04:35 HTTP JVM: at
javax.naming.InitialContext.init(InitialContext.java:218)
04/04/2003 16:04:35 HTTP JVM: at
javax.naming.InitialContext.<init>(InitialContext.java:174)
04/04/2003 16:04:35 HTTP JVM: at
com.approach.domino.util.EJBHomeFactory.<init>(EJBHomeFactory.java:29)
04/04/2003 16:04:35 HTTP JVM: at
com.approach.domino.util.EJBHomeFactory.getFactory(EJBHomeFactory.java:49)
04/04/2003 16:04:35 HTTP JVM: at
com.approach.domino.util.EJBHomeFactory.lookUpHome(EJBHomeFactory.java:56)
04/04/2003 16:04:35 HTTP JVM: at WQO.NotesMain(WQO.java:13)
04/04/2003 16:04:35 HTTP JVM: at lotus.domino.AgentBase.runNotes(Unknown
Source)
04/04/2003 16:04:35 HTTP JVM: at
lotus.domino.NotesThread.run(NotesThread.java:208)
04/04/2003 16:04:35 HTTP JVM: weblogic.utils.AssertionError: ***** ASSERTION
FAILED *****[ Assertion violated ]
04/04/2003 16:04:35 HTTP JVM: at weblogic.utils.Debug.assert(Debug.java:74)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:123)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:106)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.rmi.internal.ClientRuntimeDescriptor.computeInterfaces(ClientRuntim
eDescriptor.java:218)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.rmi.internal.ClientRuntimeDescriptor.intern(ClientRuntimeDescriptor
.java:111)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.jndi.WLInitialContextFactoryDelegate.<clinit>(WLInitialContextFacto
ryDelegate.java:154)
04/04/2003 16:04:35 HTTP JVM: at java.lang.Class.forName1(Native Method)
04/04/2003 16:04:35 HTTP JVM: at java.lang.Class.forName(Class.java:142)
04/04/2003 16:04:35 HTTP JVM: at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:145)
04/04/2003 16:04:35 HTTP JVM: at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)
04/04/2003 16:04:35 HTTP JVM: at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
04/04/2003 16:04:35 HTTP JVM: at
javax.naming.InitialContext.init(InitialContext.java:218)
04/04/2003 16:04:35 HTTP JVM: at
javax.naming.InitialContext.<init>(InitialContext.java:174)
04/04/2003 16:04:35 HTTP JVM: at
com.approach.domino.util.EJBHomeFactory.<init>(EJBHomeFactory.java:29)
04/04/2003 16:04:35 HTTP JVM: at
com.approach.domino.util.EJBHomeFactory.getFactory(EJBHomeFactory.java:49)
04/04/2003 16:04:35 HTTP JVM: at
com.approach.domino.util.EJBHomeFactory.lookUpHome(EJBHomeFactory.java:56)
04/04/2003 16:04:35 HTTP JVM: at WQO.NotesMain(WQO.java:13)
04/04/2003 16:04:35 HTTP JVM: at lotus.domino.AgentBase.runNotes(Unknown
Source)
04/04/2003 16:04:35 HTTP JVM: at
lotus.domino.NotesThread.run(NotesThread.java:208) -
How to configure weblogic log file?
HI
How do i configure Weblogic server log file to log weblogic related information as well as my application?
I need to maintain one log file for weblogic and my application.
Thanks,Then glassfish instance is either not configured yet or installed somewhere else. Try looking under your user's home directory like C:\Documents and Settings\<username>\Application Data\glassfish\domains\domain1\logs
-
How to configure weblogic as a SAML2 Service Provider
Hi,
I have to configure weblogic 11g to work with an external IdP, which is in fact the Dutch SurfConext for the Dutch Education Sector, so I used their metadata (https://wiki.surfnet.nl/display/surfconextdev/Connection+metadata)
I configured the weblogic server mainly following https://blogs.oracle.com/blogbypuneeth/entry/steps_to_configure_saml_2.
I have configured a SAML2 Authenticator (Sufficient) and SAM2 Identity Asserter (in that order). Then on the machine I configured the Service Provider tab under Federation Services and the SAML2 Services tab.
But although I turned on the debug for saml2 at the configured managed server, I don't see any logging when I tried to reach the webapplication. I used the sample destination app from the blog. The application that I have to secure this way has an own login-page. When trying the sample dest webapplication URL I get the 403 forbidden error, but no logging on saml2.
I search google around several times, and I feel that I should configure something in the web.xml and/or weblogic.xml. But I actually can't find the settings. I assumed that the web.xml of the sampl dest app (where auth-method is set to BASIC and realm-name myrealm) would do. And if that works that the actual application should be configured the same.
What needs to happen is that when I try to reach the base URL of the web app, the browser gets rerouted to the IdP-'Where are you from" page, where the user can choose his/her college/university/organization and then login. After logging the Idp (SurfConext) should route the browser together with the SAML token to weblogic where the user gets routed to the actual main page of the webapp.
So I feel that there is some configuration to do to get the webapplication secured via the SAML2 Identity Asserter. Either in weblogic (correct URL) and/or in the web.xml.
Can anyone help me on the steps I apparently missed? And maybe ask me the correct questions to get me on the right track?
Thanks in advance.
Regards,
MartienApparently I wrongly repackaged the zip from the blog into a war file. There was an faulty extra level of directory structure in the zip.
I created a new war file from the bottom up, with own jsp's. And that worked. -
How to configure memory snapshots used in /HMUSA?
Dear experts,
Does anybody know how to configure memory snapshots? I want to call the /HMUSA and have a look at the snapshot using the Memory Inspector. But I would like to get a itemized list of the memory used, for example for the TTAB buffer I would like to know which process or transaction has used certain amount of memory in this buffer. Thanks in advance.
PS: I am using a system for test purpose and I am the only one using this system (it's not a system used in a real company, and I have an administrator account).Hi Sam,
Please review the following note, as it might help you!!!
Tuning Output Post Processor (OPP) to Improve Performance (Doc ID 1399454.1)
R12: How to Configure the Account Analysis Report for Large Reports (Doc ID 737311.1)
Thanks &
Best Regards, -
How to configure weblogic 451 to use Nes 4.1
Am trying to use iPlanet 4.1(NES as webserver) and redirect all the
request to weblogic(451), am using solaris 7, service pack 13.
i have configured a servlet to respond requests in port 80 in
weblogic, and in iPlanet(NES) have configured, in a server instance the
file obj.conf to use the NSAPI plug in .
··························obj.conf·····················································································
Init fn="load-modules" funcs="wl-proxy,wl-init"\
shlib=/opt/Weblogic/libsp13/libproxy.so
Init fn="wl-init"
<Object name="weblogic" ppath="*/myservlet/*">
Service fn=wl-proxy WebLogicHost=xxx.xxx.xxx.xxx WebLogicPort=80
</Object>
this server instance is listening for request in port 8080.
htpp://xxx.xxx.xxx.xxx:8080/myservlet
Some fails in NSAPI plug-in configuration on NES, because the request
never obtain a retrieve.
NES never send the request to weblogic.
Need i configure another file that obj.conf?
Any suggestion to fix this problem?
Thanks in advance.
Hi
1. You do NOT write any code for Session Replication. Its not worth trying also though possible in extreme ways.
2. Session Replication means, I guess if you have more then one server like a Clustered Domain. For this you just create a Clustered Domain with one Admin Server and more then one managed servers. Then you add some load balancer infront of this cluster like Apache HTTP Server. All your requests go to apache which redirects to back end weblogic server. It will do load balancing, failover, session replication. There is absolutely nothing to do or configure. By default session should be replicated across all the servers in the cluster.
Thanks
Ravi Jegga -
How to configure human workflow using embedded ldap in standalone weblogic
I am trying to use embedded ldap to select users for a human workflow. I have created an application server instance using soa server details but the realm field in human workflow remains empty.
Please let me know what would be right steps.Can you provide more details about the context of where this happens? Are you selecting users in the Organization editor in BPM studio? Is this on 11.1.1.3 or 11.1.1.4?
-
How to configure https connection using a http proxy in weblogic server
Hi,
I have a proxy in Aqualogic Service Bus that points to a https external service. Our development environment internet access is supported by a http proxy server. The ALSB proxy fails to connect, with the following error message:
<con:fault xmlns:con="http://www.bea.com/wli/sb/context">
<con:errorCode>BEA-380002</con:errorCode>
<con:reason>
Tried all: *1 addresses, but could not connect over HTTPS to server: sitenet43.serasa.com.br port: 443*
</con:reason>
<con:location>
<con:node>RouteTo_ConsultarSerasa</con:node>
<con:path>request-pipeline</con:path>
</con:location>
</con:fault>
I've added the following parameters to jvm args:
-Dhttp.proxyHost=10.128.0.50
-Dhttp.proxyPort=3126
-Dhttp.proxyUser=<someUserName>
-Dhttp.proxyPassword=<somePassword>
Accessing the page in Internet Explorer or Firefox is working fine. Somebody knows any additional configuration to this case?
Thanks in advance
Rogério CruzIn osb you can configure a HTTP proxy server. Once this is done all BS http/https requests will be through the configured proxy server.
http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/consolehelp/global_resources.html#wp1137225
Manoj -
How to configure weblogic 8.1 server for connecting to Oracle8.1.7
Hi all,
I m am A.Rama Krishna. I want an information regarding the connection to
Oracle8.1.7 from weblogic8.1 Application server. I did every thing that I can
do as mentioned in Documentation. But the datasource object is not available in
JNDI tree. And also one more thing, after creating the connection pool with some
name, I have to select the server to which I have to bind it by clicking "Target
& Deploy" option. All the active servers in my domain are displayed there with
a check box beside it asking me to choose all those severs to which I have to
bind the connection pool. Once I check the server and click "Apply" button, a
message like "Error on the page" dispalys on the bottom status bar. How to fix
this problem. Please advice me some thng. I created all the connectionpool and
Data source objects during the creating the server in the new domain with the
help of Wizard.
Thanx in advance
Regards
RamRama,
If you have created and deployed a connection pool and data source via the
WebLogic Server console, you should be able to access it from the Workshop
IDE.
If you configured the connection pool and datasource during configuration
time, can you login to the console and check if they have been created and
deployed successfully ?
Can you also provide more information on what your are trying to ? Are you
trying to create a db control which use this datasource ?
Thanks
Raj Alagumalai
Backline Workshop Support
"A.Rama Krishna" <[email protected]> wrote in message
news:[email protected]..
>
Hi all,
I m am A.Rama Krishna. I want an information regarding the connectionto
Oracle8.1.7 from weblogic8.1 Application server. I did every thing that Ican
do as mentioned in Documentation. But the datasource object is notavailable in
JNDI tree. And also one more thing, after creating the connection poolwith some
name, I have to select the server to which I have to bind it by clicking"Target
& Deploy" option. All the active servers in my domain are displayed therewith
a check box beside it asking me to choose all those severs to which I haveto
bind the connection pool. Once I check the server and click "Apply"button, a
message like "Error on the page" dispalys on the bottom status bar. How tofix
this problem. Please advice me some thng. I created all the connectionpooland
Data source objects during the creating the server in the new domain withthe
help of Wizard.
Thanx in advance
Regards
Ram
Maybe you are looking for
-
for the past week, my yahoo email will not work in mozilla, my regular browser of choice. the entire list of folders on the left column will not open, the menu options on the top will not open, the setting wheel included. the yahoo account now works
-
Hello sir, i am using macbook pro last 6 month back few months back i install windows7 in my mac every thing is work very fine, only one problem is there that i am unable to access the web cam ,please can u help me.
-
HT1222 im not savvy to this sort of stuff, so how is it fixed
just did an update and it wont load the security update? Ps how do i update my operating system?
-
How do I get my right click on mouse to copy and paste?
How do I get my right click on mouse to copy and paste?
-
How do I change a PDF document into a word document and save it to my desk top for futher use?