Receiving error with WebLogic:
"Integration Error: Failed to locate line for modification in script, <pathtostartscript>/startWebLogic.sh. Script might have been altered."
Using a non-default startup script. JProbe is not able to locate the appropriate line in the startup script for modification. Using a custom WebLogic startup script that is significantly different from what JProbe's Integration is expecting.
Please follow the below steps:
Section A: Creating a .jpl file (Using Profiler as an example). Note: you can skip this section by using one of the attached generic JPL files.
1. Open Profiler and select 'Session' > 'New Settings' from JProbe menu to open up JProbe LaunchPad window
2. Under 'Program Settings', select 'Standalone Application' and provide 'weblogic.Server' as the Main Class name
3. Click on 'More' to open 'Application Main Class and Settings' window
4. Remove the %CLASSPATH% parameter from the Classpath field
5. Select the Java Virtual Machine that you wish to use and select 'OK' to close this window. For example: 'C:\bea\jdk131\bin\java.exe'
6. Under 'Data Collection Settings', enter in a filter that applies to your application code [com.myPackage.*.*()]
7. Under 'Runtime Settings' select 'View Runtime Data' select 'Locally' and provide the 'localhost' in the textfield
8. Under 'Snapshot Directory', provide a valid directory
9. Save these settings into a .jpl file by selecting 'Save'
Section B: Modify your Application Server Startup script
1. Ensure you have STOPPED WebLogic Server
2. Make a copy of the startup script.
3. Within this copy, find and replace the call to "java" (that runs the main class of the application server) with JProbe's 'jplauncher' executable and the JPL file saved from above.
( e.g. /homes/hmilley/JProbe_Suite_6.0.1/bin/jplauncher -jp_input=/homes/hmilley/tmp/myjpl.jpl)
4. Save and run this startup script (start the server). The JProbe Engine (jplauncher) will now wait for a connection for the JProbe Console. In the command window that normally shows the start-up activity of the weblogic server, you should see a line that says "JProbe Connection Manager is waiting on port 52991".
Section C: Connecting JProbe Console
1. Open Profiler on Windows if not already open. Do not click on RUN.
2. From the menu select 'Program' > 'Attach to Remote Session'. In the new window, the port # should be 52991 and enter the hostname that the session is running on.
3. Click 'OK'. The Connection Indicator will disappear and your server will take some time to startup.
4. When your server is fully started, you may hit your servlet, exercise your use case.