0

I have installed the IBM Mobile First Platform server 7.0 on Windows 2012R2.
I am using tomcat 7 as application server and Oracle 11g as DB.
I am able to deploy .wlapp files on the console but when I deploy any adapter on console it stuck saying "Deploying adapter-name.adapter..." but nothing happens.

screenshot: enter image description here

Idan Adar
  • 44,156
  • 13
  • 50
  • 89
Sanket K.
  • 197
  • 12
  • And in the server logs you see...? – Idan Adar Apr 17 '15 at 14:29
  • yes have error logs each time it says FAILURE=>UndeclaredThrowableException FAILURE=>PermGen space – Sanket K. Apr 17 '15 at 14:32
  • Great. Increase the permgen memory that is allocated to your tomcat instance. – Idan Adar Apr 17 '15 at 14:33
  • ok i'll try doing that. Thanks. – Sanket K. Apr 17 '15 at 14:34
  • yes increasing permgen memory worked but I am facing another problem now when I am trying to login to app it says "POST http://localhost:8080/XXX_Mobile/authorization/v1/clients/preview 404 (Not Found)" and Client registration failed with error: {"status":404,"responseHeaders":{"Date":"Fri, 17 Apr 2015 14:59:04 GMT","Content-Length":"0","Server":"Apache-Coyote/1.1"},"responseText":"","errorCode":"UNEXPECTED_ERROR","errorMsg":"The server was unable to process the request from the application. Please try again later.","invocationContext":null} – Sanket K. Apr 17 '15 at 15:04
  • Might be related to this: http://stackoverflow.com/questions/29607565/preview-not-working-on-mobilefirst-platform-foundation-server-7-0 – Idan Adar Apr 17 '15 at 15:11
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/75525/discussion-between-sanket-k-and-idan-adar). – Sanket K. Apr 17 '15 at 15:15

1 Answers1

0

From the Tomcat FAQ on How to deal with OutOfMemory errors:

A webapp that uses lots of libraries with many dependencies, or a server maintaining lots of webapps could exhauste the JVM PermGen space. This space is where the VM stores the classes and methods data. In those cases, the fix is to increase this size. The Sun VM has the flag -XX:MaxPermSize that allows to set its size (the default value is 64M)

  • Edit the CATALINA_OPTS file
  • Use an appropriate amount of memory for -XX:MaxPermSize=128m
  • Also refer this question (and many others, google): See this answer: https://stackoverflow.com/a/3003986/1530814
  • Don't forget to restart the application server
Community
  • 1
  • 1
Idan Adar
  • 44,156
  • 13
  • 50
  • 89