[JCA/JBoss] - OracleDS - ORA-12705: Cannot access NLS data
by joseantonioribeiro
I'm evaluating Jboss, after declined Apache Geronimo.
I've configured a datasource to connect to my oracle database (10g) by the book.
After that, I created a JSP that has this code:
...
DataSource ds = null;
Connection con = null;
PreparedStatement pr = null;
InitialContext ic;
try {
ic = new InitialContext();
out.println(" 1");
ds = (DataSource)ic.lookup( "java:/OracleDS" );
out.println(" 2");
con = ds.getConnection();
out.println(" 3");
...
When I execute the same after deployement it returns:
1
2
Exception thrown org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1 ORA-12705: Cannot access NLS data files or invalid environment specified ); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1 ORA-12705: Cannot access NLS data files or invalid environment specified )) end
For testing porposes, I've added in my datasource:
<connection-property name="char.encoding">UTF-8</connection-property>
But still I've got the same error.
My environment is Microsoft XP and my Oracle database NLS_LANG is AMERICAN_AMERICA.WE8MSWIN1252
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110512#4110512
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110512
18 years, 4 months
[JBossCache] - Why won`t fix JBCACHE-622?
by jorgemoralespou_2
I'm having a similar problem in my app.
I use getChildrenNames() to iterate over the tree to get my nodes, in order to print them, or do queries on them.
When I set up a ClusteredCacheLoader, every call to getChildrenNames() remove the children from the cache. I have searched Jira, and found JBCACHE-622, which is similar to my problem, CacheLoaderInterceptor.loadChildren(Fqn fqn, DataNode n) returning null, and making the cache remove the nodes. I wonder why this is marked as won`t fix?
I have seen printDetails in TreeCache, to see how you iterate over the nodes, but I see that you`re using Node, and is commented with:
anonymous wrote : Does not load any previously evicted nodes from a cache loader, so evicted nodes will not be included.
Also in the forums it states that direct access to Node`s api is not the correct way for clients, but using TreeCache`s api.
How can I solve this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110504#4110504
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110504
18 years, 4 months
[JBoss Tools (users)] - Re: Struts tools do not work
by A_titov82
Also when I try to add strusts capabilities to existing project the following error appears in .log file:
java.lang.NoSuchMethodError: org.jboss.tools.struts.webprj.model.helpers.context.ImportProjectWizardContext.getRegisterTomcatContext()Lorg/jboss/tools/jst/web/context/RegisterTomcatContext;
| at org.jboss.tools.struts.webprj.model.helpers.context.ImportProjectWizardContext.initRegistry(ImportProjectWizardContext.java:42)
| at org.jboss.tools.jst.web.context.ImportWebDirProjectContext.<init>(ImportWebDirProjectContext.java:54)
| at org.jboss.tools.struts.webprj.model.helpers.context.ImportProjectWizardContext.<init>(ImportProjectWizardContext.java:38)
| at org.jboss.tools.struts.ui.wizard.project.ImportProjectWizard.addPages(ImportProjectWizard.java:34)
| at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:540)
| at org.eclipse.jface.window.Window.create(Window.java:426)
| at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1081)
| at org.eclipse.jface.window.Window.open(Window.java:785)
| at org.jboss.tools.common.model.ui.action.AddNatureActionDelegate.doRun(AddNatureActionDelegate.java:61)
| at org.jboss.tools.common.model.ui.action.AddNatureActionDelegate.run(AddNatureActionDelegate.java:47)
| at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256)
| at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
| at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
| at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
| at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
| at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
| at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
| at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
| at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
| at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
| at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
| at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
| at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
| at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
| at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
| at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
| at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
| at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
| at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
| at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
| at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
| 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:597)
| at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
| at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
| at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110498#4110498
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110498
18 years, 4 months
[JBoss Tools (users)] - How to disable immediate package deployment ?
by dkane
Hello
I use "Project archives" to create deployment packages.
In JBoss IDE (previous version), I was able to package jar/ear, then I drag-drop it from project explorer to Servers tab and put (deploy) on server.
In JBoss Tools, the situation is different. First of all, drag-drop operation does not work but shows message "abc.jar does not contain anything that can be run on server". However, "deploy to server" (context menu item) works well.
After that (jar is already on server) I found that any change in "Project archives" for this jar causes immediate redeploy. I don't like that but prefer to deploy by command. I turned out "Allow incremental packaging", but this helped only partially. IDE still keep eye on some of my actions and redeploy/undeploy archives when I don't want that.
I want to play with archives in project directory without any changes to archives in server/default/deploy. And copy archive to server only by explicit command. How to achieve that ?
Thanks you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110492#4110492
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110492
18 years, 4 months