Maven - FileNotFoundException
Hi All,
Hope you are fine and great too. I am extremely sorry if I had post this in a wrong forum.
I am deploying from application in tomcat and i use maven as my build tool.While deploying my application I get the following Exception (FileNotFoundException). I actually changed a value field which had the location file:///f: in the propertyPlaceHolder.xml .But the change is not reflecting when I start the server it still points to the old location and throws an FileNotFoundException.
EVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: d:\projects\temp.properties
rewards.properties (The system cannot find the path specified)
Caused by: java.io.FileNotFoundException: d:\projects\temp.properties
Please help me with this problem.Thanks in advance.
Regards
Mouli
Does the file d:\projects\temp.properties actually exist?
If it's a URL, are you specifying it as file:///d:/projects/temp.properties ?
Note the forward unix style slashes.
Similar Messages
-
OpenMQ embedded broker in Maven JUnit
I have standalone application wich interacts with OpenMQ through JMS. Maven build tool is used. I want to write JUnit tests checking application interaction with OpenMQ. For this purpose I want to use OpenMQ embedded broker. I found https://mq.dev.java.net/4.4-content/embedded-example.html guide. With minor changes I implemented embedded broker. But it's not work as described in guide.
At first it appear to me that it cann't create necessary directories and I've added
new File("target/openmq/var/instances/imqbroker").mkdirs();
but later I understood that for some reason it's not creating directories and files which should create itself.
I browsed the sources code and found, that Broker.start() method return value ignored during embedded broker creation. It seems to be a bug.
I receive broker event 'READY : Broker has been started' but actually it don't starts and jms port 7676 close.
Please, look at my code and tell me what's wrong with it?
Application can be downloaded from this thread: http://forums.java.net/jive/thread.jspa?messageID=482904񵹘 .
Direct link: http://forums.java.net/jive/servlet/JiveServlet/download/56-153207-482904-13987/openmqtest.zip
To start build process put libraries defined in lib/dir.txt from OpenMQ distribution to project lib directory. Then use
mvn clean package
Here is the output:
Running bulatnig.openmqtest.EmbeddedBrokerTest
[16/сен/2010:09:04:03 MSD] WARNING [B2001]: Unable to load default property file /home/bulat/IdeaProjects/glassjmstest/openmqtest/target/openmq/lib/props/broker/default.properties:
java.io.FileNotFoundException: /home/bulat/IdeaProjects/glassjmstest/openmqtest/target/openmq/lib/props/broker/default.properties (No such file or directory)
[16/сен/2010:09:04:03 MSD] ERROR [B3001]: Defaulting to use the fallback properties. The Broker will only run in a minimal configuration using these settings. Fallback properties are being used because the defaults.property files could not be loaded. Please check the value of IMQ_HOME
[16/сен/2010:09:04:03 MSD]
================================================================================
Open Message Queue 4.5
Oracle
Version: 4.5 (Build 10-f)
Compile: Wed Jun 16 23:23:56 PDT 2010
Copyright (c) 2010 Sun Microsystems, Inc. All rights reserved. Use is
subject to license terms.
================================================================================
Java Runtime: 1.6.0_20 Sun Microsystems Inc. /usr/lib/jvm/java-6-sun-1.6.0.20/jre
[16/сен/2010:09:04:03 MSD] IMQ_HOME=/home/bulat/IdeaProjects/glassjmstest/openmqtest/target/openmq
[16/сен/2010:09:04:03 MSD] IMQ_VARHOME=/home/bulat/IdeaProjects/glassjmstest/openmqtest/target/openmq/var
[16/сен/2010:09:04:03 MSD] Linux 2.6.32-24-generic amd64 nigmatullin (2 cpu) bulat
[16/сен/2010:09:04:03 MSD] Java Heap Size: max=449664k, current=30336k
[16/сен/2010:09:04:03 MSD] Arguments: -imqhome target/openmq
[16/сен/2010:09:04:03 MSD] Embedded Broker
[16/сен/2010:09:04:03 MSD] ERROR [B3086]: The broker got an exception when trying to acquire the lock file:
null/instances/imqbroker/lock
java.io.IOException: No such file or directory
The lock file may be corrupted, or there may be a permission problem
with the lock file or the directory that contains the lock file.
If you are certain no other copy of the broker is running with the
instance name "imqbroker" then you may remove the lock file and
try starting the broker again.:
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:883)
at com.sun.messaging.jmq.jmsserver.util.LockFile.getLock(LockFile.java:113)
at com.sun.messaging.jmq.jmsserver.Broker._start(Broker.java:798)
at com.sun.messaging.jmq.jmsserver.Broker.start(Broker.java:412)
at com.sun.messaging.jmq.jmsserver.BrokerProcess.start(BrokerProcess.java:219)
at com.sun.messaging.jmq.jmsserver.DirectBrokerProcess.start(DirectBrokerProcess.java:87)
at com.sun.messaging.jmq.jmsclient.runtime.impl.BrokerInstanceImpl.start(BrokerInstanceImpl.java:144)
at bulatnig.openmqtest.EmbeddedBrokerTest.startServer(EmbeddedBrokerTest.java:50)
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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Received broker event:READY : Broker has been started
Edited by: bulatka on Sep 15, 2010 10:37 PMI changed arguments to:
-imqhome target/openmq -libhome /home/bulat/desktop/MessageQueue4_4/mq/lib
Build Failed:
<testcase time="0" classname="bulatnig.openmqtest.EmbeddedBrokerTest" name="bulatnig.openmqtest.EmbeddedBrokerTest">
<error message="com/sun/messaging/jms/management/server/ClusterNotification" type="java.lang.NoClassDefFoundError">java.lang.NoClassDefFoundError: com/sun/messaging/jms/management/server/ClusterNotification
at com.sun.messaging.jmq.jmsserver.management.agent.Agent.loadAllMBeans(Agent.java:671)
at com.sun.messaging.jmq.jmsserver.management.agent.Agent.loadMBeans(Agent.java:628)
at com.sun.messaging.jmq.jmsserver.Broker._start(Broker.java:1385)
at com.sun.messaging.jmq.jmsserver.Broker.start(Broker.java:412)
at com.sun.messaging.jmq.jmsserver.BrokerProcess.start(BrokerProcess.java:219)
at com.sun.messaging.jmq.jmsserver.DirectBrokerProcess.start(DirectBrokerProcess.java:87)
at com.sun.messaging.jmq.jmsclient.runtime.impl.BrokerInstanceImpl.start(BrokerInstanceImpl.java:144)
at bulatnig.openmqtest.EmbeddedBrokerTest.startServer(EmbeddedBrokerTest.java:50)
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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: java.lang.ClassNotFoundException: com.sun.messaging.jms.management.server.ClusterNotification
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 28 more
</error>
</testcase>
I added imqjmx to project dependencies: project builds without errors.
The next question: is it possible start embedded broker without OpenMQ locally installed? Which libraries should I put in dependencies to run embedded broker in JUnit tests? -
Issue in deploying Service Bus projects using maven
Hi,
I am following the following documentation for deploying service bus projects to my OSB server.
http://docs.oracle.com/middleware/1213/core/MAVEN/osb_maven_project.htm#MAVEN8973
I was able to issue mvn package as described in documentation and also able to see sbar files in .data/Maven directory of each project.
But i am seeing following error when i issue mvn pre-integration-test. Am i missing any steps.
[INFO] --- oracle-servicebus-plugin:12.1.3-0-0:deploy (default-deploy) @ System ---
[INFO] Service Bus Archive deployed using session Service_Bus_Maven-System-1424718369010.
java.io.IOException: Unable to resolve 'weblogic.management.mbeanservers.domainruntime'. Resolved 'w
eblogic.management.mbeanservers'
at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.ja
va:237)
at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.j
ava:120)
at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:369)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:267)
at oracle.sb.maven.plugin.deploy.MBeanHelper$MBeanInvocationHandler.getJMXConnector(MBeanHel
per.java:228)
at oracle.sb.maven.plugin.deploy.MBeanHelper$MBeanInvocationHandler.invoke(MBeanHelper.java:
131)
at com.sun.proxy.$Proxy16.createSession(Unknown Source)
at oracle.sb.maven.plugin.DeployMojo.createSession(DeployMojo.java:141)
at oracle.sb.maven.plugin.DeployMojo.execute(DeployMojo.java:89)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.j
ava:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBu
ilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBu
ilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter
.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: javax.naming.NameNotFoundException: Unable to resolve 'weblogic.management.mbeanservers.d
omainruntime'. Resolved 'weblogic.management.mbeanservers' [Root exception is javax.naming.NameNotFo
undException: Unable to resolve 'weblogic.management.mbeanservers.domainruntime'. Resolved 'weblogic
.management.mbeanservers']; remaining name 'domainruntime'
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1180
at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:270)
at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:187)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:210)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:224)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:224)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:224)
at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:701)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:231)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:527)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:523)Hi Siva,
I am facing same issue I am bale to create package but while deployment goal I am facing problem.I am following same document as you do.
I can see my mvn-pre-integration ..show me sucees in result
[DEBUG] Excluded: org.apache.maven:maven-artifact:jar:3.0.3
[DEBUG] Configuring mojo com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0:package from plugin realm ClassRealm[plugin>com.oracle.servicebus.plugin:oracl
-servicebus-plugin:12.1.3-0-0, parent: sun.misc.Launcher$AppClassLoader@65450f1f]
[DEBUG] Configuring mojo 'com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0:package' with basic configurator -->
[DEBUG] (f) oracleHome = C:\Oracle\Middleware\Oracle_Home
[DEBUG] (f) project = MavenProject: LinuxMachine:TestOSBLinux:1.0-SNAPSHOT @ C:\JDeveloper\mywork\OSB-DEPLOY\LinuxMachine\TestOSBLinux\pom.xml
[DEBUG] (f) system = false
[DEBUG] -- end configuration --
[INFO]
[INFO] --- oracle-servicebus-plugin:12.1.3-0-0:deploy (default-deploy) @ TestOSBLinux ---
[DEBUG] Configuring mojo com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0:deploy from plugin realm ClassRealm[plugin>com.oracle.servicebus.plugin:oracle
servicebus-plugin:12.1.3-0-0, parent: sun.misc.Launcher$AppClassLoader@65450f1f]
[DEBUG] Configuring mojo 'com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0:deploy' with basic configurator -->
[DEBUG] (f) oraclePassword = Oracle123
[DEBUG] (f) oracleServerUrl = http://192.168.137.150:7001
[DEBUG] (f) oracleUsername = weblogic
[DEBUG] (f) project = MavenProject: LinuxMachine:TestOSBLinux:1.0-SNAPSHOT @ C:\JDeveloper\mywork\OSB-DEPLOY\LinuxMachine\TestOSBLinux\pom.xml
[DEBUG] -- end configuration --
[INFO] Service Bus Archive deployed using session Service_Bus_Maven-TestOSBLinux-1429888616161.
[INFO]
[INFO] --- oracle-servicebus-plugin:12.1.3-0-0:deploy (deploy) @ TestOSBLinux ---
[DEBUG] Configuring mojo com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0:deploy from plugin realm ClassRealm[plugin>com.oracle.servicebus.plugin:oracle
servicebus-plugin:12.1.3-0-0, parent: sun.misc.Launcher$AppClassLoader@65450f1f]
[DEBUG] Configuring mojo 'com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0:deploy' with basic configurator -->
[DEBUG] (f) oraclePassword = Oracle123
[DEBUG] (f) oracleServerUrl = http://192.168.137.150:7001
[DEBUG] (f) oracleUsername = weblogic
[DEBUG] (f) project = MavenProject: LinuxMachine:TestOSBLinux:1.0-SNAPSHOT @ C:\JDeveloper\mywork\OSB-DEPLOY\LinuxMachine\TestOSBLinux\pom.xml
[DEBUG] -- end configuration --
[INFO] Service Bus Archive deployed using session Service_Bus_Maven-TestOSBLinux-1429888623126.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building LinuxMachine 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-so
rces, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, i
tegration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project: LinuxMachine:LinuxMachine:1.0-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): []
[DEBUG] Repositories (dependencies): [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] Repositories (plugins) : [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] =======================================================================
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] TestOSBLinux ....................................... SUCCESS [ 20.752 s]
[INFO] LinuxMachine ....................................... SUCCESS [ 0.009 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
But not get deployed .....
When i run mvn com.oracle.servicebus.plugin:oracle-servicebus-plugin:deploy** to invoke deployment goal it fails which below logs
org.apache.maven.plugin.MojoNotFoundException: Could not find goal 'deploy*.*' in plugin com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0 amon
goals deploy, package
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(DefaultMavenPluginManager.java:275)
at org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(DefaultBuildPluginManager.java:239)
at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:233)
at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:103)
at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:83)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:85)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR]
[ERROR]
Thanks&Regards
Prabhat -
i have created a asmx file using vs 2012 4.5 framework, and published to my d:\ drive and mapped to a iis web site
but when i trued to consume this from a another web appln, it throws me the below error:
System.IO.FileNotFoundException: The Web application at http://srvr:4000/sites/mysitecollec could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a
new request URL mapping to the intended application.
at Microsoft.SharePoint.SPSite.LookupSiteInfo(SPFarm farm, Boolean contextSite, Boolean swapSchemeForPathBasedSites, Uri& requestUri, Boolean& lookupRequiredContext, Guid& applicationId, Guid& contentDatabaseId, Guid& siteId,
Guid& siteSubscriptionId, SPUrlZone& zone, String& serverRelativeUrl, Boolean& hostHeaderIsSiteName, Boolean& appWebRequest, String& appHostHeaderRedirectDomain, String& appSiteDomainPrefix, String& subscriptionName, String&
appSiteDomainId, Uri& primaryUri)
at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, Boolean swapSchemeForPathBasedSites, SPUserToken userToken)
at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken)
at Microsoft.SharePoint.SPSite..ctor(String requestUrl)
at FetchlatestDocDet6Jan.FetchLatestDoc6Jan.<>c__DisplayClass1.<FetchLatestDocVer>b__0() in d:\PublishWSFetchLatestDoc6Jan.asmx.cs:line 41
at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()
at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
at FetchlatestDocDet6Jan.FetchLatestDoc6Jan.FetchLatestDocVer(String fileName, String processID, String subProcessId) in d:\PublishedWS\FetchLatestDoc6Jan.asmx.cs:line 35
[WebMethod]
public DataTable FetchLatestDocVer(string fileName,string processID,string subProcessId)
DataTable dtFiles = new DataTable("File Details");
dtFiles.Columns.Add("File Name");
dtFiles.Columns.Add("File Version");
dtFiles.Columns.Add("File Url");
SPSecurity.RunWithElevatedPrivileges(delegate()
// implementation details omitted
//using (SPSite mySite = new SPSite(siteUrl))
using (SPSite mySite = new SPSite("http://srvr:4000/sites/mysitecoll"))
using (SPWeb myWeb = mySite.OpenWeb())
SPList oList = myWeb.Lists["TEST DOC LIB "];
SPView oView = oList.Views["All Documents"]; // SPQuery oQuery = new SPQuery(oView);
SPQuery oQuery = new SPQuery();
string query = "<Query><Where><And><Eq><FieldRef Name=Title/>" + "<Value Type=Text>" + fileName + "</Value></Eq>"
+"<Eq><FieldRef Name=ProcessID /><Value Type=Text>"+processID+"</Value></Eq>"
+"<Eq><FieldRef Name=SubProcessID /><Value Type=Text>"+subProcessId+"</Value></Eq>"
+"</And></Where></Query>";
oQuery.Query = query;
oQuery.ViewAttributes = "Scope=\"Recursive\"";
SPListItemCollection collListItemsAvailable =
oList.GetItems(oQuery);
foreach (SPListItem oListItemAvailable in collListItemsAvailable)
// Console.WriteLine(oListItemAvailable["Name"].ToString());
SPFileVersionCollection versions = oListItemAvailable.File.Versions;
// If the file has versions, loop through all of the versions
if (versions != null)
if (versions.Count > 0)
foreach (SPFileVersion version in versions)
// Console.WriteLine("Version Info:: {0}, {1}", version.VersionLabel, version.Url);
DataRow dr = dtFiles.NewRow();
dr[0] = oListItemAvailable["Name"].ToString();
//Added data to the datatable
else
// Console.WriteLine("Version Info:: {0}, {1}", oListItemAvailable.File.UIVersionLabel, oListItemAvailable.File.Url);
DataRow dr = dtFiles.NewRow();
dr[0] = oListItemAvailable["Name"].ToString();
dr[1] = oListItemAvailable.File.UIVersionLabel;
dr[2] = oListItemAvailable.File.Url;
dtFiles.Rows.Add(dr);
return dtFiles;"The Web application at http://server:port/ could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing
content, the system administrator may need to add a new request URL mapping to the intended application"
Here are the most common reasons this error can occur:
The code is executed on a different machine - The SharePoint object model (except the Client API) requires to be run on the SharePoint server itself. It is not possible to run the application on a server which is not within the same
SharePoint farm the code is trying to access.
Insufficient Rights on the site collection - The code is executed in context of an account which does not have read permission on the site collection
Incorrect Url being used - Verify that the site works correct in a browser and double check that the server is correct registered in the AAM settings
Incorrect bitness - The SharePoint object model needs to be executed with the same bitness as the operating system. That means you cannot use the SharePoint object model in a 32-bit application if the Operating System and SharePoint
are installed as 64-bit version. Ensure to compile the project using the correct bitness (64-bit on a 64-bit machine vs. 32-bit on a 32-bit machine)
Incorrect .NET framework version - Ensure that the project is configured to use .NET 3.5. .NET 4.0 cannot be used with the current versions of SharePoint
from Mr.Stefan's post, i have checked with my code : as per the first reason: (1)
i am running the code from my SP 2013 machine only. but the only difference is that, i am using a asp.net web appln and have added a SP references of 15 hive and trying to make a lists.asmx file.
also checked the reasons
2,3 ,4 ,5 all are fine from my end.
here just wanna know: abt the below approach : whether its Correct or NOT.
create a plain GetDocsWebService.asmx file from asp.net 3.5 framework and write the code for retrieving items from doc.lib using SPSite, spweb, splists, xmldocument and retrieve a datatable . [[[ i have added a web reference of sp 2013 microsoft.sharepoint
dll from isapi folder, in this GetDocsWebService.asmx project ]]
i deployed this web service on my SP server's new iis site, c:\inetpub\wwwroot\GETDOCSPUBLISH site
now, at present , am adding a normal asp.net 4.5 web appln and add the web reference of this custom web service and trying to consume.
at this point am getting mulitpl errors: like
1) platform not supported : am stuck with this error!!
2) sometimes, am getting document not valid...<html> <head> document not valid........</html>
for the above 2 errorrs, i still could not able to find a solution!!
is it because, lists.asmx is not supported in sp 2013? we need to depend on rest-api/ecma/csom ??
so my question is , what should be the correct ad most recommended approach for reading doc lib/ splist records/items from a remote macihne. -
Maven Plugin not accepting values from a property file.
Hi,
I want to create javadocs using maven.
It works fine when i provide all the absolute paths in the pom.
But when i try to provide paths by reading a property file then the maven-javadoc-plugin does not get the paths from this property file.
The property file is defined as mentioned in below format:
src_mvn_consult_framework_dir=/var/lib/hudson/jobs/CZ_NAB_CORE_MVN_CHECKOUT/workspace/middleware/projects/framework
src_mvn_consult_module_dir=/var/lib/hudson/jobs/CZ_NAB_CORE_MVN_CHECKOUT/workspace/middleware/projects/module
src_mvn_consult_appx_dir=/var/lib/hudson/jobs/CZ_NAB_CORE_MVN_CHECKOUT/workspace/middleware/projects/appx
src_mvn_consult_client_dir=/var/lib/hudson/jobs/CZ_NAB_CORE_MVN_CHECKOUT/workspace/middleware/projects/client
src_mvn_consult_app_webservice_dir=/var/lib/hudson/jobs/CZ_NAB_CORE_MVN_CHECKOUT/workspace/middleware/application/com.ofss.fc.cz.nab.webservices
src_mvn_consult_app_middleware_dir=/var/lib/hudson/jobs/CZ_NAB_CORE_MVN_CHECKOUT/workspace/middleware/application/com.ofss.fc.cz.nab.middleware
Calling this property file in the pom like:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>/var/build/consult/maven/cz_javadoc-config.properties</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
Finally we are using keys defined in property file in pom like:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.7</version>
<configuration>
<sourcepath>${src_mvn_consult_framework_dir};
${src_mvn_consult_module_dir};
${src_mvn_consult_appx_dir};
${src_mvn_consult_client_dir};
${src_mvn_consult_app_webservice_dir};
${src_mvn_consult_app_middleware_dir};
</sourcepath>
</configuration>
</plugin>
Please suggest how we can get the value of keys defined in the property file in POM
Thanks for your invaluable supportI've had to do something similar in one of my apps. In order to populate values in the THIS scope, you'll need to put a copy of the XML loading/processing logic in the pseudo-constructor (or encapsulate it in a separate CFM/CFC file and include it in both places). It's ugly, but that's the only way I'm aware of to access the THIS scope.
-Carl V. -
Font problem with Montserrat and Maven Pro from google
Seems like some fonts don't render as they should in Firefox 29.0.1. I tried to use google web fonts like Montserrat and Maven Pro, no problem with downloading but this fonts don't look good.
I tried to install Montserrat to my Windows 7 (64) and deactivated css so that FF runs the font but same problem occurs.
A really strange problem is that from my computer at work this fonts don't work from FF or Chrome, all versions of IE is fine.
At home i have a laptop with same OS and version of FF and from home it works! But not Chrome..
I have search on the net and at your support site but haven't find any answers yet.
You can look at http://arenago.axiell.com for your self. Below is troubleshooting information from my version of FF where this problems occurs (Sorry about the Swedish)
Programfakta
Namn: Firefox
Version: 29.0.1
Användaragent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
Kraschrapporter för de senaste 3 dagarna
Alla kraschrapporter
Tillägg
Namn: Classic Theme Restorer
Version: 1.1.8
Aktiverad: true
ID: ClassicThemeRestorer@ArisT2Noia4dev
Namn: Firebug
Version: 1.12.8
Aktiverad: true
ID: [email protected]
Namn: HostAdmin
Version: 1.4.9.2
Aktiverad: true
ID: {bd54afa8-b14a-4d7a-aecf-37e34e882796}
Namn: Web Developer
Version: 1.2.5
Aktiverad: true
ID: {c45c406e-ab73-11d8-be73-000a95be3b12}
Viktiga ändrade inställningar
accessibility.typeaheadfind.flashBar: 0
browser.cache.disk.capacity: 358400
browser.cache.disk.smart_size_cached_value: 358400
browser.cache.disk.smart_size.first_run: false
browser.cache.disk.smart_size.use_old_max: false
browser.places.smartBookmarksVersion: 6
browser.sessionstore.upgradeBackup.latestBuildID: 20140506152807
browser.startup.homepage: about:blank
browser.startup.homepage_override.buildID: 20140506152807
browser.startup.homepage_override.mstone: 29.0.1
browser.tabs.drawInTitlebar: false
browser.tabs.onTop: false
dom.mozApps.used: true
extensions.lastAppVersion: 29.0.1
font.default.x-western: sans-serif
font.internaluseonly.changed: true
font.name.sans-serif.x-western: Montserrat
font.name.serif.x-western: Montserrat
network.cookie.prefsMigrated: true
network.dnsCacheEntries: 0
network.dnsCacheExpiration: 0
places.database.lastMaintenance: 1400218745
places.history.expiration.transient_current_max_pages: 104858
plugin.disable_full_page_plugin_for_types: application/pdf
plugin.importedState: true
print.printer_\\tina\Kajan_HP_LJ_P2055.print_bgcolor: false
print.printer_\\tina\Kajan_HP_LJ_P2055.print_bgimages: false
print.printer_\\tina\Kajan_HP_LJ_P2055.print_colorspace:
print.printer_\\tina\Kajan_HP_LJ_P2055.print_command:
print.printer_\\tina\Kajan_HP_LJ_P2055.print_downloadfonts: false
print.printer_\\tina\Kajan_HP_LJ_P2055.print_duplex: -983728976
print.printer_\\tina\Kajan_HP_LJ_P2055.print_edge_bottom: 0
print.printer_\\tina\Kajan_HP_LJ_P2055.print_edge_left: 0
print.printer_\\tina\Kajan_HP_LJ_P2055.print_edge_right: 0
print.printer_\\tina\Kajan_HP_LJ_P2055.print_edge_top: 0
print.printer_\\tina\Kajan_HP_LJ_P2055.print_evenpages: true
print.printer_\\tina\Kajan_HP_LJ_P2055.print_footercenter:
print.printer_\\tina\Kajan_HP_LJ_P2055.print_footerleft: &PT
print.printer_\\tina\Kajan_HP_LJ_P2055.print_footerright: &D
print.printer_\\tina\Kajan_HP_LJ_P2055.print_headercenter:
print.printer_\\tina\Kajan_HP_LJ_P2055.print_headerleft: &T
print.printer_\\tina\Kajan_HP_LJ_P2055.print_headerright: &U
print.printer_\\tina\Kajan_HP_LJ_P2055.print_in_color: true
print.printer_\\tina\Kajan_HP_LJ_P2055.print_margin_bottom: 0.5
print.printer_\\tina\Kajan_HP_LJ_P2055.print_margin_left: 0.5
print.printer_\\tina\Kajan_HP_LJ_P2055.print_margin_right: 0.5
print.printer_\\tina\Kajan_HP_LJ_P2055.print_margin_top: 0.5
print.printer_\\tina\Kajan_HP_LJ_P2055.print_oddpages: true
print.printer_\\tina\Kajan_HP_LJ_P2055.print_orientation: 0
print.printer_\\tina\Kajan_HP_LJ_P2055.print_page_delay: 50
print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_data: 9
print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_height: 11,00
print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_name:
print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_size_type: 0
print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_size_unit: 1
print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_width: 8,50
print.printer_\\tina\Kajan_HP_LJ_P2055.print_plex_name:
print.printer_\\tina\Kajan_HP_LJ_P2055.print_resolution: 1
print.printer_\\tina\Kajan_HP_LJ_P2055.print_resolution_name:
print.printer_\\tina\Kajan_HP_LJ_P2055.print_reversed: false
print.printer_\\tina\Kajan_HP_LJ_P2055.print_scaling: 1,00
print.printer_\\tina\Kajan_HP_LJ_P2055.print_shrink_to_fit: true
print.printer_\\tina\Kajan_HP_LJ_P2055.print_to_file: false
print.printer_\\tina\Kajan_HP_LJ_P2055.print_unwriteable_margin_bottom: 0
print.printer_\\tina\Kajan_HP_LJ_P2055.print_unwriteable_margin_left: 0
print.printer_\\tina\Kajan_HP_LJ_P2055.print_unwriteable_margin_right: 0
print.printer_\\tina\Kajan_HP_LJ_P2055.print_unwriteable_margin_top: 0
print.printer_\\tina\NRG_MP_C3501_PS.print_bgcolor: false
print.printer_\\tina\NRG_MP_C3501_PS.print_bgimages: false
print.printer_\\tina\NRG_MP_C3501_PS.print_colorspace:
print.printer_\\tina\NRG_MP_C3501_PS.print_command:
print.printer_\\tina\NRG_MP_C3501_PS.print_downloadfonts: false
print.printer_\\tina\NRG_MP_C3501_PS.print_duplex: -983728976
print.printer_\\tina\NRG_MP_C3501_PS.print_edge_bottom: 0
print.printer_\\tina\NRG_MP_C3501_PS.print_edge_left: 0
print.printer_\\tina\NRG_MP_C3501_PS.print_edge_right: 0
print.printer_\\tina\NRG_MP_C3501_PS.print_edge_top: 0
print.printer_\\tina\NRG_MP_C3501_PS.print_evenpages: true
print.printer_\\tina\NRG_MP_C3501_PS.print_footercenter:
print.printer_\\tina\NRG_MP_C3501_PS.print_footerleft: &PT
print.printer_\\tina\NRG_MP_C3501_PS.print_footerright: &D
print.printer_\\tina\NRG_MP_C3501_PS.print_headercenter:
print.printer_\\tina\NRG_MP_C3501_PS.print_headerleft: &T
print.printer_\\tina\NRG_MP_C3501_PS.print_headerright: &U
print.printer_\\tina\NRG_MP_C3501_PS.print_in_color: true
print.printer_\\tina\NRG_MP_C3501_PS.print_margin_bottom: 0.5
print.printer_\\tina\NRG_MP_C3501_PS.print_margin_left: 0.5
print.printer_\\tina\NRG_MP_C3501_PS.print_margin_right: 0.5
print.printer_\\tina\NRG_MP_C3501_PS.print_margin_top: 0.5
print.printer_\\tina\NRG_MP_C3501_PS.print_oddpages: true
print.printer_\\tina\NRG_MP_C3501_PS.print_orientation: 0
print.printer_\\tina\NRG_MP_C3501_PS.print_page_delay: 50
print.printer_\\tina\NRG_MP_C3501_PS.print_paper_data: 9
print.printer_\\tina\NRG_MP_C3501_PS.print_paper_height: 11,00
print.printer_\\tina\NRG_MP_C3501_PS.print_paper_name:
print.printer_\\tina\NRG_MP_C3501_PS.print_paper_size_type: 0
print.printer_\\tina\NRG_MP_C3501_PS.print_paper_size_unit: 1
print.printer_\\tina\NRG_MP_C3501_PS.print_paper_width: 8,50
print.printer_\\tina\NRG_MP_C3501_PS.print_plex_name:
print.printer_\\tina\NRG_MP_C3501_PS.print_resolution: 1
print.printer_\\tina\NRG_MP_C3501_PS.print_resolution_name:
print.printer_\\tina\NRG_MP_C3501_PS.print_reversed: false
print.printer_\\tina\NRG_MP_C3501_PS.print_scaling: 1,00
print.printer_\\tina\NRG_MP_C3501_PS.print_shrink_to_fit: true
print.printer_\\tina\NRG_MP_C3501_PS.print_to_file: false
print.printer_\\tina\NRG_MP_C3501_PS.print_unwriteable_margin_bottom: 0
print.printer_\\tina\NRG_MP_C3501_PS.print_unwriteable_margin_left: 0
print.printer_\\tina\NRG_MP_C3501_PS.print_unwriteable_margin_right: 0
print.printer_\\tina\NRG_MP_C3501_PS.print_unwriteable_margin_top: 0
privacy.cpd.siteSettings: true
privacy.sanitize.migrateFx3Prefs: true
privacy.sanitize.timeSpan: 0
storage.vacuum.last.index: 1
storage.vacuum.last.places.sqlite: 1399495195
user.js-inställningar
Din profilmapp innehåller en user.js-fil som inkluderar inställningar som inte har skapats av Firefox.
Grafik
Adapter-RAM: 512
Adapterbeskrivning: NVIDIA GeForce 7950 GT
Adapterdrivrutin: nvd3dumx,nvd3dum
ClearType-parametrar: D [ Gamma: 2200 Pixel Structure: R ClearType Level: 100 Enhanced Contrast: 50 ] D [ Gamma: 2200 Pixel Structure: R ClearType Level: 100 Enhanced Contrast: 50 ]
DirectWrite aktiverat: false (6.2.9200.16492)
Drivrutinsdatum: 1-31-2013
Drivrutinsversion: 9.18.13.783
Enhets-ID: 0x0295
GPU #2 aktiv: false
Grafikaccelererade fönster: 1/1 Direct3D 9
Leverantörs-ID: 0x10de
WebGL-renderare: Google Inc. -- ANGLE (NVIDIA GeForce 7950 GT Direct3D9Ex vs_3_0 ps_3_0)
windowLayerManagerRemote: false
AzureCanvasBackend: skia
AzureContentBackend: cairo
AzureFallbackCanvasBackend: cairo
AzureSkiaAccelerated: 0
JavaScript
Incremental GC: true
Tillgänglighet
Aktiverad: false
Förhindra tillgänglighet: 0
Biblioteksversioner
NSPR
Förväntad minimiversion: 4.10.3
Version som används: 4.10.3
NSS
Förväntad minimiversion: 3.16 Basic ECC
Version som används: 3.16 Basic ECC
NSSSMIME
Förväntad minimiversion: 3.16 Basic ECC
Version som används: 3.16 Basic ECC
NSSSSL
Förväntad minimiversion: 3.16 Basic ECC
Version som används: 3.16 Basic ECC
NSSUTIL
Förväntad minimiversion: 3.16
Version som används: 3.16Many site issues can be caused by corrupt cookies or cache.<BR><BR>
Clear the Cache<BR>
'''''Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"'''''
<BR><BR>and<BR><BR>
Remove Cookies<BR>'''''Firefox/Tools > Options > Privacy.'''''<BR>
Under '''History''', select Firefox will '''Use Custom Settings'''.<BR>
There is a button on the right side called '''Show Cookies'''.<BR><BR>
If there is still a problem,
'''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]'''''
<BR>While you are in safe mode;<BR>
'''''Firefox Options > Advanced > General'''''.<BR>
Look for and turn off '''Use Hardware Acceleration'''.<BR>
Poke around safe web sites and see if there is still a problem. Then restart.
<BR><BR><BR>
This may or may not help you;<BR><BR>
'''''[https://addons.mozilla.org/en-US/firefox/addon/nosquint/?src=external-Add-ons_Manager_Context_Menu-extension NoSquint]'''''<BR><BR>
NoSquint allows you to adjust the text-only and full-page (both text and images) zoom levels as well as color settings both globally (for all sites) and per site. -
PeopleSoft XML Publisher report error with java.io.FileNotFoundException
Hi,
I have created two reports using XML Publisher in Peoplesoft Financials. The two reports are not related and they were submitted for processing separately. The first report completes without any issues. The second report results in error with the following message:
09.11.17 ..(CIS_POTRPT.XML_FILE.Step03) (PeopleCode)
[012309_091118154][oracle.apps.xdo.template.FOProcessor][EXCEPTION] IOException is occurred in FOProcessor.setData(String) with 'files/cis_potrpt.xml'.
[012309_091118500][oracle.apps.xdo.template.FOProcessor][EXCEPTION] java.io.FileNotFoundException: files/cis_potrpt.xml (A file or directory in the path name does not exist.)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java(Compiled Code))
at java.io.FileInputStream.<init>(FileInputStream.java:89)
at oracle.apps.xdo.template.FOProcessor.getInputStream(FOProcessor.java:1316)
at oracle.apps.xdo.template.FOProcessor.getXMLInput(FOProcessor.java:1100)
at oracle.apps.xdo.template.FOProcessor.setData(FOProcessor.java:372)
at com.peoplesoft.pt.xmlpublisher.PTFOProcessor.generateOutput(PTFOProcessor.java:53)
2009-01-23-09.11.18.000418 AePcdExecutePeopleCode [174] Exception logged: RC=100.
Error generating report output: (235,2309) PSXP_RPTDEFNMANAGER.ReportDefn.OnExecute Name:ProcessReport PCPC:51552 Statement:1153
Called from:CIS_POTRPT.XML_FILE.GBL.default.1900-01-01.Step03.OnExecute Statement:8
2009-01-23-09.11.18.000617 DoStepActions [1797] Exception logged: RC=100.
Process 598607 ABENDED at Step CIS_POTRPT.XML_FILE.Step03 (PeopleCode) -- RC = 24 (108,524)
In the process monitor detail > view log/trace page, the xml file is accessible so the file was generated to a valid directory.
The weird thing is I was able to run this report without any issues few weeks ago although another user also ran into same error. The PeopleCode step that has been identified is essentially same in the two reports. I checked the app server and the directory does exist as well as the xml files for the two reports. The problem does not occur in test environment, just in production. Any help would be appreciated.We encounter the same problem. Did you get the answer for this issue? Thanks in advance.
-
Report Script returns no data and "java.io.FileNotFoundException" error
When attempting to write to a new file (Eg: C:\TEST.txt), Report Script returns no data and "java.io.FileNotFoundException" error occurs.
This error occurs only in Essbase 9.3.1.3 release, however it works fine in release 9.3.1.0.
After running the report the script, it pops up the follwing message:
"java.io.FileNotFoundException: ..\temp\eas17109.tmp (The system cannot find the file specified): C:\TEST.txt"
When checked the TEST.txt, it was empty.Sorry folks, I just found out the reason. Its because there was no data in the combination what I was extracting.
but is this the right error message for that? It should have atleast create a blank file right? -
Unable to run the maven project using TFS 2013
Hi All,
This is Raghu, I am new to TFS.
I am running Maven project (selenium+java) using TFS. I configured TFS in my local box and installed TFS plugins for Eclipse. I have committed all of my code to TFS and created a new build in TFS using Eclipse TEAM Explore.
When I executed the build, it displaying the below message not executing my test scripts.
when I am executing maven from command prompt, it's working fine.
I am using Eclipse Luna, TFS2013, java 1.7, Maven 3.1.1
Debug | Any CPU
0 error(s), 0 warning(s)
$/Testselenium/ArrowSOP/pom.xml compiled
$/Testselenium/ArrowSOP/pom.xml ('install' target(s)) - 0 error(s), 0 warning(s),
View log file
No test results
No code coverage results
It could be grate, if anybody provide a solution for this issue.
Thanks
RaghuHello again,
It’s just in one of my TFS project I have this problem and it didn’t help to use older versions of the build process templates.
/Magnus
Magnus Timner -
Incorporating Crystal Reports for Eclipse into a Maven build
Is there a way to support or work around Maven dependencies for Crystal Reports?
I'm working on a project in MyEclipse 8.5 and building it into an ear file using the integrated Maven support.
We just recently started incorporating Crystal Reports into our project, and I have all the jar files in the WebINF\lib folder and the crystalreportviewers folder in the project as well and when I run the reports and viewers from jsp pages it works fine because Maven doesn't actually compile those. The problem is that I need to run scheduled reports in the background without ever showing anything to the user but whenever I try to access crystal reports directly in my java servlet classes my import line
import com.crystaldecisions.sdk.occa.report.document.*;
throws the following error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project webui: Compilation failure: Compilation failure:
C:\...SchedulingServlet.java:[17,0]package com.crystaldecisions.sdk.occa.report.document does not exist
Even if I'm not doing anything with it.
I'm still new to Maven, jsp, and Crystal Reports, so any suggestions would be awesome.I get that error without even having any .prt files in the project.
having the import statement alone throws that error -
XML Publisher post-processing error 'java.io.FileNotFoundException'
Hi,
We are getting following XML Publisher post-processing error while running XML Publisher report.
It was working earlier but suddenly its erroring out.
[9/07/10 9:00:17 PM] [OPPServiceThread1] Post-processing request 559655.
[9/07/10 9:00:18 PM] [39177:RT559655] Executing post-processing actions for request 559655.
[9/07/10 9:00:18 PM] [39177:RT559655] Starting XML Publisher post-processing action.
[9/07/10 9:00:18 PM] [39177:RT559655]
Template code: XXHPOXPRRFLR
Template app: XXH
Language: en
Territory: 00
Output type: PDF
[9/07/10 9:00:18 PM] [UNEXPECTED] [39177:RT559655] java.io.FileNotFoundException: /apps/oracle/DEV/inst/apps/DEV_hlt439erplap001/logs/appl/conc/out/o559655.out (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:274)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:173)
[9/07/10 9:00:18 PM] [39177:RT559655] Completed post-processing actions for request 559655.
Please help me out to resolve this issue.
Thanks & Regards,
SagarikaHi,
java.io.FileNotFoundException: /apps/oracle/DEV/inst/apps/DEV_hlt439erplap001/logs/appl/conc/out/o559655.out (No such file or directory)Most probably this file is not created (since no changes have been done recently, so definitely it is not a permission issue), and if there are any log files generate at the client side it should help in investigating the issue.
Thanks,
Hussein -
Java and Maven issues after upgrading OSX to Maverick 10.9.2
I upgraded my MacBookAir to Maverick and now it can't detect Java VM and Apache Maven
If it is not finding the mvn command then I suspect that it has removed the directory mvn is in from the path variable. Run Terminal.app and type
echo $PATH
See if this includes the directory for mvn. You could try modifying your /etc/paths file (system wide) or for just a single user account the file to create/modify is
~/.profile
It is generally best not to modify the system wide one if you don't need to.
Reinstalling mvn might also be a solution and you could take the opportunity to update your mvn at the same time. -
I am installing OIM/OAM in a cluster configuration using release 11.1.1.7.
I looked at the EDG here:
http://docs.oracle.com/cd/E28280_01/core.1111/e12035/toc.htm
And its pointing me to the 11.1.1.5 version
http://docs.oracle.com/cd/E21764_01/core.1111/e12035/toc.htm
So that is the guide I am following.
I am at this step:
18.1.5.2 Integrating Oracle Access Manager with Oracle Identity Manager by Using idmConfigTool
http://docs.oracle.com/cd/E21764_01/core.1111/e12035/wiring.htm#sthref356
When I run the config tool I get SEVERE messages like this one:
SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml (No such file or directory)
Any suggestions on how to fix this ?
Please note that I can see jps-config.xml under the domain configuration in the fmwconfig directory.
Here is the complete output
Enter sso access gate password :
Enter sso keystore jks password :
Enter sso global passphrase :
Enter mds db schema password :
Enter idstore admin password :
Enter admin server user password :
********* Seeding OAM Passwds in OIM *********
Completed loading user inputs for - CSF Config
Completed loading user inputs for - Dogwood Admin WLS
Connecting to t3://admin.mycompany.com:7001
Connection to domain runtime mbean server established
Seeding credential :SSOAccessKey
Seeding credential :SSOGlobalPP
Seeding credential :SSOKeystoreKey
********* Activating OAM Notifications *********
Completed loading user inputs for - MDS DB Config
Jun 6, 2013 1:46:05 PM oracle.mds
NOTIFICATION: PManager instance is created without multitenancy support as JVM flag "oracle.multitenant.enabled" is not set to enable multitenancy support.
Jun 6, 2013 1:46:06 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml (No such file or directory)
Jun 6, 2013 1:46:06 PM oracle.mds
NOTIFICATION: Auditing is disabled for component MDS.
Initialized MDS resources
Jun 6, 2013 1:46:06 PM oracle.mds
NOTIFICATION: PManager instance is created without multitenancy support as JVM flag "oracle.multitenant.enabled" is not set to enable multitenancy support.
Jun 6, 2013 1:46:06 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml (No such file or directory)
Jun 6, 2013 1:46:06 PM oracle.mds
NOTIFICATION: Auditing is disabled for component MDS.
Jun 6, 2013 1:46:07 PM oracle.mds
NOTIFICATION: transfer operation started.
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: transfer is completed. Total number of documents successfully processed : 1, total number of documents failed : 0.
Upload to DB completed
Releasing all resources
Notifications activated.
********* Seeding OAM Config in OIM *********
Completed loading user inputs for - OAM Access Config
Validated input values
Initialized MDS resources
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: PManager instance is created without multitenancy support as JVM flag "oracle.multitenant.enabled" is not set to enable multitenancy support.
Jun 6, 2013 1:46:08 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml (No such file or directory)
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: Auditing is disabled for component MDS.
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: transfer operation started.
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: transfer is completed. Total number of documents successfully processed : 1, total number of documents failed : 0.
Download from DB completed
Releasing all resources
Updated /oracle/product/fmw/Oracle_IAM/server/oamMetadata/db/oim-config.xml
Initialized MDS resources
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: PManager instance is created without multitenancy support as JVM flag "oracle.multitenant.enabled" is not set to enable multitenancy support.
Jun 6, 2013 1:46:08 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml (No such file or directory)
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: Auditing is disabled for component MDS.
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: transfer operation started.
Jun 6, 2013 1:46:09 PM oracle.mds
NOTIFICATION: transfer is completed. Total number of documents successfully processed : 1, total number of documents failed : 0.
Upload to DB completed
Releasing all resources
OAM configuration seeded. Please restart oim server.
********* Configuring Authenticators in OIM WLS *********
Completed loading user inputs for - LDAP connection info
Connecting to t3://admin.mycompany.com:7001
Connection to domain runtime mbean server established
Starting edit session
Edit session started
Connected to security realm.
Validating provider configuration
Validated desired authentication providers
OAM Asserter already exists in the security realm
OAMIDAsserter is already configured to support 11g webgate
OIM Signature Authenticator already exists in the security realm
A type of LDAP Authenticator already exists in the security realm. Please create authenticator manually if different LDAP provider is required.
Control flags for authenticators set sucessfully
Reordering of authenticators done sucessfully
Saving the transaction
Transaction saved
Activating the changes
Changes Activated. Edit session ended.
Connection closed sucessfully
The tool has completed its operation. Details have been logged to automation.logi found this task :
JDev 11.1.1.1.0 + ADF+ BC4J application on Tomcat6 -
Hi Community
I have an issue on a live SP2013 farm that is really causing me grief. Although I ( Farm Admin) and my other users can follow items which are subsequently confirmed in our respective News Feeds -
none of my users are are actually getting emails notifications .
Alerts ( did) work fine.
I have written some PS to vew and set the SPS-EmailOptin for each user
$up[$upManagerAttribute].Value = $managerNTName
# check if the email check boxes are unchecked '1' then if so check all
write-host -fore white "User Profile for user"$NTName "Now has email opt in currently set to" $up[$upEmailOptin].Value
if ($up[$upEmailOptin].Value -gt 0)
$up[$upEmailOptin].Value = 0
write-host -fore white "User Profile for user"$NTName "Now has email opt in all checked."
Very few are unchecked. $up["SPS-PrivacyActivity"].Value = 4095 is set for all users as in
the the privacy settings on the newsfeed are all checked
For my currrent client I set up a development intranet which had the seperate web apps for the main portal and mysites. Test users were able to follow documents, sites without any problems. Before go live I was asked to accomodate a requirement
where there is only one web application (don't ask!) effectivley http://myintranet
so mysites sits under http://myintranet/mysites . I made the appropriate changes to my AutoSPInstaller scritpt and al appearedd l good : services , Service appplications, mysites are all started. I am using
the two app pool accounts one for the portal and one for mysites.
A quick look at the the releated threads on this forum indicated permssions could be DB permissions related tho I am not seeing anything in ULS to strongly point to this
$webApp = Get-SPWebApplication http://myintranet
$webApp.GrantAccessToProcessIdentity("mydomain\SP_ProfilesAppPool")
- checked and SPAcess Data is given to the mysites app pool accout to the portal web app .
I am seeing some odd errors in ULS
Ignoring the space ' critical' warning which I have flagged up to Ops and I doubt is my real problem. The errors I see that are related are :
System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002), StackTrace:
at Microsoft.SharePoint.SPWeb.GetList(String strUrl)
at Microsoft.Office.Server.Microfeed.MBUtilities.GetPublishedFeedListPrivate(SPWeb web, String relativeUrl)
at Microsoft.Office.Server.UserProfiles.FollowedItem.CreateFollowedSite(SPWeb site, FollowedItemData data)
at Microsoft.Office.Server.UserProfiles.FollowedItem.Create(SPSite site, SPWeb existingWeb, Uri url, FollowedItemData data)
at Microsoft.Office.Server.UserProfiles.FollowedItem.RecreateByReferencedItem(SPSite site, SPWeb web)
at Microsoft.Office.Server.UserProfiles.FollowedContent.RefreshFollowedItem(FollowedItem item, SPS2SAppExecutionPolicy policy)
at Microsoft.Office.Server.UserProfiles.FollowedContent.Follow(Uri url, FollowedItemData data)
at Microsoft.Office.Server.UserProfiles.FollowedContentServerStub.InvokeMethod(Object target, String methodName, XmlNodeList xmlargs, ProxyContext proxyContext, Boolean& isVoid)
at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, XmlNodeList args, ProxyContext proxyContext, Boolean& isVoid)
at Microsoft.SharePoint.Client.ClientMethodsProcessor.InvokeMethod(Object obj, String methodName, XmlNodeList xmlargs, Boolean& isVoid)
at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessMethod(XmlElement xe)
and
5b93b0ef-b1ff-437d-b674-5285be9b9395 Stack trace:
at Microsoft.SharePoint.SPSite.InitUserToken(SPRequest request)
at Microsoft.SharePoint.SPSite.SPSiteConstructor(SPFarm farm, Guid applicationId, Guid contentDatabaseId, Guid siteId, Guid siteSubscriptionId, SPUrlZone zone, Uri requestUri, String serverRelativeUrl, Boolean hostHeaderIsSiteName, SPUserToken userToken, Boolean appWebRequest, String appHostHeaderRedirectDomain, String appSiteDomainPrefix, String subscriptionName, String appSiteDomainId, Uri primaryUri)
at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, Boolean swapSchemeForPathBasedSites, SPUserToken userToken)
at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken)
at Microsoft.SharePoint.SPSite..ctor(String requestUrl)
at Microsoft.Office.Server.UserProfiles.SPS2SAppUtility.TryOpenWeb(Uri url, SPSite& site, SPWeb& web, Boolean& inSPContext)
at Microsoft.Office.Server.UserProfiles.SPS2SAppExecutionContext.InitializeForSite()
at Microsoft.Office.Server.UserProfiles.SPS2SAppExecutionContext.EnsureInitialized()
Also, I am testing with my account which does have all the mysites newsfeed options checked in the CA -> UPA ->"Manage User Profile"
Anybody seen this whilist I follow the where those exceptions take me.
Freelance consultantHi,
Thank you for your question. I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience. Thank you for your understanding and support.
Thanks,
Linda Li
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Linda Li
TechNet Community Support -
I am developing a WSS based WCM site for a customer which has a bilingual interface. Now everything is wokring fine in the development environment. Today I backed-up the Content Database and took the related control file (.ascx & .ascx.cs) to deploy it to the cusomter's test machine. I dint face any problems with the deployment, and after deleted and added the Content DB from Central Administration, I was able to access the English part of the website along with my changes without any problem.
But when I tried accessing the Arbic part of the website, Its giving me the following error,
تعذر العثور على تطبيق ويب الموجود على http://172.20.5.163/ar/. تأكد من كتابتك لمحدد موقع المعلومات (URL) بشكل صحيح. إذا كان URL يؤدي إلى محتوى موجود، يجب على مسؤول النظام إضافة تعيين URL للتطبيق المراد خاص بالطلب الجديد.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: تعذر العثور على تطبيق ويب الموجود على http://172.20.5.163/ar/. تأكد من كتابتك لمحدد موقع المعلومات (URL) بشكل صحيح. إذا كان URL يؤدي إلى محتوى موجود، يجب على مسؤول النظام إضافة تعيين URL للتطبيق المراد خاص بالطلب الجديد.
Roughly translated, it means "Could not find the application on the Web http://172.20.5.163/ar/. Make sure you create your site specific information (URL) correctly. If the URL to the content of lead present, the system administrator to add URL for the application of the appointment of a special request to be new.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not find the application on the Web http://172.20.5.163/ar/. Make sure you create your site specific information (URL) correctly. If the URL to the content of lead present, the system administrator to add URL for the application of the appointment of a special request to be new."
Can you please tell me what is the cause of the problem and how to rectify it? Also do I need to
Regards,
SoniSSPIt is searching for the page, but that page is not available. Did u install the current language pack?
Maybe you are looking for
-
Upgrading from IPhone 3 to IPhone 4
I am trying to upgrade from IPhone 3 to IPhone 4, by restoring from iTunes. I've followed the steps on Apple site (check for upgrades, back-up old phone, go through steps on new iphone, select restore from back-up, choose back up to restore from).
-
Can any one assists me in uploading a folder in the JSP. I am working on the struts frame work. This is required because ,some time when a client downloads a html page, it may download with it some images also which are stored in another folder. so w
-
Hi everyone! My Airport Express has an issue... the last time I had a set of RCA cables going from the phono jack to my stereo, the end of the phono plug broke off inside of the jack on the airport express and now I can't use my airtunes because the
-
How to auto adjust images in imageJ?
Hello, I would like to know How can I adjust the contrast and brightness in imageJ using a Java application? imageJ has ContrastAdjuster.java and inside it an autoAdjust function which is not public, so I cannot call it? any one has experience with t
-
For those of you who have worked with me before - I'm trying, I really am. I'm building a html email newsletter from scratch for the first time and running into a few issues. I put this on a website so that you can access the code. http://www.merely