JDBC URL can break config.xml
Entering a JDBC URL of jdbc:mysql://foo.com/db?user=joe&password=smith
will result in config.xml not being parsible after it is saved. The
problem is that the ampersand needs to be translated into a character
entity (&). I suppose other nasty character entities such as <
should be translated too.
Ben
This problem has been acknowledged and engg is working on this issue.
Thanks.
Kumar
Ben Eng wrote:
Entering a JDBC URL of jdbc:mysql://foo.com/db?user=joe&password=smith
will result in config.xml not being parsible after it is saved. The
problem is that the ampersand needs to be translated into a character
entity (&). I suppose other nasty character entities such as <
should be translated too.
Ben
Similar Messages
-
Can't use JDBC URL for multiple LDAPs
ColdFusion 8,0,1,195765 Enterprise (Trial)
We use Oracle OID (LDAP) instead of tnsnames.ora to resolve database connection strings. This is how I specify one LDAP JDBC URL. On the CF admin page, Server Settings, Java and JVM, ColdFusion Class Path is set to C:\oracle\product\10.2.0\db_1\jdbc\lib\ojdbc14.jar. Under Data & Services, Data Sources, create a new source. Set JDBC URL to
jdbc:oracle:thin:@ldap://mdaoid1.mycompany.com:389/mdad2,cn=OracleContext,dc=mycompany,dc= com
where mdaoid1 is one of the two Oracle OID servers that resolve connection strings, and mdad2 is an entry in the two OID's sync'ed to each other. That works.
According to many sources based on Google search for "space separated LDAP URLs", I should be able to add another LDAP server separated by space. Now I append " ldap://mdaoid2.mycompany.com:389/mdad2,cn=OracleContext,dc=mycompany,dc=com" (no quotes, added to indicate leading space) to that string. Upon clicking Submit, I get
Connection verification failed for data source: orcl10g3
java.sql.SQLException: For input string: "389 ldap:"
The root cause was that: java.sql.SQLException: For input string: "389 ldap:"
(orcl10g3 is the CF data source name I'm creating) Some say I need to replace space with %20 in the double LDAP URL. With %20, I get error
Connection verification failed for data source: orcl10g3
java.sql.SQLException: Io exception: JNDI Package failurejavax.naming.InvalidNameException: Invalid name: mdad2,cn=OracleContext,dc=mycompany,dc=com ldap://mdaoid2.mycompany.com:389
The root cause was that: java.sql.SQLException: Io exception: JNDI Package failurejavax.naming.InvalidNameException: Invalid name: mdad2,cn=OracleContext,dc=mycompany,dc=com ldap://mdaoid2.mycompany.com:389
Question: How do I add more than one LDAP server to the JDBC URL so I can achieve failover and load balance?
Yong Huang
yong321 at yahoo.comThe message above was posted by me two years ago and was brought to my attention today. Here's a short update: The network team added a load balancer mdaoid in front of, and resolved to, mdaoid1 and mdaoid2 (in round-robin fashion). The problem described in this thread is bypassed because the JDBC URL can simply use one-OID format, in which mdaoid is used as the LDAP server.
-
Can we put config.xml outside of domain directory?
Hi,
I am currently working on Admin server failover under weblogic 8.1 clustering.
I want to put config.xml outside of domain directory, if hosted machine of admin server is unreacheable, I want to build the admin server from another box using the config.xml we kept aside of domain directory.
Idea is, All configuration files (startWeblogic.sh, config.xml etc.,) want to keep another box, we use these configuration files from admin server hosted machine. Please let me know, whether this is feasible? if so, Please suggest me solution.
Thanks,
Murthy P.yes, we can place config.xml outside of domain directory.
We have to include in startup script as,
-Dweblogic.RootDirectory=/u/murthy/examples/config/
Thanks,
Murthy P -
& in url breaks server.xml
I need to enter this url as my jdbc url in a <value> tag:-
jdbc:mysql://localhost/mydatabase?autoReconnect=true&autoReconnectForPools=true
but the & in the url breaks the server parsing the xml file.
How can I add this ?
tomcat 5.0.16Not only that, you are really supposed to escape the & character when you put that URL into an HTML file as well. The only difference is that XML doesn't allow malformed input whereas HTML accepts anything and tries to make something useful out of it.
-
Can I pass username & password in JDBC URL in Crystal Reports 2008?
Hi,
I tried to put this URL in the CRConfig.xml file : jdbc:postgresql://hostname:5432/db_name?user=user_name&password=pw
Without the user and password parameters, it works fine but I always have to enter the database information when I create a new report or refresh an existing report.
With the parameters, when I create a new report, if I click on "Create new connection", Crystal Reports freezes. If I click on the connection in "My connections", then I get an "Invalid argument" error message.
How can I configure the database information so that I don't always need to enter it manually?
Thanks,
MarianneHi Marianne,
We don't recommended you do that. The text is in the clear so anyone could use your log on info. You may be able to add your user name to the Report by editing the connection properties from the Set Location dialog box but to add your password would give anyone who opened your report your log on info.
And the info would be passed to the DB over the network in the clear so someone could hack your info.
Thank you
Don -
How to use URL in actionscript Instead of services-config.xml?
Hi Alls,
I would like to set my service's url in actionScript (I don't
want to use compiler option -services witch need to recompile swf
if you change service's url).
I search for a long time on google but I found nothing, and
adobe documentation isn't very clear.
Thank for help!!!If you are relying on a services-config.xml file, then this
must be provided
at compile time because the compiler uses it to generate
code.
If you're not using <mx:DataService>, you can actually
avoid compiling against
a services-config.xml file. This is because for the other
services, such
as <mx:RemoteObject> or <mx:WebService
useProxy="true"> or <mx:HTTPService
useProxy="true">, the main thing the compiler does from
services-config.xml
is to generate the code to instantiate the set of channels
that should be
used to contact a destination in LCDS.
Well... you can do that programmatically in ActionScript...
something like
this:
import mx.messaging.ChannelSet;
import mx.messaging.channels.AMFChannel;
private function channelInit():void
var channelSet:ChannelSet = new ChannelSet();
var channel:AMFChannel = new AMFChannel(null, "
http://{server.name}:{server.port}/mycontext/messagebroker/amf");
channelSet.addChannel(channel);
myRemoteObject.channelSet = channelSet;
Just make sure you call this initialization code before you
make any service
requests. If you're proxied WebServices, be sure that you use
the ActionScript
API instead of the MXML tag so that you can delay when
loadWSDL() is called
because you'll want to setup the channelSet first.
Regards,
Pete
Hello FredFlex,
> Hi Alls,
>
> I would like to set my service's url in actionScript (I
don't want to
> use compiler option -services witch need to recompile
swf if you
> change service's url).
>
> I search for a long time on google but I found nothing,
and adobe
> documentation isn't very clear.
>
> Thank for help!!!
> -
Problem weblogic 9.2 with quartz and log4j : url-template-config.xml
Hello,
I configure a Servlet Quartz to run when WebLogic 9.2 starts, but i have an exception, here is my log :
2009-04-15 11:52:52,424 ERROR Logger.error(): Exception while loading URL templates, /WEB-INF/url-template-config.xml
Throwable: javax.servlet.ServletException: error: The document is not a url-template-config: document element namespace mismatch expected "" got "http://www.bea.com/servers/weblogic/url-template-config/8.0"
Stack Trace:
javax.servlet.ServletException: error: The document is not a url-template-config: document element namespace mismatch expected "" got "http://www.bea.com/servers/weblogic/url-template-config/8.0"
at org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTemplates(URLTemplatesFactory.java:131)
at org.apache.beehive.netui.core.urltemplates.URLTemplateDescriptor.load(URLTemplateDescriptor.java:133)
at org.apache.beehive.netui.pageflow.PageFlowContextListener.performInitializations(PageFlowContextListener.java:102)
at org.apache.beehive.netui.pageflow.PageFlowActionServlet.init(PageFlowActionServlet.java:120)
at com.bea.console.internal.ConsoleActionServlet.init(ConsoleActionServlet.java:185)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at weblogic.servlet.AsyncInitServlet.initDelegate(AsyncInitServlet.java:94)
at weblogic.servlet.AsyncInitServlet.init(AsyncInitServlet.java:78)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:276)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:68)
at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:493)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1688)
at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1665)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1585)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2678)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:874)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:326)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:114)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:25)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:640)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:252)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:176)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:347)
at weblogic.management.deploy.internal.DeploymentAdapter$1.activate(DeploymentAdapter.java:50)
at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:232)
at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:168)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
Caused by: org.apache.xmlbeans.XmlException: error: The document is not a url-template-config: document element namespace mismatch expected "" got "http://www.bea.com/servers/weblogic/url-template-config/8.0"
at org.apache.xmlbeans.impl.store.Locale.verifyDocumentType(Locale.java:449)
at org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:354)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1270)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1254)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
at org.apache.beehive.netui.core.urltemplates.schema.UrlTemplateConfigDocument$Factory.parse(Unknown Source)
at org.apache.beehive.netui.core.urltemplates.DefaultURLTemplateFileParser.parse(DefaultURLTemplateFileParser.java:34)
at org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTemplates(URLTemplatesFactory.java:118)
... 43 more
The problem may be a conflict with the different version. My versions are quartz-1.6.0.jar, log4j-1.2.15.jar.
When i rename the file url-template-config.xml i don't have this exception but just a log4j Warning but i don't know if it's not dangerous for my application (run with WebLogic 9.2) if i rename this file.
Can you give me a solution to remove this exception or tell me if rename this file it's not dangerous ?
Thank you,
MH.url-template-config.xml is part of Apache Beehive. This file is used to provide a template mechanism for URL's. Is your application using Apache Beehive purposefully?
http://beehive.apache.org/docs/1.0.2/netui/apidocs/javadoc/org/apache/beehive/netui/core/urls/URLRewriterService.html
If not, you may have inadvertently added a reference to Apache Beehive when you created the application and now there are references to the Apache Beehive shared libraries in either weblogic-applicaiton.xml or weblogic.xml -
Can not redirect to other page when using adfc-config.xml in standalone WL
Hi all,
I created a very simple fusion app, only have two jspx pages(view1 view2). I drag these two pages to adfc-config file and created a control flow(adfcView2) between these two pages.
+<?xml version="1.0" encoding="UTF-8" ?>+
+<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">+
+<view id="view1">+
+<page>/view1.jspx</page>+
+</view>+
+<view id="view2">+
+<page>/view2.jspx</page>+
+</view>+
+<control-flow-rule>+
+<from-activity-id>view1</from-activity-id>+
+<control-flow-case>+
+<from-outcome>adfcView2</from-outcome>+
+<to-activity-id>view2</to-activity-id>+
+</control-flow-case>+
+</control-flow-rule>+
+</adfc-config>+
When I run the view1.jspx in the embeded WL, all go well, can navigate from view1 to view2.
But when I created an ear and deployed this ear to a standalone WL, view1 can be displayed successfully, but when I clicked one commandbutton in view1, want to navigator to view2, the page can not be redirected to view2(still show view1.jspx). there is no any error msg in WL Console.
Did I miss anything for deploying a taskflow app? If I change the view controller to faces-config.xml not adfc-config.xml, all work fine.
Any info is appreciated.
Edited by: harth on Oct 25, 2009 7:21 PMHi Harth,
I guess you are running the jspx page not view activity, check if your url contains .jspx page at the end. If so, run the url without .jspx page at end(which is view id name)
Eg:
Give http://<Host_Name>:<Port>/<ContextRoot>/faces/view1 instead of http://<Host_Name>:<Port>/<ContextRoot>/faces/view1.jspxSireesha
Edited by: Sireesha Pinninti on Oct 25, 2009 8:00 PM -
Can set charset in jdbc url string?
can set charset in jdbc url string
like mysql
?China,
As far as I know, you cannot set the charset in the JDBC URL string. However, there are ways to set it. Although I have no experience with setting the charset, I believe the "Oracle JDBC User's Guide and Reference" contains this information. The guide is available from:
http://tahiti.oracle.com
Allow me to give you some advice. Each DBMS does things differently. Oracle's JDBC driver does not work exactly the same way as the JDBC driver for "mySQL". You need to learn how Oracle's JDBC driver does things. In my opinion, the "Oracle JDBC User's Guide nad Reference" is very good for learning how to use Oracle's JDBC driver.
Good Luck,
Avi. -
Can I use morethen one faces-config.xml
HI,
now I am learning jsf, I have a doubt that ,can I use more than on faces-config.xml in one application ? and can we cahange name of faces-config.xml to faces-config-first.xml, and faces-config-second.xml? if it is possible , what should i do?
Thank&Regards
satya..Why would you want multiple config files? Is it for organization only...
How would your app. know the when to use a different config file?
Thanks,
--Todd -
Component and renderer can't share the same name in face-config.xml
Hi All,
I've noticed that a component and a renderer can't share the same name in <face-config.xml>.
For instance,
<component>
<component-type>tree</component-type>
<component-class>com.xxx.tree.component.Tree</component-class>
</component>
<render-kit>
<renderer>
<renderer-type>tree</renderer-type>
<renderer-class>com.xxx.tree.renderer.Tree</renderer-class>
</renderer>
</render-kit>
generates a cryptic error message.
It's not a big deal but would be nice to support it.
The workaround of course is to use a different name for the component and renderer (tree and treeRenderer for instance)
Stephanei dont know why it doesn't work for you. It works for me alright. Can u elaborate on what error messages you are getting? It maybe some other problem.
-
Can i make more than one faces-config.xml file ?
Can i make more than one faces-config.xml file under one project or application, if yes than how it will link.
Just that you know,
In the second week of july I was taking the Jdeveloper/Jheadstart course at Oracle Netherlands. During that course we were asked to split the faces-config. After splitting it, we were not able to find the navigation rules that were defined in the first faces-config in the web.xml. The Jdeveloper IDE was confused........
However, we were able to use the navigation rules (type in manualy) and that worked in the application.
I talked about it with Steven Davelaar and he thought it might be a bug. I don't know if it's reported, and I don't know if it's fixed.
So, if you get confused.... it works, but Jdeveloper might have some problems with it.
Luc Bors -
Faces-config.xml is the only configuration file or we can keep more
Hi All,
1) faces-config.xml is the only name specification allowed in JSF for configuration file or can we use another name for this configuration (like as struts) ?
2) can we have multiple configuration files in JSF like as struts contains multiple configuration files for navigation ?
Thanks,
Rajesh Yarlagaddahttp://one-size-doesnt-fit-all.blogspot.fi/2007/01/using-multiple-faces-configxml-files-in.html
Edited by: Nik on Sep 25, 2012 1:13 AM -
Where can I find the schema for config.xml file of jax-rpc
For the xrpcc tool I need to create a config.xml file, does any body know where can I find the schema for it?
http://java.sun.com/webservices/docs/1.0/tutorial/doc/JAXRPCxrpcc.html and all your questions will be answered... except maybe why aren't these pages linked from the main index anymore? (they were when 1.0 of the tutorial was released, but then there were no docs for wscompile or wsdeploy. The JAX-RPC release notes fixed the latter, but around 1.0_01 they broke the former.)
-
Where I can get flex-config.xml in Linux machine
Hell All,
We are using Linux machine as OS for portal.
Normally we can get flex-config.xml at UNIX machine atj2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\portalapps\co
m.sap.vc.mmcompiler\res\root\WEB-INF\flex\flex-config.xml location in UNIX machine.
But irj is not there is Linux machine.
Can anybody help me?
Regards,
Sonal DubeyHi Sonal,
As mentioned in the SAP note 886209, that is the route to find this file, what i recommend you is to check the Server in this path ... \cluster\*server0*\apps\sap...
Kind Regards,
Luis
Maybe you are looking for
-
Hi Experts, We have scenario third party payment settilement.How does settle the third party settlement in CRM. Once customer has given payment, we are created service order and service confirmation and billing and payments .After that we are giving
-
Users cannot connect to Open Directory Leopard server
Just testing Leopard server and running into all sorts of problems... Clean install of Leopard Server running DNS, AFP and Open Directory. Set up DNS first and checked both forward and reverse look-up was correct. Promoted to Open Directory master fr
-
Ola, I just want to make a simple Chat Program for intranet (LAN). I'm planning to use socket connection. What would be a good design for Chat Program? Both the Client and the Server are Java Application. Here is the diagram that I have in mind: ----
-
Oracle 10.2.0.4 install on Server 2008R2
I've been trying to create a test 10.2.0.4 database on a server running windows server 2008 64 bit standard. I had to hunt to find the download, when I did the download page stated that to install on server 2008 I need the 10.2.0.5 patchset. Which is
-
Computer wont recognize startup disk..
My I mac just started getting wonky. On Re-start, it would not recognize start up disk. Re started using Install disk, went to disk utilities to run repair and the hard drive was not even listed in the menu. Looked ar re-installing sysrem, but no har