deployment,path,wsdl,mule , Mule - Exported project - Error java.io.FileNotFoundException


Mule - Exported project - Error java.io.FileNotFoundException

Question:

Tag: deployment,path,wsdl,mule

I have exported my mule project which contains a WSDL file in src.main.resources/wsdl-request.

The type of export is AnyPoint Studio Project to AnyPoint Deployable Archive.

The problem is that when I execute the deployable archive in the server it return this error:

Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing 'file:/C:/Users/usrAdmin/AnypointStudio/workspace/mule-project-test/src/main/resources/wsdl-test/Request.wsdl'. (The system cannot find the path specified)
    at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
    at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:249)
    at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:192)
    at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:98)
    ... 54 more
Caused by: java.io.FileNotFoundException: C:\Users\usrAdmin\AnypointStudio\workspace\mule-project-test\src\main\resources\wsdl-test\Request.wsdl (The system cannot find the path specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:146)
    at java.io.FileInputStream.<init>(FileInputStream.java:101)
    at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
    at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
    at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    ... 60 more

The path that the error said is where I had the project before the export.

How can I add the file into the project to avoid that error?. I think that I need to use classpath or something like that but I don't know hot it works.

Added:

This is my actual wsdlLocation:

wsdlLocation = "file:/C:/Users/tstSrvr/AnypointStudio/workspace/test-project/src/main/resources/wsdl-test/Request.wsdl"

Answer:

It seems you have hardcoded this path C:\Users\usrAdmin\AnypointStudio\workspace\mule-project-test\src\main\resources\wsdl-test\Request.wsdl in your configuration.

Use wsdl-test/Request.wsdl instead so that way the file can be found both in Studio and when the application is packaged, as it will be loaded from the classpath (as a resource) instead of being loaded as file (via an absolute path).


Related:


set css image from current folder using jquery script page


javascript,jquery,css,asp.net,path
I have an external Javascript page located under ../Scripts/CBox/ folder from parent. There is an image located in the same folder. I want to set background-image for a control using Jquery from there. When I use this code, It sets the background-image path as localhost:7905/ddl_arrow.png where localhost:7905 is my asp.net...

User path with username


ruby-on-rails,ruby,path,user,friendly-id
To show User's profile I used their id. In controller: @user = User.find(params[:id]) In routes: get ':id' => 'users#show' But now I try new way with username: get ':username' => 'users#show' #route @user = User.find_by(username: params[:username]) #controller And when I go to user's profile with /username I see error: undefined...

Center Aligning an SVG element?


svg,path
I don't know how to really explain this but how can I center align this logo http://jsfiddle.net/fa7w3h99/3/ I have tried the following but it didnt seem to work as intended. .center-logo { display: block; margin: auto; } ...

GetFullPath no output ?! VB.NET


vb.net,visual-studio-2010,path
Good evening to all of you! I have a problem that I can't solve with the method GetFullPath in vb.net. What I want to do : I would like to get the full path of a text file (test.txt) which is located in the same folder as the app.exe, the...

How to automate deployment of source & compiled code (excluding git history) to third-party developers?


git,deployment,continuous-integration,bitbucket
I'm going to setup some tools/techiques/environments so that when I need to provide the source code for third-party developers, I do it without git history with some sensitive code already compiled and stripped. So I want to automate this process, so that I always provide the latest version of it...

How to Combine Two paths?


c#,xml,path,filenames
I have an XmlTextReader to read series of XML files to load some information in to my program. However, in some XML files I have the file name of an image and I want to load that image. But the problem is the XML file does not have the full...

Cannot find file path


