Software Defined Networking
1827324 Members
4453 Online
109962 Solutions
New Discussion

Server Error when importing new Application

 
SOLVED
Go to solution
sbotkine
Frequent Advisor

Server Error when importing new Application

Following the Health Monitor turorial, I've tried to create and import my first application.

 

I've first generate the template application with the command:

 

bin/gen-sdn-app /Users/admin/Documents/DataSerge/DEVELOPEMENT/HP/sdn-apps/health-monitor hm hp OpenFlowSwitch "Device Health Monitor" "Hewlett-Packard" "Application for monitoring health of network devices." health

 

Then I've created the "hm-1.0.0-SNPSHOT.zip"  file from the hm-root folder with the command:

 

mvn clean install 

 

Finally  I've used the Application/New button to import the previous ZIP file.

 

BUT, after having press the upload button, I've obtained the following error window:

 

Server Error - 400: Bad Request

Type: error

URL: rs/apps/upload

View ID: apps

 

Once I've closed the window I have the status:

 

Unsigned jars

 

Did someone have the same behaviour ? 

5 REPLIES 5
vandewilly
Advisor

Re: Server Error when importing new Application

The SDN controller enforces jar-signing validation by default. For an experimental/development environment where unsigned applications need to be deployed, jar-signing validation can be turned off altogether:

 

1 - Stop the SDN controller:

sudo service sdnc stop


2 - Modify the /opt/sdn/virgo/bin/dmk.sh script to include the line shown below in boldface type:

cd $KERNEL_HOME; exec $JAVA_EXECUTABLE \
$JAVA_OPTS \
$DEBUG_OPTS \
$JMX_OPTS \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:ErrorFile=$KERNEL_HOME/serviceability/error.log \
-XX:HeapDumpPath=$KERNEL_HOME/serviceability/heap_dump.hprof \
-Dsdn.signedJar=none \
-Djava.security.auth.login.config=$AUTH_LOGIN \
-Dorg.eclipse.virgo.kernel.authentication.file=$AUTH_FILE \

 

3 - Start the SDN controller:

sudo service sdnc start

vandewilly
Advisor

Re: Server Error when importing new Application

Under the section Running the Controller Without Jar-Signing Validation, in the Admin Guide, you can find more details.
sdnindia
Trusted Contributor

Re: Server Error when importing new Application

sdnindia
Trusted Contributor

Re: Server Error when importing new Application

Hi,

Please let us know if your problem is solved.

Please feel free to reply incase you have more questions around the same topic or open a new thread if new topic.

 

If you feel your question has been answered, please do let us know by marking this response as an 'accepted solution’.

Thanks
HP SDN Team

sbotkine
Frequent Advisor
Solution

Re: Server Error when importing new Application

Yes it is solved.

Thanks for your help.

 

Serge