Maven 3.0 packagingExcludes and order of execution [closed] - maven-3

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
For all of you maveneers out there, I thought I'd pass along an important order-of-execution note about packagingExcludes in maven 3 for packaging .ear files. In your pom.xml, to assemble a .ear file, you'll have something similar to:
<build>
<plugins>
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<version>2.8</version>
<configuration>
<packagingExcludes>
db2jcc**.jar,
db2jcc_license_cu**,
osgi-3.6.1.jar,
...
</build>
It is important that the <packagingExcludes> tag be the first element after the <configuration> tag. Otherwise, maven will silently ignore it. This is for all of you who have been wondering why servlet-3.0 is still showing up in your .ear file.

Related

TFS the specified configuration database (TFS_configuration) was created using language (2057) that is currently not installed [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
Trying to restore TFS 2018 databases on new server, same configuration Windows Server 2016, SQL 2017 Ent.
I have restored all the databases, when I run TFS Admin Console I this error.
The specified configuration database (TFS_configuration) was created using language (2057) that is currently not installed.
SQL Server language: English (United States)
Default language on DB is: English
Log file says.......
[Info #18:55:14.401] +-+-+-+-+-| Running VerifyLanguageInstalled: Verifying that the selected language is installed |+-+-+-+-+-
[Info #18:55:14.402]
[Info #18:55:14.402] +-+-+-+-+-| Verifying that the selected language is installed |+-+-+-+-+-
[Info #18:55:14.402] Starting Node: VLANGINSTALLED
[Info #18:55:14.402] NodePath : VINPUTS/Progress/Conditional/VSQLINSTANCENAME/VSQLNOTLOCALDB/VSQLISRUNNING/VSQLCONNECT/VDBEXISTS/Conditional/VLANGINSTALLED
[Info #18:55:14.422] Node returned: Error
[Error #18:55:14.423] The specified configuration database (Tfs_Configuration) was created using a language (2057) that is currently not installed.
[Info #18:55:14.423] Completed VerifyLanguageInstalled: Error
enter image description here
No clue on how to resolve this issue.
Thanks to AMB for sharing and confirming.
For error like The specified configuration database (Tfs_Configuration) was created using a language (xxxx) that is currently not installed, we should check the Tfs_Configuration database itself.
We can use SQL Query like below to find InstalledUICulture item:
SELECT TOP (1000) [PartitionId]
,[ParentPath]
,[ChildItem]
,[RegValue]
FROM [Tfs_Configuration].[dbo].[tbl_RegistryItems] where ParentPath = '#\Service\Integration\Settings\'
Edit the RegValue and set it the language ID of target Database's language and this issue would go away.

Map AppService URL to Application Settings value [duplicate]

This question already has answers here:
Programmatically retrieve the site URL from inside an Azure website
(2 answers)
Closed 2 years ago.
I need the URL of a site hosted in Azure in the code behind: in Startup.cs for external login reply URL. I would like to map somehow the AppService URL settings (see first image below) to Application Settings (second image below).
Is it possible?
The URL I need:
Mapped to AppSettings, in code:
You don't need to add the app setting, cause an environment variable already exists. Check the Website Environment Variables , there are WEBSITE_SITE_NAME and WEBSITE_HOSTNAME(example:site.azurewebsites.net), so you could just use the way to get environment variable to get the value in the code.
You could go to kudu site check the environment variable.
Suppose this is what you want, hope this could help you, if you still have other problem please feel free to let me know.

Kubernetes deployment via Web UI - 'Failed to pull image' error [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I am creating a deployment using "CREATE AN APP" option from the Kubernetes UI page on windows - with two pods and external service. The image being used is available. However, I am getting an error saying:
**Search Line limits were exceeded, some search paths have been omitted, the
applied search line is: my-namespace.svc.cluster.local svc.cluster.local cluster.local <ORG DOMAIN NAMES>**
**Failed to pull image "dockerUserName/python-app-image": rpc error: code = Unknown desc = Error response from daemon: manifest for dockerUserName/python-app-image:latest not found**
I am new to K8S and have no idea like where I am going wrong. Any help would be much appreciated.
That error is thrown by the Docker daemon when the image cannot be found. Verify that the image and tag you are trying actually exist by running docker pull dockerUserName/python-app-image:latest.
Alternatively, run docker images to get a list of images you have already pulled and check the TAG column.
Keep in mind that the latest tag for Docker is just a naming convention. You need to create it and keep it updated yourself, it does not automatically give you the last pushed image.

Cygwin ls command not found [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
This is a question that I self-answered on my tech blog where I keep the tech-tips which I need to give to myself from time to time, so I decided to move it over here instead. The original blog post is here: http://thehacklist.blogspot.com/2009/04/cygwin-ls-command-not-found.html
If you are a linux enthusiast and really miss those greps and sed/awks on the windows box, you've probably installed cygwin. You tried running it either by double-clicking the cygwin icon on your desktop or the cygwin.bat file in your C:\cygwin directory and got the bash-3.X$ prompt. However, although the pwd or cd commands work, if you try ls, it says:ls: command not found.
Right click on "My Computer" -> Properties -> Advanced ->
Environment Variables
Add a new environment variable, called CYGWIN_HOME and set its value to C:\cygwin
Edit the PATH environment variable and add %CYGWIN_HOME%\bin to it (usually separated by a ';').
Just click okay, exit any command prompts or bash shells (over cygwin) you may have open, and open it again - it'll work!
Assumption - this assumes that you have installed cygwin at C:\cygwin. If you've kept it someplace else, please modify the above accordingly.
Check the cygwin.bat file, it should have something like:
set PATH=C:\cygwin\bin;C:\cygwin;%PATH%
...etc
bash --login -i
(you don't really need c:\cygwin in there, but I have some additional scripts/bat files there; the key thing is c:\cygwin\bin)

Running Fitnesse in Debug mode [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I used to use Fitnesse daily years ago, but forgot how to run tests in debug mode (or have stack trace information be output) - does anyone know?
I recall being able to configure it either as a flag when running/starting up fitnesse.jar, or as a URL parameter (e.g. http://localhost:8090/FitLibraryWeb.MyTest?test&debug=true)
To debug fixtures in .Net I normally add Debugger.Break() inside my C# fixture code
Although my prefered development solution has already been pointed out on Rustin's DebugBreak() suggestion, and alternate solution is to invoke RunnerW.exe, which requires adding the following line to your target Fitnesse test page
[[Press me to start in remote debug mode][?responder=test&remote_debug=true]]
Please, bear in mind that I am assuming your test page already defines REMOTE_DEBUG_RUNNER pointing to RunnerW.exe, as stated in Fitnesse guide's Customizing Test Execution section
For the sake of simplicity, I will present a sample fit test header.
So, here is how to Remote Debug using Visual Studio:
Make sure you fitnesse test page starts with the following lines
!define TEST_RUNNER {FitSharp\Runner.exe}
!define REMOTE_DEBUG_RUNNER {FitSharp\RunnerW.exe}
[[Press me to start in remote debug mode][?responder=test&remote_debug=true]]
The rest of your test specification goes here
In Visual Studio, set target code breakpoint
On fit test page, click on Press me to start in remote debug mode, defined above. This starts the RunnerW.exe process (winform app called Fitsharp) which will wait for 30 seconds (I am not sure).
In Visual Studio > Debug menu > Attach to process, locate RunnerW.exe and press Attach button.
On Fitsharp window (RunnerW.exe process), click GO button and you are on your way.
As pratical solution, I use the following strategy:
I create static page called SetupEngine and add the 3 lines stated on previous step 1.
On the top of every test page, I just put the following header, so I don't have to repeat those 3 lines.
!include .SetupEngine
Note that . (dot) on .SetupEngine (which is a path) refers to your Fitnesse root page. You may have to adjust it.
I had this ideia when I was referring to Fitnesse.UserGuide's remote debug section
Hope it helps
Add the following line just before the your test target location
!|debug|
For further details, refer to Michael Sorens' excelent article, the most comprehensive article on Fitnesse debug techniques.
Your thinking of using RunnerW.exe as opposed to the Runner.exe.
If you change your test runner to be RunnerW a pop-up window will appear with a 'go' button on it, and will not start the fitnesse test until you hit it.
Before hitting go you can attach to any process (via 'Attach To Process' in the debug menu if your using VS) and the execution will pause at the break points set.
Note: You must have the same build being used by FitNesse as the code you are debugging.
You can also attach to a remote process, using the Remote Debugger.
Also, if you attach the the RunnerW.exe process, you can debug the fixtures themselves.
I haven't had to do it in a while, but the current documentation that comes with FitNesse indicates that you are close. You should be using remote_debug instead of debug.
The best thing is to start with the documentation that comes with your copy of FitNesse, as it matches what you are running. If you are running on port 8080, then the following link should work: http://localhost:8080/FitNesse.UserGuide.DebugingFixtureCode.
Assuming you are using Java, these instructions should help. If you are using a different language I am not sure I can help.

Resources