c#,path,windows-ce,c#-2.0,relative-path
I'm using Windows CE 6.0. I'm developping an application that needs to read a XML file (bar.xml) that is placed right next to my executable (foo.exe). I try to access it with the following method, called right after my Main() : private void ParseXmlFile(string _sFileName) { XmlDocument l_doc = new...

Python/Flask deployment without pip


python,deployment,flask,web-deployment
I've usually deployed my Flask applications with a fairly simple fabric script that put the source on the target machine, used pip to install any dependencies, then fired up uwsgi with all the necessary settings and off it went. However, I have a new issue that some new security settings...

JOptionPane Message with File Path


java,swing,file,path,joptionpane
Is there a way to put a filepath into a JOptionPane? E.g. I have a folder in my project directory and would like to get the path to that folder and show it into the message....

Animate raphael objects


javascript,html,path,raphael
I'm quite new to raphael.js and I'm trying to animate raphael elements. For example, I've drawn an arrow using paper.path(). var arrow = paper.path("M10,10L100,100"); arrow.attr({ "stroke-width": 5, "stroke-dasharray": "-.", "arrow-end": "classic-wide-long" }); How do I make the arrow's color seem like flashing when it's drawn?...

set the OpenSSL_HOME variable


amazon-web-services,https,path,openssl,command-prompt
I am trying to configuring HTTPS based on this tutorial: Configuring HTTPS for your Elastic Beanstalk Environment I am stuck at the following section: To set the OpenSSL_HOME variable Enter the path to the OpenSSL installation: c:\ set OpenSSL_HOME=path_to_your_OpenSSL_installation My openSSL is installed in c:\OpenSSL, so would I write set...

How to implement Flask Application Dispatching by Path with WSGI?


python,path,flask,wsgi,dispatch
I would like to use a single domain as a Staging Environment for multiple flask applications that will eventually run on their own domains. Something like: example_staging.com/app1 example_staging.com/app2 example_staging.com/app3 where: example_staging.com/app1 acts same as app1.example_staging.com example_staging.com/app2 acts same as app2.example_staging.com example_staging.com/app3 acts same as app3.example_staging.com or: example_staging.com/app1 acts same as...

python to guess specific path?


python,path
I am working on a script to get information from the Skype database. I got the following code: con = sqlite3.connect('C:\\Users\\joey\\AppData\\Roaming\\Skype\\jre93\\main.db') But the skype ID (jre93) and the USER (joey) of the computer are always different. Is there a way python can recognize those path automatic with out user input?...

Unable to deploy through capistrano after ubuntu upgrade


ruby-on-rails,ubuntu,ruby-on-rails-4,deployment,capistrano
I recently upgraded my development machine to Ubuntu 15.04 (was 14.04LTS) and ran into a problem when trying to deploy changes to my server. The interesting bit is, that I can ssh into my server without any issues (hence, the key file is setup correct), but when I try to...

What underlying difference makes Node Instances appear different?


deployment,uml,modeling,enterprise-architect
I have two similar (if not identical) node instances that are appearing differently in a deployment diagram (and anywhere else that I use them). I may have done some odd things in the past while beating EA into submission. But, now ... by pulling every lever I can imagine, I...

Azure deployment from source without TFS?


asp.net-mvc,azure,deployment
Does anyone knows if the deployment from source feature of Azure is intended to work with .NET projects ? I mean, if I put source code in the local git repository of Azure and then trigger a deploy, is my source code going to be compiled and then deployed or...

Deployment of Python API


django,api,nginx,deployment,uwsgi
I'm trying to understand the simplest way to deploy a Django application in production. Many recommend nginx or Apache along with uwsgi or gunicorn. I think that is more than my situation requires, and I would like know if my thinking is correct. This application is nothing more than an...

Recursively expand and search pattern of specific subdirectories


python,path,filepath,subdirectories,wildcard-expansion
I'm looking for an option to search specific subdirectories in python. For instance a directory structure like this: some_files/ common/ 2009/ 2010/ 2011/ ... I only want to search for in the subdirectories that start with a 2, so that it must be something like 'some_files/2*'. I think it must...

Cannot set PHP include_path


php,ubuntu,path,include-path
I have uploaded all my files in var/www/html and in one of my php files I have this line : require_once('libraries/stripe/init.php'); the structure of my folders are list this: www -html/ -libraries -> Stripe -> init.php -register.php I keep getting this error message: Warning: require_once(libraries/Stripe/init.php): failed to open stream: No...

Capistrano Rails deploy with new migration files


ruby-on-rails,ruby-on-rails-4,deployment,capistrano
I want to deploy from a new branch I have created. On this branch, the db/migrate content has changed, I removed some migration files and regenerated a new one. The problem is, when I cap staging deploy from this branch, it fails when running migrations PG::DuplicateTable: ERROR: relation "partners" already...

Laravel 5 on shared hosting getting internal server error


deployment,ftp,laravel-5,shared-hosting
I am trying to get my Laravel 5 project running on my shared hosting through FTP. I have uploaded all my project files from my local XAMP-folder to the server root directory and put the files in the 'public' folder in the public_html folder. When I go to mydomain.com I...

Using Express' route paths to match `/` and `/index`


javascript,regex,node.js,express,path
I'm using Express and I want to match / and /index to the same route. But if I write app.route('/(index)?') Node throws this error: c:\myproject\node_modules\express\node_modules\path-to-regexp\index.js:69 return new RegExp(path, flags); ^ SyntaxError: Invalid regular expression: /^\/(?(?:([^\/]+?)))?e\/?$/: Invalid group at new RegExp (native) at pathtoRegexp (c:\myproject\node_modules\express\node_modules\path-to-regexp\index.js:69:10) at new Layer (c:\myproject\node_modules\express\lib\router\layer.js:32:17) at Function.proto.route...

Change the “about this” window on mac app


java,osx,deployment
On Macs, there's a default menu at the top for basic application handling functions: I've made an application using Java for my Grade 10 final project, (and I'm quite convinced that it's better than Microsoft Paint) and I decided to package it. Using Eclipse, I exported it as a Mac...

Using Ruby Pathname to access relative directory


ruby,path,pathname
Given I have a relative path pointing to a directory how can I use it with Ruby's Pathname or File library to get the directory itself? p = Pathname.new('dir/') p.dirname => . p.directory? => false I have tried './dir/', 'dir/', 'dir'. What I want is p.dirname to return 'dir'. I...

Python how to join cross platform paths


python,path,os.path
If I have a json directory structure that lists paths in mac format ()i.e. "/0000_test/video.mp4" and I want to join it with c:\\ the mac format, is there a way to do this? So on windows the path would be returned as c:\\0000_test\video.mp4" I have tried os.path.join to no avail...

IllegalStateException: Iterator already obtained [duplicate]


java,file,loops,path
This question already has an answer here: java.lang.IllegalStateException: Iterator already obtained 1 answer so I wrote a little Java program to test a little stack language I made vie various test file, but for some reason it won't work. Here is the code: import org.apache.commons.io.FilenameUtils; import java.io.IOException; import java.nio.file.*;...

Spring boot war file deploy on Tomcat


tomcat,deployment,spring-boot,war
I use Spring Boot 1.2.4.RELEASE with gs-rest-service source file. I got: 127.0.0.1 - - [18/Jun/2015:09:59:25 +0300] "GET /gs-rest-service-0.1.0/ HTTP/1.1" 404 1021 There are no other exceptions in Tomcat logs. I have read related questions, but my test doesn't run. Spring Boot War deployed to Tomcat I have read howto-create-a-deployable-war and...

Run tomcat application from any subdomain, subfolder or ROOT


java,url,tomcat,path
I'm new to java web development so bear with me. I have created a application which runs on localhost:8080. The application uses a simpel MVC setup (controller servlet forwards request to jsp page). If I deploy my application to a remote server in a subfolder (www.myserver.com/myapplication) the application does not...

Android: When I save a file in the phone's internal memory will store Where's that file? How can I access it path?


android,android-activity,path,android-sdcard
we have 2 memories for store files: 1- phone memory 2- sd card memory now : I can access to files and roots in sdcard memory with Environment.getExternalStorageDirectory ... and return : /storage/sdcard0 this is ok. but : When i store files and media (music,pic, ...) in phone memory, how...

How to write a Scala parser for paths?


scala,parsing,path
I am a beginner in scala writing a scala parser in which I need to parse a path like this (suppose x is an integer): /hfds://xxx.xxx.xx.xxx:xxxx/path1/path2/filename1.jpg I tried the following not sure if I am on the right track: def pathIdent: Parser[String] = ("/hdfs""+"""(\d+~\.\d*)"""+ ~("""(u[a-zA-Z0-9])*+"""+"\.[\\'"jpg]"").r I know it has errors!...

Using URL vs Filepath to include css?


php,css,url,path
Which one is better ? Using URL to include css ? <link rel="stylesheet" href="<?php echo BASE_URL; ?>/css/style.css"> Or, using filesystem ? <link rel="stylesheet" href="<?php echo BASE_PATH; ?>/css/style.css"> BASE_URL containes the base url of the app, and BASE_PATH contains the file path to the base of the app....

running node.js sails app on openshift


node.js,deployment,sails.js,openshift
I'm trying to deploy my node.js sails app on openshift. I followed procedure outlined in https://gist.github.com/mdunisch/4a56bdf972c2f708ccc6 but still doesn't work. also try this: Node.js app on openshift no matter what i'm getting "Service Temporarily Unavailable" The server is temporarily unable to service your request due to maintenance downtime or capacity...

can't get to bash_profile file to edit the path on mac


path,edit,.bash-profile
I can't access my .bash_profile file to edit my environment path. I was editing it in nano, saved and exited, making it so I only have one file path that is useless and can no longer do anything such as sudo or ls. I've tried nano, vi, open, grep search,...

Rake not exporting PATH


ruby,path,environment-variables,rake
I would like a Rake task to export the path to my command line tool to $PATH, and so I have the following line in my Rakefile: task :make_path do sh 'export PATH=$HOME/Desktop/folder:$PATH' end When putting that line export PATH=$HOME/Desktop/folder:$PATH into the terminal directly, the path is prepended to my...

Deploying to Android results in file not found after adding QtQuick Controls


android,qt,deployment,qml,qt5.4
After importing QtQuick.Controls 1.2 and using StackedWidget component, I now get an error when deploying to Android as seen below. The missing file AnimationDrawable.qml is not missing from the Android build directory so I do not understand why it is not packaged with the APK. It deploys fine when I...

Efficient way of organizaing mail sending from Rails app


ruby-on-rails-4,deployment,background-process,mailer
I have an Rails 4 application with ruby 2.1.2 that runs on a VPS with 512 mb of RAM and want to know what are the ways of efficiently managing email notification with background job with the least possible additional background processes ( like Redis and Sidekiq, each of them...

Rails less url path change


ruby-on-rails,ruby,url,path,less
Developing a Rails application with the less-rails gem I found something unusual : // app/assets/common/css/desktop/typo.less @font-face{ font-family:'SomeFont'; src:url("fonts/db92e416-da16-4ae2-a4c9-378dc24b7952.eot?#iefix"); // ... } The requested font is app/assets/common/css/fonts/db92e416-da16-4ae2-a4c9-378dc24b7952.eot This font is compiled with less and the results is : @font-face { font-family: 'SomeFont'; src: url("desktop/fonts/db92e416-da16-4ae2-a4c9-378dc24b7952.eot?#iefix"); //... } Do you know why is...

Finding deployment data to a SQL Database


sql,sql-server,deployment
In an effort to maintain versions of the databases we have in our CMDB, I have to obtain the versions of some databases deployed to our servers by a third party company. Is there a system table, view or procedure that allows me to view information regarding recent deployments (code...

Fetch a saved image and display


ios,image,path
I am developing an App in which I have stored images through imagePicker. now i want to display same images in my collectionView. I got response as a path path=assets/image/155/155_557b1259b8a51.jpg when i add http://xyz.com.assets/image/155/155_557b1259b8a51.jpg then it shows error. How can i get the images through this path.Please Help me out....

Running custom program located in /bin


linux,unix,path,bin
I have created a folder ~/bin. This is my own bin to store my own custom programs. As a test, I wrote a simple hello world program. I export using PATH=~/bin:$PATH so that Linux looks in that directory. If I save hello (my test program name) I can successfully run...

A way to include paths dynamically in php?


php,path
I have structured a server with this file and folders: index.php |lib -> lib.php |framework -> fw.php |folderA -> index2.php In lib.php there is functionA() with a require_once inside that calls "fw.php" correctly from index2.php: functionA(){ require_once "../framework/fw.php"; //other stuff... } if it's called from index.php, the path must be...

How to correctly add ENV[“SECRET_KEY”BASE"] in rails


ruby-on-rails-4,deployment
I am having a difficult time setting up Rails 4.2 in production on a VM running on passenger and nginx, and not using RVM or anything similar. I got Incomplete response received from application and looking in the nginx error log it said something about missing secret_key_base and secret_key although...

Issues with relative paths in PHP includes


php,css,path,brokenimage
Before going on, I'd just like to say that I've tried pretty much everything, and I read a lot of questions here at Stackoverflow, but none of the solutions worked. So here is the deal, I have a file ("empresaConf.php") that contains this code: <?php include 'navigator2.php'; ?> <div class="contTudo">...

Give absolute url adress


html,path
i'm trying to understand absolute and relative Url adresses; however, when i attempted an exercise, i couldn't solve it. Here is the exercise: Given the following URL address http://www.unsite.org/a/b/index.html , the document index.html contains 3 relatives URL addresses: <img src="../logo.png" alt="Logo de l’entreprise"/> //Line 1 <img src="/images/logo.png" alt="Logo de l’entreprise"/>...

How Path.GetDirectoryName Works?


c#,path,openfiledialog
When i use OpenFileDialog to Open file, of course i need to get the file directory and its name to load the file.(to load xml, to access the file i need full path.) opd is OpenFileDialog if (opd.ShowDialog() == true) { var names = opd.FileNames; foreach (string name in names)...

RegEx for selecting the first element of a path


regex,path
My question is pretty simple, I would like to write a RegEx that does this: / -> / /foo -> /foo /foo/bar -> /foo /foo/bar/baz -> /foo I've tried this: replace(/(\/[^\/]*)\/[^\/]*/, '$1') But it returns the path, unmodified. Does anyone know how to do?...

Find the path of every running process in Python


python,windows,process,path,psutil
I want to find the path of every running process in windows. I tried to use the psutil module but it doesn't show me all the paths. It can't find many processes' paths because of the error: "psutil.AccessDenied" c = wmi.WMI() for process in c.Win32_Process(): p = psutil.Process(int(process.ProcessId)) try: path...

Deployment Project - custom action update


c#,visual-studio-2010,deployment,setup-deployment
Situation: I have a Deployment Project in visual studio 2010 setup to install a console application. This console application has some custom actions written into it for the Deployment project. EDIT: To clarify, these custom actions are using the System.Configuration.Install.Installer class in .NET. I use the Committed, BeforeUninstall, AfterUninstall events...

How do I create a deploy git branch for my Yeoman project?


git,deployment,gruntjs,yeoman,branching-and-merging
I created a new project using Yeoman. Using Grunt I've created the dist directory. My whole project is on Github, https://github.com/d3a1i0/mykungfuisstrong.com, and I've created a prod branch. My question is how do I get my prod branch to have only the contents of dist instead of having the dist directory...

Slow wpf startup due to publish policy… maybe


.net,wpf,deployment,installer,publisher-policy
I have deployed my .NET assemblies with x-copy for years, without any issue. From last week, we have a small team that wich has the task of build a setup that includes .NET assemblies and exe and c++ legacy exe and dll (more tha 200 files). After the first installation,...